/* ===== BASE ===== */
:root {
    --bg: #FAFAF8;
    --bg-alt: #F3F2EE;
    --bg-card: #FFFFFF;
    --border: #E5E2DC;
    --border-hover: #D1CEC6;
    --text: #1A1A1A;
    --text-secondary: #6B6B6B;
    --text-muted: #7B7F87;
    --accent: #E8B000;
    --accent-hover: #D4A000;
    --accent-soft: rgba(232, 176, 0, 0.08);
    --accent-glow: rgba(232, 176, 0, 0.15);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --mono: 'JetBrains Mono', monospace;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: var(--accent);
    color: var(--text);
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea { font-family: inherit; }

.container { max-width: 960px; margin: 0 auto; padding: 0 24px; }

/* ===== NAV ===== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 18px 0;
    transition: all 0.35s var(--ease);
}

.navbar.scrolled {
    padding: 14px 0;
    background: rgba(250, 250, 248, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.nav-logo {
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: -0.01em;
    color: var(--text);
    flex-shrink: 0;
}

.logo-accent {
    color: var(--accent);
    margin-left: 1px;
    font-family: var(--mono);
}

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

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.25s var(--ease);
    position: relative;
}

.nav-link:hover,
.nav-link.active { color: var(--text); }

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s var(--ease);
}

.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

/* ===== CTA BUTTON (principal - identico en toda la pagina) ===== */
.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: var(--font);
    border-radius: 8px;
    background: var(--accent);
    color: var(--text);
    border: none;
    cursor: pointer;
    transition: all 0.25s var(--ease);
    box-shadow: 0 2px 8px rgba(232, 176, 0, 0.2);
    text-decoration: none;
    white-space: nowrap;
}

.btn-cta:hover {
    background: var(--accent-hover);
    box-shadow: 0 4px 20px rgba(232, 176, 0, 0.3);
    transform: translateY(-1px) scale(1.02);
}

.btn-cta:active {
    transform: scale(0.98);
    box-shadow: 0 1px 4px rgba(232, 176, 0, 0.2);
}

.btn-cta:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* Nav CTA mobile - oculto en desktop, visible en menu movil */
.nav-cta-mobile { display: none; }

/* Nav CTA - ligeramente mas pequeno */
.nav-cta {
    padding: 10px 24px;
    font-size: 0.875rem;
    flex-shrink: 0;
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
    padding: 8px;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s var(--ease);
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== HERO ===== */
.hero {
    padding: 160px 0 120px;
    background: var(--bg);
}

.hero-content {
    max-width: 680px;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.025em;
    margin-bottom: 24px;
    color: var(--text);
}

.hero-title em {
    font-style: normal;
    color: var(--accent-hover);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 580px;
}

/* ===== SECTIONS ===== */
.services,
.process,
.faq,
.contact {
    padding: 100px 0;
}

.services { background: var(--bg-alt); }
.process { background: var(--bg); }
.faq { background: var(--bg-alt); }
.contact { background: var(--bg); }

.section-header {
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 14px;
    line-height: 1.3;
    color: var(--text);
}

.section-header p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.75;
    max-width: 540px;
}

/* ===== SERVICES GRID ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.service-card {
    background: var(--bg-card);
    padding: 32px;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s var(--ease);
}

.service-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.service-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-icon i {
    font-size: 1.1rem;
    color: var(--accent-hover);
}

.service-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
    color: var(--text);
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

/* ===== CTA STRIP ===== */
.cta-strip {
    padding: 48px 0;
    background: var(--bg);
    text-align: center;
}

.cta-strip .container {
    display: flex;
    justify-content: center;
}

/* ===== PROCESS ===== */
.process-steps {
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}

.process-step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding-bottom: 36px;
    position: relative;
}

.process-step:last-child { padding-bottom: 0; }

/* Linea conectora vertical */
.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 19px;
    top: 40px;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--text);
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(232, 176, 0, 0.2);
}

.step-content {
    flex: 1;
    padding-top: 6px;
}

.step-content h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

.step-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

/* ===== FAQ ===== */
.faq-list { max-width: 600px; }

.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }

.faq-item summary {
    padding: 20px 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: color 0.25s var(--ease);
    min-height: 44px;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent-hover); }

.faq-item summary::after {
    content: '+';
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--text-muted);
    transition: all 0.3s var(--ease);
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
    color: var(--accent);
}

.faq-item p {
    padding-bottom: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.85;
}

/* ===== CTA BANNER ===== */
.cta-banner {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(232, 176, 0, 0.06) 0%, rgba(232, 176, 0, 0.12) 100%);
    text-align: center;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.cta-banner h2 {
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 16px;
    line-height: 1.3;
    color: var(--text);
}

.cta-banner p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.75;
    max-width: 520px;
    margin: 0 auto 32px;
}

/* ===== CONTACT ===== */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
    position: relative;
}

.contact-info h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 14px;
    line-height: 1.3;
    color: var(--text);
}

.contact-info > p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 32px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: color 0.25s var(--ease);
}

a.contact-link:hover { color: var(--accent-hover); }

.contact-link i {
    width: 18px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color 0.25s var(--ease);
}

a.contact-link:hover i { color: var(--accent-hover); }

/* ===== FORM ===== */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 1rem;
    transition: all 0.25s var(--ease);
    outline: none;
}

.form-group input:hover,
.form-group textarea:hover {
    border-color: var(--border-hover);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }

.form-group textarea { resize: vertical; min-height: 100px; }

.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 32px;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: var(--font);
    border-radius: 8px;
    background: var(--accent);
    color: var(--text);
    border: none;
    cursor: pointer;
    transition: all 0.25s var(--ease);
    box-shadow: 0 2px 8px rgba(232, 176, 0, 0.2);
}

.btn-submit:hover {
    background: var(--accent-hover);
    box-shadow: 0 4px 20px rgba(232, 176, 0, 0.3);
    transform: translateY(-1px);
}

.btn-submit:active {
    transform: scale(0.98);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-submit:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.form-success {
    display: none;
    position: absolute;
    top: 0; right: 0;
    width: calc(50% - 32px);
    height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 12px;
}

.form-success.active { display: flex; }
.form-success i { font-size: 2rem; color: #22c55e; }
.form-success h3 { font-size: 1.1rem; font-weight: 600; color: var(--text); }
.form-success p { font-size: 0.9rem; color: var(--text-secondary); }

/* ===== HONEYPOT (anti-spam) ===== */
.form-honey {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

/* ===== FOOTER ===== */
.footer {
    padding: 32px 0;
    border-top: 1px solid var(--border);
    background: var(--bg);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-name {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.footer-links { display: flex; gap: 8px; }

.footer-links a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: all 0.25s var(--ease);
}

.footer-links a:hover {
    color: var(--accent-hover);
    background: var(--accent-soft);
}

/* ===== ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        inset: 0;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 24px;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s var(--ease);
        z-index: 999;
    }

    .nav-links.active { opacity: 1; visibility: visible; }
    .nav-links .nav-link { font-size: 1.2rem; color: var(--text); }
    .nav-links .nav-link::after { display: none; }

    .nav-cta { display: none; }

    .nav-cta-mobile {
        display: inline-flex;
        margin-top: 8px;
        white-space: normal;
        text-align: center;
    }

    .nav-links.active ~ .nav-toggle { z-index: 1001; }

    .nav-toggle { display: flex; }

    .hero { padding: 130px 0 80px; }
    .hero-title { font-size: clamp(1.75rem, 6vw, 2.5rem); }
    .hero-subtitle { font-size: 1rem; }

    .services-grid { grid-template-columns: 1fr; gap: 16px; }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .services,
    .process,
    .faq,
    .contact { padding: 72px 0; }

    .cta-strip { padding: 36px 0; }

    .cta-banner { padding: 60px 0; }

    .btn-cta {
        width: 100%;
        white-space: normal;
        text-align: center;
    }

    .process-steps { max-width: 100%; }

    .faq-item summary { min-height: 48px; padding: 16px 0; }

    .form-success {
        position: static;
        width: 100%;
        padding: 40px 0;
    }

    .footer-inner {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title { font-size: 1.6rem; }

    .hero-content .btn-cta { width: 100%; }

    .section-header h2 { font-size: 1.4rem; }

    .cta-banner h2 { font-size: 1.4rem; }

    .service-card { padding: 24px; }

    .step-number {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }

    .process-step:not(:last-child)::after { left: 17px; }

    .contact-info h2 { font-size: 1.4rem; }
}

/* ===== FOCUS STATES ===== */
.nav-link:focus-visible,
.contact-link:focus-visible,
.footer-links a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

.faq-item summary:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    .fade-in {
        opacity: 1;
        transform: none;
    }
}
