/* ==========================================================================
   1. Variables Base y Tokens de Diseño — V7 Performance
   ========================================================================== */
:root {
    --bg-dark: #030305;
    --bg-card: #0c0d12;
    --bg-card-hover: #131419;
    --bg-elevated: #111216;

    --accent-orange: #ff5e3a;
    --accent-red: #e63946;

    --whatsapp-green: #25D366;
    --whatsapp-green-dark: #1EBE5D;

    --text-primary: #f0f0f3;
    --text-heading: #ffffff;
    --text-secondary: #8a8f9e;

    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-glass: rgba(255, 255, 255, 0.09);
    --border-accent: rgba(255, 94, 58, 0.22);

    --radius-card: 20px;
    --radius-pill: 50px;

    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

    --shadow-card: 0 6px 24px rgba(0,0,0,0.4);
    --shadow-elevated: 0 16px 48px rgba(0,0,0,0.5);
}

/* ==========================================================================
   2. Reset y Configuración General
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-dark);
    /* Fondo limpio estático. Iluminación "Spotlight Térmico" enfocada en Hero */
    background-image:
        radial-gradient(ellipse 110% 80% at 50% -5%, rgba(255, 94, 58, 0.15) 0%, rgba(230, 57, 70, 0.08) 50%, transparent 85%);
    color: var(--text-primary);
    line-height: 1.65;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
}



/* ==========================================================================
   4. Layout Base
   ========================================================================== */
.content-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

section, header.hero {
    width: 100%;
    max-width: 1280px;
    padding: 7rem 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Section Headers */
.section-header {
    text-align: left;
    width: 100%;
    max-width: 1280px;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2.4rem, 5vw, 3.4rem);
    font-weight: 900;
    letter-spacing: -0.035em;
    line-height: 1.08;
    margin-bottom: 0.6rem;
    color: var(--text-heading);
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    margin-top: 1rem;
    background: linear-gradient(90deg, var(--accent-orange), var(--accent-red));
    border-radius: 2px;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.15rem;
    margin-top: 0.5rem;
}

.highlight {
    background: linear-gradient(135deg, #ff9a6c, var(--accent-orange), var(--accent-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* ==========================================================================
   5. BOTONES Y UX CONVERSIÓN
   ========================================================================== */
@keyframes breathing {
    0%   { box-shadow: 0 6px 20px rgba(37, 211, 102, 0.2); }
    50%  { box-shadow: 0 10px 30px rgba(37, 211, 102, 0.35); }
    100% { box-shadow: 0 6px 20px rgba(37, 211, 102, 0.2); }
}

@keyframes pulse-wa {
    0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45); }
    70%  { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.floating-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--whatsapp-green), #1bb052);
    color: white;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: transform 0.3s ease;
    animation: pulse-wa 2.5s infinite;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

.floating-wa:hover {
    transform: scale(1.1) translateY(-3px);
}

.floating-wa .wa-icon {
    width: 30px;
    height: 30px;
}

/* CTA Buttons */
.btn-whatsapp-hero, .btn-whatsapp-huge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    background: linear-gradient(135deg, var(--whatsapp-green), #1bb052);
    color: #fff;
    border-radius: var(--radius-pill);
    font-weight: 700;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: breathing 4.5s ease-in-out infinite;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Shimmer on hover */
.btn-whatsapp-hero::after, .btn-whatsapp-huge::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s ease;
}

.btn-whatsapp-hero:hover::after, .btn-whatsapp-huge:hover::after {
    left: 100%;
}

.btn-whatsapp-hero {
    padding: 1.3rem 2.5rem;
}

.btn-whatsapp-huge {
    padding: 1.5rem 3rem;
    margin-top: 3rem;
    box-shadow: 0 10px 32px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp-hero:hover, .btn-whatsapp-huge:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(37, 211, 102, 0.4);
}

.icon-btn-hero { width: 28px; height: 28px; flex-shrink: 0; }
.icon-btn-large { width: 34px; height: 34px; flex-shrink: 0; }

.btn-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.btn-title {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0.8px;
}

.btn-microcopy {
    font-size: 0.82rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 0.3rem;
}

/* ==========================================================================
   6. Sections — Lightweight Premium
   ========================================================================== */

/* ──── HERO ──── */
.hero {
    min-height: 100vh;
    padding-top: 8rem;
    padding-bottom: 6rem;
    flex-direction: row;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Nota: Se han removido las líneas verticales y círculos decorativos para
   darle protagonismo total al Focal Spotlight y la limpieza del contenido */

.hero-content {
    width: 100%;
    max-width: 820px;
    align-self: flex-start;
    text-align: left;
    position: relative;
    z-index: 2;
}

.badge-urgency {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(230, 57, 70, 0.1);
    border: 1px solid rgba(230, 57, 70, 0.2);
    color: #ff8a8a;
    padding: 0.55rem 1.5rem;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    /* No backdrop-filter — solid bg is enough */
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #ff4747;
    border-radius: 50%;
    animation: flash-dot 1.2s infinite alternate;
    box-shadow: 0 0 8px rgba(255, 71, 71, 0.8);
}

@keyframes flash-dot {
    from { opacity: 1; }
    to   { opacity: 0.4; }
}

.hero h1 {
    font-size: clamp(3rem, 7vw, 5.8rem);
    font-weight: 900;
    line-height: 1.02;
    margin-bottom: 2rem;
    letter-spacing: -0.045em;
    color: var(--text-heading);
    text-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    color: var(--text-secondary);
    margin-bottom: 3.5rem;
    max-width: 640px;
    line-height: 1.7;
    font-weight: 400;
    border-left: 3px solid var(--accent-orange);
    padding-left: 1.5rem;
}

.trust-indicators {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 2rem;
    margin-top: 4rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-weight: 500;
    font-size: 0.95rem;
    color: #c0c3cc;
    transition: color 0.25s ease;
}

.trust-item:hover {
    color: var(--text-heading);
}

.trust-item svg {
    color: var(--accent-orange);
    width: 20px;
    height: 20px;
}

/* ──── SERVICE CARDS ──── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    width: 100%;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-card);
    padding: 3rem 2.5rem;
    text-align: left;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

/* Top accent bar */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 2rem;
    right: 2rem;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-orange), var(--accent-red), transparent);
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.service-card:hover::before {
    opacity: 1;
}

/* Card glow — simplified */
.card-glow {
    position: absolute;
    bottom: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 94, 58, 0.04), transparent 65%);
    transition: opacity 0.4s ease;
    pointer-events: none;
    opacity: 0;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-accent);
    box-shadow: var(--shadow-elevated);
}

.service-card:hover .card-glow {
    opacity: 1;
}

.icon-accent {
    color: var(--accent-orange);
    width: 40px;
    height: 40px;
    margin-bottom: 1.8rem;
    transition: transform 0.3s ease;
}

.service-card:hover .icon-accent {
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.8rem;
    font-weight: 800;
    color: var(--text-heading);
    line-height: 1.25;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.65;
}

/* ──── BENEFITS ──── */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    width: 100%;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    background: var(--bg-card);
    padding: 2.5rem 2.2rem;
    border-radius: 18px;
    border-left: 3px solid var(--accent-red);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.benefit-item:hover {
    transform: translateX(5px);
    box-shadow: -4px 0 20px rgba(230, 57, 70, 0.1), var(--shadow-card);
    border-color: var(--accent-orange);
}

.benefit-icon-wrapper {
    background: rgba(230, 57, 70, 0.07);
    padding: 0.9rem;
    border-radius: 14px;
    flex-shrink: 0;
    border: 1px solid rgba(230, 57, 70, 0.08);
    transition: background 0.25s ease;
}

.benefit-item:hover .benefit-icon-wrapper {
    background: rgba(230, 57, 70, 0.12);
}

.benefit-icon {
    width: 26px;
    height: 26px;
    color: #ff5e5e;
}

.benefit-text h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 800;
    color: var(--text-heading);
}

.benefit-text p {
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.65;
}

/* ──── TESTIMONIALS ──── */
.testimonials {
    align-items: center;
}

.testimonials .section-header {
    text-align: center;
}

.testimonials .section-title::after {
    margin-left: auto;
    margin-right: auto;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
    align-items: start;
}

@media (min-width: 1000px) {
    .offset-1 { margin-top: 3rem; }
    .offset-2 { margin-top: 6rem; }
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 3rem 2.5rem;
    border-radius: var(--radius-card);
    position: relative;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Quote mark */
.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1.2rem;
    right: 2rem;
    font-size: 5rem;
    font-weight: 900;
    line-height: 1;
    color: rgba(255, 94, 58, 0.08);
    pointer-events: none;
    font-family: Georgia, serif;
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-elevated);
    border-color: var(--border-accent);
}

.stars {
    color: #f59e0b;
    display: flex;
    gap: 0.2rem;
    margin-bottom: 1.5rem;
}

.stars svg {
    width: 18px;
    height: 18px;
    fill: #f59e0b;
}

blockquote {
    font-style: normal;
    color: var(--text-primary);
    margin-bottom: 1.8rem;
    font-size: 1.08rem;
    line-height: 1.7;
}

.testimonial-author {
    color: var(--text-secondary);
    font-weight: 700;
    display: block;
    text-align: right;
    font-size: 0.95rem;
}

.testimonial-author::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 2px;
    background: var(--accent-orange);
    margin-right: 10px;
    vertical-align: middle;
}

/* ──── COVERAGE ──── */
.coverage-box {
    background:
        radial-gradient(ellipse at 15% 20%, rgba(255, 94, 58, 0.05), transparent 50%),
        radial-gradient(ellipse at 85% 80%, rgba(230, 57, 70, 0.04), transparent 50%),
        var(--bg-card);
    border: 1px solid var(--border-glass);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 28px;
    padding: 5rem 3.5rem;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-elevated);
    position: relative;
    overflow: hidden;
}

.coverage-glow {
    position: absolute;
    top: -1px;
    left: 25%;
    width: 50%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-orange), var(--accent-red), transparent);
    border-radius: 2px;
    opacity: 0.5;
    /* Static — no animation */
}

.coverage-icon {
    width: 48px;
    height: 48px;
    color: var(--accent-orange);
    margin-bottom: 1.5rem;
}

.coverage-box h2 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    margin-bottom: 2.5rem;
    font-weight: 800;
    color: var(--text-heading);
}

.zones-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.zone-tag {
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem 1.8rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.98rem;
    color: #d0d2d8;
    border: 1px solid var(--border-subtle);
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.zone-tag:hover {
    background: rgba(255, 94, 58, 0.05);
    border-color: var(--border-accent);
    color: var(--text-heading);
}

/* ──── FAQ ──── */
.faq {
    align-items: center;
}

.faq .section-header {
    text-align: center;
}

.faq .section-title::after {
    margin-left: auto;
    margin-right: auto;
}

.faq-list {
    width: 100%;
    max-width: 780px;
    display: flex;
    flex-direction: column;
}

.faq-item {
    background: transparent;
    padding: 2.5rem 1.5rem;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0;
    transition: background 0.25s ease, padding-left 0.25s ease;
    position: relative;
}

/* Left accent on hover */
.faq-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: linear-gradient(180deg, var(--accent-orange), var(--accent-red));
    border-radius: 2px;
    transition: height 0.3s ease;
}

.faq-item:hover::before {
    height: 55%;
}

.faq-item:hover {
    background: rgba(255, 94, 58, 0.015);
    padding-left: 2rem;
}

.faq-question {
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
    font-weight: 800;
    color: var(--text-heading);
    line-height: 1.3;
    display: flex;
    align-items: flex-start;
}

.faq-question::before {
    content: 'Q.';
    color: var(--accent-orange);
    margin-right: 1rem;
    font-size: 1.1em;
    font-weight: 900;
    flex-shrink: 0;
}

.faq-answer {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
    padding-left: 2.5rem;
}

/* ──── CTA FINAL ──── */
.final-cta {
    text-align: center;
    background:
        radial-gradient(ellipse 100% 80% at 50% 50%, rgba(255, 94, 58, 0.14) 0%, rgba(230, 57, 70, 0.06) 45%, transparent 80%);
    width: 100%;
    padding: 8rem 2.5rem 6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    position: relative;
}

.final-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-orange), transparent);
    border-radius: 2px;
    opacity: 0.7;
}

.final-cta h2 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.025em;
    color: var(--text-heading);
}

.final-cta p {
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 650px;
    line-height: 1.7;
}

.cta-note {
    margin-top: 2.5rem;
    color: var(--accent-orange);
    font-weight: 700;
    display: block;
    font-size: 0.9rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

/* ──── FOOTER ──── */
footer {
    text-align: center;
    padding: 2.5rem;
    color: #4a4e5a;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    width: 100%;
    font-size: 0.88rem;
    background-color: var(--bg-dark);
    letter-spacing: 0.02em;
}

/* ==========================================================================
   7. Media Queries — V7 Performance
   ========================================================================== */
@media (max-width: 900px) {
    .section-header, .hero-content {
        text-align: center;
        align-items: center;
        align-self: center;
    }

    .section-title::after {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-subtitle {
        border-left: none;
        padding-left: 0;
        text-align: center;
    }

    .hero-actions, .trust-indicators {
        justify-content: center;
    }

    .offset-1, .offset-2 {
        margin-top: 0 !important;
    }
}

@media (max-width: 768px) {
    body {
        /* Gradiente más suave en móvil para priorizar legibilidad y contraste */
        background-image:
            radial-gradient(ellipse 120% 60% at 50% -5%, rgba(255, 94, 58, 0.08) 0%, rgba(230, 57, 70, 0.04) 50%, transparent 80%);
    }

    section {
        padding: 4rem 1.5rem;
    }

    header.hero {
        padding-top: 6rem;
        padding-bottom: 4rem;
    }

    .trust-indicators {
        flex-direction: column;
        gap: 1rem;
        padding-top: 1.5rem;
    }

    .floating-wa {
        width: 58px;
        height: 58px;
        bottom: 20px;
        right: 20px;
    }

    .btn-whatsapp-hero, .btn-whatsapp-huge {
        padding: 1.2rem 1.5rem;
        width: 100%;
        text-align: center;
    }

    .btn-content {
        align-items: center;
    }

    .btn-title { font-size: 1.05rem; }
    .btn-whatsapp-huge .btn-title { font-size: 1.15rem; }
    .btn-microcopy { font-size: 0.78rem; }

    .coverage-box {
        padding: 3rem 1.5rem;
        border-radius: 20px;
    }

    .faq-item:hover {
        padding-left: 1.5rem;
    }

    .service-card {
        padding: 2.5rem 2rem;
    }

    .benefit-item {
        padding: 2rem 1.8rem;
    }

    .testimonial-card {
        padding: 2.5rem 2rem;
    }

    .testimonial-card::before {
        font-size: 3.5rem;
        right: 1.5rem;
    }

    .final-cta {
        padding: 6rem 1.5rem 5rem;
        background:
            radial-gradient(ellipse 120% 60% at 50% 50%, rgba(255, 94, 58, 0.08) 0%, rgba(230, 57, 70, 0.04) 50%, transparent 80%);
    }
}

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
