:root {
    /* Colores claros (modo por defecto) */
    --primary: #00a896;
    --primary-dark: #028090;
    --primary-light: #02c39a;
    --secondary: #05668d;
    --accent: #f0f3bd;
    --text: #2b2d42;
    --text-light: #f7f7f7;
    --bg: #f7f9fc;
    --card-bg: #ffffff;
    --gray: #8d99ae;
    --light-gray: #edf2f4;
    --success: #4caf50;
    --warning: #ff9800;
    --error: #f44336;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.16);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);

    /* Variables para modo oscuro */
    --dark-primary: #02c39a;
    --dark-primary-dark: #00a896;
    --dark-primary-light: #4ce0b3;
    --dark-secondary: #028090;
    --dark-accent: #f0f3bd;
    --dark-text: #f7f7f7;
    --dark-text-light: #e2e2e2; /* Un gris claro para buen contraste en modo oscuro */
    --dark-bg: #121212;
    --dark-card-bg: #1e1e1e;
    --dark-gray: #bbbbbb; /* Ajustado para un mejor contraste en modo oscuro */
    --dark-light-gray: #2d2d2d;
    --dark-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --dark-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --dark-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] {
    --primary: var(--dark-primary);
    --primary-dark: var(--dark-primary-dark);
    --primary-light: var(--dark-primary-light);
    --secondary: var(--dark-secondary);
    --accent: var(--dark-accent);
    --text: var(--dark-text);
    --text-light: var(--dark-text-light);
    --bg: var(--dark-bg);
    --card-bg: var(--dark-card-bg);
    --gray: var(--dark-gray); /* Ahora usa el valor ajustado para dark-gray */
    --light-gray: var(--dark-light-gray);
    --shadow-sm: var(--dark-shadow-sm);
    --shadow-md: var(--dark-shadow-md);
    --shadow-lg: var(--dark-shadow-lg);
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

/* Header y navegación */
header {
    background-color: var(--card-bg);
    position: fixed;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

header.scrolled {
    box-shadow: var(--shadow-md);
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.logo:hover {
    color: var(--primary-dark);
}

/* Ocultar en móvil y mostrar en desktop */
.desktop-only-nav {
    display: flex; /* Por defecto visible en desktop, se oculta en media query */
}

/* CONTENEDOR FLEXIBLE PARA LA NAVEGACIÓN PRINCIPAL (solo enlaces de escritorio) */
.nav-main-area {
    flex-grow: 1;
    justify-content: center;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 1.8rem;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition);
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Contenedor de acciones del nav (botones de escritorio) */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Botón de modo oscuro */
.dark-mode-toggle {
    background: rgba(0, 0, 0, 0.05);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text);
}

[data-theme="dark"] .dark-mode-toggle {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent);
}

.dark-mode-toggle:hover {
    transform: scale(1.1);
}

.dark-mode-toggle i {
    position: absolute;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.dark-mode-toggle .fa-sun {
    opacity: 0;
    transform: scale(0.8);
}

[data-theme="dark"] .dark-mode-toggle .fa-moon {
    opacity: 0;
    transform: scale(0.8);
}

[data-theme="dark"] .dark-mode-toggle .fa-sun {
    opacity: 1;
    transform: scale(1);
}

/* Botones CTA generales */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    min-width: 140px;
    border: none;
    font-size: 1rem;
    gap: 0.5rem;
    background: var(--primary);
    color: var(--text-light);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
}

.cta-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.cta-button:active {
    transform: translateY(0);
}

/* Hero section */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12rem 2rem 6rem;
    max-width: 1400px;
    margin: 0 auto;
    gap: 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 100%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(0, 168, 150, 0.1) 0%,
        rgba(255, 255, 255, 0) 70%
    );
    z-index: -1;
}

/* Asegúrate que el fondo sea transparente en modo oscuro */
[data-theme="dark"] .hero::before {
    background: radial-gradient(
        circle,
        rgba(0, 168, 150, 0.05) 0%,
        rgba(0, 0, 0, 0) 70%
    );
}

.hero-content {
    text-align: center;
    max-width: 800px;
    background-color: transparent;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    display: inline-block;
    padding-bottom: 0;
    text-decoration: none;
    background-color: transparent;
}

/* Estilos para el h1 en modo oscuro */
[data-theme="dark"] .hero h1 {
    background: linear-gradient(90deg, var(--primary-light), var(--primary-dark));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: 2.5rem;
}

/* MEJORA PARA EL TEXTO EN MODO OSCURO DEL HERO PÁRRAFO */
[data-theme="dark"] .hero p {
    color: var(--dark-text-light);
}


/* Mapa de ruta */
.hero-image {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.route-map {
    background-color: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    position: relative;
    height: 400px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--light-gray);
}

.route-path svg {
    width: 100%;
    height: 100%;
}

.route-path path {
    stroke: var(--primary);
    stroke-width: 4;
    fill: none;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: dash 3s linear forwards;
}

.point {
    width: 16px;
    height: 16px;
    background: var(--primary);
    border-radius: 50%;
    position: absolute;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.point::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 168, 150, 0.2);
    transform: translate(-50%, -50%);
    z-index: 1;
    animation: pulse 2s infinite;
}

.truck-icon {
    position: absolute;
    font-size: 1.5rem;
    color: var(--primary-dark);
    transform: translate(-50%, -50%);
    z-index: 3;
    animation: truckMove 8s linear infinite;
}

/* Secciones generales */
section {
    padding: 6rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.section-header p {
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Tarjetas de características */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.feature-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 2.5rem 2rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--light-gray);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--primary);
    transition: height 0.3s ease-out;
}

.feature-card:hover::before {
    height: 100%;
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-card h3 {
    margin-bottom: 1.2rem;
    color: var(--primary-dark);
    font-size: 1.4rem;
}

/* Pasos del proceso */
.steps-container {
    position: relative;
    margin-top: 3rem;
}

.steps-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: var(--light-gray);
    z-index: 1;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    position: relative;
    z-index: 2;
}

.step {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.step:nth-child(odd) {
    flex-direction: row;
    margin-right: auto;
    padding-right: 3rem;
}

.step:nth-child(even) {
    flex-direction: row-reverse;
    margin-left: auto;
    padding-left: 3rem;
}

.step-content {
    flex: 1;
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--light-gray);
}

.step-number {
    width: 60px;
    height: 60px;
    min-width: 60px;
    background: var(--primary);
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5rem;
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 3;
}

.step h3 {
    margin-bottom: 1rem;
    color: var(--primary-dark);
    font-size: 1.3rem;
}

/* Estadísticas */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem;
    text-align: center;
    margin-top: 4rem;
}

.stat-item {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--light-gray);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.stat-number .icon {
    font-size: 2rem;
}

/* Sección CTA - Ajustes de Tamaño (más compacta) */
.cta-section {
    text-align: center;
    padding: 4rem 2rem; /* REDUCIDO: Menos padding vertical para hacerla más compacta */
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    margin: 4rem auto; /* Ligeramente menos margen exterior */
    border-radius: var(--radius-lg);
    max-width: 900px; /* REDUCIDO: Más estrecha, concentrando el contenido */
    color: var(--text-light);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Estilos para modo oscuro */
[data-theme="dark"] .cta-section {
    background: linear-gradient(135deg, var(--dark-primary-dark) 0%, var(--dark-secondary) 100%);
    box-shadow: var(--dark-shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.3);
}


.cta-section::before,
.cta-section::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    filter: blur(20px);
}

.cta-section::before {
    top: -60px; /* Ajustado ligeramente */
    right: -60px; /* Ajustado ligeramente */
    width: 200px; /* REDUCIDO: Círculos decorativos más pequeños */
    height: 200px; /* REDUCIDO: Círculos decorativos más pequeños */
    animation: ctaBlobPulse 10s infinite alternate ease-in-out;
}

.cta-section::after {
    bottom: -80px; /* Ajustado ligeramente */
    left: -80px; /* Ajustado ligeramente */
    width: 280px; /* REDUCIDO: Círculos decorativos más pequeños */
    height: 280px; /* REDUCIDO: Círculos decorativos más pequeños */
    background: rgba(255, 255, 255, 0.1);
    animation: ctaBlobPulse 12s infinite alternate-reverse ease-in-out;
}

/* La animación @keyframes ctaBlobPulse queda igual, no hay necesidad de cambiarla si solo ajustamos tamaño y posición inicial */


.cta-section h2 {
    margin-bottom: 1.2rem; /* REDUCIDO: Menos espacio debajo del título */
    color: var(--accent);
    position: relative;
    z-index: 2;
    font-size: clamp(2rem, 3.5vw, 2.8rem); /* REDUCIDO: Título más pequeño */
    font-weight: 700;
    line-height: 1.2;
}

[data-theme="dark"] .cta-section h2 {
    color: var(--dark-accent);
}

.cta-section p {
    margin-bottom: 2.5rem; /* REDUCIDO: Menos espacio debajo del párrafo */
    color: rgba(255, 255, 255, 0.95);
    position: relative;
    z-index: 2;
    max-width: 650px; /* REDUCIDO: Párrafo más estrecho para centrar el enfoque */
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(1rem, 1.8vw, 1.15rem); /* REDUCIDO: Párrafo más pequeño */
    line-height: 1.7; /* Mantener buena legibilidad */
}

[data-theme="dark"] .cta-section p {
    color: var(--dark-text-light);
}


.cta-section .cta-button {
    background: var(--accent);
    color: var(--primary-dark);
    padding: 1rem 2.5rem; /* REDUCIDO: Botón un poco más pequeño */
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem; /* REDUCIDO: Texto del botón ligeramente más pequeño */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); /* Sombra inicial reducida */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem; /* Espacio para el icono si lo tiene */
}

.cta-section .cta-button:hover {
    background: var(--text-light);
    color: var(--primary);
    transform: translateY(-3px); /* Efecto de elevación ligeramente reducido */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25); /* Sombra al hover ligeramente reducida */
}

.cta-section .cta-button:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Estilos de botón para modo oscuro */
[data-theme="dark"] .cta-section .cta-button {
    background: var(--dark-primary-light);
    color: var(--dark-bg);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .cta-section .cta-button:hover {
    background: var(--dark-primary);
    color: var(--dark-text-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.25);
}

/* Footer */
footer {
    background: var(--primary-dark);
    color: var(--text-light);
    padding: 6rem 2rem 3rem;
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-column h3 {
    color: var(--text-light);
    margin-bottom: 1.8rem;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.footer-column h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent);
    border-radius: 3px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    padding: 0.2rem 0;
}

.footer-links a:hover {
    color: var(--accent);
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 1.2rem;
}

.social-links a {
    color: var(--text-light);
    font-size: 1.3rem;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    color: var(--accent);
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    margin-top: 5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes dash {
    to { stroke-dashoffset: 0; }
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.7; }
    70% { transform: translate(-50%, -50%) scale(1.3); opacity: 0; }
    100% { transform: translate(-50%, -50%) scale(0.8); opacity: 0; }
}

@keyframes truckMove {
    0% { left: 10%; top: 90%; }
    30% { left: 40%; top: 20%; }
    60% { left: 60%; top: 30%; }
    100% { left: 90%; top: 70%; }
}

/* Nueva animación para los "blobs" del CTA */
@keyframes ctaBlobPulse {
    0% { transform: scale(1); opacity: 0.15; }
    50% { transform: scale(1.05); opacity: 0.25; }
    100% { transform: scale(1); opacity: 0.15; }
}


.animate-fade {
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }

/* Menú móvil */
.mobile-menu {
    display: none; /* Oculto por defecto en desktop */
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary);
    transition: var(--transition);
}

.mobile-menu:hover {
    color: var(--primary-dark);
}

/* Estilos del Sidebar Móvil */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -100%; /* Inicialmente fuera de la pantalla */
    width: 80%; /* Ancho del sidebar */
    max-width: 300px; /* Ancho máximo para no ser demasiado grande en tablets */
    height: 100%;
    background-color: var(--card-bg); /* Fondo del sidebar */
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2); /* Sombra para destacarlo */
    z-index: 1001; /* Mayor que el header */
    transition: right 0.3s ease-in-out; /* Animación de deslizamiento */
    display: flex; /* Se define display flex aquí para su estructura interna */
    flex-direction: column;
    padding: 1.5rem;
}

.mobile-sidebar.active {
    right: 0; /* Desliza a la vista */
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--light-gray);
    margin-bottom: 1.5rem;
}

.logo-sidebar {
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.close-sidebar {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
}

.close-sidebar:hover {
    color: var(--primary);
}

.sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.sidebar-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 0.8rem 0;
    transition: var(--transition);
    border-bottom: 1px solid var(--light-gray); /* Separador entre enlaces */
}

.sidebar-links a:last-child {
    border-bottom: none; /* No hay borde en el último enlace */
}

.sidebar-links a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--light-gray);
}

.sidebar-cta {
    width: 100%; /* Botón ocupa todo el ancho */
    font-size: 1rem;
    padding: 0.8rem 1.5rem;
}

/* Overlay para cuando el sidebar está abierto */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Fondo semitransparente */
    z-index: 1000; /* Mayor que el contenido pero menor que el sidebar */
    opacity: 0;
    visibility: hidden; /* Oculto inicialmente */
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}


/* Responsive */
@media (max-width: 992px) {
    .steps-container::before {
        left: 60px;
    }

    .step {
        flex-direction: row !important;
        margin-right: auto !important;
        padding-right: 0 !important;
        padding-left: 0 !important;
        margin-left: 0 !important;
    }
}

@media (max-width: 768px) {
    /* MODIFICACIÓN: Ocultar elementos de navegación de escritorio */
    .desktop-only-nav {
        display: none;
    }

    /* MODIFICACIÓN: Mostrar icono de menú móvil */
    .mobile-menu {
        display: block;
    }
    /* El dark-mode-toggle principal se mantendrá visible, si deseas ocultarlo en móvil,
       necesitarías una clase adicional en el HTML para el de desktop
       y un dark-mode-toggle duplicado dentro del sidebar. Por ahora, asumimos que se queda visible en el header. */

    .hero {
        padding-top: 10rem;
    }

    .route-map {
        height: 300px;
    }
}

@media (max-width: 576px) {
    section {
        padding: 4rem 1.5rem;
    }

    .hero {
        padding: 8rem 1.5rem 4rem;
    }

    .feature-card,
    .stat-item {
        padding: 2rem 1.5rem;
    }

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

@media print {
    .cta-button,
    .mobile-menu,
    .dark-mode-toggle,
    .mobile-sidebar, /* Ocultar el sidebar al imprimir */
    .sidebar-overlay { /* Ocultar el overlay al imprimir */
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    a::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        font-weight: normal;
    }
}
