/* NARAO Match - Main Styles */

:root {
    --primary-color: #246bfd;
    --primary-dark: #174ea6;
    --secondary-color: #14213d;
    --accent-color: #00d2ff;
    --text-color: #14213d;
    --text-muted: #536078;
    --bg-light: #f6f8fc;
    --bg-white: #ffffff;
    --border-color: #e3e8f0;
    --success-color: #10b981;
    --white: #ffffff;
    --dark: #0f172a;
    
    --container-width: 1200px;
    --transition: all 0.3s ease;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-dark {
    background-color: var(--dark);
}

.text-white {
    color: var(--white);
}

.text-center {
    text-align: center;
}

.hidden {
    display: none;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--secondary-color);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 24px;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 20px;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.section-description {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 60px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.125rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-secondary:hover {
    color: var(--primary-dark);
}

.btn-outline {
    border-color: var(--border-color);
    background-color: transparent;
    color: var(--text-color);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-block {
    display: flex;
    width: 100%;
}

.mobile-only {
    display: none;
}

/* Header */
.main-header {
    height: 80px;
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.main-header.sticky {
    position: sticky;
    top: 0;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.brand-name .accent {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text-muted);
}

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

.header-ctas {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--secondary-color);
    position: relative;
    transition: var(--transition);
}

.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--secondary-color);
    left: 0;
    transition: var(--transition);
}

.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

.mobile-menu-toggle.active .hamburger {
    background: transparent;
}

.mobile-menu-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.mobile-menu-toggle.active .hamburger::after {
    bottom: 0;
    transform: rotate(-45deg);
}

/* Hero */
.hero {
    padding: 120px 0 80px;
    background: radial-gradient(circle at 90% 10%, rgba(36, 107, 253, 0.05) 0%, transparent 40%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.hero-visual {
    position: relative;
}

.visual-placeholder {
    background-color: var(--bg-light);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Highlights */
.highlights {
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 0.9375rem;
}

.icon-wrap {
    width: 40px;
    height: 40px;
    background-color: rgba(36, 107, 253, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* How It Works */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.step-card {
    padding: 40px;
    background: var(--bg-white);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.step-number {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    margin-bottom: 24px;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    padding: 32px;
    background: var(--bg-white);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

/* Product Showcase */
.showcase-grid {
    display: flex;
    flex-direction: column;
    gap: 100px;
}

.showcase-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.showcase-item.inverse {
    direction: rtl;
}

.showcase-item.inverse .showcase-info {
    direction: ltr;
}

.showcase-visual {
    background: var(--bg-light);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    aspect-ratio: 16/10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.showcase-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Benefits */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.benefit-card h3 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.benefit-card p {
    color: rgba(255, 255, 255, 0.7);
}

/* Founder */
.founder-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: center;
}

.founder-text p {
    margin-bottom: 20px;
    font-size: 1.125rem;
    color: var(--text-muted);
}

.founder-meta {
    margin: 32px 0;
}

.founder-meta p {
    margin-bottom: 8px;
    font-size: 1rem;
}

.founder-image-placeholder {
    aspect-ratio: 1/1;
    background-color: var(--bg-light);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.founder-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Form */
.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: 60px;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
}

.modern-form .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    font-weight: 700;
    font-size: 0.875rem;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(36, 107, 253, 0.1);
}

.form-footer {
    text-align: center;
}

.form-note {
    margin-top: 16px;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.form-note a {
    color: var(--primary-color);
    font-weight: 600;
}

.form-feedback {
    margin-top: 24px;
    padding: 16px;
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    border-radius: 8px;
    font-weight: 700;
}

/* Footer */
.main-footer {
    padding: 80px 0 40px;
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand .brand-name {
    display: block;
    margin-bottom: 16px;
}

.footer-nav h4 {
    margin-bottom: 24px;
    font-size: 1rem;
}

.footer-nav ul li {
    margin-bottom: 12px;
}

.footer-nav ul a {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

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

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

.footer-info {
    display: flex;
    gap: 24px;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content {
        max-width: 800px;
        margin: 0 auto;
    }
    
    .hero-subtitle {
        margin: 0 auto 40px;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .highlights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    /* Mobile Menu Overlay */
    .main-nav {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--bg-white);
        z-index: 999;
        display: block;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 40px 24px;
        overflow-y: auto;
    }

    .main-nav.active {
        transform: translateX(0);
    }

    .nav-links {
        flex-direction: column;
        gap: 24px;
        align-items: center;
    }

    .nav-links a {
        font-size: 1.25rem;
        color: var(--secondary-color);
    }

    .mobile-only {
        display: block;
        width: 100%;
        text-align: center;
    }

    .mobile-only .btn {
        width: 100%;
        margin-top: 10px;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .header-ctas .btn-primary {
        display: none; /* Hide in header to save space, will be in menu if we added it, but for now let's just show it in Hero */
    }

    /* If we want to keep one CTA, maybe a smaller one or just the hamburger */
    .header-ctas {
        gap: 8px;
    }

    .btn-login {
        display: none;
    }

    .section-padding {
        padding: 60px 0;
    }

    /* Hero adjustments */
    .hero {
        padding: 60px 0 40px;
    }

    h1 {
        font-size: 2.25rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .section-description {
        font-size: 1.125rem;
        margin-bottom: 40px;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-visual {
        margin-top: 40px;
    }

    .visual-placeholder {
        min-height: auto;
        aspect-ratio: 16/10;
    }

    .showcase-item {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .showcase-item.inverse {
        direction: ltr;
    }
    
    .founder-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .founder-visual {
        order: -1;
        max-width: 320px;
        margin: 0 auto;
    }

    .founder-meta {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .form-container {
        padding: 40px 20px;
        border-radius: 16px;
    }
    
    .modern-form .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-group.full-width {
        grid-column: span 1;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-info {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    h1 {
        font-size: 1.85rem;
    }

    .highlights-grid,
    .steps-grid,
    .features-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .step-card, .feature-card {
        padding: 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        margin-bottom: 20px;
    }
}

/* Extra small screens fix */
@media (max-width: 360px) {
    h1 {
        font-size: 1.65rem;
    }
    
    .brand-name {
        font-size: 1.25rem;
    }
}

/* Distribución estable del header en escritorio */
@media (min-width: 769px) {
    .header-container {
        display: grid;
        grid-template-columns: max-content minmax(0, 1fr) max-content;
        align-items: center;
        column-gap: 32px;
    }

    .logo {
        justify-self: start;
    }

    .main-nav {
        position: static;
        transform: none;
        justify-self: center;
        min-width: 0;
    }

    .nav-links {
        gap: 28px;
        flex-wrap: nowrap;
    }

    .header-ctas {
        justify-self: end;
        flex-wrap: nowrap;
    }

    .header-ctas .btn,
    .nav-links a {
        white-space: nowrap;
    }
}

@media (min-width: 769px) and (max-width: 1150px) {
    .header-container {
        column-gap: 18px;
    }

    .nav-links {
        gap: 18px;
    }

    .nav-links a {
        font-size: 0.875rem;
    }

    .header-ctas {
        gap: 8px;
    }
}


/* Corrección de desbordamiento del menú móvil */
@media (max-width: 768px) {
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .header-container {
        width: 100%;
        min-width: 0;
    }

    .main-nav {
        position: fixed;
        top: 80px;
        right: 0;
        left: auto;
        width: 100vw;
        max-width: 100vw;
        height: calc(100dvh - 80px);
        padding: 32px 20px;
        box-sizing: border-box;
        overflow-x: hidden;
        overflow-y: auto;
        transform: translateX(100%);
    }

    .main-nav.active {
        transform: translateX(0);
    }

    .nav-links {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    .nav-links li,
    .nav-links a,
    .mobile-only,
    .mobile-only .btn {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .hero,
    .hero-container,
    .hero-content,
    .hero-visual {
        min-width: 0;
        max-width: 100%;
    }
}


/* Acciones profesionales del menú móvil */
.mobile-menu-actions {
    display: none;
}

@media (max-width: 768px) {
    .mobile-menu-actions {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
        max-width: 420px;
        margin: 36px auto 0;
        padding-top: 28px;
        border-top: 1px solid var(--border-color);
    }

    .mobile-menu-actions .btn {
        width: 100%;
        min-height: 52px;
        justify-content: center;
        box-sizing: border-box;
    }

    .mobile-menu-actions .btn-primary,
    .mobile-menu-actions .btn-primary:hover {
        color: var(--white);
    }

    .mobile-menu-actions .btn-outline {
        background-color: var(--bg-white);
        color: var(--secondary-color);
    }
}

