/* =========================================================
   DigitalMenta · Landing SaaS
   Sistema de diseño corporativo (DM Sans + menta)
   ---------------------------------------------------------
   1.  Variables y reset
   2.  Layout base y tipografía de sección
   3.  Botones
   4.  Navbar
   5.  Hero
   6.  Badges de modelos
   7.  Bloque diferencial (ref-cards)
   8.  Bloque metodología (zigzag)
   9.  Bloque servicios (spec-cards)
   10. Acordeón FAQ
   11. Formularios
   12. Banner final de contacto
   13. Footer
   14. Animaciones
   15. Responsive
   ========================================================= */

/* ============ 1. VARIABLES Y RESET ============ */
:root {
    --primary-green: #5DD39C;
    /* Corporate Mint */
    --accent-green: #00D084;
    /* Reference Green for CTAs */
    --accent-green-dark: #00B874;
    --mint-soft: #E6F9F0;
    /* Very light green (icon boxes) */
    --mint-bg: #F0FDF4;
    /* Light mint background */
    --deep-green: #064E3B;

    --nav-text: #000000;
    --text-main: #1f1f1f;
    --text-light: #555555;
    --text-muted: #6B7280;
    --text-soft: #9CA3AF;
    --heading: #111111;
    --heading-navy: #0F172A;

    --bg-light: #F9F9F9;
    --bg-dark: #0F172A;
    --bg-dark-2: #111827;
    --border: #EAEAEA;
    --border-input: #E5E7EB;
    --white: #FFFFFF;

    --font-main: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    --card-hover-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --btn-shadow: 0 4px 14px rgba(0, 208, 132, 0.4);
    --btn-shadow-hover: 0 6px 20px rgba(0, 208, 132, 0.5);
    --radius-card: 20px;
    --radius-btn: 100px;
    --radius-input: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--white);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

img,
svg {
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* ============ 2. LAYOUT BASE ============ */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container-narrow {
    max-width: 900px;
}

.section-title {
    font-size: 2.5rem;
    line-height: 1.2;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.25rem;
    color: var(--heading);
    letter-spacing: -0.02em;
}

.section-title span {
    color: var(--primary-green);
}

.section-subtitle {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 3.5rem;
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

.highlight-green {
    color: var(--accent-green);
}

.mobile-break {
    display: none;
}

/* ============ 3. BOTONES ============ */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent-green);
    color: var(--white);
    padding: 0.75rem 2rem;
    border-radius: var(--radius-input);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    font-family: inherit;
    line-height: 1.3;
    border: none;
    cursor: pointer;
    box-shadow: var(--btn-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.cta-button:hover {
    background-color: var(--accent-green-dark);
    transform: translateY(-2px);
    box-shadow: var(--btn-shadow-hover);
}

.cta-button.big {
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
}

.full-width {
    width: 100%;
    margin-top: 1rem;
}

.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-input);
    background: var(--white);
    color: var(--text-main);
    font-weight: 700;
    font-size: 0.95rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ghost-button:hover {
    border-color: var(--primary-green);
    color: var(--primary-green);
    transform: translateY(-2px);
    box-shadow: var(--card-shadow);
}

.ghost-button.big {
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
}

/* ============ 4. NAVBAR ============ */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    width: 100%;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 32px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--primary-green);
}

.nav-toggle,
.nav-burger {
    display: none;
}

/* ============ 5. HERO ============ */
.hero-section {
    padding: 4.5rem 0 5rem;
    background:
        radial-gradient(760px 420px at 88% -10%, var(--mint-bg) 0%, rgba(240, 253, 244, 0) 65%),
        linear-gradient(180deg, var(--white) 0%, var(--bg-light) 100%);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 4rem;
    align-items: center;
}

.hero-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.hero-section h1 {
    font-size: 3.25rem;
    line-height: 1.15;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--heading-navy);
    letter-spacing: -0.02em;
}

.hero-description {
    max-width: 560px;
    margin-bottom: 2.25rem;
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
}

.hero-stats li {
    display: flex;
    flex-direction: column;
}

.hero-stats strong {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--heading);
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.hero-stats span {
    font-size: 0.85rem;
    color: var(--text-soft);
}

.hero-form {
    margin: 0;
}

/* ============ 6. BADGES DE MODELOS ============ */
.badges-section {
    padding: 3rem 0;
    background: var(--white);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.badges-title {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-soft);
    margin-bottom: 1.5rem;
}

.pill-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.pill-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-btn);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    font-size: 0.95rem;
    font-weight: 500;
    color: #4B5563;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.pill-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: rgba(93, 211, 156, 0.3);
}

/* ============ 7. BLOQUE DIFERENCIAL ============ */
.benefits-section {
    padding: 5rem 0;
    background-color: var(--bg-light);
}

.reference-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.ref-card {
    background: var(--white);
    padding: 2.25rem 2rem;
    border-radius: var(--radius-card);
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
}

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

.icon-box {
    width: 50px;
    height: 50px;
    background-color: var(--mint-soft);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: var(--primary-green);
    flex-shrink: 0;
}

.card-content h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
    color: var(--heading);
    font-weight: 700;
}

.card-content p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.55;
}

.card-list {
    margin-top: 1.25rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--border);
}

.card-list li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
    font-size: 0.88rem;
    color: var(--text-light);
}

.card-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary-green);
}

/* ============ 8. BLOQUE METODOLOGÍA (ZIGZAG) ============ */
.process-section {
    padding: 6rem 0;
    background: var(--white);
}

.process-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 3rem 0;
}

.process-row+.process-row {
    border-top: 1px solid var(--border);
}

.process-row.reverse .process-copy {
    order: 2;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 1.25rem;
    border-radius: 12px;
    background: var(--mint-soft);
    color: var(--primary-green);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.process-copy h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--heading);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.process-copy p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.65;
    margin-bottom: 1rem;
}

.check-list {
    margin-top: 1.5rem;
}

.check-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-main);
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.1em;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--mint-soft);
}

.check-list li::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 0.45em;
    width: 7px;
    height: 4px;
    border-left: 2px solid var(--primary-green);
    border-bottom: 2px solid var(--primary-green);
    transform: rotate(-45deg);
}

.check-list strong {
    color: var(--heading);
    font-weight: 700;
}

/* Variante para las dos vías de demanda (paso 02) */
.dual-list li {
    margin-bottom: 1rem;
    line-height: 1.55;
}

.process-media {
    display: flex;
    justify-content: center;
}

.process-media svg {
    width: 100%;
    height: auto;
    border-radius: var(--radius-card);
    box-shadow: var(--card-shadow);
}

/* Paleta interna de las ilustraciones SVG */
.sv-bg,
.sv-bg-shape {
    fill: var(--bg-light);
}

.sv-bg-shape {
    fill: var(--white);
}

.sv-fill {
    fill: var(--primary-green);
}

.sv-fill-soft {
    fill: var(--mint-soft);
}

.sv-stroke {
    fill: none;
    stroke: var(--primary-green);
    stroke-width: 2;
}

.sv-stroke-line {
    fill: none;
    stroke: var(--heading-navy);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sv-line {
    fill: var(--heading-navy);
    opacity: 0.8;
}

.sv-line-soft {
    fill: var(--text-soft);
    opacity: 0.5;
}

/* ============ 9. BLOQUE SERVICIOS ============ */
.specs-section {
    padding: 6rem 0;
    background: var(--bg-light);
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.spec-card {
    display: flex;
    flex-direction: column;
    padding: 2.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    background: var(--white);
    transition: all 0.3s ease;
}

.spec-card:hover {
    border-color: var(--primary-green);
    box-shadow: var(--card-shadow);
    transform: translateY(-5px);
}

.spec-icon {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    line-height: 0;
}

.spec-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--heading);
    letter-spacing: -0.01em;
}

.spec-card p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
}

/* Acordeón compacto dentro de una card de servicio */
.mini-accordion {
    margin-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.mini-acc-item {
    border-bottom: 1px solid var(--border);
}

.mini-acc-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--heading);
    cursor: pointer;
    list-style: none;
    transition: color 0.2s ease;
}

.mini-acc-item summary::-webkit-details-marker {
    display: none;
}

.mini-acc-item summary:hover {
    color: var(--primary-green);
}

.mini-acc-icon {
    position: relative;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--mint-soft);
    transition: background 0.2s ease;
}

.mini-acc-icon::before,
.mini-acc-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 9px;
    height: 2px;
    border-radius: 2px;
    background: var(--primary-green);
    transform: translate(-50%, -50%);
    transition: transform 0.25s ease, opacity 0.25s ease, background 0.2s ease;
}

.mini-acc-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.mini-acc-item[open] .mini-acc-icon {
    background: var(--primary-green);
}

.mini-acc-item[open] .mini-acc-icon::before,
.mini-acc-item[open] .mini-acc-icon::after {
    background: var(--white);
}

.mini-acc-item[open] .mini-acc-icon::after {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(0);
}

.mini-acc-item p {
    padding: 0 2rem 1rem 0;
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.55;
    animation: accFade 0.3s ease;
}

.spec-card-cta {
    background: var(--mint-bg);
    border-color: rgba(93, 211, 156, 0.35);
    justify-content: center;
}

.spec-card-cta h3 {
    color: var(--deep-green);
}

.spec-card-cta p {
    margin-bottom: 1.75rem;
}

.spec-card-cta .cta-button {
    align-self: flex-start;
}

/* ============ 10. ACORDEÓN FAQ ============ */
.faq-section {
    padding: 6rem 0;
    background: var(--white);
}

.accordion {
    border-top: 1px solid var(--border);
}

.acc-item {
    border-bottom: 1px solid var(--border);
}

.acc-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.5rem 0.25rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--heading);
    cursor: pointer;
    list-style: none;
    transition: color 0.2s ease;
}

.acc-item summary::-webkit-details-marker {
    display: none;
}

.acc-item summary:hover {
    color: var(--primary-green);
}

.acc-icon {
    position: relative;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--mint-soft);
    transition: background 0.2s ease;
}

.acc-icon::before,
.acc-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 2px;
    border-radius: 2px;
    background: var(--primary-green);
    transform: translate(-50%, -50%);
    transition: transform 0.25s ease, opacity 0.25s ease, background 0.2s ease;
}

.acc-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.acc-item[open] .acc-icon {
    background: var(--primary-green);
}

.acc-item[open] .acc-icon::before,
.acc-item[open] .acc-icon::after {
    background: var(--white);
}

.acc-item[open] .acc-icon::after {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(0);
}

.acc-body {
    padding: 0 3.5rem 1.75rem 0.25rem;
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.65;
    animation: accFade 0.3s ease;
}

.acc-body p+p {
    margin-top: 0.9rem;
}

@keyframes accFade {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============ 11. FORMULARIOS ============ */
.contact-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-card);
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.hero-form {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.form-head h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--heading);
    margin-bottom: 0.35rem;
    letter-spacing: -0.01em;
}

.form-head p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}

.form-group label {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-main);
}

.form-group input,
.form-group textarea {
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-input);
    border-radius: var(--radius-input);
    font-size: 1rem;
    font-family: var(--font-main);
    color: var(--text-main);
    background: var(--white);
    transition: all 0.2s ease;
    width: 100%;
}

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

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(93, 211, 156, 0.2);
}

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

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--text-muted);
    cursor: pointer;
}

.form-check input {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--primary-green);
}

/* Honeypot antispam (invisible para el usuario) */
.honeypot {
    position: absolute !important;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* Mensaje de error del formulario */
.form-error {
    margin: -0.5rem 0 0;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-input);
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #B91C1C;
    font-size: 0.85rem;
    line-height: 1.45;
}

button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: wait;
    transform: none;
}

/* ============ 12. BANNER FINAL ============ */
.booking-section {
    padding: 6rem 0;
    background:
        radial-gradient(680px 380px at 8% 0%, rgba(93, 211, 156, 0.18) 0%, rgba(93, 211, 156, 0) 60%),
        var(--bg-dark);
    position: relative;
    overflow: hidden;
}

.booking-section::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: rgba(93, 211, 156, 0.1);
    border-radius: 50%;
    z-index: 0;
}

.booking-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.booking-info h2 {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 1.75rem;
    line-height: 1.15;
    color: var(--white);
    letter-spacing: -0.02em;
}

.booking-quote {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    font-style: italic;
    font-weight: 500;
    border-left: 4px solid var(--primary-green);
    padding-left: 1.5rem;
    line-height: 1.5;
}

.booking-list {
    margin-bottom: 2.5rem;
}

.booking-list li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.7rem;
    font-size: 0.98rem;
    color: rgba(255, 255, 255, 0.85);
}

.booking-list li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 0.55em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-green);
    box-shadow: 0 0 0 4px rgba(93, 211, 156, 0.18);
}

.agency-details {
    display: flex;
    gap: 1.5rem;
}

.trust-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.trust-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.trust-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.trust-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-soft);
    margin-bottom: 0.25rem;
}

.trust-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--heading);
    line-height: 1.3;
}

.booking-section .contact-form {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

/* ============ 13. FOOTER ============ */
.site-footer {
    background: var(--bg-dark-2);
    color: var(--text-soft);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 2.75rem;
    padding-top: 4.5rem;
    padding-bottom: 3.5rem;
}

.footer-brand .logo {
    margin-bottom: 1.25rem;
}

.footer-brand p {
    font-size: 0.92rem;
    line-height: 1.6;
    max-width: 320px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 700;
}

.footer-col a {
    display: block;
    margin-bottom: 0.65rem;
    font-size: 0.92rem;
    transition: color 0.2s ease;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    font-size: 0.85rem;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a:hover {
    color: var(--primary-green);
}

/* ============ 14. ANIMACIONES ============ */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards 0.2s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Clases preparadas para el reveal por scroll (script.js opcional) */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============ POPUP DE CONFIRMACIÓN ============ */
.popup-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 1.5rem;
}

.popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-card);
    text-align: center;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.popup-overlay.show .popup-content {
    transform: translateY(0);
}

.popup-icon {
    margin-bottom: 1.5rem;
    display: inline-flex;
    padding: 1rem;
    background: var(--mint-bg);
    border-radius: 50%;
}

.popup-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--heading);
}

.popup-content p {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.55;
    font-size: 0.95rem;
}

/* ============ 15. RESPONSIVE ============ */
@media (max-width: 1024px) {

    .hero-grid,
    .booking-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-description {
        max-width: none;
    }

    .contact-form {
        max-width: 100%;
    }

    .reference-grid,
    .specs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-row {
        gap: 2.5rem;
    }

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

@media (max-width: 900px) {

    .hero-section h1 {
        font-size: 2.6rem;
    }

    .booking-info h2 {
        font-size: 2.2rem;
    }

    /* Menú móvil (CSS puro, sin JS) */
    .nav-burger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 42px;
        height: 42px;
        padding: 0 9px;
        border: 1px solid var(--border);
        border-radius: var(--radius-input);
        cursor: pointer;
    }

    .nav-burger span {
        display: block;
        height: 2px;
        border-radius: 2px;
        background: var(--nav-text);
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0 2rem;
        max-height: 0;
        overflow: hidden;
        background: var(--white);
        transition: max-height 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
    }

    .nav-toggle:checked~.nav-links {
        max-height: 400px;
        padding: 0.5rem 2rem 1.5rem;
        box-shadow: var(--card-shadow);
    }

    .nav-link {
        padding: 0.9rem 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-links .cta-button {
        margin-top: 1rem;
    }

    .process-row {
        grid-template-columns: 1fr;
        padding: 2.5rem 0;
    }

    .process-row.reverse .process-copy {
        order: 0;
    }

    .process-media {
        order: -1;
    }
}

@media (max-width: 600px) {

    .container {
        padding: 0 1.25rem;
    }

    .navbar {
        padding: 1rem 1.25rem;
    }

    .hero-section {
        padding: 3rem 0 3.5rem;
    }

    .hero-section h1 {
        font-size: 2.15rem;
    }

    .hero-actions .cta-button,
    .hero-actions .ghost-button {
        width: 100%;
    }

    /* El formulario del hero ocupa demasiado espacio en móvil.
       Se oculta y el botón "Impulsar mi SaaS" lleva al formulario de #contacto. */
    .hero-form {
        display: none;
    }

    #contacto {
        scroll-margin-top: 72px;
    }

    .hero-stats {
        gap: 1.5rem;
        justify-content: center;
        text-align: center;
    }

    .benefits-section,
    .process-section,
    .specs-section,
    .faq-section,
    .booking-section {
        padding: 3.5rem 0;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
        line-height: 1.25;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2.25rem;
    }

    .mobile-break {
        display: inline;
    }

    .reference-grid,
    .specs-grid {
        grid-template-columns: 1fr;
    }

    .ref-card,
    .spec-card {
        padding: 1.75rem 1.5rem;
    }

    .process-copy h3 {
        font-size: 1.45rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .booking-info h2 {
        font-size: 1.85rem;
    }

    .booking-quote {
        font-size: 1.05rem;
    }

    .agency-details {
        flex-direction: column;
    }

    .acc-item summary {
        font-size: 1rem;
        gap: 1rem;
    }

    .acc-body {
        padding-right: 0.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-legal {
        flex-direction: column;
        gap: 0.6rem;
    }
}
