/* =============================================
   OHZ Forms - Landing Page CSS (Estilo Typeform)
   ============================================= */

/* Variables de Tema Light / Dark */
:root {
    /* MODO CLARO (Default) */
    --bg-main: #FAFAFD;
    --bg-card: #FFFFFF;
    --bg-card-hover: #F3F4F6;
    --bg-nav: rgba(255, 255, 255, 0.85);
    --border-nav: rgba(226, 232, 240, 0.8);
    
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #94A3B8;
    --border-color: #E2E8F0;
    
    --primary: #6C5CE7;
    --primary-hover: #5A4BD1;
    --primary-light: rgba(108, 92, 231, 0.08);
    --accent: #00CEC9;
    --accent-pink: #E84393;
    
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.06);
    --shadow-lg: 0 20px 50px rgba(0,0,0,0.08);
    
    --card-glow: rgba(108, 92, 231, 0.15);
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

[data-theme="dark"] {
    /* MODO OSCURO */
    --bg-main: #0B0F19;
    --bg-card: #151D30;
    --bg-card-hover: #1E293B;
    --bg-nav: rgba(15, 23, 42, 0.85);
    --border-nav: rgba(255, 255, 255, 0.08);
    
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    --border-color: #1E293B;
    
    --primary: #8075FF;
    --primary-hover: #6C5CE7;
    --primary-light: rgba(128, 117, 255, 0.15);
    --accent: #00CEC9;
    --accent-pink: #FD79A8;
    
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.4);
    --shadow-lg: 0 20px 50px rgba(0,0,0,0.5);
    
    --card-glow: rgba(128, 117, 255, 0.25);
}

/* Reset Global */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
    -webkit-font-smoothing: antialiased;
}

/* Layout Container */
.landing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* =============================================
   1. NAVBAR / HEADER
   ============================================= */
.landing-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-nav);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-nav);
    transition: all 0.3s ease;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-brand img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    border-radius: 10px;
}

.nav-brand span {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Theme Toggle Switch */
.theme-toggle-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.theme-toggle-btn:hover {
    transform: scale(1.08);
    border-color: var(--primary);
}

/* Buttons */
.btn-nav-login {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 15px;
    padding: 8px 16px;
    transition: color 0.2s ease;
}

.btn-nav-login:hover {
    color: var(--primary);
}

.btn-landing-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary) 0%, #A29BFE 100%);
    color: #FFFFFF !important;
    font-weight: 600;
    font-size: 15px;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 4px 20px var(--card-glow);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-landing-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px var(--card-glow);
}

.btn-landing-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--bg-card);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 15px;
    border-radius: 12px;
    text-decoration: none;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-landing-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* =============================================
   2. HERO SECTION
   ============================================= */
.hero-section {
    padding-top: 150px;
    padding-bottom: 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: var(--primary-light);
    border: 1px solid rgba(108, 92, 231, 0.2);
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 28px;
    box-shadow: var(--shadow-sm);
}

.hero-main-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.5px;
    max-width: 900px;
    margin: 0 auto 24px;
}

.hero-main-title span.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 50%, var(--accent-pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.hero-guarantees {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 54px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.hero-guarantees i {
    color: #10B981;
    font-weight: 700;
}

.highlight-free-card {
    border-color: rgba(16, 185, 129, 0.4) !important;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, var(--bg-card) 100%) !important;
}

.highlight-free-card .feature-card-icon {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #10B981 !important;
}

/* Mockup interactivo estilo Typeform */
.typeform-mockup-wrapper {
    max-width: 820px;
    margin: 0 auto;
    position: relative;
}

.typeform-mockup-card {
    background: var(--bg-card);
    border-radius: 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    padding: 48px 40px;
    text-align: left;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.mockup-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 36px;
    font-size: 13px;
    color: var(--text-muted);
}

.mockup-step-badge {
    background: var(--primary-light);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 700;
}

.mockup-question-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
    line-height: 1.3;
}

.mockup-question-desc {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.mockup-options-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 36px;
}

.mockup-option-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: var(--bg-main);
    border: 1.5px solid var(--border-color);
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    text-align: left;
}

.mockup-option-btn .key-badge {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
}

.mockup-option-btn:hover, .mockup-option-btn.selected {
    border-color: var(--primary);
    background: var(--primary-light);
    transform: translateX(4px);
}

.mockup-footer-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
    font-size: 13px;
    color: var(--text-muted);
}

.mockup-progress-track {
    width: 160px;
    height: 6px;
    background: var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}

.mockup-progress-fill {
    width: 66%;
    height: 100%;
    background: var(--primary);
    border-radius: 10px;
    transition: width 0.4s ease;
}

/* =============================================
   3. STATS SECTION
   ============================================= */
.stats-section {
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-card);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.stat-item h3 {
    font-size: 38px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -1px;
}

.stat-item p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-top: 4px;
    font-weight: 500;
}

/* =============================================
   4. FEATURES SECTION
   ============================================= */
.features-section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 60px;
}

.section-tag {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    display: block;
}

.section-title {
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card-landing {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 36px 28px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.feature-card-landing:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.feature-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 24px;
}

.feature-card-landing h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-card-landing p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* =============================================
   5. CTA BANNER
   ============================================= */
.cta-banner-section {
    padding: 80px 0;
}

.cta-banner-card {
    background: linear-gradient(135deg, #0F172A 0%, #1E1B4B 60%, #311042 100%);
    border-radius: 32px;
    padding: 64px 48px;
    text-align: center;
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.cta-banner-card h2 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.cta-banner-card p {
    font-size: 18px;
    color: #94A3B8;
    max-width: 600px;
    margin: 0 auto 36px;
}

/* =============================================
   6. FOOTER
   ============================================= */
.landing-footer {
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
    background: var(--bg-card);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand img {
    width: 36px;
    height: 36px;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 280px;
    margin-bottom: 16px;
}

.footer-socials {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-socials a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-socials a:hover {
    color: #FFFFFF;
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.footer-col h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col ul a {
    text-decoration: none;
    font-size: 14px;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.footer-col ul a:hover {
    color: var(--primary);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
    font-size: 14px;
    color: var(--text-muted);
}

/* Responsivo */
@media (max-width: 991px) {
    .nav-links { display: none; }
    .hero-main-title { font-size: 38px; }
    .hero-subtitle { font-size: 17px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .hero-main-title { font-size: 30px; }
    .cta-banner-card { padding: 40px 24px; }
    .cta-banner-card h2 { font-size: 28px; }
    .stats-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}

/* =============================================
   Página 404 Estilo Landing (Sticky Footer)
   ============================================= */
body.error-404-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body.error-404-page .error-404-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 60px;
    text-align: center;
}

body.error-404-page .landing-footer {
    margin-top: auto;
}

.error-404-card {
    max-width: 640px;
    width: 100%;
    margin: 0 auto;
}

.error-code-badge {
    font-size: 110px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -4px;
    background: linear-gradient(135deg, var(--primary) 0%, #00CEC9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 16px;
    display: inline-block;
    filter: drop-shadow(0 10px 20px rgba(108, 92, 231, 0.25));
    animation: floatGlow 3s ease-in-out infinite alternate;
}

@keyframes floatGlow {
    0% { transform: translateY(0); filter: drop-shadow(0 10px 20px rgba(108, 92, 231, 0.2)); }
    100% { transform: translateY(-8px); filter: drop-shadow(0 18px 30px rgba(108, 92, 231, 0.4)); }
}

.error-404-card h1 {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 14px;
    letter-spacing: -0.5px;
}

.error-404-card p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 32px;
}

.error-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.error-quick-links {
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

.error-quick-links p {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.quick-links-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.quick-link-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.quick-link-item:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.15);
}
