/* ========================================
   CSS VARIABLES - PALETA SUAVE CON DEGRADADO
   ======================================== */
:root {
    /* Colores principales */
    --primary: #2D8F9E;
    --primary-dark: #1A6B7A;
    --primary-light: #E6F3F5;
    --primary-gradient: linear-gradient(145deg, #2D8F9E 0%, #1A6B7A 50%, #0F4F5E 100%);
    --primary-gradient-soft: linear-gradient(145deg, #4AA3B2 0%, #2D8F9E 50%, #1A6B7A 100%);
    --primary-gradient-hover: linear-gradient(145deg, #1A6B7A 0%, #0F4F5E 50%, #0A3A47 100%);
    
    /* Colores de acento */
    --accent: #E8A87C;
    --accent-light: #F5D4C0;
    --accent-gradient: linear-gradient(145deg, #E8A87C 0%, #D4916A 100%);
    
    /* Fondos y neutrales */
    --bg-main: #F5F7FA;
    --bg-card: #FFFFFF;
    --bg-input: #F0F4F8;
    --bg-overlay: rgba(26, 107, 122, 0.12);
    
    /* Textos */
    --text-primary: #1A2A3A;
    --text-secondary: #4A5A6A;
    --text-muted: #8A9AAA;
    --text-light: #FFFFFF;
    
    /* Bordes y sombras */
    --border-color: #E2E8F0;
    --shadow: 0 20px 50px -12px rgba(26, 107, 122, 0.15);
    --shadow-hover: 0 30px 60px -12px rgba(26, 107, 122, 0.25);
    --shadow-glow: 0 8px 32px rgba(45, 143, 158, 0.2);
    
    /* Radios y transiciones */
    --radius: 20px;
    --radius-sm: 12px;
    --radius-lg: 30px;
    --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   DARK MODE
   ======================================== */
[data-theme="dark"] {
    --primary: #4AA3B2;
    --primary-dark: #2D8F9E;
    --primary-light: #1A3A42;
    --primary-gradient: linear-gradient(145deg, #4AA3B2 0%, #2D8F9E 50%, #1A6B7A 100%);
    --primary-gradient-soft: linear-gradient(145deg, #5AB3C2 0%, #4AA3B2 50%, #2D8F9E 100%);
    --primary-gradient-hover: linear-gradient(145deg, #2D8F9E 0%, #1A6B7A 50%, #0F4F5E 100%);
    
    --bg-main: #0D1518;
    --bg-card: #1A262D;
    --bg-input: #0D1518;
    --bg-overlay: rgba(74, 163, 178, 0.08);
    
    --text-primary: #E8EEF2;
    --text-secondary: #B0C4D0;
    --text-muted: #7A8A9A;
    
    --border-color: #2A3A42;
    --shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 30px 60px -12px rgba(45, 143, 158, 0.15);
    --shadow-glow: 0 8px 32px rgba(45, 143, 158, 0.1);
}

/* ========================================
   RESET & BASE
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg-main);
    color: var(--text-primary);
    min-height: 100vh;
    transition: background var(--transition), color var(--transition);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   NAVBAR - MEJORADA PARA MÓVIL
   ======================================== */
.navbar {
    background: var(--bg-card);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(26, 107, 122, 0.06);
    border-bottom: 2px solid var(--primary-light);
    transition: background var(--transition);
}

[data-theme="dark"] .navbar {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .navbar .container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.logo-img {
    height: 180px;
    max-height: 180px;
    width: auto;
}

@media (max-width: 768px) {
    .logo-img {
        height: 40px;
        max-height: 40px;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 32px;
        max-height: 32px;
    }
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 1px;
    transition: color var(--transition);
    white-space: nowrap;
}

@media (max-width: 768px) {
    .logo-text {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1rem;
    }
}

.logo-text span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-badge {
    background: var(--primary-gradient);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 50px;
    letter-spacing: 0.5px;
    margin-left: 4px;
    -webkit-text-fill-color: #fff;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .logo-badge {
        font-size: 0.5rem;
        padding: 1px 6px;
    }
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 13px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .nav-links {
        justify-content: center;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .nav-links {
        gap: 6px;
        justify-content: center;
        width: 100%;
    }
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.9rem;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .nav-links a {
        font-size: 0.75rem;
        padding: 4px 8px;
    }
}

.nav-links a:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.btn-login-nav {
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 6px 20px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

@media (max-width: 480px) {
    .btn-login-nav {
        padding: 4px 12px;
        font-size: 0.7rem;
    }
}

.btn-login-nav:hover {
    background: var(--primary-gradient);
    color: #fff !important;
    box-shadow: var(--shadow-glow);
}

.btn-register-nav {
    background: var(--primary-gradient);
    color: #fff;
    padding: 6px 20px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

@media (max-width: 480px) {
    .btn-register-nav {
        padding: 4px 12px;
        font-size: 0.7rem;
    }
}

.btn-register-nav:hover {
    transform: translateY(-2px);
    background: var(--primary-gradient-hover);
    box-shadow: var(--shadow-glow);
}

.theme-toggle {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 4px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all var(--transition);
    font-size: 0.75rem;
    color: var(--text-secondary);
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .theme-toggle {
        padding: 3px 8px;
        font-size: 0.65rem;
    }
}

.theme-toggle:hover {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--bg-overlay);
}

.theme-toggle .toggle-track {
    width: 30px;
    height: 18px;
    background: var(--border-color);
    border-radius: 50px;
    position: relative;
    transition: background var(--transition);
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .theme-toggle .toggle-track {
        width: 24px;
        height: 14px;
    }
}

.theme-toggle .toggle-thumb {
    width: 14px;
    height: 14px;
    background: var(--primary-gradient);
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: all var(--transition);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

@media (max-width: 480px) {
    .theme-toggle .toggle-thumb {
        width: 10px;
        height: 10px;
        top: 2px;
        left: 2px;
    }
}

[data-theme="dark"] .theme-toggle .toggle-thumb {
    left: 14px;
}

@media (max-width: 480px) {
    [data-theme="dark"] .theme-toggle .toggle-thumb {
        left: 12px;
    }
}

[data-theme="dark"] .theme-toggle .toggle-track {
    background: var(--primary);
}

/* ========================================
   HERO - MEJORADA PARA MÓVIL
   ======================================== */
.hero {
    background: var(--primary-gradient);
    color: var(--text-light);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin: 30px 20px 50px 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

@media (max-width: 768px) {
    .hero {
        padding: 50px 0;
        margin: 20px 15px 35px 15px;
        border-radius: var(--radius);
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 40px 0;
        margin: 15px 10px 25px 10px;
        border-radius: var(--radius-sm);
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -30%;
    width: 80%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 50%, rgba(255,255,255,0.06) 0%, transparent 60%);
    animation: heroGlow 12s ease-in-out infinite alternate;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -40%;
    right: -20%;
    width: 60%;
    height: 150%;
    background: radial-gradient(ellipse at 70% 60%, rgba(74, 163, 178, 0.15) 0%, transparent 60%);
    animation: heroGlow 15s ease-in-out infinite alternate-reverse;
}

@keyframes heroGlow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(5%, 5%) scale(1.1); }
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 0 4px 30px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }
}

.hero h1 span {
    color: #8FD9E0;
}

.hero .hero-subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    max-width: 700px;
    margin: 0 auto 25px;
    opacity: 0.92;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .hero .hero-subtitle {
        font-size: 1rem;
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .hero .hero-subtitle {
        font-size: 0.85rem;
        padding: 0 10px;
    }
}

.hero-stats-mini {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .hero-stats-mini {
        gap: 12px;
        flex-direction: column;
        align-items: center;
    }
}

.hero-stats-mini .stat-badge {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-stats-mini .stat-badge strong {
    font-weight: 700;
    color: #8FD9E0;
}
.back-home-container {
    margin-top: 25px;
    text-align: center;
    border-top: 1px solid var(--border-color, #e5e7eb);
    padding-top: 20px;
}

.btn-back-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 25px;
    background: var(--bg-secondary, #f3f4f6);
    color: var(--text-primary, #1f2937);
    border: 2px solid var(--border-color, #e5e7eb);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.btn-back-home:hover {
    background: var(--primary-color, #2563eb);
    color: white;
    border-color: var(--primary-color, #2563eb);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-back-home i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.btn-back-home:hover i {
    transform: translateX(-3px);
}
.btn-primary {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-dark);
    padding: 16px 45px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .btn-primary {
        padding: 12px 28px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .btn-primary {
        padding: 10px 20px;
        font-size: 0.8rem;
        width: 90%;
        max-width: 280px;
    }
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    background: #ffffff;
}

.btn-primary i {
    margin-right: 8px;
}

/* ========================================
   SECCIÓN INSPIRACIONAL
   ======================================== */
.inspirational-section {
    padding: 60px 0 0 0;
    background: var(--bg-main);
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .inspirational-section {
        padding: 40px 0 0 0;
    }
}

.inspirational-section .section-title {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .inspirational-section .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .inspirational-section .section-title {
        font-size: 1.6rem;
    }
}

.inspirational-section .section-title span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.inspirational-section .section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-weight: 400;
}

@media (max-width: 768px) {
    .inspirational-section .section-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .inspirational-section .section-subtitle {
        font-size: 0.85rem;
        margin-bottom: 20px;
        padding: 0 10px;
    }
}

/* ========================================
   CARRUSEL - IMÁGENES COMPLETAMENTE RESPONSIVAS
   ======================================== */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 950px;
    overflow: hidden;
    border-radius: 0;
}

@media (max-width: 1400px) {
    .carousel-slides {
        height: 850px;
    }
}

@media (max-width: 1200px) {
    .carousel-slides {
        height: 750px;
    }
}

@media (max-width: 992px) {
    .carousel-slides {
        height: 650px;
    }
}

@media (max-width: 768px) {
    .carousel-slides {
        height: 550px;
    }
}

@media (max-width: 480px) {
    .carousel-slides {
        height: 450px;
    }
}

@media (max-width: 380px) {
    .carousel-slides {
        height: 380px;
    }
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
    transform: scale(1.05);
    border-radius: 0;
    overflow: hidden;
}

.carousel-slide.active {
    opacity: 1;
    transform: scale(1);
}

/* ========================================
   IMAGEN DEL SLIDE - TOTALMENTE RESPONSIVA
   ======================================== */
.slide-image {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background-color: var(--bg-main);
}

/* Contenedor de la imagen */
.slide-image picture,
.slide-image img {
    width: 100%;
    height: 100%;
    display: block;
}

/* Estilo principal de la imagen */
.slide-image picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

/* Zoom suave en la imagen activa */
.carousel-slide.active .slide-image picture img {
    animation: imageZoom 12s ease-in-out infinite alternate;
}

@keyframes imageZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); }
}

/* Overlay para el texto */
.slide-image .slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, 
        rgba(10, 20, 30, 0.45) 0%,
        rgba(26, 107, 122, 0.15) 50%,
        rgba(10, 20, 30, 0.30) 100%
    );
    z-index: 1;
    border-radius: 0;
    pointer-events: none;
}

[data-theme="dark"] .slide-image .slide-overlay {
    background: linear-gradient(145deg, 
        rgba(0, 0, 0, 0.6) 0%,
        rgba(26, 107, 122, 0.25) 50%,
        rgba(0, 0, 0, 0.5) 100%
    );
}

/* ========================================
   AJUSTES DE IMAGEN POR TAMAÑO DE PANTALLA
   ======================================== */

/* Tablets grandes y escritorio pequeño */
@media (max-width: 1200px) {
    .slide-image picture img {
        object-fit: cover;
        object-position: center;
    }
}

/* Tablets */
@media (max-width: 992px) {
    .slide-image picture img {
        object-fit: cover;
        object-position: center 30%; /* Ajusta el enfoque hacia arriba */
    }
}

/* Tablets pequeñas y móviles grandes */
@media (max-width: 768px) {
    .slide-image picture img {
        object-fit: cover;
        object-position: center 25%;
    }
}

/* Móviles */
@media (max-width: 480px) {
    .slide-image picture img {
        object-fit: cover;
        object-position: center 20%;
    }
    
    /* Si quieres ver la imagen completa sin cortes en móvil */
    .slide-image picture img {
        object-fit: contain;
        background-color: var(--bg-main);
    }
}

/* Móviles muy pequeños */
@media (max-width: 380px) {
    .slide-image picture img {
        object-fit: contain;
        background-color: var(--bg-main);
    }
}

/* ========================================
   CONTENIDO DEL SLIDE - RESPONSIVE
   ======================================== */
.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    color: #ffffff;
    padding: 50px 60px;
    max-width: 900px;
    width: 90%;
    animation: slideInContent 0.8s ease-out;
}

@media (max-width: 1200px) {
    .slide-content {
        padding: 40px 50px;
        max-width: 800px;
    }
}

@media (max-width: 992px) {
    .slide-content {
        padding: 30px 40px;
        max-width: 700px;
    }
}

@media (max-width: 768px) {
    .slide-content {
        padding: 25px 25px;
        max-width: 100%;
        width: 95%;
    }
}

@media (max-width: 480px) {
    .slide-content {
        padding: 15px 18px;
        width: 98%;
    }
}

@keyframes slideInContent {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.slide-content .slide-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
    display: block;
    filter: drop-shadow(0 4px 20px rgba(0,0,0,0.2));
}

@media (max-width: 480px) {
    .slide-content .slide-icon {
        font-size: 2rem;
        margin-bottom: 10px;
    }
}

.slide-content h1 {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    letter-spacing: 3px;
}

@media (max-width: 1400px) {
    .slide-content h1 {
        font-size: 3.8rem;
    }
}

@media (max-width: 1200px) {
    .slide-content h1 {
        font-size: 3.4rem;
    }
}

@media (max-width: 992px) {
    .slide-content h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .slide-content h1 {
        font-size: 2.2rem;
        letter-spacing: 1px;
    }
}

@media (max-width: 480px) {
    .slide-content h1 {
        font-size: 1.8rem;
        margin-bottom: 5px;
    }
}

@media (max-width: 380px) {
    .slide-content h1 {
        font-size: 1.4rem;
    }
}

.slide-content .sub-text {
    font-size: 1.8rem;
    font-weight: 300;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
    margin-bottom: 20px;
}

@media (max-width: 1200px) {
    .slide-content .sub-text {
        font-size: 1.4rem;
    }
}

@media (max-width: 992px) {
    .slide-content .sub-text {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .slide-content .sub-text {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .slide-content .sub-text {
        font-size: 0.85rem;
        margin-bottom: 10px;
    }
}

@media (max-width: 380px) {
    .slide-content .sub-text {
        font-size: 0.7rem;
    }
}

.slide-content .divider {
    width: 80px;
    height: 4px;
    background: var(--accent-gradient);
    margin: 15px auto;
    border-radius: 2px;
    box-shadow: 0 2px 10px rgba(232, 168, 124, 0.3);
}

@media (max-width: 768px) {
    .slide-content .divider {
        width: 60px;
        height: 3px;
        margin: 10px auto;
    }
}

@media (max-width: 480px) {
    .slide-content .divider {
        width: 40px;
        height: 2px;
        margin: 8px auto;
    }
}

.slide-content h2 {
    font-size: 3.2rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.25);
    margin: 15px 0;
    letter-spacing: 1px;
}

@media (max-width: 1200px) {
    .slide-content h2 {
        font-size: 2.4rem;
    }
}

@media (max-width: 992px) {
    .slide-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .slide-content h2 {
        font-size: 1.6rem;
        margin: 10px 0;
    }
}

@media (max-width: 480px) {
    .slide-content h2 {
        font-size: 1.3rem;
        margin: 8px 0;
    }
}

@media (max-width: 380px) {
    .slide-content h2 {
        font-size: 1rem;
    }
}

.slide-content .subtitle {
    font-size: 1.6rem;
    font-weight: 300;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    margin-bottom: 25px;
}

@media (max-width: 768px) {
    .slide-content .subtitle {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .slide-content .subtitle {
        font-size: 0.8rem;
        margin-bottom: 12px;
    }
}

@media (max-width: 380px) {
    .slide-content .subtitle {
        font-size: 0.7rem;
    }
}

.slide-content .features-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 30px;
}

@media (max-width: 1200px) {
    .slide-content .features-list {
        grid-template-columns: 1fr 1fr;
        gap: 8px 20px;
    }
}

@media (max-width: 992px) {
    .slide-content .features-list {
        grid-template-columns: 1fr;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .slide-content .features-list {
        gap: 3px;
        margin: 10px 0;
    }
}

.slide-content .features-list li {
    font-size: 1.3rem;
    font-weight: 500;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.25);
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

@media (max-width: 1200px) {
    .slide-content .features-list li {
        font-size: 1.1rem;
    }
}

@media (max-width: 992px) {
    .slide-content .features-list li {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .slide-content .features-list li {
        font-size: 0.9rem;
        padding: 5px 0;
    }
}

@media (max-width: 480px) {
    .slide-content .features-list li {
        font-size: 0.75rem;
        padding: 4px 0;
    }
}

@media (max-width: 380px) {
    .slide-content .features-list li {
        font-size: 0.65rem;
    }
}

.slide-content .features-list li::before {
    content: '◆';
    color: #8FD9E0;
    margin-right: 10px;
    font-size: 0.8rem;
}

@media (max-width: 480px) {
    .slide-content .features-list li::before {
        font-size: 0.6rem;
        margin-right: 6px;
    }
}

.slide-content .final-text {
    font-size: 1.5rem;
    font-weight: 500;
    color: #ffffff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
    margin: 20px 0 10px;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .slide-content .final-text {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .slide-content .final-text {
        font-size: 0.8rem;
        margin: 10px 0 5px;
    }
}

@media (max-width: 380px) {
    .slide-content .final-text {
        font-size: 0.7rem;
    }
}

.slide-content .final-text strong {
    color: #8FD9E0;
}

.slide-content .cta-text {
    font-size: 1.4rem;
    font-weight: 600;
    color: #8FD9E0;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
    margin-top: 15px;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .slide-content .cta-text {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .slide-content .cta-text {
        font-size: 0.8rem;
        margin-top: 8px;
    }
}

@media (max-width: 380px) {
    .slide-content .cta-text {
        font-size: 0.7rem;
    }
}

.slide-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 12px 35px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: 2px;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .slide-badge {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .slide-badge {
        padding: 8px 18px;
        font-size: 0.75rem;
    }
}

/* ========================================
   BOTONES DE NAVEGACIÓN - RESPONSIVE
   ======================================== */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    color: var(--primary);
    border: none;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

@media (max-width: 992px) {
    .carousel-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .carousel-btn {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
}

.carousel-btn:hover {
    background: var(--primary-gradient-soft);
    color: #fff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 12px 40px rgba(45, 143, 158, 0.3);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.prev-btn {
    left: 25px;
}

@media (max-width: 992px) {
    .prev-btn {
        left: 15px;
    }
}

@media (max-width: 768px) {
    .prev-btn {
        left: 10px;
    }
}

@media (max-width: 480px) {
    .prev-btn {
        left: 6px;
    }
}

.next-btn {
    right: 25px;
}

@media (max-width: 992px) {
    .next-btn {
        right: 15px;
    }
}

@media (max-width: 768px) {
    .next-btn {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .next-btn {
        right: 6px;
    }
}

/* ========================================
   INDICADORES - RESPONSIVE
   ======================================== */
.carousel-indicators {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 14px;
    z-index: 10;
}

@media (max-width: 768px) {
    .carousel-indicators {
        bottom: 25px;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .carousel-indicators {
        bottom: 15px;
        gap: 8px;
    }
}

.indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

@media (max-width: 480px) {
    .indicator {
        width: 10px;
        height: 10px;
        border-width: 1.5px;
    }
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.indicator.active {
    background: #ffffff;
    border-color: var(--primary);
    width: 45px;
    border-radius: 12px;
}

@media (max-width: 480px) {
    .indicator.active {
        width: 30px;
    }
}

/* ========================================
   SECCIONES GENERALES
   ======================================== */
.section {
    padding: 70px 0;
}

@media (max-width: 768px) {
    .section {
        padding: 40px 0;
    }
}

.section-title {
    text-align: center;
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
    transition: color var(--transition);
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.6rem;
    }
}

.section-title span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title::after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background: var(--primary-gradient);
    margin: 12px auto 0;
    border-radius: 2px;
}

@media (max-width: 768px) {
    .section-title::after {
        width: 50px;
        height: 3px;
    }
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-weight: 400;
}

@media (max-width: 768px) {
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .section-subtitle {
        font-size: 0.85rem;
        margin-bottom: 20px;
        padding: 0 10px;
    }
}

/* ========================================
   GRID DE TARJETAS
   ======================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .features-grid {
        gap: 15px;
        padding: 0 5px;
    }
}

.feature-card {
    background: var(--bg-card);
    padding: 30px 22px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

@media (max-width: 480px) {
    .feature-card {
        padding: 20px 15px;
        border-radius: var(--radius-sm);
    }
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.feature-card .icon {
    font-size: 2.8rem;
    margin-bottom: 12px;
    display: block;
}

@media (max-width: 480px) {
    .feature-card .icon {
        font-size: 2.2rem;
        margin-bottom: 8px;
    }
}

.feature-card h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 8px;
    transition: color var(--transition);
}

@media (max-width: 480px) {
    .feature-card h3 {
        font-size: 1rem;
    }
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color var(--transition);
}

@media (max-width: 480px) {
    .feature-card p {
        font-size: 0.8rem;
    }
}

/* ========================================
   ESTADÍSTICAS
   ======================================== */
.stats-section {
    background: var(--primary-gradient);
    color: var(--text-light);
    padding: 70px 0;
    margin: 40px 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

@media (max-width: 768px) {
    .stats-section {
        padding: 50px 0;
        margin: 30px 15px;
        border-radius: var(--radius);
    }
}

@media (max-width: 480px) {
    .stats-section {
        padding: 40px 0;
        margin: 20px 10px;
        border-radius: var(--radius-sm);
    }
}

.stats-section .section-title {
    color: #fff;
}

.stats-section .section-title::after {
    background: var(--accent-gradient);
}

.stats-section .section-subtitle {
    color: rgba(255, 255, 255, 0.85);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    text-align: center;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 0 5px;
    }
}

.stat-item {
    padding: 20px 15px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease;
}

@media (max-width: 480px) {
    .stat-item {
        padding: 12px 10px;
        border-radius: var(--radius-sm);
    }
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.02);
}

.stat-item .number {
    font-size: 2.8rem;
    font-weight: 800;
    color: #8FD9E0;
    margin-bottom: 4px;
}

@media (max-width: 768px) {
    .stat-item .number {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .stat-item .number {
        font-size: 1.8rem;
    }
}

.stat-item .label {
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.95;
}

@media (max-width: 480px) {
    .stat-item .label {
        font-size: 0.8rem;
    }
}

.stat-item .stat-desc {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: 4px;
}

/* ========================================
   CTA FINAL
   ======================================== */
.cta-final {
    background: var(--primary-gradient);
    padding: 70px 0;
    text-align: center;
    color: var(--text-light);
    margin: 0 20px 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

@media (max-width: 768px) {
    .cta-final {
        padding: 50px 0;
        margin: 0 15px 30px;
        border-radius: var(--radius);
    }
}

@media (max-width: 480px) {
    .cta-final {
        padding: 40px 0;
        margin: 0 10px 20px;
        border-radius: var(--radius-sm);
    }
}

.cta-final h2 {
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 12px;
}

@media (max-width: 768px) {
    .cta-final h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .cta-final h2 {
        font-size: 1.5rem;
    }
}

.cta-final h2 span {
    color: #8FD9E0;
}

.cta-final p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 25px;
    opacity: 0.9;
}

@media (max-width: 480px) {
    .cta-final p {
        font-size: 0.9rem;
        padding: 0 15px;
    }
}

.btn-large {
    padding: 16px 45px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-dark);
    border: none;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .btn-large {
        padding: 14px 30px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .btn-large {
        padding: 12px 22px;
        font-size: 0.8rem;
        width: 90%;
        max-width: 280px;
    }
}

.btn-large:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    background: #ffffff;
}

.btn-large i {
    margin-right: 8px;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--bg-card);
    color: var(--text-secondary);
    padding: 40px 0;
    text-align: center;
    margin: 0 20px 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: all var(--transition);
}

@media (max-width: 768px) {
    .footer {
        margin: 0 15px 15px;
        padding: 30px 15px;
        border-radius: var(--radius);
    }
}

@media (max-width: 480px) {
    .footer {
        margin: 0 10px 10px;
        padding: 25px 12px;
        border-radius: var(--radius-sm);
    }
}

.footer .logo {
    justify-content: center;
    margin-bottom: 12px;
}

.footer .logo-text {
    font-size: 1.3rem;
}

@media (max-width: 480px) {
    .footer .logo-text {
        font-size: 1.1rem;
    }
}

.footer .social-links {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin: 15px 0;
    flex-wrap: wrap;
}

@media (max-width: 480px) {
    .footer .social-links {
        gap: 12px;
    }
}

.footer .social-links a {
    color: var(--text-secondary);
    font-size: 1.4rem;
    transition: all 0.3s ease;
    display: inline-block;
}

@media (max-width: 480px) {
    .footer .social-links a {
        font-size: 1.2rem;
    }
}

.footer .social-links a:hover {
    color: var(--primary);
    transform: translateY(-4px) scale(1.1);
}

.footer p {
    opacity: 0.7;
    font-size: 0.85rem;
}

@media (max-width: 480px) {
    .footer p {
        font-size: 0.75rem;
    }
}

/* ========================================
   UTILITY - TOUCH FRIENDLY
   ======================================== */
@media (hover: none) {
    .feature-card:hover {
        transform: none;
    }
    
    .feature-card:hover::before {
        transform: scaleX(0);
    }
    
    .feature-card:active {
        transform: scale(0.98);
    }
    
    .btn-primary:hover {
        transform: none;
    }
    
    .btn-primary:active {
        transform: scale(0.97);
    }
    
    .btn-large:hover {
        transform: none;
    }
    
    .btn-large:active {
        transform: scale(0.97);
    }
    
    .carousel-btn:hover {
        transform: translateY(-50%) scale(1);
    }
    
    .carousel-btn:active {
        transform: translateY(-50%) scale(0.92);
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    .navbar,
    .carousel-btn,
    .carousel-indicators,
    .theme-toggle {
        display: none !important;
    }
    
    .carousel-slide {
        opacity: 1 !important;
        position: relative !important;
        transform: none !important;
        height: auto !important;
        min-height: 300px;
    }
    
    .carousel-slides {
        height: auto !important;
    }
    
    .carousel-slide:not(:first-child) {
        display: none !important;
    }
    
    .slide-image picture img {
        animation: none !important;
    }
}

