@font-face {
    font-family: 'Museo';
    src: url('../assets/fonts/Museo300-Regular.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Museo';
    src: url('../assets/fonts/Museo500-Regular.otf') format('opentype');
    font-weight: 500;
    /* Regular */
    font-style: normal;
}

@font-face {
    font-family: 'Museo';
    src: url('../assets/fonts/Museo700-Regular.otf') format('opentype');
    font-weight: 700;
    /* Bold */
    font-style: normal;
}

@font-face {
    font-family: 'MuseoSans';
    src: url('../assets/fonts/MuseoSans_500.otf') format('opentype');
    font-weight: 400;
    /* Treat as regular for body */
    font-style: normal;
}

@font-face {
    font-family: 'MuseoSans';
    src: url('../assets/fonts/MuseoSans_500.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}

/* Global Variables - Light/Trust Theme */
:root {
    --primary-blue: #114A8D;
    /* Strong Blue for Text/Buttons */
    --light-blue: #2E7BD8;
    /* Accent Blue */
    --soft-blue: #E6F0FA;
    /* Very Light Blue for Backgrounds */
    --brand-yellow: #FFC107;
    /* Interaction/Highlight */
    --bg-gray: #F8FAFC;
    /* Clean White/Gray */
    --white: #FFFFFF;

    --text-dark: #0f172a;
    /* Nearly Black for headings */
    --text-body: #334155;
    /* Dark Gray for body */

    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.6);

    --font-heading: 'Museo', sans-serif;
    --font-body: 'MuseoSans', sans-serif;

    --container-width: 1200px;
    --border-radius-lg: 24px;
    --border-radius-md: 18px;

    --shadow-soft: 0 10px 40px -10px rgba(17, 74, 141, 0.08);
    /* Blue-tinted shadow */
    --shadow-hover: 0 20px 50px -10px rgba(17, 74, 141, 0.15);

    /* Variables for Navbar / Overlay elements that might need specific transition */
    --navbar-bg: rgba(255, 255, 255, 0.9);
    --navbar-scrolled-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    --features-overlay: rgba(255, 255, 255, 0.85);
}

/* Dark Theme Variables */
:root.dark-mode {
    --primary-blue: #60a5fa;
    /* Lighter blue for better contrast on dark */
    --light-blue: #3b82f6;
    /* Accent Blue */
    --soft-blue: #1e293b;
    /* Dark slate for secondary backgrounds */
    --brand-yellow: #FFC107;
    /* Interaction/Highlight stays the same */
    --bg-gray: #0f172a;
    /* Very dark background for sections */
    --white: #020617;
    /* Main Background now very dark */

    --text-dark: #f8fafc;
    /* Headings become white/light gray */
    --text-body: #cbd5e1;
    /* Body text lighter gray */

    --glass-bg: rgba(15, 23, 42, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);

    --shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 20px 50px -10px rgba(0, 0, 0, 0.7);

    --navbar-bg: rgba(2, 6, 23, 0.9);
    --navbar-scrolled-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    --features-overlay: rgba(2, 6, 23, 0.85);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--white);
    color: var(--text-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-blue);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.text-center {
    text-align: center;
}

/* Utils */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    letter-spacing: 0.3px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(46, 123, 216, 0.2);
}

.btn-primary {
    background-color: var(--brand-yellow);
    color: var(--primary-blue);
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover,
.btn-primary:active {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    /* Efecto tenue y elegante */
}

.dark-mode .btn-primary {
    color: var(--white);
}

.btn-saber-mas {
    background-color: #114A8D;
    color: #ffffff;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-saber-mas:hover,
.btn-saber-mas:active {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.dark-mode .btn-saber-mas {
    color: #ffffff;
}

.dark-mode .btn-saber-mas:hover,
.dark-mode .btn-saber-mas:active {
    background-color: #114A8D;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}


.btn-outline {
    background-color: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}


.btn-outline:hover {
    background-color: rgba(46, 123, 216, 0.05);
}

.btn-primary-dark {
    background-color: var(--primary-blue);
    color: var(--white);
    border: 2px solid var(--primary-blue);
}

/* 1. Hero Section - Carousel Refactor */
.hero-section {
    position: relative;
    height: 100vh;
    /* Full viewport height for better centering */
    overflow: hidden;
    padding: 0;
    /* Remove padding as slides take over */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--soft-blue);
    /* Fallback */
    text-align: left;
    /* Updated to left alignment */
    color: var(--text-dark);
}

/* Hero Right Wave Pulse Effect */
.hero-right-waves {
    position: absolute;
    bottom: 0;
    right: 0;
    /* Origin Bottom-Right Corner */
    transform: translate(40%, 40%);
    /* Shift center into the corner */
    width: 150px;
    height: 150px;
    z-index: 10;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wave-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid var(--brand-yellow);
    border-radius: 50%;
    opacity: 0;
    animation: wavePulseRight 4s infinite linear;
}

.wave-ring:nth-child(2) {
    animation-delay: 1s;
}

.wave-ring:nth-child(3) {
    animation-delay: 2s;
}

.wave-ring:nth-child(4) {
    animation-delay: 3s;
}

/* Keyframe: amarillo que se desvanece */
@keyframes wavePulseRight {
    0% {
        transform: scale(0.5);
        opacity: 0.8;
        border-color: #FFC107;
    }

    50% {
        border-color: #FFC107;
        opacity: 0.5;
    }

    100% {
        transform: scale(20);
        opacity: 0;
        border-color: #FFC107;
    }
}

/* Slide Styles */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

/* Gradient Overlay per slide */
.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Dark overlay (Problem Section Style) */
    background: linear-gradient(to left, rgba(10, 10, 10, 0.95), rgba(45, 45, 45, 0.9));
    z-index: 1;
}

/* Waves/Pulse Background Animation - Kept global or removed? 
   The user asked for individual images, so the SVG waves might be redundant or can sit on top.
   The previous `waveMove` animation on pseudo-element might conflict if not handled.
   I'll effectively remove the global `::before` wave animation to focus on the image carousel.
*/


@keyframes waveMove {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 100% 0;
    }
}

.hero-container-centered {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Strictly Left */
    justify-content: center;
    width: 100%;
    height: 100%;
    /* Ensure it takes full height of slide for vertical centering */
    position: relative;
    z-index: 3;
    padding-left: 5%;
    /* Add some padding to not hit the edge */
    padding-top: 25vh;
    /* Lower content by approx 20% of viewport height */
}

.hero-content-full {
    max-width: 600px;
    text-align: left;
}

/* Removed Pulse Visual Styles as requested */

.hero-content-full h1 {
    font-size: 5.85rem;
    margin-bottom: 0.5rem;
    line-height: 1.1;
    color: var(--white);
    /* Updated to white for dark bg */
    letter-spacing: -1px;

    /* Animation Initial State (Exit/Hidden) */
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
}

.dark-mode .hero-content-full h1 {
    color: #ffffff;
    /* Override to ensure it stays white in dark mode */
}

.hero-content-full p.subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    /* Lighter subtitle */
    margin-bottom: 3rem;
    font-weight: 300;

    /* Animation Initial State */
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out 0.2s;
    /* 0.2s delay for subtitle */
}

/* Active State Animations (Entrance) */
.hero-slide.active .hero-content-full h1,
.hero-slide.active .hero-content-full p.subtitle {
    opacity: 1;
    transform: translateX(0);
}

.text-highlight {
    color: var(--brand-yellow);
    position: relative;
    display: inline-block;
}

/* Visual Elements Removed */

.hero-buttons {
    display: flex;
    justify-content: flex-start;
    /* Align buttons left */
    gap: 1rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 30;
    /* Ensure button sits on top of all effects */
}

/* 2. Features Essentials (Funcionalidades) */
.features-section {
    padding: 60px 0 100px;
    background-color: var(--white);
    position: relative;
    z-index: 2;
    /* Map Background (Standard) */
    background-image: url('../assets/img/maps.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Overlay to soften colorful map adapts to theme */
    background-color: var(--features-overlay);
    z-index: 0;
}

.features-section .container {
    position: relative;
    z-index: 2;
    max-width: 95%;
    /* Max width increased significantly */
}

/* Map Alerts Animation */
.map-alerts {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Above background overlay (0) */
    pointer-events: none;
    overflow: hidden;
}

.map-point {
    position: absolute;
    width: 0;
    height: 0;
    /* Removed yellow dot styles */
    background-color: transparent;
    border-radius: 0;
    /* animation: mapPulse 2s infinite; -> Removed dot pulse */
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: none;
    margin-top: 0;
}

/* Remove CSS border wave */
.map-point::after {
    display: none;
}

/* SVG Wave Style */
.wave-svg {
    position: absolute;
    width: 80px;
    /* Size of the wave image */
    max-width: none;
    height: auto;
    opacity: 0;
    animation: svgWave 2s infinite ease-out;
    pointer-events: none;
}

@keyframes svgWave {
    0% {
        transform: scale(0.1);
        opacity: 0.9;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Stagger animations */
.map-point:nth-child(odd) .wave-svg {
    animation-delay: 0.5s;
}

.map-point:nth-child(3n) .wave-svg {
    animation-delay: 1.2s;
}

/* Removed Centered Map Visual */
/* .features-center-visual removed */

.features-grid {
    display: flex;
    justify-content: center;
    gap: 6rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.feature-item {
    flex: 1 1 240px;
    min-width: 250px;
    max-width: 320px;
    background: var(--white);
    border-radius: 30px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.02);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(17, 74, 141, 0.15);
    border-color: rgba(17, 74, 141, 0.1);
}

.feature-number {
    font-size: 5rem;
    font-weight: 900;
    color: rgba(17, 74, 141, 0.05);
    position: absolute;
    top: 10px;
    left: 10px;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.feature-icon {
    position: absolute;
    bottom: -15px;
    right: -15px;
    width: auto;
    height: auto;
    background-color: transparent;
    color: var(--primary-blue);
    border: none;
    border-radius: 0;
    display: block;
    font-size: 6rem;
    margin: 0;
    opacity: 0.1;
    z-index: 0;
    pointer-events: none;
}

.feature-item h3 {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
    color: var(--primary-blue);
    position: relative;
    z-index: 1;
    font-weight: 700;
}

.feature-item p {
    color: var(--text-body);
    font-size: 1.05rem;
    position: relative;
    z-index: 1;
}

/* User Specific Requests for Dark Mode in Features Section */
.dark-mode .features-section::before {
    background-color: rgba(2, 6, 23, 0.85);
}

.dark-mode .features-section .section-title {
    color: #ffffff;
}

.dark-mode .feature-item {
    background-color: var(--soft-blue);
    border-color: rgba(255, 255, 255, 0.05);
}

.dark-mode .features-section .feature-icon {
    color: rgba(255, 255, 255, 0.1);
}

.dark-mode .features-section .feature-item h3 {
    color: #f8fafc;
}

.dark-mode .features-section .feature-item p {
    color: #cbd5e1;
}

/* 3. PROBLEM SECTION - Background Image with Overlay */
.problem-section {
    /* Smooth Gradient Right to Left (Dark) */
    background: linear-gradient(to left, rgba(10, 10, 10, 0.95), rgba(45, 45, 45, 0.9)), url('../assets/img/tren.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    /* Parallax effect */
    padding: 100px 0;
    color: var(--white);
    position: relative;
}

/* Styling for the logo added to the problem section */
.problem-logo-img {
    max-width: 100%;
    height: auto;
    max-height: 300px;
    opacity: 1;
    /* Aumentada la opacidad para que no se disipe */
    filter: drop-shadow(0px 10px 25px rgba(0, 0, 0, 0.9));
    /* Sombreado potente oscuro */
    margin-top: 0;
    /* Efecto de pulso infinito en lugar de escape en JS */
    animation: pulse-logo 3s ease-in-out infinite;
}

/* Keyframes for soft pulse effect */
@keyframes pulse-logo {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}


.problem-content {
    display: flex;
    align-items: center;
    gap: 6rem;
    position: relative;
    z-index: 2;
}

.problem-visual {
    flex: 1;
    height: 350px;
    position: relative;
    display: flex;
    align-items: center;
    /* Centered vertically */
    justify-content: center;
}

.city-skyline {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 200'%3E%3Cpath fill='%23114A8D' fill-opacity='0.1' d='M0,200 L0,150 L50,150 L50,120 L100,120 L100,180 L150,180 L150,100 L200,100 L200,160 L250,160 L250,130 L300,130 L300,190 L350,190 L350,110 L400,110 L400,170 L450,170 L450,140 L500,140 L500,200 Z'/%3E%3Ccircle cx='50' cy='140' r='2' fill='%23FFC107' /%3E%3Ccircle cx='180' cy='120' r='2' fill='%23FFC107' /%3E%3Ccircle cx='320' cy='150' r='2' fill='%23FFC107' /%3E%3Ccircle cx='420' cy='130' r='2' fill='%23FFC107' /%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: contain;
}

.problem-text {
    flex: 1;
}

.problem-text h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    color: var(--white);
    /* Removed text-shadow */
}

.dark-mode .problem-text h2 {
    color: #ffffff;
    /* Override to ensure text is white in dark mode */
}

.problem-text p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    /* Slightly soft white */
    font-weight: 500;
    /* Removed text-shadow */
}

/* 4. Solution Section */
.solution-section {
    background-color: var(--white);
    padding: 100px 0;
    position: relative;
    z-index: 1;
    /* Community Background */
    background-image: url('../assets/img/comunidad.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.solution-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Strong Blue Overlay for contrast with white cards */
    background: linear-gradient(135deg, rgba(17, 74, 141, 0.9), rgba(17, 74, 141, 0.7));
    z-index: -1;
}

.solution-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    position: relative;
    z-index: 2;
}

/* Ensure title is visible on dark overlay if needed, currently h2 is primary-blue */
.solution-section .section-title {
    color: var(--white);
    /* Make title white on this dark bg */
    position: relative;
    z-index: 2;
}

.dark-mode .solution-section .section-title {
    color: #ffffff;
}

.solution-waves-left {
    position: absolute;
    left: 2%;
    top: 50%;
    transform: translateY(-50%);
    height: 65%;
    /* Reduced to 35% for a cleaner look */
    width: auto;
    z-index: 1;
    /* Behind cards */
    opacity: 0.6;
    pointer-events: none;
    filter: drop-shadow(0px 8px 15px rgba(0, 0, 0, 0.35)) blur(2px);
}

.solution-waves-right {
    position: absolute;
    right: 2%;
    top: 50%;
    transform: translateY(-50%);
    /* Right Image Correct */
    height: 65%;
    /* Reduced to 35% for cleaner look */
    width: auto;
    z-index: 1;
    opacity: 0.7;
    pointer-events: none;
    filter: drop-shadow(0px 8px 15px rgba(0, 0, 0, 0.35)) blur(2px);
}

.dark-mode .solution-waves-left,
.dark-mode .solution-waves-right {
    opacity: 0.25;
    -webkit-mask-image: none;
    mask-image: none;
    filter: none;
}

/* Ensure container is above waves */
.solution-section .container {
    position: relative;
    z-index: 2;
}

.solution-card {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(230, 240, 250, 0.5);
    transition: all 0.4s ease;
    position: relative;
    /* Container for absolute icon */
    overflow: hidden;
    /* Clip the large icon */
}

.solution-card:hover {
    transform: scale(1.15);
    /* Crecer un 15% para que resalte agresivamente respecto al resto */
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
    /* Sombra intensa para el salto 3D */
    border-color: var(--light-blue);
    z-index: 10;
}

.card-icon {
    /* Background Watermark Effect */
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: auto;
    height: auto;
    background-color: transparent;
    color: var(--primary-blue);
    border-radius: 0;
    display: block;
    font-size: 8rem;
    /* Massive size */
    margin-bottom: 0;
    opacity: 0.1;
    /* Subtle watermark */
    z-index: 0;
    pointer-events: none;
}

.solution-card h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.8rem;
    /* Increased from 1.4rem */
    position: relative;
    z-index: 1;
    /* Above icon */
}

.solution-number {
    font-size: 5rem;
    font-weight: 900;
    color: rgba(17, 74, 141, 0.05);
    position: absolute;
    top: 10px;
    left: 10px;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.solution-card p {
    color: var(--text-body);
    font-size: 1.2rem;
    /* Increased from 1rem */
    position: relative;
    z-index: 1;
    /* Above icon */
    line-height: 1.6;
}

/* Dark Mode specific for solution cards */
.dark-mode .solution-card {
    background-color: var(--soft-blue);
    border-color: rgba(255, 255, 255, 0.05);
}

.dark-mode .solution-number {
    color: rgba(255, 255, 255, 0.05);
}

.dark-mode .solution-card:hover {
    transform: translateY(-5px);
    /* Cambio sutil en vez de scale agresivo */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    /* Sombra más tenue */
    border-color: rgba(255, 255, 255, 0.1);
}

/* 5. Benefits Section */
/* 5. Benefits Section (Removed) */

/* 6. How It Works (Innovative Slider) */
.how-it-works-section {
    padding: 60px 0 150px 0;
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}

.how-it-works-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Layers: Left image (der), Right image (izq) — swapped */
    background-image: url('../assets/img/banner-bajo-der.png'), url('../assets/img/banner-bajo-izq.png');
    background-size: 65% auto, 65% auto;
    background-position: left bottom, right bottom;
    background-repeat: no-repeat, no-repeat;
    filter: drop-shadow(0px 10px 15px rgba(0, 0, 0, 0.4));
    z-index: 0;
    pointer-events: none;
}

.how-it-works-section .container {
    position: relative;
    z-index: 1;
}

.dark-mode .how-it-works-section::before {
    /* Mayor sombra oscura de fondo para resaltar, manteniendo el borde suavizado */
    filter: drop-shadow(0px 10px 25px rgba(0, 0, 0, 0.9)) drop-shadow(0px 0px 15px rgba(0, 0, 0, 0.8)) blur(0.4px);
}

.dark-mode .how-it-works-section::after {
    content: '';
    position: absolute;
    inset: 0;

    background-image:
        url('../assets/img/banner-bajo-izq.png'),
        url('../assets/img/banner-bajo-der.png');

    background-size: 65% auto, 65% auto;
    background-position: left bottom, right bottom;
    background-repeat: no-repeat, no-repeat;

    filter:
        blur(4px) brightness(1.1) saturate(1.2)
        /* 🟡 Glow amarillo leve */
        drop-shadow(0 0 15px rgba(255, 196, 0, 0.4))
        /* 🔵 Glow azul leve */
        drop-shadow(0 0 20px rgba(0, 102, 255, 0.3))
        /* ⚪ Profundidad personas suave */
        drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));

    z-index: -1;
    pointer-events: none;
}


.dark-mode .how-it-works-section .section-title h2 {
    color: #ffffff;
}

.how-it-works-bar {
    display: block;
    margin: 100px auto 0 auto;
    width: 41%;
    /* INCREASED ANOTHER 40% */
}

@media (min-width: 992px) {

    .how-it-works-section::before,
    .dark-mode .how-it-works-section::after {
        background-size: 39% auto, 39% auto;
        /* Desktop: Smaller, anchored to corners */
    }

    .how-it-works-section {
        padding-bottom: 200px;
        /* Maintain space */
    }

    .how-it-works-bar {
        width: 20%;
        /* INCREASED ANOTHER 40% */
    }
}


.steps-slider-wrapper {
    position: relative;
    padding: 3.5rem 0 2rem;
}

.steps-slider {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem 0;
}

.steps-slider::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar Chrome */
}

.step-card {
    flex: 1 1 240px;
    max-width: 280px;
    background: var(--white);
    border-radius: 30px;
    padding: 2rem 1rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: all 0.4s ease;
    transform: scale(0.95);
    opacity: 0.7;
    border: 1px solid rgba(0, 0, 0, 0.02);
    overflow: hidden;
    /* Contain watermark */
}

@media (min-width: 992px) {
    .step-card {
        flex: 1 1 250px;
        max-width: 300px;
        padding: 3rem 2rem;
    }
}

/* Active State (via JS) */
.step-card.active {
    transform: scale(1.1);
    opacity: 1;
    box-shadow: 0 20px 50px rgba(17, 74, 141, 0.15);
    border-color: rgba(17, 74, 141, 0.1);
    z-index: 2;
}

/* Number & Icon Styling */
.step-number {
    font-size: 5rem;
    font-weight: 900;
    color: rgba(17, 74, 141, 0.05);
    position: absolute;
    top: 10px;
    left: 10px;
    /* Moved to corner */
    transform: none;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.step-icon {
    /* Background Watermark Effect */
    position: absolute;
    bottom: -15px;
    right: -15px;
    width: auto;
    height: auto;
    background-color: transparent;
    color: var(--primary-blue);
    border: none;
    border-radius: 0;
    display: block;
    font-size: 6rem;
    /* Large watermark */
    margin: 0;
    opacity: 0.1;
    z-index: 0;
    pointer-events: none;
}

.step-card h3 {
    font-size: 1.5rem;
    /* Increased size */
    margin-bottom: 0.5rem;
    color: var(--primary-blue);
    position: relative;
    z-index: 1;
}

.step-card p {
    font-size: 1.1rem;
    /* Increased size */
    color: var(--text-body);
    position: relative;
    z-index: 1;
}

/* Dark Mode specific for step cards to make them visible against dark background */
.dark-mode .step-card {
    background-color: var(--soft-blue);
    border-color: rgba(255, 255, 255, 0.05);
}

.timeline-node.active .node-icon,
.timeline-node:hover .node-icon {
    background-color: var(--brand-yellow);
    color: var(--primary-blue);
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 193, 7, 0.3);
}

.timeline-node p {
    font-weight: 800;
    color: var(--primary-blue);
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 1rem;
    position: relative;
    z-index: 2;
}

/* 7. Emotional Section - WARM/LIGHT */
.emotional-section {
    margin-top: -30px;
    /* Pull up */
    min-height: 700px;
    background-image: url('../assets/img/personas.png');
    background-size: contain;
    /* Full image visible, no crop */
    background-position: center bottom;
    background-repeat: no-repeat;
    background-color: var(--soft-blue);
    /* Fallback/Base color */
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.emotional-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Overlay for text readability */
    background: rgba(45, 50, 55, 0.55);
    /* Capa leve gris oscura */
    z-index: 1;
}

.emotional-content {
    position: relative;
    z-index: 10;
    /* Letras por delante de todo */
    padding-bottom: 2rem;
}

.emotional-content h2 {
    color: var(--white);
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.dark-mode .emotional-content h2 {
    color: #ffffff;
}

.dark-mode .emotional-section {
    background-color: #020617;
}

.dark-mode .emotional-section::before {
    background: rgba(15, 20, 25, 0.7);
    /* Capa gris en dark mode */
}


.waves-animation {
    display: none;
}



/* 9. CTA Section */
/* 9. CTA Section */
.cta-section {
    background-color: var(--bg-gray);
    padding-top: 80px;
    padding-bottom: 0;
    /* Removed bottom padding so image sits on edge */
    background-image: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.4) 0%, transparent 60%);
    overflow: hidden;
}

.cta-container {
    display: flex;
    align-items: flex-end;
    /* Align items to bottom */
    justify-content: space-between;
    position: relative;
    padding-bottom: 0;
}

.cta-content {
    flex: 1;
    max-width: 600px;
    text-align: left;
    z-index: 30;
    /* Ensure text sits above solid footer overlap (z-index 10) */
    align-self: center;
    /* Keep text centered vertically */
    margin-bottom: 80px;
    /* Restore spacing at bottom for text */
}

.cta-section h2 {
    color: var(--primary-blue);
    font-size: 3rem;
    margin-bottom: 2rem;
    line-height: 1.1;
    font-weight: 800;
}

.dark-mode .cta-section {
    background-color: var(--white);
    background-image: none;
    /* remove radial gradient to keep it completely flat and identical */
}

.dark-mode .cta-section h2 {
    color: #ffffff;
}

.dark-mode .cta-section .btn-primary {
    color: #ffffff !important;
    background: #0d234a;
    /* Azul marino muy oscuro */
    border-color: #0d234a;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.dark-mode .cta-section .btn-primary:hover {
    background: #07152f;
    /* Prácticamente negro-azul para el hover */
    border-color: #07152f;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

.dark-mode .footer {
    background: var(--white);
    border-radius: 0;
    /* Remove the oval overlap effect to seamlessly merge */
    margin-top: 0;
    /* Remove negative margin */
    padding-top: 60px;
    /* Adjust padding due to missing overlap */
}

.dark-mode .footer .btn-android,
.dark-mode .footer .btn-android span,
.dark-mode .footer .btn-android i {
    color: #ffffff !important;
}

.cta-image {
    max-height: 450px;
    /* Increased slightly */
    width: auto;
    object-fit: contain;
    position: relative;
    right: 0;
    margin-right: -100px;
    z-index: 50;
    /* Increased significantly to ensure it sits ABOVE footer gradient overlay (z-index 10) */
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.05));
    /* Minimized shadow */
    display: block;
    /* Remove inline gap */
    margin-bottom: 0;
    /* Soft transparency fade at bottom */
    -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

.dark-mode .cta-image {
    /* Sombra más pronunciada alrededor de la cabeza y los hombros */
    filter: drop-shadow(0px -5px 15px rgba(0, 0, 0, 0.8)) drop-shadow(0px -10px 30px rgba(0, 0, 0, 0.7));
    /* Difuminado suave de base + difuminado en costados y arriba */
    -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 50%, transparent 95%), linear-gradient(to bottom, black 65%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: radial-gradient(ellipse at 50% 30%, black 50%, transparent 95%), linear-gradient(to bottom, black 65%, transparent 100%);
    mask-composite: intersect;
}

@media (max-width: 768px) {
    .cta-container {
        flex-direction: column;
        text-align: center;
        align-items: center;
        /* Revert for mobile */
    }

    .cta-content {
        text-align: center;
        margin-bottom: 3rem;
        align-self: center;
    }

    .cta-section {
        padding-bottom: 0;
    }

    .cta-image {
        max-height: 250px;
        margin-right: 0;
        margin-bottom: 0;
        width: 100%;
        object-fit: contain;
        object-position: bottom;
    }
}

/* 10. Footer */
.footer {
    background-color: var(--primary-blue);
    padding: 80px 0;
    color: var(--white);
    border-top: none;
}



/* 10. Footer Rebrand */
.footer {
    /* Gradient Fade Overlap */
    margin-top: -150px;
    padding: 200px 0 80px;
    /* Hero Gray Solid: No gradient fade, just solid color */
    background: #2D2D2D;
    color: var(--white);
    border-top: none;
    border-radius: 50% 50% 0 0 / 85px 85px 0 0;
    /* Oval Top Effect: Reduced height by ~30% */
    position: relative;
    z-index: 10;
}

/* Ensure footer content is clickable */
.footer-content {
    position: relative;
    z-index: 11;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo-img {
    height: 80px;
    /* Increased 100% from 40px */
    /* Adjust based on logo aspect ratio */
    width: auto;
    margin-bottom: 0.5rem;
    filter: brightness(0) invert(1);
    /* Make logo white if it's not already */
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-top: 5px;
    /* ensure spacing */
}

.footer-apps {
    flex: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    top: -10px;
    /* Slight visual adjustment up */
}

.footer-apps h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--brand-yellow);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.app-buttons {
    display: flex;
    gap: 1rem;
}

.btn-app {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background-color: transparent;
    /* Fondo transparente o muy tenue */
    border: 1px solid rgba(255, 255, 255, 0.4);
    /* Borde simple y limpio */
    color: var(--white);
    padding: 0.6rem 1.4rem;
    border-radius: 8px;
    /* Bordes ligeramente redondeados como el screenshot */
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: 500;
}

.btn-app:hover {
    background-color: rgba(255, 255, 255, 0.1);
    /* Hover MUY tenue */
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    /* Ligero movimiento hacia arriba */
}

.btn-app i {
    font-size: 1.4rem;
}


.footer-links-col {
    flex: 1;
    min-width: 200px;
    display: flex;
    gap: 1.5rem;
    justify-content: flex-end;
}

.footer-links-col a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.footer-links-col a:hover {
    color: var(--white);
    transform: translateY(-1px);
}

.dark-mode .footer-links-col a:hover {
    color: #ffffff;
}

/* === INNER BANNERS === */
.inner-banner {
    position: relative;
    width: 100%;
    /* Keep 4:1 aspect ratio roughly based on 1584x396 images */
    aspect-ratio: 4/1;
    min-height: 250px;
    max-height: 480px;
    background-size: cover;
    background-position: center;
    margin-top: 80px;
    /* For navbar */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.inner-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    /* Dark overlay to make text pop */
    z-index: 1;
}

.inner-banner-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.inner-banner-content h1 {
    color: var(--brand-yellow);
    font-size: 4rem;
    font-weight: 700;
    font-family: 'Outfit', 'MuseoSans', sans-serif;
    margin-bottom: 0.2rem;
    letter-spacing: -1.5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1;
}

.inner-banner-content p {
    color: var(--white);
    font-size: 1.35rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.inner-banner-smile {
    width: 220px;
    height: auto;
    margin-top: 0.8rem;
}

/* ============================================
   RESPONSIVE DESIGN — SAFEWAVE LANDING
   Mobile First: ≤768px | Tablet: 769px–1024px
   SOLO RESPONSIVE — NO SE TOCA DESKTOP
   ============================================ */

/* ─── MOBILE & TABLET PORTRAIT (≤768px) ─── */
@media (max-width: 768px) {

    /* === GLOBAL === */
    .container {
        padding: 0 18px;
    }

    /* === INNER BANNERS === */
    .inner-banner {
        min-height: 200px;
        height: auto;
        aspect-ratio: auto;
        padding: 50px 0;
    }

    .inner-banner-content h1 {
        font-size: 2.2rem;
    }

    .inner-banner-content p {
        font-size: 1.1rem;
    }

    .inner-banner-smile {
        width: 150px;
    }

    /* === NAVBAR === */
    .hero-section {
        height: 100svh;
    }

    /* === HERO === */
    .hero-container-centered {
        padding-left: 0;
        padding-top: 12vh;
        align-items: center;
        text-align: center;
    }

    .hero-content-full {
        max-width: 100%;
        text-align: center;
        padding: 0 16px;
    }

    .hero-content-full h1 {
        font-size: 3.12rem;
        letter-spacing: -0.5px;
        margin-bottom: 1rem;
    }

    .hero-content-full p.subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .hero-buttons {
        justify-content: center;
        margin-bottom: 2rem;
    }

    .hero-buttons .btn-primary {
        font-size: 1rem;
        padding: 0.85rem 1.8rem;
    }

    /* Ocultar waves en mobile (distracción) */
    .hero-right-waves {
        display: none;
    }


    /* === 2. FEATURES / FUNCIONALIDADES === */
    .features-section {
        padding: 50px 0 70px;
    }

    .features-section .section-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }


    /* Mostrar ondas del mapa en mobile */
    .map-alerts {
        display: block;
    }

    .wave-svg {
        width: 45px;
        /* Reducido para pantallas pequeñas */
    }

    /* === 3. PROBLEM === */
    .problem-section {
        padding: 70px 0;
        background-attachment: scroll;
    }

    .problem-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .problem-visual {
        height: 200px;
        justify-content: center;
    }

    .problem-logo-img {
        max-height: 180px;
    }

    .problem-text {
        flex: unset;
    }

    .problem-text h2 {
        font-size: 1.9rem;
    }

    .problem-text p {
        font-size: 1rem;
    }

    /* === 4. SOLUTION === */
    .solution-section {
        padding: 70px 0;
        background-attachment: scroll;
    }

    .solution-section .section-title {
        font-size: 1.8rem;
    }

    .solution-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .solution-card {
        padding: 2rem 1.5rem;
    }

    .solution-card h3 {
        font-size: 1.4rem;
    }

    .solution-card p {
        font-size: 1rem;
    }

    /* Ocultar ondas decorativas laterales */
    .solution-waves-left,
    .solution-waves-right {
        display: none;
    }

    /* === 6. HOW IT WORKS === */
    .how-it-works-section {
        padding: 50px 0 450px;
        /* Aumentado padding de 280px a 450px para mostrar la imagen por debajo de las cards */
    }

    .how-it-works-section::before,
    .dark-mode .how-it-works-section::after {
        /* Se restaura imagen madre e hija, aumentada 30% más sobre su original */
        background-image: url('../assets/img/banner-bajo-izq.png');
        background-size: 115% auto;
        /* Aumentado 30% aprox de su valor original para far focus */
        background-position: center bottom;
    }

    .how-it-works-section .container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .how-it-works-section .section-title {
        order: 1;
        margin-bottom: 2rem !important;
    }

    .steps-slider-wrapper {
        order: 3;
        width: 100%;
        padding-top: 0 !important;
        /* Subir las cards quitando el padding extra de la version desktop */
    }

    .how-it-works-section .section-title h2 {
        font-size: 1.8rem;
    }

    .steps-slider {
        flex-direction: column;
        align-items: center;
        gap: 1.2rem;
    }

    .step-card {
        flex: unset;
        width: 85%;
        max-width: 340px;
        transform: scale(1);
        opacity: 1;
        padding: 1.8rem 1.5rem;
    }

    .step-card.active {
        transform: scale(1.03);
    }

    .step-card h3 {
        font-size: 1.2rem;
    }

    .step-card p {
        font-size: 1rem;
    }

    .how-it-works-bar {
        /* Mostrar directamente debajo del título usando order: 2 */
        order: 2;
        width: 30%;
        /* Reducido drásticamente el tamaño a petición */
        margin: 0 auto 3rem auto !important;
        display: block !important;
    }

    /* === 7. EMOTIONAL === */
    .emotional-section {
        min-height: 420px;
        padding: 70px 20px;
        background-size: contain;
        background-position: center bottom;
    }

    .emotional-content h2 {
        font-size: 1.9rem;
        line-height: 1.3;
    }

    /* === 9. CTA === */
    .cta-section {
        padding-top: 60px;
    }

    .cta-container {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 2rem;
    }

    .cta-content {
        text-align: center;
        max-width: 100%;
        margin-bottom: 0;
        align-self: center;
    }

    .cta-section h2 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .cta-image {
        max-height: 260px;
        width: 80%;
        margin-right: 0;
        object-position: bottom center;
    }

    /* === 10. FOOTER === */
    .footer {
        padding: 140px 0 60px;
        border-radius: 40px 40px 0 0;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2.5rem;
    }

    .footer-brand {
        align-items: center;
    }

    .footer-logo-img {
        height: 60px;
    }

    .footer-apps {
        order: -1;
        width: 100%;
        align-items: center;
    }

    .app-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        width: 100%;
    }

    .btn-app {
        width: 220px;
        justify-content: center;
    }

    .footer-links-col {
        justify-content: center;
        flex-wrap: wrap;
        flex-direction: row;
        gap: 1.5rem;
    }
}

/* ─── MOBILE PEQUEÑO (≤480px) ─── */
@media (max-width: 480px) {

    .hero-content-full h1 {
        font-size: 2.6rem;
    }

    .hero-content-full p.subtitle {
        font-size: 1rem;
    }

    .hero-buttons .btn-primary {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .features-section .section-title,
    .solution-section .section-title,
    .how-it-works-section .section-title h2,
    .emotional-content h2,
    .cta-section h2,
    .problem-text h2 {
        font-size: 1.6rem;
    }

    .solution-card {
        padding: 1.5rem 1.2rem;
    }

    .step-card {
        width: 95%;
    }

    .cta-image {
        width: 95%;
    }

    .btn-app {
        width: 100%;
        max-width: 280px;
    }
}

/* ─── TABLET LANDSCAPE (769px – 1024px) ─── */
@media (min-width: 769px) and (max-width: 1024px) {

    /* Hero */
    .hero-content-full h1 {
        font-size: 4.16rem;
    }

    .hero-content-full p.subtitle {
        font-size: 1.2rem;
    }

    .hero-container-centered {
        padding-top: 20vh;
    }

    /* Features */
    .features-grid {
        gap: 3rem;
    }

    .feature-item {
        flex: 1 1 200px;
        max-width: 260px;
    }

    /* Problem */
    .problem-section {
        background-attachment: scroll;
    }

    .problem-content {
        gap: 3rem;
    }

    .problem-text h2 {
        font-size: 2.2rem;
    }

    #typewriter-text {
        display: block;
        /* Forzar segunda línea */
        margin-top: 5px;
    }

    /* Solution */
    .solution-section {
        background-attachment: scroll;
        padding: 80px 0;
    }

    .solution-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .solution-card {
        padding: 2rem;
    }

    /* Ocultar ondas laterales en tablet */
    .solution-waves-left,
    .solution-waves-right {
        display: none;
    }

    /* How it works */
    .step-card {
        flex: 1 1 200px;
        max-width: 240px;
    }

    .how-it-works-bar {
        width: 30%;
    }

    /* CTA */
    .cta-section h2 {
        font-size: 2.4rem;
    }

    .cta-image {
        max-height: 360px;
        margin-right: -40px;
    }

    /* Footer */
    .footer {
        padding: 160px 0 60px;
    }

    .footer-content {
        gap: 2rem;
    }
}

/* ===== FEATURES SLIDER - Mobile Only ===== */
@media (max-width: 768px) {

    /* Wrapper clips to one slide */
    .features-slider-wrapper {
        position: relative;
        overflow: hidden;
        width: 100%;
        margin-top: 1rem;
    }

    /* Track: all slides in a column */
    .features-slider-wrapper .features-grid {
        display: flex;
        flex-direction: column;
        /* Cambiado a vertical */
        gap: 20px;
        /* Añadir espacio entre tarjetas */
        width: 100%;
        padding: 0 15px;
        /* Padding extra para los lados */

        overflow: visible;
        /* Remover scroll horizontal */
    }

    .features-slider-wrapper .features-grid::-webkit-scrollbar {
        display: none;
        /* Chrome/Safari */
    }

    /* Each card takes full width of container */
    .features-slider-wrapper .feature-item {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
        margin: 0;
        /* Reset margins */
        box-sizing: border-box;
        padding: 2.5rem 1.5rem;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        /* Override any anime.js inline style */
        opacity: 1 !important;
        transform: none !important;
        visibility: visible !important;
    }

    .features-slider-wrapper .feature-icon {
        font-size: 5rem;
        margin-bottom: 0;
    }

    .features-slider-wrapper .feature-item h3 {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
        font-weight: 700;
    }

    .features-slider-wrapper .feature-item p {
        font-size: 1rem;
        max-width: 270px;
        margin: 0 auto;
        line-height: 1.5;
    }

    /* Navigation dots - OCULTOS EN MÓVIL PORQUE LA LISTA ES HACIA ABAJO */
    .features-dots {
        display: none !important;
    }

    .feature-dot {
        width: 9px;
        height: 9px;
        border-radius: 50%;
        background: rgba(17, 74, 141, 0.25);
        border: none;
        cursor: pointer;
        transition: background 0.3s ease, transform 0.3s ease;
    }

    .feature-dot.active {
        background: var(--primary-blue);
        transform: scale(1.4);
    }

    .dark-mode .feature-dot {
        background: rgba(255, 255, 255, 0.25);
    }

    .dark-mode .feature-dot.active {
        background: #60a5fa;
    }
}

/* Hide dots on desktop */
@media (min-width: 769px) {
    .features-dots {
        display: none;
    }

    .solution-dots {
        display: none;
    }
}

/* ===== SOLUTION SLIDER - Mobile Only ===== */
@media (max-width: 768px) {

    /* Wrapper clips to one slide */
    .solution-slider-wrapper {
        position: relative;
        overflow: hidden;
        width: 100%;
        margin-top: 1rem;
    }

    /* Track: all slides in a column */
    .solution-slider-wrapper .solution-grid {
        display: flex;
        flex-direction: column;
        /* Cambiado a vertical */
        flex-wrap: nowrap;
        gap: 20px;
        /* Añadida separación vertical */
        width: 100%;

        /* Disabled Horizontal Scroll */
        overflow: visible;
    }

    .solution-slider-wrapper .solution-grid::-webkit-scrollbar {
        display: none;
    }

    /* Each slide = full width */
    .solution-slider-wrapper .solution-card {
        flex: 0 0 100%;
        min-width: 100%;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin: 0;
        /* Override generic margins if any */
        opacity: 1 !important;
        transform: none !important;
        visibility: visible !important;
    }

    /* Navigation dots - OCULTOS EN MÓVIL PORQUE AHORA ES LISTA VERTICAL */
    .solution-dots {
        display: none !important;
    }

    .solution-dot {
        width: 9px;
        height: 9px;
        border-radius: 50%;
        background: rgba(17, 74, 141, 0.25);
        border: none;
        cursor: pointer;
        transition: background 0.3s ease, transform 0.3s ease;
    }

    .solution-dot.active {
        background: var(--primary-blue);
        transform: scale(1.4);
    }

    .dark-mode .solution-dot {
        background: rgba(255, 255, 255, 0.25);
    }

    .dark-mode .solution-dot.active {
        background: #60a5fa;
    }
}

/* ===== SW MODALS ===== */
.sw-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 20, 40, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sw-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sw-modal-card {
    background: var(--white);
    border-radius: 28px;
    padding: 2.8rem 2.5rem;
    max-width: 480px;
    width: 100%;
    position: relative;
    text-align: center;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
    transform: translateY(30px) scale(0.97);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sw-modal-overlay.active .sw-modal-card {
    transform: translateY(0) scale(1);
}

.sw-modal-close {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--text-body);
    cursor: pointer;
    line-height: 1;
    padding: 0.2rem 0.4rem;
    border-radius: 50%;
    transition: background 0.2s ease, color 0.2s ease;
}

.sw-modal-close:hover {
    background: var(--soft-blue);
    color: var(--primary-blue);
}

.sw-modal-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--soft-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--primary-blue);
}

.sw-modal-icon--success {
    background: #e8f5e9;
    color: #2e7d32;
}

.sw-modal-logo {
    margin: 0 auto 1.5rem;
    width: 140px;
}

.sw-modal-logo img {
    width: 100%;
    height: auto;
    display: block;
}

.sw-modal-card h2 {
    font-size: 1.7rem;
    color: var(--primary-blue);
    margin-bottom: 0.75rem;
}

.sw-modal-desc {
    color: var(--text-body);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Checkbox */
.sw-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    text-align: left;
    font-size: 0.95rem;
    color: var(--text-body);
    cursor: pointer;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.sw-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: var(--primary-blue);
    margin-top: 2px;
    cursor: pointer;
}

.sw-checkbox-label a {
    color: var(--primary-blue);
    text-decoration: underline;
    font-weight: 600;
}

.sw-checkbox-label a:hover {
    color: var(--light-blue);
}

/* Modal Button */
.sw-modal-btn {
    width: 100%;
    justify-content: center;
    border: none;
    cursor: pointer;
}

.sw-modal-btn:disabled {
    background: #d1d5db;
    color: #6b7280;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.sw-modal-note {
    font-size: 0.82rem;
    color: var(--text-body);
    opacity: 0.7;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

/* Dark mode modals */
.dark-mode .sw-modal-card {
    background: #0f172a;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.dark-mode .sw-modal-card h2 {
    color: #60a5fa;
}

.dark-mode .sw-modal-desc,
.dark-mode .sw-checkbox-label,
.dark-mode .sw-modal-note {
    color: #cbd5e1;
}

.dark-mode .sw-modal-icon {
    background: #1e293b;
    color: #60a5fa;
}

.dark-mode .sw-modal-icon--success {
    background: #14532d;
    color: #86efac;
}

.dark-mode .sw-modal-close {
    color: #cbd5e1;
}

.dark-mode .sw-modal-close:hover {
    background: #1e293b;
    color: #60a5fa;
}

.dark-mode .sw-checkbox-label a {
    color: #60a5fa;
}

@media (max-width: 480px) {
    .sw-modal-card {
        padding: 2rem 1.5rem;
    }

    .sw-modal-card h2 {
        font-size: 1.4rem;
    }
}