/* Variables CSS para Temas (Claro/Oscuro) */
:root {
    /* Tema Claro (Default) */
    --bg-color: #f0f2f5;
    /* Patrón Doodles Variados (Claro) - Formas más grandes y variadas */
    --bg-pattern: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23000000' fill-opacity='0.03'%3E%3Cpath d='M10 10h5v5h-5z'/%3E%3Ccircle cx='30' cy='30' r='3.6'/%3E%3Cpath d='M50 10l5 10h-10z'/%3E%3Cpath d='M70 30h10v2.5h-3.75v3.75h-2.5v-3.75h-3.75z'/%3E%3Cpath d='M90 10l5 5l-5 5l-5-5z'/%3E%3Cpath d='M10 50h10v2.5h-10z'/%3E%3Ccircle cx='30' cy='70' r='2.4'/%3E%3Cpath d='M50 50h5v5h-5z'/%3E%3Cpath d='M70 70l5 10h-10z'/%3E%3Cpath d='M90 50h2.5v10h-2.5z'/%3E%3Cpath d='M30 10l3 5l-3 5l-3-5z'/%3E%3Cpath d='M50 90l2 6h6l-5 4l2 6l-5-4l-5 4l2-6l-5-4h6z'/%3E%3Cpath d='M10 70h4v-4h2v4h4v2h-4v4h-2v-4h-4z'/%3E%3Cpath d='M70 10a5 5 0 1 0 10 0a5 5 0 1 0 -10 0m2 0a3 3 0 1 1 6 0a3 3 0 1 1 -6 0'/%3E%3Cpath d='M90 90l-5-5l-5 5l-5-5' fill='none' stroke='%23000000' stroke-width='1.2' stroke-opacity='0.03'/%3E%3Cpath d='M20 90l5-5l5 5' fill='none' stroke='%23000000' stroke-width='1.2' stroke-opacity='0.03'/%3E%3C/g%3E%3C/svg%3E"), 
                  radial-gradient(circle at 15% 50%, rgba(76, 29, 149, 0.08), transparent 25%), 
                  radial-gradient(circle at 85% 30%, rgba(0, 168, 204, 0.08), transparent 25%);
    --text-color: #333333;
    
    /* Liquid Glass Variables (Claro - Estilo Clear iOS) */
    /* Transparencia casi total, blur mínimo para nitidez, bordes brillantes */
    --glass-bg: rgba(255, 255, 255, 0.02); 
    --glass-border: 1px solid rgba(255, 255, 255, 0.25);
    --glass-shadow: 
        0 4px 30px rgba(0, 0, 0, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.4), /* Borde interior nítido */
        inset 0 0 20px rgba(255, 255, 255, 0.05); /* Resplandor sutil */
    --glass-blur: blur(3px); /* Blur muy bajo para efecto "Clear" */
    
    --primary-color: #0056b3;
    --secondary-color: #00a8cc;
    --accent-color: #ff6b6b;
    --nav-link-color: #333;
    --nav-link-active: #0056b3;
    --input-bg: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] {
    /* Tema Oscuro */
    --bg-color: #0f0f12;
    /* Patrón Doodles Variados (Oscuro) - Formas más grandes y variadas */
    --bg-pattern: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M10 10h5v5h-5z'/%3E%3Ccircle cx='30' cy='30' r='3.6'/%3E%3Cpath d='M50 10l5 10h-10z'/%3E%3Cpath d='M70 30h10v2.5h-3.75v3.75h-2.5v-3.75h-3.75z'/%3E%3Cpath d='M90 10l5 5l-5 5l-5-5z'/%3E%3Cpath d='M10 50h10v2.5h-10z'/%3E%3Ccircle cx='30' cy='70' r='2.4'/%3E%3Cpath d='M50 50h5v5h-5z'/%3E%3Cpath d='M70 70l5 10h-10z'/%3E%3Cpath d='M90 50h2.5v10h-2.5z'/%3E%3Cpath d='M30 10l3 5l-3 5l-3-5z'/%3E%3Cpath d='M50 90l2 6h6l-5 4l2 6l-5-4l-5 4l2-6l-5-4h6z'/%3E%3Cpath d='M10 70h4v-4h2v4h4v2h-4v4h-2v-4h-4z'/%3E%3Cpath d='M70 10a5 5 0 1 0 10 0a5 5 0 1 0 -10 0m2 0a3 3 0 1 1 6 0a3 3 0 1 1 -6 0'/%3E%3Cpath d='M90 90l-5-5l-5 5l-5-5' fill='none' stroke='%23ffffff' stroke-width='1.2' stroke-opacity='0.05'/%3E%3Cpath d='M20 90l5-5l5 5' fill='none' stroke='%23ffffff' stroke-width='1.2' stroke-opacity='0.05'/%3E%3C/g%3E%3C/svg%3E"), 
                  radial-gradient(circle at 15% 50%, rgba(76, 29, 149, 0.15), transparent 30%), 
                  radial-gradient(circle at 85% 30%, rgba(0, 168, 204, 0.15), transparent 30%);
    
    --text-color: #e0e0e0;
    
    /* Liquid Glass Variables (Oscuro - Estilo Clear iOS) */
    --glass-bg: rgba(255, 255, 255, 0.02); /* Casi invisible */
    --glass-border: 1px solid rgba(255, 255, 255, 0.15);
    --glass-shadow: 
        0 4px 30px rgba(0, 0, 0, 0.5),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 0 20px rgba(255, 255, 255, 0.02);
    --glass-blur: blur(3px);
    
    --primary-color: #4dabf7;
    --secondary-color: #22b8cf;
    --accent-color: #ff8787;
    --nav-link-color: #ddd;
    --nav-link-active: #4dabf7;
    --input-bg: rgba(255, 255, 255, 0.05);
}

/* Reset y Estilos Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    background-image: var(--bg-pattern);
    background-attachment: fixed; /* Efecto parallax sutil */
    color: var(--text-color);
    overflow-x: hidden;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-fluid {
    width: 100%;
    padding: 0 40px; /* Más espacio lateral */
    margin: 0 auto;
}

/* Mixin para Liquid Glass (aplicado via clases) */
.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 16px;
}

/* Header con efecto Glassmorphism */
.glass-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--glass-bg); /* Usando variable glass */
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: var(--glass-border);
    padding: 0.8rem 0; /* Un poco menos de padding vertical */
    box-shadow: var(--glass-shadow);
    transition: transform 0.3s ease-in-out, background-color 0.4s ease, backdrop-filter 0.4s ease;
}

/* Clase para ocultar el header al hacer scroll (activada por JS) */
.header-hidden {
    transform: translateY(-100%);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 50px;
    width: auto;
}

.logo-text-fallback {
    font-size: 2rem;
    color: var(--primary-color);
    display: none; /* Se muestra si falla la imagen */
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.brand-slogan {
    font-size: 0.85rem;
    color: var(--text-color);
    opacity: 0.8;
    font-weight: 300;
}

/* Controles (Idioma y Tema) */
.controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn-icon {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.btn-icon:hover {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 0 15px var(--primary-color);
}

/* Ajuste específico para el botón de idioma (Pill shape para texto + bandera) */
#lang-toggle {
    width: auto;
    min-width: 70px; /* Un poco más ancho para acomodar la imagen */
    padding: 0 12px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-text {
    display: flex;
    align-items: center;
    gap: 8px; /* Separación entre texto e imagen */
}

.lang-flag {
    width: 20px;
    height: auto;
    object-fit: cover;
    border-radius: 2px;
}

/* Animación Sol/Luna */
.theme-btn {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.theme-btn:hover {
    background: var(--secondary-color);
    color: #fff;
    box-shadow: 0 0 15px var(--secondary-color);
}

.sun-moon-container {
    position: relative;
    width: 24px;
    height: 24px;
}

.sun-icon, .moon-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55), opacity 0.5s ease;
    font-size: 1.2rem;
}

/* Estado por defecto (Sol visible, Luna oculta) */
.moon-icon {
    opacity: 0;
    transform: translate(-50%, 50%) rotate(90deg);
}

/* Estado Oscuro (Luna visible, Sol oculto) */
[data-theme="dark"] .sun-icon {
    opacity: 0;
    transform: translate(-50%, 150%) rotate(-90deg);
}

[data-theme="dark"] .moon-icon {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0);
}

/* Navegación */
.main-nav {
    /* Integrada en el header, sin estilos de bloque separados */
    margin: 0 20px;
}

.nav-list {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--nav-link-color);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--nav-link-active);
}

@media (max-width: 992px) {
    .header-content {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding-top: 10px;
    }
    
    /* Fila superior: Logo y Controles */
    .logo-container {
        width: 100%;
        display: flex;
        justify-content: space-between; /* Logo izq, Controles der */
        align-items: center;
        margin-bottom: 0;
    }

    .controls {
        /* Reset de posición absoluta */
        position: static; 
        margin-left: auto; /* Empujar a la derecha si es necesario */
    }

    .main-nav {
        width: 100%;
        margin: 5px 0 0 0;
        overflow-x: auto; /* Permitir scroll horizontal si no cabe */
        white-space: nowrap;
        padding-bottom: 5px; /* Espacio para scrollbar si aparece */
    }
    
    .nav-list {
        justify-content: center;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .logo-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .controls {
        width: 100%;
        justify-content: center;
    }
    
    .nav-list {
        gap: 15px;
        font-size: 0.9rem;
    }
}

/* Hero Section */
.hero {
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-card {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Botones Hermosos Liquid Glass */
.btn {
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 10px;
    display: inline-block; /* Asegurar comportamiento de bloque en línea */
    
    /* Base Glass Styles para botones */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    /* Gradiente semitransparente */
    background: linear-gradient(135deg, rgba(0, 86, 179, 0.6), rgba(0, 168, 204, 0.6));
    color: white;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05); /* Muy transparente */
    color: var(--text-color);
    border: 1px solid var(--primary-color);
}

.btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.8); /* Borde brilla al hover */
}

.btn-primary:hover {
    background: linear-gradient(135deg, rgba(0, 86, 179, 0.95), rgba(0, 168, 204, 0.95));
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn:active {
    transform: translateY(-1px);
}

/* Ajuste responsive para botones del Hero */
@media (max-width: 600px) {
    .cta-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px; /* Espacio vertical entre botones */
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px; /* Ancho máximo para que no se vean gigantes */
        margin: 0; /* Reset de margen lateral */
    }
}

/* Estilos Generales de Secciones */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--primary-color);
}

.bg-alt {
    background-color: rgba(0,0,0,0.03);
}

/* Grids */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.align-center {
    align-items: center;
}

/* Cards Liquid Glass - Refinado estilo Clear iOS */
.card {
    background-color: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 24px;
    padding: 30px;
    
    /* Efecto Spotlight: Solo visible en hover */
    background-image: none;
    
    /* Fixes para evitar artefactos visuales (líneas extrañas) */
    background-clip: padding-box; /* El fondo NO se pinta bajo el borde para evitar sangrado */
    transform: translateZ(0);
    -webkit-font-smoothing: subpixel-antialiased;
}

.card:hover {
    /* 1. Fondo Base */
    /* 2. Borde Brillante (Suavizado) */
    background-image: 
        linear-gradient(var(--glass-bg), var(--glass-bg)),
        radial-gradient(
            80px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
            rgba(255, 255, 255, 0.5), 
            rgba(255, 255, 255, 0.1) 50%,
            transparent 100%
        );
        
    background-origin: padding-box, border-box;
    background-clip: padding-box, border-box;
    
    border-color: transparent; /* Borde físico transparente para dejar ver el gradiente */
    
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.25);
    transform: translateY(-5px);
}

/* Carousel Testimonios */
.carousel-wrapper {
    position: relative;
    padding: 0 50px; /* Espacio para botones */
}

.carousel-container {
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease-in-out;
    padding: 20px 0; /* Espacio para sombras */
    will-change: transform; /* Optimización de rendimiento */
}

.testimonial-card {
    /* 4 items visibles: 100% / 4 = 25%. Restamos el gap */
    flex: 0 0 calc(25% - 15px); 
    min-width: 250px; 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    
    /* Estilos EXACTOS de .card */
    background-color: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 24px;
    padding: 30px;
    
    /* Efecto Spotlight: Solo visible en hover */
    background-image: none;
    
    /* Fixes de renderizado */
    background-clip: padding-box; 
    transform: translateZ(0);
    -webkit-font-smoothing: subpixel-antialiased;
    
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    /* 1. Fondo Base */
    /* 2. Borde Brillante (Suavizado) */
    background-image: 
        linear-gradient(var(--glass-bg), var(--glass-bg)),
        radial-gradient(
            80px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
            rgba(255, 255, 255, 0.5), 
            rgba(255, 255, 255, 0.1) 50%,
            transparent 100%
        );
        
    background-origin: padding-box, border-box;
    background-clip: padding-box, border-box;
    
    border-color: transparent;

    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.25); 
    transform: translateY(-5px);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%); /* Quitamos translateZ para simplificar */
    background: rgba(255, 255, 255, 0.1); /* Fondo sólido simple en lugar de variable glass */
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 20; /* Z-index más alto */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s ease, color 0.3s ease; /* Solo transiciones de color */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.carousel-btn:hover {
    background: var(--primary-color);
    color: white;
    /* Eliminado transform scale y translateY repetido para evitar repaints */
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.prev-btn {
    left: 0;
}

.next-btn {
    right: 0;
}

/* Estrellas */
.stars {
    color: #ffc107; /* Color dorado */
    margin-bottom: 10px;
    font-size: 0.9rem;
}

/* Ajuste responsive para el carrusel */
@media (max-width: 1400px) {
    .testimonial-card {
        flex: 0 0 calc(33.33% - 14px); /* 3 items */
    }
}

@media (max-width: 992px) {
    .testimonial-card {
        flex: 0 0 calc(50% - 10px); /* 2 items */
    }
}

@media (max-width: 600px) {
    .testimonial-card {
        /* 85% para dejar ver un poco de las tarjetas adyacentes (efecto peek) */
        flex: 0 0 85%; 
        /* Opacidad reducida para las no activas (opcional, pero ayuda al foco) */
        opacity: 1; 
        transition: opacity 0.3s;
    }
    
    .carousel-wrapper {
        padding: 0; 
        /* Padding inferior extra para las flechas */
        margin-bottom: 40px;
    }

    .carousel-track {
        /* Centrar la primera tarjeta: (100% - 85%) / 2 = 7.5% */
        padding: 0 7.5%;
        gap: 15px;
        margin-bottom: 20px;
    }
    
    .carousel-btn {
        top: auto;
        bottom: -50px; /* Posición fija debajo del track */
        transform: none;
        margin: 0;
    }
    
    /* Centrar botones horizontalmente y ponerlos en línea */
    .prev-btn {
        left: calc(50% - 50px); /* Mitad menos ancho botón y espacio */
    }
    
    .next-btn {
        right: auto; /* Reset */
        left: calc(50% + 10px); /* Mitad más espacio */
    }

    /* Corrección de animación de botones en móvil */
    .carousel-btn:hover {
        /* Evitar el salto de -50% que ocurre en desktop */
        transform: translateY(-3px); 
        background: var(--primary-color);
        color: white;
    }

    .carousel-btn:active {
        /* Efecto de presión suave */
        transform: translateY(0) scale(0.95);
    }
}

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6); /* Black w/ opacity */
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: modalSlideUp 0.4s ease;
    /* Hereda estilos de .card (glassmorphism) */
}

@keyframes modalSlideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--text-color);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--primary-color);
}

/* Simulator Styles */
.simulator-form {
    margin-top: 20px;
}

.range-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    text-align: right;
    margin-top: 5px;
}

.slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.2);
    outline: none;
    transition: background 0.3s;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.simulation-result {
    background: rgba(0, 0, 0, 0.05);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    margin: 25px 0;
    border: 1px solid rgba(255,255,255,0.1);
}

.monthly-payment {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 10px 0;
}

.disclaimer {
    font-size: 0.75rem;
    opacity: 0.6;
}

/* Footer Styles */
.site-footer {
    margin-top: 80px;
    padding: 60px 0 20px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-top: var(--glass-border);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo h2 {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.footer-links h3, .footer-social h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-color);
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary-color);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Features */
.feature-card {
    text-align: center;
}

.feature-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

/* Steps */
.steps-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    text-align: center;
}

.step {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 20px;
    box-shadow: 0 0 20px rgba(0, 86, 179, 0.3);
}

/* Testimonials */
.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
}

.author-avatar {
    width: 40px;
    height: 40px;
    background: #ddd;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #666;
}

/* Hero Small (About/Contact) */
.hero-small {
    padding: 60px 0;
    text-align: center;
    background: transparent; /* Fondo eliminado */
}

.hero-small h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
}

/* About Page */
.about-image-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    min-height: 200px;
    color: var(--secondary-color);
}

.value-card {
    text-align: center;
}

/* Contact Page */
.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.info-item i {
    color: var(--primary-color);
    width: 25px;
}

.social-links {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s;
}

.social-icon:hover {
    transform: scale(1.1);
    background: var(--secondary-color);
}

/* Formulario */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2); /* Borde sutil */
    background: var(--input-bg); /* Fondo semitransparente */
    backdrop-filter: blur(5px);
    color: var(--text-color);
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.1); /* Más transparente al enfocar */
    box-shadow: 0 0 15px rgba(0, 86, 179, 0.2);
}

.full-width {
    width: 100%;
}

/* Philosophy Cards */
.philosophy-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.philosophy-card:hover {
    transform: translateY(-5px);
}

.philosophy-title {
    color: var(--text-color);
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 700;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
}

.philosophy-content h4 {
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary-color);
}

/* --- Mobile Optimizations --- */
@media (max-width: 768px) {
    /* Typography Adjustments */
    html {
        font-size: 14px; /* Reduce base font size slightly */
    }

    .hero h2 {
        font-size: 2rem; 
        line-height: 1.2;
        padding: 0 10px;
        word-wrap: break-word;
    }
    
    .hero p {
        font-size: 1rem;
        padding: 0 15px;
    }
    
    .section-title {
        font-size: 1.6rem; /* Even smaller */
        margin-bottom: 30px;
        padding: 0 10px;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    /* Layout Adjustments */
    .container {
        width: 100%;
        padding: 0 20px; /* Ensure enough padding */
        overflow: hidden; /* Prevent horizontal scroll inside container */
    }
    
    .section {
        padding: 40px 0;
    }
    
    /* Grid Adjustments */
    .grid-3, .grid-2, .philosophy-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    
    /* Card Adjustments */
    .card {
        padding: 20px;
        margin: 0; /* Reset margins */
        width: 100%; /* Ensure full width */
    }
    
    /* Philosophy Cards specific */
    .philosophy-title {
        font-size: 1.2rem;
        text-align: center;
    }
    
    .philosophy-card {
        text-align: center;
        align-items: center;
    }
    
    .philosophy-card i {
        margin-bottom: 10px;
    }
    
    /* Fix for specific text paragraphs */
    .section p {
        padding: 0 5px;
    }

    /* Buttons */
    .cta-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
        width: 100%;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }
}
