/* === VARIABLES GLOBALES (Colores UVigo y Tipografía) === */
:root {
    /* Paleta de colores */
    --color-uvigo-blue: #005eb8;   /* Azul corporativo principal */
    --color-uvigo-dark: #002e5d;   /* Azul oscuro para contrastes */
    --color-accent: #ff7e00;       /* Naranja para llamadas a la acción */
    --color-text-dark: #1a1a1a;    /* Texto principal */
    --color-text-light: #555555;   /* Texto secundario */
    --color-bg-light: #f8f9fa;     /* Fondos claros */
    --color-white: #ffffff;

    /* Tipografía */
    --font-main: 'Inter', sans-serif;

    /* Layout */
    --header-height: 80px;
    --container-width: 1200px;
    --border-radius: 8px;
}

/* === RESET BÁSICO === */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; } /* Desplazamiento suave al hacer clic en enlaces */

body {
    font-family: var(--font-main);
    color: var(--color-text-dark);
    line-height: 1.6;
    background-color: var(--color-white);
    padding-top: var(--header-height); /* Para que el menú fijo no tape contenido */
}

/* === CLASES UTILITARIAS === */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}
.max-w-800 { max-width: 800px; }
.text-center { text-align: center; }
.section-padding { padding: 5rem 0; }
.text-highlight { color: var(--color-accent); }

.section-tag {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-uvigo-blue);
    margin-bottom: 1rem;
}

h1, h2, h3 { font-weight: 800; letter-spacing: -0.03em; }
h1 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 1.5rem; }
h2 { font-size: 2.5rem; margin-bottom: 1.5rem; color: var(--color-uvigo-dark); }
p.lead { font-size: 1.25rem; color: var(--color-text-light); margin-bottom: 2rem; }

/* === BOTONES === */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}
.btn-small { padding: 0.6rem 1.2rem; font-size: 0.9rem; }

.btn-primary { background-color: var(--color-uvigo-blue); color: white; }
.btn-primary:hover { background-color: var(--color-uvigo-dark); transform: translateY(-2px); }

.btn-accent { background-color: var(--color-accent); color: white; }
.btn-accent:hover { background-color: #e67200; }

.btn-outline { border-color: var(--color-white); color: white; }
.btn-outline:hover { background-color: white; color: var(--color-uvigo-dark); }

.hero-buttons { display: flex; gap: 1rem; justify-content: center; }

/* === HEADER Y NAVEGACIÓN === */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.7); /* Blanco semi-transparente */
    backdrop-filter: blur(15px); /* Efecto cristal */
    border-bottom: 1px solid rgba(0,0,0,0.05);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-uvigo-dark);
    text-decoration: none;
}
.logo span { color: var(--color-accent); }

.main-nav ul, .nav-list {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    
    align-items: center; 
    
    margin: 0;
    padding: 0;
}

.main-nav a {
    text-decoration: none;
    color: var(--color-text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
}
.main-nav a:hover, .main-nav a.active { color: var(--color-uvigo-blue); }

/* === HERO SECTION (Portada) === */
.hero-section {
    position: relative;
    height: 85vh; /* 85% de la altura de la pantalla */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
    margin-top: calc(var(--header-height) * -1); /* Compensar el padding del body */
    
    /* IMPORTANTE: Aquí irá tu imagen de fondo cuando la tengas */
    background-image: url('../assets/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-color: var(--color-uvigo-dark); /* Color de reserva si no hay imagen */
}

/* Capa oscura sobre la imagen para que el texto se lea bien */
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(0,94,184,0.4), rgba(0,46,93,0.6));
    z-index: 1;
}

.hero-text {
    position: relative;
    z-index: 2; /* Texto por encima de la capa oscura */
}
.hero-text p.lead { color: rgba(255,255,255,0.9); }

/* === SECCIÓN PROYECTOS (GRID SYSTEM) === */

.bg-light { background-color: var(--color-bg-light); }
.mt-5 { margin-top: 3rem; }

/* La Parrilla Mágica (Scalability Core) */
.projects-grid {
    display: grid;
    /* Esto crea columnas automáticas de mínimo 320px. 
       Si caben 3, pone 3. Si caben 2, pone 2. */
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); 
    gap: 2rem;
    padding-bottom: 2rem;
}

/* Diseño de la Tarjeta */
.project-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column; /* Para empujar el link al fondo si hace falta */
}

.project-card:hover {
    transform: translateY(-8px); /* Efecto de levitación */
    box-shadow: 0 12px 30px rgba(0, 94, 184, 0.15);
}

/* Área de Imagen */
.card-image {
    height: 220px;
    width: 100%;
    overflow: hidden;
    background-color: #eee;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Recorta la imagen para llenar el hueco sin deformar */
    transition: transform 0.5s ease;
}

.project-card:hover .card-image img {
    transform: scale(1.05); /* Zoom suave al pasar el ratón */
}

/* Placeholders (Gradientes temporales mientras no hay fotos) */
.img-placeholder { width: 100%; height: 100%; }
.gradient-1 { background: linear-gradient(135deg, #005eb8, #00c6ff); }
.gradient-2 { background: linear-gradient(135deg, #ff7e00, #ffcc00); }
.gradient-3 { background: linear-gradient(135deg, #11998e, #38ef7d); }
.gradient-4 { background: linear-gradient(135deg, #4568dc, #b06ab3); }

/* Contenido de la Tarjeta */
.card-content {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-accent);
    letter-spacing: 1px;
    margin-bottom: 0.8rem;
}

.project-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: var(--color-uvigo-dark);
}

.project-card p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.card-link {
    margin-top: auto; /* Empuja el botón al final de la tarjeta */
    font-weight: 600;
    color: var(--color-uvigo-blue);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.card-link .arrow {
    margin-left: 5px;
    transition: transform 0.2s;
}

.card-link:hover { color: var(--color-uvigo-dark); }
.card-link:hover .arrow { transform: translateX(5px); }

/* === SECCIÓN FAQ (ACORDEÓN) === */
.mb-5 { margin-bottom: 3rem; }

.faq-container {
    border-top: 1px solid #e5e7eb;
}

.faq-item {
    border-bottom: 1px solid #e5e7eb;
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 1.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-uvigo-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s;
    font-family: var(--font-main);
}

.faq-question:hover {
    color: var(--color-uvigo-blue);
}

.faq-question .icon {
    font-size: 1.5rem;
    font-weight: 400;
    transition: transform 0.3s ease;
    color: var(--color-accent);
}

/* Estado activo del acordeón */
.faq-item.active .faq-question .icon {
    transform: rotate(45deg); /* La cruz se convierte en X */
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--color-text-light);
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    padding-bottom: 1.5rem; 
    max-height: 1000px; /* Ponemos un valor muy alto para asegurar que se abra */
    opacity: 1; /* Aseguramos visibilidad */
}

/* === SECCIÓN TALLERES (REDSEÑADA V2) === */

/* Contenedor de la lista */
.events-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

/* Estilo Base de la Tarjeta */
.event-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    display: grid;
    /* Layout de 3 columnas: Fecha | Info | Botón */
    grid-template-columns: auto 1fr auto;
    gap: 2rem;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.05);
    border-left-width: 6px; /* Borde lateral grueso para el estado */
    transition: all 0.3s ease;
}

/* Efecto Hover */
.event-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 94, 184, 0.1);
}

/* Estados (Colores del borde lateral) */
.status-open { border-left-color: var(--color-uvigo-blue); }
.status-closed { border-left-color: var(--color-text-light); background-color: #fafafa; }

/* --- La Nueva Caja de Fecha (Más llamativa) --- */
.event-date-box {
    padding: 1rem 1.2rem;
    border-radius: 8px;
    text-align: center;
    color: white;
    line-height: 1;
    min-width: 85px;
}

.accent-blue { background: linear-gradient(135deg, var(--color-uvigo-blue), var(--color-uvigo-dark)); }
.accent-orange { background: linear-gradient(135deg, var(--color-accent), #e65c00); opacity: 0.8; } /* Un poco apagado si está completo */

.event-date-box .day { font-size: 2.2rem; font-weight: 800; display: block; }
.event-date-box .month { font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

/* --- Información Central --- */
.event-info h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--color-text-dark);
}

.status-closed h3 { color: var(--color-text-light); } /* Título gris si está cerrado */

/* Metadatos con Iconos */
.event-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-light);
    font-size: 0.9rem;
    font-weight: 500;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Ajuste para los iconos de Google */
.material-icons-round.icon-sm { font-size: 1.1rem; color: var(--color-uvigo-blue); }
.status-closed .material-icons-round.icon-sm { color: var(--color-text-light); }

/* --- Columna de Acción (Botones) --- */
.event-action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    min-width: 160px;
    text-align: right;
}

.slots-left {
    font-size: 0.8rem;
    color: var(--color-text-light);
    font-weight: 500;
}

/* Estilo para botones desactivados */
.btn-disabled {
    background: #e2e8f0;
    color: #94a3b8;
    border: none;
    cursor: not-allowed;
    font-weight: 600;
}
.btn-disabled:hover { background: #e2e8f0; transform: none; }

/* RESPONSIVE: Adaptación a móviles */
@media (max-width: 768px) {
    .event-card {
        grid-template-columns: 1fr; /* Todo en una columna */
        gap: 1rem;
        padding: 1.5rem;
        text-align: center;
    }

    .event-date-box { margin: 0 auto; width: fit-content; }
    .event-meta { justify-content: center; }
    .event-action { align-items: center; text-align: center; width: 100%; }
    .event-action .btn { width: 100%; }
}

/* === SECCIÓN CONTACTO (DARK) === */
.section-dark {
    background-color: var(--color-uvigo-dark);
    color: white;
}

.tag-light {
    color: var(--color-accent); /* Mantenemos el naranja, destaca sobre azul oscuro */
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Dos columnas iguales */
    gap: 4rem;
    align-items: center;
}

/* Columna Izquierda (Info) */
.contact-section h2 { color: white; }
.contact-list {
    list-style: none;
    margin-top: 2rem;
    font-size: 1.1rem;
}
.contact-list li { margin-bottom: 0.5rem; color: rgba(255,255,255,0.8); }

/* Columna Derecha (Formulario) */
.contact-form-box {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    color: var(--color-text-dark); /* Volvemos a texto oscuro dentro de la caja blanca */
}

.form-group { margin-bottom: 1.5rem; }

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-uvigo-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
    background-color: #f8fafc;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-uvigo-blue);
    background-color: white;
}

.full-width { width: 100%; }

/* Responsive para Contacto */
@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr; /* En móvil, una debajo de otra */
        gap: 3rem;
    }
}

/* === FOOTER (PIE DE PÁGINA) === */
.site-footer {
    background-color: #001a33; /* Azul casi negro, muy elegante */
    color: #b3cce6; /* Texto azul muy claro/blanco */
    padding: 4rem 0 2rem;
    font-size: 0.95rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
    display: grid;
    /* 4 columnas automáticas */
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
}

/* Identidad */
.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}
.footer-logo span { color: var(--color-accent); }

.footer-col h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
}

/* Enlaces */
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.8rem; }
.footer-links a {
    color: #b3cce6;
    text-decoration: none;
    transition: color 0.3s;
}
.footer-links a:hover {
    color: var(--color-accent);
    padding-left: 5px; /* Pequeño desplazamiento al pasar el ratón */
}

/* Redes Sociales */
.social-icons {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s;
    text-decoration: none; /* Quitamos subrayado */
}

.social-link:hover {
    background: var(--color-accent);
    transform: translateY(-3px);
}

/* Créditos */
.footer-credits {
    margin-top: 2rem;
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .site-footer { padding: 3rem 0; }
    .footer-grid { gap: 2rem; }
}

/* === ESTILOS RESPONSIVE (MENÚ MÓVIL) === */

/* 1. Botón Hamburguesa (Oculto en PC) */
.mobile-toggle {
    display: none; /* Por defecto no se ve */
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-uvigo-dark);
}

.mobile-toggle span {
    font-size: 2rem; /* Tamaño del icono */
    transition: transform 0.3s;
}

/* === ESTILOS PARA PÁGINAS SECUNDARIAS (Legales, Soporte) === */

/* Cabecera simple para páginas de texto */
.page-header-simple {
    padding-top: 120px; /* Espacio para el menú fijo */
    padding-bottom: 2rem;
    background: var(--color-bg-light);
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
}

.page-header-simple h1 {
    font-size: 2.5rem;
    color: var(--color-uvigo-dark);
}

/* Contenedor de texto legal */
.legal-content {
    padding: 4rem 0;
    max-width: 800px; /* Texto no muy ancho para leer cómodamente */
    margin: 0 auto;
    font-size: 1.05rem;
}

.legal-content h2 {
    font-size: 1.8rem;
    color: var(--color-uvigo-dark);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(0,0,0,0.05);
}

.legal-content p, .legal-content ul {
    margin-bottom: 1.5rem;
    color: var(--color-text-light);
}

.legal-content ul {
    padding-left: 1.5rem;
    list-style-type: disc;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

/* Ajuste para el menú en estas páginas (para que los enlaces no queden marcados como activos) */
body.secondary-page .nav-link.active {
    color: var(--color-text-dark); /* Quitamos el azul si no estamos en esa sección */
}
body.secondary-page .nav-link:hover {
    color: var(--color-uvigo-blue);
}

/* === ESTILOS PARA PÁGINA DE DETALLE DE PROYECTO === */

/* 1. Héroe del Proyecto (Imagen grande superior) */
.project-hero {
    position: relative;
    height: 60vh; /* Altura: 60% de la pantalla */
    min-height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end; /* Texto abajo */
    padding-bottom: 4rem;
    margin-top: -80px; /* Compensar el menú fijo */
}

.project-hero-content {
    position: relative;
    z-index: 2;
    color: white;
}

.project-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.text-white { color: white !important; }
.bg-accent { background-color: var(--color-accent); color: white; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3.5rem; }

/* 2. Layout Principal (Grid 2 columnas: Contenido + Sidebar) */
.project-layout {
    display: grid;
    /* La columna principal ocupa 3 partes, la lateral 1 parte */
    grid-template-columns: 3fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* Estilos de texto principal */
.project-main h2 { font-size: 2rem; margin-bottom: 1.5rem; color: var(--color-uvigo-dark); }
.project-main h3 { font-size: 1.5rem; margin-bottom: 1rem; color: var(--color-uvigo-dark); }
.project-main p { margin-bottom: 1.5rem; font-size: 1.05rem; color: var(--color-text-light); }

/* 3. Sidebar (Barra lateral derecha) */
.info-box {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-bottom: 1.5rem;
}

.info-box h4 {
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    color: var(--color-uvigo-dark);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(0,0,0,0.05);
}

/* Lista de tecnologías con iconos */
.tech-list { list-style: none; }
.tech-list li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    align-items: center;
}
.tech-list .icon { color: var(--color-uvigo-blue); }

/* Caja de estado (Running/Activo) */
.status-box {
    display: flex;
    gap: 1rem;
    align-items: center;
    background: #e6fffa; /* Fondo verde claro */
    border-color: #b2f5ea;
    color: #2c7a7b;
}
.status-box.running .material-icons-round { color: #38b2ac; }

/* 4. Multimedia (Vídeo y Galería) */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* Ratio 16:9 para YouTube */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.video-container iframe {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}
.gallery-grid img {
    width: 100%;
    height: 200px; /* Altura fija para que queden alineadas */
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s;
    cursor: pointer;
}
.gallery-grid img:hover { transform: scale(1.03); }

/* === RESPONSIVE PARA DETALLE PROYECTO === */
@media (max-width: 900px) {
    .project-layout {
        /* En tablets y móviles, una sola columna apilada */
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    /* Invertimos el orden en móvil: primero la info clave, luego el texto largo */
    .project-sidebar { order: -1; }
    
    .project-hero { height: 50vh; }
    .project-hero h1 { font-size: 2.5rem; }
}

/* 2. Media Query: Solo aplica si la pantalla es menor de 768px (Tablets y Móviles) */
@media (max-width: 768px) {
    
    /* Mostrar el botón hamburguesa */
    .mobile-toggle {
        display: block;
        z-index: 1002; /* Por encima de todo */
    }

    /* Transformar el menú en un panel lateral */
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%; /* Escondido a la derecha fuera de la pantalla */
        width: 75%;   /* Ocupa el 75% del ancho */
        height: 100vh; /* Altura completa */
        background: white;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        padding-top: 5rem; /* Espacio para no tapar el botón cerrar */
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1); /* Animación suave */
        z-index: 1001;
    }

    /* Clase activa: Cuando JS la añade, el menú entra */
    .main-nav.active {
        right: 0;
    }

    /* Estilo de la lista en vertical */
    .nav-list {
        flex-direction: column; /* Vertical */
        align-items: center;    /* Centrado */
        gap: 2rem;              /* Separación entre enlaces */
    }

    .nav-link {
        font-size: 1.2rem;     /* Letra más grande para tocar con el dedo */
        color: var(--color-uvigo-dark);
    }

    /* Fondo oscuro semitransparente detrás del menú (Opcional pero recomendado) */
    .overlay-menu {
        position: fixed;
        top: 0; left: 0; width: 100%; height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: 0.3s;
    }
    
    .overlay-menu.active {
        opacity: 1;
        visibility: visible;
    }

    /* === CORRECCIÓN HERO MÓVIL === */
    .hero-section {
        /* Aumentamos el padding superior para que el texto baje y no lo tape el menú */
        padding-top: 140px; 
        align-items: flex-start; /* Alineamos arriba en vez de al centro vertical */
        height: auto; /* Permitimos que crezca si el texto es largo */
        min-height: 100vh;
    }

    .hero-content h1 {
        font-size: 2.5rem; /* Reducimos el tamaño del título (antes 4rem) */
        margin-top: 1rem;
    }
    
    .hero-content p.lead {
        font-size: 1rem;
    }
}