@charset "utf-8";

/* ==========================================================================
   1. SISTEMA DE VARIABLES, RESET Y CONFIGURACIÓN GENERAL
   ========================================================================== */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body { 
    font-family: 'Montserrat', sans-serif; 
    background-color: #FFF7E3; /* Fondo Crema Cálido */
    color: #090435; /* Azul Marino Profundo */
    overflow-x: hidden;
    line-height: 1.5;
}

h1, h2, h3 { 
    font-family: 'Playfair Display', serif; 
    color: #DB007D; 
}

.container { 
    padding: 60px 8%; 
    text-align: center; 
}

.bg-white { 
    background-color: #ffffff; 
}

.flight-path { 
    border-top: 3px dashed #FFCE13; 
    width: 80px; 
    margin: 20px auto 40px; 
}

.encabezado-seccion {
    text-align: center;
    margin-bottom: 40px;
}

.encabezado-seccion h1 {
    font-size: 2.8rem;
    color: #090435;
    margin-bottom: 15px;
}

.encabezado-seccion p {
    color: #555;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ==========================================================================
   2. ENCABEZADO, NAVEGACIÓN PRINCIPAL Y MENÚ BURGER
   ========================================================================== */
header {
    background-color: #ffffff; 
    padding: 1rem 8%; 
    display: flex;
    justify-content: space-between; 
    align-items: center;
    box-shadow: 0 4px 15px rgba(9, 4, 53, 0.08); 
    position: sticky; 
    top: 0; 
    z-index: 1000;
}

.logo { 
    font-size: 1.5rem; 
    font-weight: 800; 
    color: #DB007D; 
    text-decoration: none; 
    text-transform: uppercase; 
    letter-spacing: 1px;
} 

.nav-links { 
    display: flex; 
    list-style: none; 
    gap: 20px; 
}

.nav-links a { 
    text-decoration: none; 
    color: #090435; 
    font-size: 0.9rem; 
    transition: 0.3s ease; 
    font-weight: bold; 
}

.nav-links a:hover { 
    color: #DB007D; 
}

.nav-links a.activo-nav {
    font-weight: 800; 
    color: #DB007D; 
    border-bottom: 4px solid #FFCE13; 
    padding-bottom: 4px;
}

.burger { 
    display: none; 
    cursor: pointer; 
}

.burger div { 
    width: 25px; 
    height: 3px; 
    background: #DB007D; 
    margin: 5px; 
    transition: 0.3s ease; 
    border-radius: 5px;
}

/* ==========================================================================
   3. BOTONES, ACCIONES (CTA) Y COMPONENTES ETIQUETA (TAGS)
   ========================================================================== */
.cta-button {
    background-color: #DB007D; 
    color: white; 
    padding: 15px 35px; 
    border-radius: 50px; 
    text-decoration: none; 
    font-weight: 700; 
    display: inline-block; 
    transition: 0.3s ease;
    box-shadow: 0 4px 15px rgba(219, 0, 125, 0.3);
}

.cta-button:hover { 
    background-color: #FFCE13; 
    color: #090435; 
    transform: translateY(-3px); 
    box-shadow: 0 6px 20px rgba(9, 4, 53, 0.15); 
}

.cta-button.secondary { 
    background-color: #ffffff; 
    color: #DB007D; 
    margin-top: 20px; 
    border: 2px solid #DB007D; 
}

.tag { 
    background: #090435; 
    color: #FFF7E3; 
    padding: 4px 12px; 
    border-radius: 20px; 
    font-size: 0.7rem; 
    margin-top: 10px; 
    display: inline-block; 
}

.tags-museos { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 8px; 
    margin-top: auto; 
    padding-top: 15px; 
}

.tag-m { 
    background-color: #FFCE13; 
    color: #090435; 
    font-size: 0.75rem; 
    padding: 8px 14px; 
    border-radius: 20px; 
    font-weight: bold; 
    transition: 0.3s ease; 
    text-decoration: none;
}

.tag-m:hover { 
    background-color: #DB007D; 
    color: #ffffff; 
    transform: scale(1.05); 
}

/* ==========================================================================
   4. SECCIÓN: INICIO (INDEX) Y ANIMACIONES CINEMÁTICAS
   ========================================================================== */
@keyframes flujoFondo {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-dinamico {
    background: linear-gradient(135deg, #090435 0%, #1a1060 50%, #db007d 100%);
    background-size: 200% 200%;
    animation: flujoFondo 10s ease infinite;
    position: relative;
    overflow: hidden;
    min-height: 90vh; 
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 5% 40px 5%;
}

@keyframes orbita {
    0% { transform: rotate(0deg) translateX(50px) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(50px) rotate(-360deg); }
}

.forma-fondo-1 {
    position: absolute; width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(255, 206, 19, 0.2) 0%, transparent 70%);
    animation: orbita 15s linear infinite; z-index: 1;
}

.forma-fondo-2 {
    position: absolute; width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(219, 0, 125, 0.2) 0%, transparent 70%);
    animation: orbita 20s linear infinite reverse; z-index: 1;
}

@keyframes entradaMagica {
    0% { opacity: 0; transform: scale(0.8) translateY(50px); filter: blur(10px); }
    100% { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); }
}

.hero-texto-wrapper { 
    flex: 1; 
    max-width: 550px; 
    z-index: 2; 
    padding-right: 40px; 
    animation: entradaMagica 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.etiqueta-hero {
    display: inline-block; background-color: #DB007D; color: white; 
    font-weight: 700; padding: 8px 16px; border-radius: 20px; font-size: 0.9rem; 
    letter-spacing: 2px; text-transform: uppercase; margin-bottom: 20px;
}

.titulo-gigante {
    font-size: 4.5rem; line-height: 1.1; color: white; 
    text-align: left; margin-bottom: 20px; font-weight: 800;
    text-shadow: 0 0 20px rgba(255,255,255,0.3);
}

.titulo-gigante span { color: #FFCE13; position: relative; }
.titulo-gigante span::after {
    content: ''; position: absolute; bottom: 8px; left: 0; width: 100%; height: 12px;
    background-color: #DB007D; z-index: -1; transform: skewX(-15deg);
}

.parrafo-hero { 
    font-size: 1.2rem; color: #E0E0E0; line-height: 1.6; margin-bottom: 40px; text-align: left;
}

.botones-hero { display: flex; gap: 20px; flex-wrap: wrap; }

.btn-primario, .btn-secundario {
    font-weight: 700; font-size: 1rem; padding: 15px 35px; border-radius: 50px; 
    text-decoration: none; transition: all 0.3s ease;
}

.btn-primario { background-color: #FFCE13; color: #090435; box-shadow: 0 10px 20px rgba(255, 206, 19, 0.3); }
.btn-primario:hover { transform: translateY(-5px); box-shadow: 0 15px 25px rgba(255, 206, 19, 0.5); }
.btn-secundario { background-color: transparent; color: white; border: 2px solid white; }
.btn-secundario:hover { background-color: white; color: #090435; transform: translateY(-5px); }

@keyframes levitacionTotal {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-30px) rotate(2deg); }
}

.hero-visual-wrapper {
    position: relative; flex: 1.5; display: flex; justify-content: center; align-items: center;
    min-height: 450px; width: 100%; animation: levitacionTotal 6s ease-in-out infinite; perspective: 1000px;
}

.collage-polaroid {
    position: relative; display: flex; justify-content: center; align-items: center; z-index: 2; width: 100%; height: 400px;
}

.foto-polaroid {
    position: absolute; width: 220px; border: 10px solid white; border-bottom: 35px solid white;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    cursor: pointer;
}

.polaroid-1 { transform: rotate(-12deg) translateX(-100px); z-index: 1; }
.polaroid-2 { transform: rotate(0deg) translateY(-20px); z-index: 2; }
.polaroid-3 { transform: rotate(15deg) translateX(100px); z-index: 1; }

.foto-polaroid:hover {
    transform: scale(1.15) rotate(0deg) translateY(-10px) !important;
    z-index: 10; box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.img-flotante-1 { display: none; /* Ocultamos la brújula anterior para dejar limpio el efecto */ }

/* ==========================================================================
   5. SECCIÓN: TUTORIAL DE BITÁCORA EN 3 PASOS
   ========================================================================== */
.tutorial-section {
    background-color: #fafafa; padding-top: 100px; padding-bottom: 100px; 
    border-radius: 30px; margin-top: 60px; width: 100%;
}

.section-title {
    font-size: 3.5rem; margin-bottom: 60px; text-align: center; color: #090435;
}

.tutorial-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 50px; padding: 0 40px; 
}

.tutorial-card {
    text-align: center; background: white; padding: 60px 40px; border-radius: 20px; border-top: 8px solid; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tutorial-card:nth-child(1) { border-color: #DB007D; } 
.tutorial-card:nth-child(2) { border-color: #FFCE13; } 
.tutorial-card:nth-child(3) { border-color: #090435; } 

.tutorial-card .icono-circular {
    background-color: currentColor; color: white; width: 90px; height: 90px; line-height: 90px;
    border-radius: 50%; margin: 0 auto 30px; font-weight: 800; font-size: 2.5rem; 
}
.tutorial-card:nth-child(2) .icono-circular { color: #090435; }

.tutorial-card .card-title { color: #090435; margin-bottom: 25px; font-size: 2rem; font-weight: 700; }
.tutorial-card .card-text { color: #555; font-size: 1.1rem; line-height: 1.8; }
.hover-elevate:hover { transform: translateY(-8px); box-shadow: 0 15px 40px rgba(0,0,0,0.12); }

/* ==========================================================================
   6. SECCIÓN: DIRECTORIO CULTURAL
   ========================================================================== */
.grid-flex-directorio { 
    display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; margin-top: 40px; 
}

.museo-card {
    background-color: #ffffff; width: 100%; max-width: 330px; border-radius: 20px; overflow: hidden; cursor: pointer;
    box-shadow: 0 8px 25px rgba(9, 4, 53, 0.08); border: none; transition: 0.3s ease; text-align: left;
    border-bottom: 6px solid #FFCE13;
}

.museo-card:hover { transform: translateY(-8px); box-shadow: 0 15px 30px rgba(219, 0, 125, 0.2); border-bottom-color: #DB007D; }
.museo-img-header { width: 100%; height: 230px; position: relative; }
.museo-foto { width: 100%; height: 100%; object-fit: cover; }

.click-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(9, 4, 53, 0.85); display: flex; align-items: center; justify-content: center; color: white; opacity: 0; transition: 0.3s ease; font-weight: 700;
}
.museo-card:hover .click-overlay { opacity: 1; }

.museo-detalle { max-height: 0; overflow: hidden; transition: max-height 0.5s ease; background: white; }
.museo-detalle.abierto { max-height: 1200px; padding: 20px; border-top: 2px dashed #FFCE13; }

.galeria-musa { display: flex; justify-content: space-between; gap: 8px; margin-top: 15px; margin-bottom: 10px; }
.foto-mini { width: 32%; height: 75px; object-fit: cover; border-radius: 8px; border: 1px solid #ddd; transition: 0.3s ease; cursor: pointer; }
.foto-mini:hover { transform: scale(1.1); box-shadow: 0 5px 15px rgba(0,0,0,0.2); z-index: 10; }

.musa-tip {
    background: #ffffff; padding: 15px; border-radius: 12px; display: flex; align-items: center; gap: 10px; 
    border-left: 5px solid #FFCE13; margin-top: 15px;
}
.musa-icon-small { width: 35px; height: auto; }

.titulo-directorio { font-size: 16px; text-align: center; margin-top: 12px; margin-bottom: 20px; font-weight: 700; line-height: 1.2; }
.tarjeta-directorio { display: flex; flex-direction: column; align-items: center; cursor: pointer; transition: transform 0.3s ease; }
.tarjeta-directorio:hover { transform: scale(1.02); }

.link-mapa { color: #090435; text-decoration: none; border-bottom: 1px solid #DB007D; transition: all 0.3s ease; }
.link-mapa:hover { color: #DB007D; background-color: rgba(219, 0, 125, 0.05); }

.datos-museo p { font-size: 12px; margin: 6px 0; line-height: 1.4; }

.iconos-servicios {
    display: flex; flex-direction: row; justify-content: flex-start; align-items: center; flex-wrap: nowrap; gap: 12px; margin: 15px 0;
}
.iconos-servicios img { width: 24px; height: 24px; object-fit: contain; transition: transform 0.3s ease; }
.iconos-servicios img:hover { transform: scale(1.15); }

/* ==========================================================================
   7. SECCIÓN: RUTAS Y CIRCUITOS CULTURALES
   ========================================================================== */
.hero-rutas {
    position: relative; width: 100%; min-height: 45vh; display: flex; align-items: center; justify-content: center;
    background-color: #090435; background-image: url('../img/culturas1.jpg'); background-size: cover;
    background-position: center; background-attachment: fixed; z-index: 10; 
}

.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(9, 4, 53, 0.65); z-index: 1;
}

.hero-contenido { position: relative; z-index: 2; text-align: center; padding: 0 20px; max-width: 800px; }
.hero-contenido h1 { font-size: 3.5rem; color: #ffffff; margin-bottom: 20px; text-shadow: 0 4px 10px rgba(0,0,0, 0.3); }
.hero-contenido p { color: #FFF7E3; font-size: 1.1rem; line-height: 1.7; text-shadow: 0 2px 5px rgba(0,0,0, 0.3); }

.container-rutas { max-width: 1200px; margin: 40px auto 80px; padding: 0 20px; }

.tabs-container, .tabs-navegacion { display: flex; justify-content: center; gap: 15px; margin-bottom: 40px; flex-wrap: wrap; }
.tab-btn, .btn-tab {
    background-color: #ffffff; color: #DB007D; border: 2px solid #DB007D; padding: 12px 30px;
    border-radius: 50px; font-size: 1rem; font-weight: bold; cursor: pointer; transition: 0.3s ease;
}
.tab-btn:hover, .btn-tab:hover { background-color: #FFF7E3; color: #DB007D; }
.tab-btn.activo, .btn-tab.active { background-color: #DB007D; border-color: #DB007D; color: #ffffff; }

.bloque-ruta { display: none; opacity: 0; transform: translateY(15px); transition: all 0.4s ease; }
.bloque-ruta.active { display: block; opacity: 1; transform: translateY(0); }

.grid-rutas-moderno { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; margin-top: 20px; }

.tarjeta-ruta-interactiva {
    background: #ffffff; border: 1px solid rgba(9, 4, 53, 0.06); border-radius: 16px; padding: 35px 30px 30px;
    display: flex; flex-direction: column; justify-content: space-between;
    box-shadow: 0 4px 6px -1px rgba(9, 4, 53, 0.02), 0 10px 20px -3px rgba(9, 4, 53, 0.04);
    transition: all 0.4s ease; position: relative; overflow: hidden; z-index: 1;
}

.tarjeta-ruta-interactiva::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: #DB007D; z-index: 2;
}
.tarjeta-ruta-interactiva.line-ubicacion::before { background: #090435; }

.tarjeta-ruta-interactiva::after {
    content: attr(data-numero); position: absolute; top: 5px; right: 15px;
    font-family: 'Playfair Display', serif; font-size: 5rem; font-weight: 700; color: #090435; opacity: 0.03;
    pointer-events: none; transition: transform 0.4s ease; z-index: 0;
}

.tarjeta-ruta-interactiva:hover {
    transform: translateY(-10px); border-color: rgba(219, 0, 125, 0.2);
    box-shadow: 0 20px 38px -10px rgba(9, 4, 53, 0.08);
}
.tarjeta-ruta-interactiva:hover::after { transform: translateY(10px) scale(1.05); opacity: 0.05; }

.tarjeta-badge {
    align-self: flex-start; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
    color: #DB007D; background: rgba(219, 0, 125, 0.08); padding: 4px 12px; border-radius: 20px;
    margin-bottom: 15px; position: relative; z-index: 2;
}
.badge-geo { color: #090435; background: rgba(9, 4, 53, 0.06); }

.subtitulo-circuito { font-size: 0.75rem; letter-spacing: 2px; color: #999; font-weight: 700; text-transform: uppercase; display: block; margin-bottom: 5px; position: relative; z-index: 2; }
.tarjeta-ruta-interactiva h3 { font-size: 1.3rem; margin-bottom: 12px; position: relative; z-index: 2; }
.ruta-descripcion { font-size: 0.9rem; color: #555; margin-bottom: 25px; position: relative; z-index: 2; }

.lista-recintos-ruta {
    display: flex; flex-wrap: wrap; gap: 8px; padding-top: 15px; border-top: 1px dashed rgba(9, 4, 53, 0.1); position: relative; z-index: 10; 
}

.tag-museo {
    font-size: 0.8rem; background: #FFF7E3; color: #090435; padding: 6px 14px; border-radius: 6px; font-weight: 600; text-decoration: none;
    transition: all 0.3s ease; border: 1px solid rgba(9, 4, 53, 0.04); display: inline-block; position: relative; z-index: 20; cursor: pointer;
}
.tag-museo:hover { background: #090435; color: #FFF7E3; transform: translateY(-2px); box-shadow: 0 4px 8px rgba(9, 4, 53, 0.15); }

/* ==========================================================================
   8. SECCIÓN: CÓMO MOVERTE (MOVILIDAD URBANA)
   ========================================================================== */
.hero-movilidad {
    position: relative; width: 100%; min-height: 45vh; display: flex; align-items: center; justify-content: center;
    background-image: url('../img/banner-movilidad.jpg'); background-size: cover; background-position: center; background-attachment: fixed;
}

.hero-overlay-movilidad {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(9, 4, 53, 0.7); z-index: 1;
}

.hero-contenido-movilidad { position: relative; z-index: 2; text-align: center; padding: 0 20px; max-width: 800px; }
.hero-contenido-movilidad h1 { font-size: 3.5rem; color: #ffffff; margin-bottom: 20px; text-shadow: 0 4px 10px rgba(0,0,0, 0.3); }
.hero-contenido-movilidad p { color: #FFF7E3; font-size: 1.1rem; text-shadow: 0 2px 5px rgba(0,0,0, 0.3); }

.container-movilidad { max-width: 1200px; margin: 50px auto 80px; padding: 0 20px; }

.grid-transporte { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 25px; margin-bottom: 60px; }

.transporte-card {
    background: #ffffff; border: 1px solid rgba(9, 4, 53, 0.06); border-radius: 14px; padding: 30px 25px; text-align: center;
    display: flex; flex-direction: column; justify-content: space-between;
    box-shadow: 0 4px 6px -1px rgba(9, 4, 53, 0.02); transition: all 0.4s ease;
}
.transporte-card:hover { transform: translateY(-8px); box-shadow: 0 15px 30px -5px rgba(9, 4, 53, 0.08); }

.card-metro { border-top: 6px solid #f37021; }
.card-metrobus { border-top: 6px solid #df4b26; }
.card-trolebus { border-top: 6px solid #0067a0; }
.card-ecobici { border-top: 6px solid #00a19a; }

.enlace-logo-transporte { display: block; margin-bottom: 15px; }
.logo-transporte { max-height: 55px; width: auto; margin: 0 auto; transition: transform 0.3s ease; object-fit: contain; }
.transporte-card:hover .logo-transporte { transform: scale(1.05); }

.transporte-card h3 { font-size: 1.4rem; margin-bottom: 10px; }
.transporte-linea { font-size: 0.9rem; color: #555; margin-bottom: 20px; min-height: 60px; }
.linea-divisora { border: 0; border-top: 1px dashed rgba(9, 4, 53, 0.1); margin-bottom: 15px; width: 100%; }
.info-extra { font-size: 0.8rem; color: #060324; text-align: left; width: 100%; font-weight: 600; }

.btn-descarga {
    display: inline-block; padding: 12px 20px; color: #ffffff; text-decoration: none; font-weight: bold; font-size: 0.85rem;
    border-radius: 50px; margin: 0 auto 20px; transition: all 0.3s ease; box-shadow: 0 4px 10px rgba(0,0,0,0.05); background-color: #DB007D;
}
.btn-descarga:hover { background-color: #FFCE13; color: #090435; transform: translateY(-3px); }

.btn-metro { background-color: #f37021; }
.btn-metrobus { background-color: #df4b26; }
.btn-trolebus { background-color: #0067a0; }
.btn-ecobici { background-color: #00a19a; }

/* ==========================================================================
   9. SECCIÓN: TU KIT (MATERIALES Y CONSEJOS)
   ========================================================================== */
.container-kit { max-width: 1200px; margin: 60px auto 80px; padding: 0 20px; }

.intro-kit { text-align: center; margin-bottom: 50px; }
.intro-kit h1 { font-size: 2.8rem; margin-bottom: 15px; }
.subtitulo-kit { max-width: 700px; margin: 0 auto; color: #555; line-height: 1.6; }

.grid-kit { 
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-bottom: 60px; 
}

.kit-card {
    background-color: #ffffff; border-radius: 20px; padding: 30px; text-align: center; 
    transition: transform 0.3s ease, box-shadow 0.3s ease; box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex; flex-direction: column; justify-content: space-between; border-top: 6px solid #DB007D;
}
.kit-card:hover { transform: translateY(-10px); box-shadow: 0 20px 30px rgba(0,0,0,0.1); }

.kit-img-caja { background-color: #FFF7E3; border-radius: 12px; padding: 20px; margin-bottom: 20px; }
.kit-img { width: 100%; height: 180px; object-fit: contain; transition: 0.3s ease; }
.kit-card:hover .kit-img { transform: scale(1.08); }

.kit-card h3 { color: #090435; margin-bottom: 10px; font-size: 1.4rem; }
.kit-card p { color: #555; font-size: 0.95rem; margin-bottom: 25px; }

.cta-button-kit {
    display: block; background: linear-gradient(45deg, #DB007D, #FFCE13); color: #fff; padding: 15px 20px; 
    border-radius: 50px; text-decoration: none; font-weight: bold; transition: 0.3s; margin-top: auto;
}
.cta-button-kit:hover { transform: scale(1.05); color: #090435; box-shadow: 0 10px 20px rgba(219, 0, 125, 0.2); }

.tips-impresion { background: #ffffff; border-radius: 20px; padding: 40px; box-shadow: 0 10px 30px rgba(9, 4, 53, 0.06); border-left: 10px solid #FFCE13; }
.tips-impresion h2 { font-size: 1.8rem; color: #090435; margin-bottom: 20px; text-align: left;}

.grid-tips { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.tip-item { display: flex; align-items: flex-start; gap: 15px; font-size: 0.95rem; color: #444; background: #FFF7E3; padding: 20px; border-radius: 12px; }
.tip-item span { font-size: 1.5rem; }

/* ==========================================================================
   10. SISTEMA DE CIERRE (FOOTER)
   ========================================================================== */
footer { 
    width: 100%; background-color: #090435; color: #FFF7E3; font-size: 13px; font-weight: bold; text-align: center; padding: 25px 0; margin-top: 50px; 
}

/* ==========================================================================
   11. MEDIA QUERIES (DISPOSITIVOS MÓVILES Y RESPONSIVO)
   ========================================================================== */
@media screen and (min-width: 768px) {
    footer { width: 85%; margin: 50px auto 0; border-radius: 20px 20px 0 0; }
}

@media screen and (max-width: 968px) {
    .hero-dinamico { flex-direction: column; padding-top: 100px; padding-bottom: 60px; }
    .hero-texto-wrapper { padding-right: 0; margin-bottom: 60px; text-align: center; }
    .titulo-gigante { font-size: 3rem; text-align: center; }
    .parrafo-hero { text-align: center; }
    .botones-hero { justify-content: center; }
    
    .hero-visual-wrapper { height: 400px; }
    .collage-polaroid { height: 300px; }
    .polaroid-1 { transform: rotate(-10deg) translateX(-50px); }
    .polaroid-3 { transform: rotate(10deg) translateX(50px); }

    .section-title { font-size: 2.8rem; margin-bottom: 40px; }
    .tutorial-grid { padding: 0 20px; gap: 30px; }
    .tutorial-card { padding: 40px 25px; }
    .tutorial-card .icono-circular { width: 70px; height: 70px; line-height: 70px; font-size: 2rem; margin-bottom: 20px; }
    .tutorial-card .card-title { font-size: 1.8rem; margin-bottom: 15px; }
}

@media screen and (max-width: 768px) {
    header { padding: 1rem 5%; }
    .nav-links {
        position: absolute; right: 0; top: 8vh; background: white; width: 100%; height: 92vh;
        flex-direction: column; align-items: center; padding-top: 40px; transform: translateX(100%); transition: 0.5s ease;
        box-shadow: -5px 0 15px rgba(9, 4, 53, 0.1);
    }
    .burger { display: block; }
    .nav-active { transform: translateX(0); }
    
    .hero-contenido-movilidad h1, .hero-contenido h1, .intro-kit h1 { font-size: 2.4rem; }
    
    .polaroid-1 { transform: rotate(-8deg) translateX(-30px); width: 180px; }
    .polaroid-2 { width: 180px; }
    .polaroid-3 { transform: rotate(8deg) translateX(30px); width: 180px; }
}

@media (max-width: 500px) {
    .section-title { font-size: 2.2rem; margin-bottom: 30px; }
    .tutorial-card { padding: 30px 20px; }
    .polaroid-1, .polaroid-2, .polaroid-3 { width: 140px; }
}


/* ==========================================================================
   MODAL COMPLEMENTARIO (LIGHTBOX DE GALERÍA)
   ========================================================================== */
.modal-galeria {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    left: 0; 
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto;
    background-color: rgba(9, 4, 53, 0.95); 
    backdrop-filter: blur(5px);
}

.modal-contenido {
    margin: auto; 
    display: block; 
    width: 90%; 
    max-width: 800px; 
    margin-top: 5vh;
    border: 5px solid #FFCE13; 
    border-radius: 10px; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    animation: zoomIn 0.3s ease;
}

.cerrar-modal {
    position: absolute; 
    top: 20px; 
    right: 40px; 
    color: #FFF7E3; 
    font-size: 50px; 
    font-weight: bold;
    transition: 0.3s ease; 
    cursor: pointer;
}

.cerrar-modal:hover { 
    color: #DB007D; 
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.flecha {
    cursor: pointer; 
    position: absolute; 
    top: 50%; 
    width: auto; 
    padding: 16px; 
    margin-top: -50px;
    color: #FFCE13; 
    font-weight: bold; 
    font-size: 40px; 
    transition: 0.3s ease;
    border-radius: 0 3px 3px 0; 
    user-select: none; 
    text-decoration: none;
}

.flecha-der { right: 5%; border-radius: 3px 0 0 3px; }
.flecha-izq { left: 5%; }
.flecha:hover { background-color: rgba(9, 4, 53, 0.8); color: #DB007D; }


/* Evitar desbordes de imágenes globales */
img, picture, video { max-width: 100%; display: block; }