/* ===== CSS PRINCIPAL ===== */

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

html {
    scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

:root {
    --primary: #18355E;
    --secondary: #FF6B35;
    --accent: #10B981;
    --neutral: #F5F5F5;
    --text: #1E293B;
    --text-light: #475569;
    --border: #E2E8F0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
/* Monitores grandes (24"-28") — aprovechar más espacio */
@media (min-width: 1600px) {
    .container { max-width: 1360px; }
}
@media (min-width: 2200px) {
    .container { max-width: 1480px; padding: 0 24px; }
}

/* ===== HEADER / NAV ===== */
header {
    background: white;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

nav {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary);
    transition: transform 0.3s ease, opacity 0.3s ease, color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

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

nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--secondary);
}

.cta-button {
    background: var(--primary);
    color: white;
    padding: 10px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, opacity 0.3s ease, color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.cta-button:hover {
    background: #0F1F3A;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 53, 94, 0.2);
}

.cta-button.secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.cta-button.secondary:hover {
    background: var(--primary);
    color: white;
}

.cta-button.large {
    padding: 16px 48px;
    font-size: 18px;
}

/* ===== HERO ===== */
.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero h1 {
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.15;
    margin-bottom: 20px;
    color: var(--text);
    letter-spacing: -0.02em;
}

.hero h1 .highlight {
    color: var(--secondary);
}

.hero .subtitle {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 30px;
}

.benefits {
    list-style: none;
    margin-bottom: 30px;
}

.benefits li {
    font-size: 16px;
    color: var(--text);
    margin-bottom: 12px;
    padding-left: 30px;
    position: relative;
}

.benefits li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
    font-size: 20px;
}

.cta-group {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.small-text {
    font-size: 14px;
    color: var(--text-light);
}

/* Hero CTA primario (sustituye al form inline) */
.hero-cta {
    margin: 28px 0 12px;
    max-width: 580px;
}
.hero-cta__primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    padding: 0 36px;
    font-size: 17px;
    font-weight: 700;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
    background: var(--secondary);
    color: #fff;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .2s ease, background .15s;
}
.hero-cta__primary:hover {
    background: #e85c25;
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(255, 107, 53, 0.4);
}
.hero-cta__primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(255, 107, 53, 0.3);
}

.hero-form__alt {
    font-size: 14px;
    color: var(--text-light, #475569);
    margin: 10px 0 16px;
}
.hero-form__alt a {
    color: var(--primary, #18355E);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid currentColor;
}
.hero-form__alt a:hover {
    color: var(--secondary, #FF6B35);
}

@media (max-width: 640px) {
    .hero-cta__primary {
        width: 100%;
        padding: 0 18px;
        font-size: 16px;
    }
}

/* ===== MÓDULOS ===== */
.modules {
    padding: 72px 0;
    background: white;
}

.modules h2 {
    font-size: clamp(1.8rem, 3.2vw, 2.25rem);
    margin-bottom: 10px;
    text-align: center;
    line-height: 1.25;
}
.modules h2 .highlight { color: var(--primary); }

.modules .section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.05rem;
    max-width: 640px;
    margin: 0 auto 44px;
    line-height: 1.55;
}

/* Carrusel horizontal de módulos (auto-scroll JS + drag) */
.modules-carousel {
    position: relative;
    overflow: hidden;
    padding: 4px 0 18px;
    cursor: grab;
    touch-action: pan-y;
}
.modules-carousel.is-dragging { cursor: grabbing; }
.modules-grid {
    display: flex;
    gap: 14px;
    width: max-content;
    will-change: transform;
    user-select: none;
}
.modules-carousel.is-dragging .module-card { pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
    .modules-carousel { overflow-x: auto; cursor: auto; }
    .modules-grid { width: auto; }
}

.module-card {
    flex: 0 0 240px;
    min-width: 240px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    scroll-snap-align: start;
    user-select: none;
    overflow: hidden;
}

.module-card:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 22px rgba(24, 53, 94, 0.14);
    transform: translateY(-3px);
}

/* Hero: header decorativo con gradiente naranja Digisoft + blobs + icono grande */
.module-card__hero {
    position: relative;
    height: 110px;
    background:
        radial-gradient(circle at 88% 18%, rgba(255, 138, 92, 0.22) 0, transparent 55%),
        radial-gradient(circle at 14% 86%, rgba(255, 107, 53, 0.18) 0, transparent 60%),
        linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
    overflow: hidden;
    border-bottom: 1px solid #FED7AA55;
}
.module-card__hero::before {
    content: "";
    position: absolute;
    top: -22px;
    right: -22px;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(255, 107, 53, 0.10);
}
.module-card__hero::after {
    content: "";
    position: absolute;
    bottom: -20px;
    left: -16px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 138, 92, 0.13);
}

.module-card__tag {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 3;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--secondary);
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 107, 53, 0.28);
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(255, 107, 53, 0.12);
}

.module-card__hero-icon {
    position: absolute;
    right: 14px;
    bottom: 8px;
    width: 60px;
    height: 60px;
    color: var(--secondary);
    z-index: 2;
    filter: drop-shadow(0 3px 6px rgba(124, 45, 18, 0.14));
}
/* Icono "fantasma" duplicado de fondo */
.module-card__hero-icon + .module-card__hero-icon,
.module-card__hero > .module-card__hero-icon::after {
    /* placeholder for future ghost icon if needed */
}

.module-card h3 {
    font-size: 0.96rem;
    font-weight: 700;
    margin: 16px 16px 6px;
    color: var(--text);
    line-height: 1.3;
}

.module-card p {
    color: var(--text-light);
    line-height: 1.5;
    font-size: 0.82rem;
    margin: 0 16px 18px;
}

@media (max-width: 720px) {
    .module-card { flex-basis: 220px; min-width: 220px; }
    .module-card__hero { height: 96px; }
    .module-card__hero-icon { width: 50px; height: 50px; right: 12px; bottom: 6px; }
    .module-card__badge { width: 30px; height: 30px; top: 10px; left: 10px; }
    .module-card__badge svg { width: 15px; height: 15px; }
    .module-card__tag { font-size: 9.5px; padding: 3px 8px; top: 12px; left: 12px; }
    .module-card h3 { margin: 13px 14px 5px; }
    .module-card p { margin: 0 14px 14px; }
}
@media (max-width: 480px) {
    .module-card { flex-basis: 210px; min-width: 210px; }
    .module-card__hero { height: 88px; }
    .module-card__hero-icon { width: 44px; height: 44px; }
    .module-card__tag { font-size: 10.5px; padding: 3px 8px; }
}

/* Botones legacy del carrusel — ocultos en modo marquee */
.modules-carousel__nav { display: none; }

/* Sombras laterales fade — siempre visibles en marquee */
.modules-carousel::before,
.modules-carousel::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 18px;
    width: 48px;
    z-index: 3;
    pointer-events: none;
}
.modules-carousel::before {
    left: 0;
    background: linear-gradient(to right, #fff, rgba(255,255,255,0));
}
.modules-carousel::after {
    right: 0;
    background: linear-gradient(to left, #fff, rgba(255,255,255,0));
}

@media (max-width: 720px) {
    .modules-carousel { --marquee-duration: 55s; }
    .module-card { flex-basis: 200px; min-width: 200px; }
    .module-card__tag { font-size: 11px; padding: 3px 9px; }
}
@media (max-width: 480px) {
    .modules { padding: 56px 0; }
    .modules .section-subtitle { margin-bottom: 28px; }
    .module-card { flex-basis: 180px; min-width: 180px; padding: 16px; }
}

/* ===== SECCIÓN ALTERNADA ===== */
.alternate {
    padding: 72px 0;
    background: #F8FAFC;
}

.alternate h2 {
    font-size: 36px;
    margin-bottom: 20px;
    text-align: center;
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.step {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: transform 0.3s ease, opacity 0.3s ease, color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.step:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}

.step-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    display: block;
}

.step h4 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--text);
}

.step p {
    color: var(--text-light);
    font-size: 14px;
}

/* ===== BENEFITS SECTION ===== */
.benefits-section {
    padding: 72px 0;
    background: white;
}

.benefits-section h2 {
    font-size: 36px;
    margin-bottom: 15px;
    text-align: center;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.benefit-item {
    padding: 30px;
    background: #F8FAFC;
    border-radius: 12px;
    border-left: 4px solid var(--secondary);
}

.benefit-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 10px;
}

.benefit-item h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text);
}

.benefit-item p {
    color: var(--text-light);
    line-height: 1.7;
}

/* ===== PRICING ===== */
.pricing-section {
    padding: 56px 0 64px;
    background: #F8FAFC;
}

.pricing-section h2 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    margin-bottom: 10px;
    text-align: center;
    line-height: 1.25;
}

/* Toggle mensual/anual dentro de cada pricing card (segmented control compacto) */
.pricing-card__toggle {
    display: inline-flex;
    align-self: flex-start;
    background: #F1F5F9;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 3px;
    gap: 2px;
    margin: 0 0 14px;
}
.pricing-card__toggle .toggle-btn {
    padding: 5px 12px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 12.5px;
    color: var(--text-light);
    font-family: inherit;
    transition: background 0.18s ease, color 0.18s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.pricing-card__toggle .toggle-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 1px 3px rgba(24, 53, 94, 0.18);
}
.pricing-card__toggle .toggle-discount {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--accent);
    background: rgba(16, 185, 129, 0.14);
    padding: 1px 5px;
    border-radius: 3px;
    line-height: 1.3;
}
.pricing-card__toggle .toggle-btn.active .toggle-discount {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    align-items: stretch;
}

.pricing-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: clamp(20px, 2.4vw, 30px);
    position: relative;
    transition: transform 0.3s ease, opacity 0.3s ease, color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.pricing-card.popular {
    border: 2px solid var(--secondary);
    transform: scale(1.02);
    z-index: 2;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.12);
}

/* Hover: elevación + borde naranja + sombra ampliada */
.pricing-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    will-change: transform;
}
.pricing-card:hover {
    transform: translateY(-8px);
    border-color: var(--secondary);
    box-shadow: 0 18px 40px rgba(24, 53, 94, 0.14), 0 4px 10px rgba(255, 107, 53, 0.08);
    z-index: 3;
}
.pricing-card.popular:hover {
    transform: scale(1.02) translateY(-8px);
    box-shadow: 0 22px 48px rgba(255, 107, 53, 0.22), 0 4px 12px rgba(255, 107, 53, 0.14);
}
.pricing-card:hover .price .price-launch {
    transform: scale(1.05);
    display: inline-block;
    transition: transform 0.25s ease;
}
.pricing-card .price .price-launch { transition: transform 0.25s ease; }
@media (hover: none) {
    .pricing-card:hover,
    .pricing-card.popular:hover { transform: none; box-shadow: none; }
    .pricing-card.popular:hover { transform: scale(1.02); box-shadow: 0 10px 30px rgba(255, 107, 53, 0.12); }
}

.badge {
    position: absolute;
    top: -15px;
    left: 20px;
    background: var(--secondary);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.pricing-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}
.pricing-card__header .pricing-card__toggle {
    margin: 0;
    flex-shrink: 0;
}

.pricing-card h3 {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary);
    margin: 0;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.plan-subtitle {
    color: var(--text-light);
    margin-bottom: 10px;
    font-size: 13.5px;
}

.price {
    font-size: 30px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
    line-height: 1.1;
}

.price span {
    font-size: 14px;
    color: var(--text-light);
}

.pricing-card .features {
    flex: 1 1 auto;
}

.pricing-card__cta {
    margin-top: auto;
    padding-top: 20px;
}

.pricing-card__cta .cta-button {
    width: 100%;
    text-align: center;
    display: block;
    box-sizing: border-box;
}

.features {
    list-style: none;
}

.features li {
    padding: 8px 0 8px 22px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    position: relative;
    font-size: 14px;
}

.features li:last-child {
    border-bottom: none;
}

.features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* Laptops 14" / pantallas medianas */
@media (min-width: 769px) and (max-width: 1180px) {
    .pricing-section { padding: 44px 0 52px; }
    .pricing-grid { gap: 14px; }
    .pricing-card { padding: 20px 18px; }
    .pricing-card.popular { transform: scale(1); }
    .pricing-card__header { gap: 8px; margin-bottom: 2px; }
    .pricing-card h3 { font-size: 22px; }
    .pricing-card__toggle .toggle-btn { padding: 4px 9px; font-size: 11.5px; }
    .pricing-card__toggle .toggle-discount { font-size: 9.5px; padding: 1px 4px; }
    .price { font-size: 26px; }
    .price span { font-size: 13px; }
    .features li { font-size: 13px; padding: 6px 0 6px 20px; }
    .pricing-price-increase-note { padding: 4px 9px; }
    .pricing-price-increase-note strong { font-size: 10.5px; }
    .pricing-price-increase-note span { font-size: 9.5px; }
    .pricing-card__cta { padding-top: 14px; }
    .pricing-card__cta .cta-button { padding: 10px 14px; font-size: 14px; }
    .badge { font-size: 11px; padding: 4px 12px; top: -12px; }
}

/* ===== FAQ ===== */
.faq-section {
    padding: 72px 0;
    background: white;
}

.faq-section h2 {
    font-size: clamp(1.6rem, 2.8vw, 2.25rem);
    margin-bottom: 32px;
    text-align: center;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px;
    background: #F8FAFC;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--text);
    font-size: 16px;
    transition: transform 0.3s ease, opacity 0.3s ease, color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-question:hover {
    background: #F1F5F9;
}

.faq-question svg {
    transition: transform 0.3s;
    color: var(--secondary);
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 500px;
}

.faq-answer p {
    color: var(--text-light);
    line-height: 1.7;
}

/* ===== FINAL CTA ===== */
.final-cta {
    padding: 64px 0 72px;
    background: #F8FAFC;
    color: var(--text);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.final-cta--dark {
    background: linear-gradient(135deg, #0F2547 0%, #18355E 55%, #1E4079 100%);
    color: #fff;
}
.final-cta--dark .container { position: relative; z-index: 2; }
.final-cta__bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.35;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 12% 18%, rgba(110,231,183,0.18) 0, transparent 38%),
        radial-gradient(circle at 92% 80%, rgba(96,165,250,0.18) 0, transparent 40%);
}
.final-cta__bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}

.final-cta h2 {
    font-size: clamp(1.65rem, 3vw, 2.1rem);
    margin-bottom: 28px;
    color: var(--text);
    line-height: 1.2;
    font-weight: 700;
}
.final-cta--dark h2 { color: #fff; }
.final-cta--dark h2 .highlight { color: var(--accent); }

.final-cta__layout {
    max-width: 520px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: left;
}

@media (max-width: 900px) {
    .final-cta {
        padding: 36px 0 40px;
    }
    .final-cta h2 {
        font-size: 24px;
        line-height: 1.2;
        margin-bottom: 6px;
    }
    .final-cta__layout {
        gap: 12px;
    }
    .final-cta__urgency {
        font-size: 12.5px;
        padding: 8px 10px;
        line-height: 1.4;
    }
    .final-cta__steps {
        font-size: 12px;
        gap: 4px 6px;
    }
    .final-cta__steps li:not(:last-child)::after { margin-left: 6px; }
    .demo-form-wrap {
        padding: 20px 18px;
    }
    .demo-form .form-group {
        margin-bottom: 12px;
    }
    .demo-form .form-group input {
        padding: 10px 12px;
        font-size: 14.5px;
    }
    .demo-form__submit {
        padding: 13px 16px;
        font-size: 16px;
    }
    .demo-form__badges {
        margin-top: 10px;
        font-size: 12px;
    }
    .demo-form-wrap__alt {
        margin-top: 14px;
        font-size: 13.5px;
        line-height: 1.4;
    }
}

.final-cta .cta-button {
    background: var(--secondary);
    color: white;
    padding: 16px 48px;
    font-size: 18px;
}

.demo-form-wrap {
    max-width: 460px;
    margin: 0 auto;
    text-align: left;
    background: white;
    border-radius: 14px;
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(15, 37, 71, 0.28), 0 2px 6px rgba(15, 37, 71, 0.12);
}
.final-cta:not(.final-cta--dark) .demo-form-wrap {
    box-shadow: 0 10px 24px rgba(15, 37, 71, 0.08);
}
.demo-form-wrap > form,
.demo-form-wrap > .demo-form__success,
.demo-form-wrap > .demo-form__error {
    padding: 18px 22px 20px;
}
.demo-form-wrap > .demo-form__success,
.demo-form-wrap > .demo-form__error {
    margin: 0;
    border-radius: 0;
    border: none;
}

.final-cta__form .demo-form-wrap {
    max-width: none;
    margin: 0;
}

.demo-form-wrap__title {
    font-size: 18px;
    margin-bottom: 4px;
    color: var(--text);
    text-align: center;
}

.demo-form-wrap__hint {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 16px;
    text-align: center;
    line-height: 1.45;
}

.demo-form .form-group {
    margin-bottom: 12px;
}

.demo-form .form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text);
}

.demo-form .form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 7px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text);
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.demo-form .form-group input:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
}

.demo-form__privacy {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.5;
}

.demo-form__submit {
    width: 100%;
    border: none;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 18px;
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0.01em;
    white-space: normal;
    text-align: center;
    box-shadow: 0 10px 22px rgba(255, 107, 53, 0.32);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.demo-form__submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(255, 107, 53, 0.42);
}

.demo-form__submit .cta-arrow {
    font-size: 19px;
    line-height: 1;
    transition: transform 0.15s ease;
}

.demo-form__submit:hover .cta-arrow {
    transform: translateX(4px);
}

.demo-form__submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

@media (max-width: 480px) {
    .demo-form__submit {
        font-size: 15.5px;
        padding: 14px 14px;
        gap: 8px;
    }
}

.demo-form-wrap__alt {
    margin-top: 20px;
    font-size: 15px;
    color: var(--text-light);
    text-align: center;
}

.demo-form-wrap__alt a {
    color: var(--secondary);
    font-weight: 600;
    text-decoration: none;
}

/* ===== Form mejoras: optional field hint, badges, success/error inline ===== */
.form-optional {
    font-weight: 400;
    color: var(--text-light);
    font-size: 12px;
    margin-left: 4px;
}

.demo-form__badges {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    justify-content: center;
    font-size: 12px;
    color: var(--text-light);
}
.demo-form__badges li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.demo-form__success {
    background: #ECFDF5;
    border: 1px solid #A7F3D0;
    border-radius: 10px;
    padding: 24px 22px;
    margin-top: 16px;
    color: #064E3B;
}
.demo-form__success[hidden] { display: none; }
.demo-form__success-icon {
    font-size: 36px;
    line-height: 1;
    margin-bottom: 8px;
}
.demo-form__success h4 {
    font-size: 18px;
    font-weight: 700;
    color: #065F46;
    margin: 0 0 8px;
}
.demo-form__success p {
    font-size: 14px;
    line-height: 1.55;
    color: #065F46;
    margin: 0 0 8px;
}
.demo-form__success p:last-child { margin-bottom: 0; }
.demo-form__success a {
    color: #047857;
    font-weight: 600;
    text-decoration: underline;
}
.demo-form__success-alt {
    font-size: 13px;
    padding-top: 10px;
    border-top: 1px solid rgba(6, 95, 70, 0.15);
    margin-top: 12px;
}

.demo-form__error {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: 10px;
    padding: 14px 16px;
    margin-top: 14px;
    font-size: 14px;
    color: #991B1B;
}
.demo-form__error[hidden] { display: none; }
.demo-form__error a {
    color: #B91C1C;
    font-weight: 600;
    text-decoration: underline;
}

/* ===== Final-CTA urgency note + steps ===== */
.final-cta__urgency {
    background: #FFF7ED;
    border-bottom: 1px solid #FED7AA;
    padding: 10px 22px;
    margin: 0;
    font-size: 12.5px;
    color: #7C2D12;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left;
}
.final-cta__urgency strong { color: #9A3412; }

.final-cta__steps {
    list-style: none;
    margin: 0 auto 36px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 8px 18px;
    text-align: center;
    color: var(--text);
    font-size: 14px;
    line-height: 1.4;
    max-width: 900px;
}
.final-cta--dark .final-cta__steps { color: rgba(255,255,255,0.92); }

.final-cta__steps li {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
}
.final-cta__step-circle {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(15, 37, 71, 0.25);
}
.final-cta--dark .final-cta__step-circle {
    background: #fff;
    border-color: rgba(255,255,255,0.15);
}
.final-cta__step-circle svg {
    width: 26px;
    height: 26px;
}
.final-cta__step-num {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    border: 2px solid #fff;
}
.final-cta--dark .final-cta__step-num {
    background: var(--accent);
    border-color: #0F2547;
}
.final-cta__step-text {
    font-weight: 500;
    white-space: nowrap;
}

.final-cta__steps li:not(:last-child)::after {
    content: "→";
    color: rgba(255,255,255,0.35);
    font-size: 18px;
    margin-left: 8px;
}
.final-cta:not(.final-cta--dark) .final-cta__steps li:not(:last-child)::after {
    color: #CBD5E1;
}

@media (max-width: 720px) {
    .final-cta__steps {
        font-size: 12.5px;
        gap: 8px 10px;
    }
    .final-cta__step-circle { width: 44px; height: 44px; }
    .final-cta__step-circle svg { width: 20px; height: 20px; }
    .final-cta__step-num { width: 18px; height: 18px; font-size: 10.5px; top: -3px; right: -3px; }
    .final-cta__steps li:not(:last-child)::after { display: none; }
}

/* ===== FAQ inline en home ===== */
.faq-inline {
    max-width: 760px;
    margin: 32px auto 0;
}

@media (max-width: 720px) {
    .final-cta__steps {
        grid-template-columns: 1fr;
        gap: 10px;
        max-width: 440px;
    }
    .final-cta__urgency {
        font-size: 14px;
        padding: 12px 14px;
    }
    .demo-form__badges {
        font-size: 12.5px;
        gap: 8px 14px;
    }
}

.demo-form-wrap__alt a:hover {
    text-decoration: underline;
}

/* ===== FOOTER ===== */
footer {
    background: #0A1428;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 40px;
}

.footer-logo p {
    font-size: 14px;
    opacity: 0.8;
}

.footer-section h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    display: block;
    margin-bottom: 12px;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.footer-section p {
    font-size: 14px;
    margin-bottom: 8px;
    opacity: 0.8;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.footer-bottom a,
.footer-bottom a:visited {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}

.footer-bottom a:hover {
    color: #ffffff;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.social-links a:hover {
    color: white;
}

/* ===== WHATSAPP FLOTANTE ===== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    transition: transform 0.2s, box-shadow 0.2s;
}

.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
}

/* ===== AVISO OFICIAL DGII (prórroga e-CF) ===== */
.dgii-notice {
    background: #EEF2F8;
    border-bottom: 1px solid #D6DEEA;
    color: var(--text);
    font-size: 0.92rem;
    line-height: 1.45;
}
.dgii-notice[hidden] { display: none !important; }
.dgii-notice__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.dgii-notice__icon {
    font-size: 1.05rem;
    flex-shrink: 0;
    line-height: 1;
}
.dgii-notice__text {
    margin: 0;
    flex: 1;
}
.dgii-notice__text strong {
    color: var(--primary);
    font-weight: 700;
}
.dgii-notice__link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
    white-space: nowrap;
    margin-left: 6px;
}
.dgii-notice__link:hover { color: var(--secondary); }
.dgii-notice__close {
    background: transparent;
    border: 0;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    color: var(--text-light);
    padding: 8px 12px;
    min-width: 36px;
    min-height: 36px;
    border-radius: 6px;
    flex-shrink: 0;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.dgii-notice__close:hover { background: rgba(0,0,0,.06); color: var(--text); }
@media (max-width: 640px) {
    .dgii-notice { font-size: 0.84rem; }
    .dgii-notice__inner { gap: 8px; padding: 8px 14px; }
    .dgii-notice__link {
        display: inline-block;
        margin-left: 0;
        margin-top: 2px;
        white-space: normal;
    }
}

/* ===== CERTIFICACIÓN DGII (sección de confianza) ===== */
/* ===== CERTIFICACIÓN DGII — Señal de confianza ===== */
.dgii-cert {
    padding: 56px 0;
    background: linear-gradient(135deg, #DBE4F0 0%, #C7D5E8 100%);
    border-top: 1px solid #B8C5D9;
    border-bottom: 1px solid #B8C5D9;
}
.dgii-cert__grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 48px;
    align-items: center;
}
.dgii-cert__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(24, 53, 94, 0.06);
    border: 1px solid rgba(24, 53, 94, 0.18);
    color: var(--primary);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 14px;
}
.dgii-cert__eyebrow svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}
.dgii-cert h2 {
    color: var(--text);
    font-size: clamp(1.4rem, 2.6vw, 1.85rem);
    line-height: 1.25;
    margin-bottom: 10px;
    font-weight: 700;
}
.dgii-cert h2 .highlight {
    color: var(--primary);
}
.dgii-cert__lead {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.55;
    margin-bottom: 18px;
}
.dgii-cert__lead strong {
    color: var(--text);
    font-weight: 600;
}
.dgii-cert__meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 6px;
}
.dgii-cert__rnc-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
}
.dgii-cert__rnc-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.dgii-cert__rnc {
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.03em;
}
.dgii-cert__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.dgii-cert__cta:hover {
    background: #0f2547;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(24, 53, 94, 0.22);
}
.dgii-cert__cta:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}
.dgii-cert__cta svg {
    width: 16px;
    height: 16px;
}
.dgii-cert__hint {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.4;
    flex-wrap: wrap;
}
.dgii-cert__hint svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--primary);
    opacity: 0.7;
}
.dgii-cert__copy {
    background: rgba(24, 53, 94, 0.08);
    border: 1px dashed rgba(24, 53, 94, 0.3);
    border-radius: 5px;
    padding: 5px 10px;
    margin: 0 2px;
    font: inherit;
    color: var(--primary);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, transform 0.1s;
    position: relative;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
}
.dgii-cert__copy:hover {
    background: rgba(24, 53, 94, 0.14);
    border-color: var(--primary);
}
.dgii-cert__copy:active { transform: scale(0.97); }
.dgii-cert__copy.is-copied {
    background: rgba(16, 185, 129, 0.15);
    border-color: var(--accent);
    border-style: solid;
    color: #047857;
}
.dgii-cert__copy.is-copied::after {
    content: "¡copiado!";
    position: absolute;
    left: 50%;
    bottom: calc(100% + 6px);
    transform: translateX(-50%);
    background: var(--text);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 5px;
    white-space: nowrap;
    pointer-events: none;
}
.dgii-cert__features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.dgii-cert__features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.93rem;
    color: var(--text);
    line-height: 1.4;
}
.dgii-cert__features svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--accent);
}
@media (max-width: 860px) {
    .dgii-cert { padding: 36px 0; }
    .dgii-cert__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .dgii-cert__meta { gap: 10px; }
}
@media (max-width: 480px) {
    .dgii-cert__meta { flex-direction: column; align-items: flex-start; }
    .dgii-cert__cta { width: 100%; justify-content: center; }
}

/* ===== APP MÓVIL — Anuncio iOS / Android ===== */
.mobile-app {
    padding: 72px 20px;
    background: linear-gradient(135deg, #0F2547 0%, #18355E 55%, #1E4079 100%);
    color: #fff;
}
.mobile-app__card {
    max-width: 880px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}
.mobile-app__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #6EE7B7;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 18px;
}
.mobile-app__eyebrow-dot {
    position: relative;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
}
/* Glow ring usando pseudo-elemento con transform/opacity (compositor GPU)
   en vez de animar box-shadow (que causa paint en cada frame) */
.mobile-app__eyebrow-dot::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.22);
    z-index: -1;
    animation: pulse-dot 2s ease-in-out infinite;
    will-change: transform, opacity;
}
@keyframes pulse-dot {
    0%, 100% { transform: scale(1);   opacity: 1; }
    50%      { transform: scale(1.6); opacity: 0.35; }
}
@media (prefers-reduced-motion: reduce) {
    .mobile-app__eyebrow-dot::after { animation: none; }
}
.mobile-app h2 {
    color: #fff;
    font-size: clamp(1.7rem, 3.5vw, 2.4rem);
    line-height: 1.2;
    margin-bottom: 14px;
}
.mobile-app h2 .highlight {
    color: var(--accent);
}
.mobile-app__lead {
    font-size: 1.08rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 620px;
    margin: 0 auto 32px;
    line-height: 1.55;
}
.mobile-app__lead strong {
    color: #fff;
    font-weight: 600;
}
.mobile-app__features {
    list-style: none;
    padding: 0;
    margin: 0 auto 36px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    max-width: 760px;
    text-align: left;
}
.mobile-app__features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.4;
}
.mobile-app__features svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: var(--accent);
    margin-top: 1px;
}
.mobile-app__badges {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 22px;
    background: #000;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    text-decoration: none;
    min-width: 200px;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.store-badge:hover {
    transform: translateY(-2px);
    background: #111;
    border-color: rgba(255, 255, 255, 0.35);
}
.store-badge:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}
.store-badge__icon {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
}
.store-badge__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
    text-align: left;
}
.store-badge__line1 {
    font-size: 0.7rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.78);
    letter-spacing: 0.02em;
}
.store-badge__line2 {
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}
.mobile-app__note {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 8px;
}
@media (max-width: 720px) {
    .mobile-app { padding: 54px 16px; }
    .mobile-app__features {
        grid-template-columns: 1fr;
        max-width: 420px;
        gap: 10px;
    }
    .mobile-app__badges {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    .store-badge { width: 100%; max-width: 260px; justify-content: center; }
}
/* ===== RESPONSIVE CSS ===== */

/* TABLET - 768px y inferior */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
        position: relative;
        z-index: 220;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: calc(100% + 12px);
        left: 0;
        right: 0;
        background-color: #18355E;
        background-image: none;
        flex-direction: column;
        padding: 16px 20px 24px;
        gap: 0;
        border-radius: 14px;
        box-shadow: 0 12px 32px rgba(15, 23, 42, 0.35);
        z-index: 210;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        background-color: #18355E;
    }

    .nav-links a {
        display: block;
        padding: 14px 4px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        font-size: 16px;
        color: rgba(255, 255, 255, 0.95);
        background-color: #18355E;
    }

    .nav-links li:last-child a {
        border-bottom: none;
    }

    .nav-links .cta-button {
        margin-top: 14px;
        width: 100%;
        text-align: center;
        background-color: var(--secondary);
        color: white;
        padding: 14px 16px;
    }

    .nav-links .cta-button:hover {
        background-color: #e06a10;
    }

    /* Backdrop oscuro cuando el menú está abierto */
    .mobile-nav-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.55);
        z-index: 199;
        animation: mobile-backdrop-in 0.18s ease-out;
    }
    .mobile-nav-backdrop.active {
        display: block;
    }
    @keyframes mobile-backdrop-in {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    /* Bloquea scroll del body cuando el menú está abierto */
    body.mobile-nav-open {
        overflow: hidden;
        touch-action: none;
    }

    .hero {
        padding: 60px 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero .subtitle {
        font-size: 16px;
    }

    .cta-group {
        flex-direction: column;
    }

    .cta-group a {
        width: 100%;
        text-align: center;
    }

    .steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .step {
        padding: 20px;
    }

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

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 520px;
        margin: 0 auto;
    }

    .pricing-card.popular {
        transform: scale(1);
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* MOBILE - 480px y inferior */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    header {
        padding: 12px 0;
    }

    .logo img {
        height: 36px !important;
    }

    .hero {
        padding: 40px 0;
    }

    .hero h1 {
        font-size: 24px;
        margin-bottom: 16px;
    }

    .hero .subtitle {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .benefits li {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .modules {
        padding: 56px 0;
    }

    .modules h2 {
        font-size: 22px;
        margin-bottom: 8px;
    }

    .alternate {
        padding: 60px 0;
    }

    .alternate h2 {
        font-size: 24px;
    }

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

    .step {
        padding: 20px;
    }

    .step-icon {
        width: 50px;
        height: 50px;
    }

    .step h4 {
        font-size: 16px;
    }

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

    .benefits-section h2 {
        font-size: 24px;
    }

    .section-subtitle {
        font-size: 14px;
    }

    .benefit-item {
        padding: 20px;
    }

    .benefit-number {
        font-size: 24px;
    }

    .benefit-item h3 {
        font-size: 18px;
    }

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

    .pricing-section h2 {
        font-size: 24px;
    }

    .pricing-card__toggle { margin-bottom: 12px; }
    .pricing-card__toggle .toggle-btn { padding: 5px 10px; font-size: 12px; }
    .pricing-card__toggle .toggle-discount { font-size: 10px; }

    .pricing-grid {
        gap: 16px;
    }

    .pricing-card {
        padding: 20px;
    }

    .pricing-card__header {
        flex-wrap: wrap;
        gap: 8px;
    }
    .pricing-card h3 {
        font-size: 22px;
    }

    .price {
        font-size: 28px;
    }

    .features li {
        font-size: 13px;
        padding: 10px 0 10px 20px;
    }

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

    .faq-section h2 {
        font-size: 24px;
    }

    .faq-question {
        padding: 16px;
        font-size: 14px;
    }

    .faq-answer {
        padding: 0 16px;
    }

    .faq-item.active .faq-answer {
        padding: 16px;
    }

    .final-cta {
        padding: 36px 0 40px;
    }

    .final-cta h2 {
        font-size: 24px;
        line-height: 1.2;
        margin-bottom: 6px;
    }

    .final-cta > .container > p {
        font-size: 15px;
        margin-bottom: 18px;
    }

    .final-cta__urgency {
        font-size: 13.5px;
        padding: 10px 12px;
        line-height: 1.4;
    }

    .final-cta__steps-wrapper > summary {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 10px 14px;
        background: #FFFFFF;
        border: 1px solid var(--border);
        border-radius: 12px;
        font-size: 13.5px;
        font-weight: 600;
        color: var(--text);
        list-style: none;
    }
    .final-cta__steps-wrapper > summary::-webkit-details-marker { display: none; }
    .final-cta__steps-wrapper > summary::after {
        content: "▾";
        margin-left: auto;
        font-size: 12px;
        color: var(--text-light);
        transition: transform 0.2s ease;
    }
    .final-cta__steps-wrapper[open] > summary::after {
        transform: rotate(180deg);
    }
    .final-cta__steps-wrapper[open] > .final-cta__steps {
        margin-top: 8px;
    }

    .final-cta__steps {
        gap: 8px;
    }

    .final-cta__steps li {
        padding: 10px 12px;
        gap: 10px;
    }

    .final-cta__step-num {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }

    .demo-form-wrap {
        padding: 20px 18px;
    }

    .demo-form-wrap__title {
        font-size: 18px;
        margin-bottom: 6px;
    }

    .demo-form-wrap__hint {
        font-size: 13.5px;
        margin-bottom: 16px;
        line-height: 1.4;
    }

    .demo-form .form-group {
        margin-bottom: 12px;
    }

    .demo-form .form-group input {
        padding: 10px 12px;
        font-size: 14.5px;
    }

    .demo-form__submit {
        padding: 13px 16px;
        font-size: 16px;
    }

    .demo-form__badges {
        margin-top: 10px;
    }

    .demo-form-wrap__alt {
        margin-top: 14px;
        font-size: 13.5px;
        line-height: 1.4;
    }

    footer {
        padding: 40px 0 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-section h4 {
        font-size: 12px;
    }

    .footer-section a,
    .footer-section p {
        font-size: 12px;
    }

    .footer-bottom {
        font-size: 12px;
    }

    .social-links {
        gap: 12px;
    }
}

/* ========================================
   P2 ACCESSIBILITY FIXES (auditoria 2026-05-28)
   ======================================== */

/* WCAG 2.5.5: tap targets minimo 44x44 en mobile */
@media (max-width: 768px) {
    .hamburger {
        min-width: 44px;
        min-height: 44px;
        padding: 10px;
        gap: 6px;
    }
    .dgii-notice__close {
        min-width: 44px;
        min-height: 44px;
        padding: 10px;
    }
    .pricing-card__toggle .toggle-btn {
        min-height: 44px;
        padding: 10px 14px;
    }
    .pricing-card__toggle {
        padding: 4px;
    }
    .dgii-cert__copy {
        min-height: 44px;
        padding: 10px 14px;
    }
    .nav-links a {
        padding: 14px 8px;
        display: block;
    }
    .faq-question {
        min-height: 44px;
    }
}

/* WCAG 1.4.3: subir contraste del badge -20% en pricing toggle */
.pricing-card__toggle .toggle-discount {
    background: rgba(4, 120, 87, 0.18);
    color: #047857;
}
.pricing-card__toggle .toggle-btn.active .toggle-discount {
    background: rgba(255, 255, 255, 0.28);
    color: #fff;
}
/* ===== HERO & PRICING - ESTRATEGIA ESCASEZ + CERCANÍA LOCAL ===== */

/* ----- COUNTDOWN LABEL ----- */
.countdown-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--secondary);
    letter-spacing: 0.02em;
    margin-bottom: 10px;
    opacity: 0.85;
}

/* ----- COUNTDOWN TIMER (estilo Apple/Stripe) ----- */
.countdown-wrapper {
    background: linear-gradient(135deg, rgba(24, 53, 94, 0.06) 0%, rgba(16, 185, 129, 0.04) 100%);
    border: 1px solid rgba(24, 53, 94, 0.12);
    border-radius: 16px;
    padding: 24px 32px;
    display: inline-flex;
    gap: 20px;
    margin-bottom: 28px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.countdown-unit {
    text-align: center;
    min-width: 64px;
}

.countdown-unit__value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.countdown-unit__label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 4px;
}

.countdown-separator {
    font-size: 24px;
    font-weight: 300;
    color: var(--text-light);
    opacity: 0.5;
    align-self: center;
}

@media (max-width: 600px) {
    .countdown-wrapper {
        padding: 16px 20px;
        gap: 12px;
    }
    .countdown-unit {
        min-width: 48px;
    }
    .countdown-unit__value {
        font-size: 22px;
    }
    .countdown-unit__label {
        font-size: 10px;
    }
}

/* ----- CTA CON MICRO-ANIMACIÓN DE BRILLO ----- */
.cta-shine {
    position: relative;
    overflow: hidden;
}

.cta-shine::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.25),
        transparent
    );
    transform: translateX(-200%);
    animation: cta-shine 3s ease-in-out infinite;
    will-change: transform;
}

/* GPU-friendly: usa transform en vez de left para que el compositor maneje
   la animación sin paint del layout en cada frame */
@keyframes cta-shine {
    0% { transform: translateX(-200%); }
    50%, 100% { transform: translateX(300%); }
}

/* Pulse de box-shadow eliminado: era paint-heavy en 5+ botones simultaneos.
   El brillo (cta-shine) ya da suficiente vida al CTA. */

/* ----- BADGE DE UBICACIÓN ----- */
.location-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(14, 165, 233, 0.08) 100%);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    margin-top: 12px;
}

.location-badge::before {
    content: '📍';
    font-size: 16px;
}

/* ----- PRICING: Tarifa Especial ----- */
/* Precio normal tachado vs precio de lanzamiento resaltado */
.price .price-original {
    text-decoration: line-through;
    color: #c75c5c;
    font-size: 0.85em;
    font-weight: 500;
    margin-right: 0.35em;
}

.price .price-launch {
    color: #16a34a;
    font-weight: 700;
}

.pricing-price-increase-note {
    margin: 2px 0 0;
    padding: 5px 10px;
    background: rgba(255, 107, 53, 0.07);
    border-left: 2px solid var(--secondary);
    border-radius: 4px;
    line-height: 1.3;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.pricing-price-increase-note strong {
    font-size: 11px;
    font-weight: 700;
    color: #C2410C;
    letter-spacing: -0.005em;
}
.pricing-price-increase-note span {
    font-size: 10px;
    color: var(--text-light);
    line-height: 1.3;
}

.pricing-card .cta-wrapper {
    margin-top: 24px;
    margin-bottom: 16px;
}

.pricing-card .cta-button {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%) !important;
}

.pricing-card .cta-button:hover {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
}

/* ----- ¿POR QUÉ NOSOTROS? ----- */
.why-us-section {
    padding: 72px 0;
    background: white;
}

.why-us-section h2 {
    font-size: clamp(1.6rem, 2.8vw, 2.25rem);
    text-align: center;
    margin-bottom: 12px;
    color: var(--text);
    line-height: 1.25;
}

.why-us-section .section-subtitle {
    margin-bottom: 48px;
}

/* Carrusel single-row (auto-scroll + drag, mismo JS que módulos) */
.why-us-carousel {
    position: relative;
    overflow: hidden;
    padding: 4px 0 12px;
    cursor: grab;
    touch-action: pan-y;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
}
.why-us-carousel.is-dragging { cursor: grabbing; }
.why-us-carousel.is-dragging .why-us-card { pointer-events: none; }
.why-us-grid {
    display: flex;
    gap: 20px;
    width: max-content;
    will-change: transform;
    user-select: none;
    margin: 0;
}
.why-us-card {
    flex: 0 0 300px;
    min-width: 300px;
}
@media (prefers-reduced-motion: reduce) {
    .why-us-carousel { overflow-x: auto; cursor: auto; mask-image: none; -webkit-mask-image: none; }
    .why-us-grid { width: auto; }
}

.why-us-card {
    background: #F8FAFC;
    border-radius: 14px;
    padding: 32px 28px;
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.why-us-card:hover {
    border-color: var(--secondary);
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.08);
    transform: translateY(-2px);
}

.why-us-card__icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--secondary), #ff8a5c);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.why-us-card__icon svg {
    width: 24px;
    height: 24px;
}

.why-us-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text);
}

.why-us-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .why-us-grid { gap: 14px; }
    .why-us-card { flex: 0 0 260px; min-width: 260px; padding: 22px 20px; }
}
/* ===== ENGAGEMENT COMPONENTS ===== */

/* ---- 1. EXIT-INTENT POPUP ---- */
.exit-popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.exit-popup-overlay.active { display: flex; }

.exit-popup {
    background: #fff;
    border-radius: 16px;
    max-width: 460px;
    width: 100%;
    padding: 40px 32px 32px;
    position: relative;
    text-align: center;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
    animation: popup-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes popup-in {
    from { transform: scale(0.85); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}

.exit-popup__close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 26px;
    line-height: 1;
    color: #94A3B8;
    cursor: pointer;
    padding: 4px 6px;
}
.exit-popup__close:hover { color: #1E293B; }

.exit-popup__badge {
    display: inline-block;
    background: #FEF3C7;
    color: #92400E;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 12px;
    border-radius: 100px;
    margin-bottom: 18px;
}

.exit-popup__title {
    font-size: 22px;
    font-weight: 800;
    color: #1E293B;
    line-height: 1.35;
    margin-bottom: 10px;
}
.exit-popup__days {
    color: #DC2626;
    font-size: 36px;
    font-weight: 900;
    display: block;
}

.exit-popup__subtitle {
    color: #64748B;
    font-size: 14px;
    line-height: 1.55;
    margin-bottom: 28px;
}

.exit-popup__actions { display: flex; flex-direction: column; gap: 10px; }

.exit-popup__primary {
    display: block;
    width: 100%;
    background: #2563EB;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    padding: 14px 24px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}
.exit-popup__primary:hover { background: #1D4ED8; color: #fff; }

.exit-popup__secondary {
    display: block;
    background: none;
    border: none;
    color: #25D366;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    padding: 4px;
}
.exit-popup__secondary:hover { text-decoration: underline; color: #1ebe5d; }

/* ---- 2. STICKY BOTTOM BAR (solo mobile) ---- */
.sticky-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(90deg, #0F172A 0%, #1E293B 100%);
    color: #fff;
    z-index: 9000;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.25);
}
@media (min-width: 769px) {
    .sticky-bottom-bar { display: none !important; }
}
.sticky-bottom-bar.visible { transform: translateY(0); }

.sticky-bottom-bar__text {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}
.sticky-bottom-bar__emoji { font-size: 18px; flex-shrink: 0; }
.sticky-bottom-bar__msg { font-size: 13px; line-height: 1.35; }
.sticky-bottom-bar__msg strong { color: #FCD34D; }

.sticky-bottom-bar__cta {
    background: #2563EB;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    padding: 9px 16px;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s;
}
.sticky-bottom-bar__cta:hover { background: #1D4ED8; color: #fff; }

.sticky-bottom-bar__close {
    background: none;
    border: none;
    color: #64748B;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    padding: 2px 6px;
}
.sticky-bottom-bar__close:hover { color: #fff; }

/* ---- 3. SLIDE-IN CARD ---- */
.slidein-card {
    position: fixed;
    bottom: 88px;
    right: 24px;
    width: 288px;
    background: #fff;
    border-radius: 14px;
    border-top: 4px solid #2563EB;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.16);
    z-index: 8900;
    padding: 20px 20px 18px;
    transform: translateX(340px);
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.slidein-card.visible { transform: translateX(0); }

.slidein-card__close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    font-size: 20px;
    color: #94A3B8;
    cursor: pointer;
    line-height: 1;
    padding: 2px;
}
.slidein-card__close:hover { color: #1E293B; }

.slidein-card__icon { font-size: 26px; margin-bottom: 8px; display: block; }

.slidein-card__title {
    font-size: 15px;
    font-weight: 800;
    color: #1E293B;
    margin-bottom: 6px;
    padding-right: 18px;
    line-height: 1.3;
}

.slidein-card__text {
    font-size: 12px;
    color: #64748B;
    line-height: 1.5;
    margin-bottom: 14px;
}

.slidein-card__cta {
    display: block;
    background: #2563EB;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    padding: 10px 14px;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    transition: background 0.2s;
}
.slidein-card__cta:hover { background: #1D4ED8; color: #fff; }

/* Slide-in solo en desktop — en mobile la barra inferior ya cubre */
@media (max-width: 768px) {
    .slidein-card { display: none; }
    .sticky-bottom-bar__msg { font-size: 12px; }
}

/* WhatsApp sube cuando la barra inferior está visible */
body.bar-visible .whatsapp-float {
    bottom: 80px;
    transition: bottom 0.4s ease, transform 0.2s, box-shadow 0.2s;
}
