/* =========================================
   1. FUENTES Y BASE
   ========================================= */
@font-face {
    font-family: 'Sansumi';
    src: url('../content/fonts/Sansumi-Regular.ttf') format('truetype');
    font-weight: normal; 
    font-style: normal;
}

@font-face {
    font-family: 'Sansumi';
    src: url('../content/fonts/Sansumi-Bold.ttf') format('truetype');
    font-weight: bold; 
    font-style: normal;
}

html {
    scroll-behavior: smooth; 
    overflow-x: hidden;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Calibri Light', 'Calibri', sans-serif;
    color: #3d3d3c;
    background-color: #ffffff; 
    position: relative;
    width: 100%;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background-image: url('../content/fondo_1.png'); 
    background-position: right 100px; 
    background-size: 70% auto; 
    background-repeat: no-repeat;
    opacity: 0.10; 
    z-index: -1; 
    pointer-events: none; 
}

section {
    scroll-margin-top: 120px; 
}

/* =========================================
   2. TIPOGRAFÍA GLOBAL
   ========================================= */
p, li, .texto-base {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.6;
    text-align: justify;
}

strong {
    font-weight: bold;
    color: #3d3d3c;
    text-shadow: none;
}

h2, .titulo-principal {
    font-size: 58px;
    font-weight: bold;
    color: #1c1c1c;
    margin-bottom: 20px;
}

.subtitulo-fecha {
    font-size: 42px; 
    font-weight: bold;
    color: #55c2d6; 
    margin-top: -15px; 
    margin-bottom: 25px; 
    text-shadow: none; 
}

.encabezado-seccion h2,
.titulo-partners,
.titulo-categoria,
.texto-sansumi {
    font-family: 'Sansumi', sans-serif;
}

/* =========================================
   3. CLASES DE UTILIDAD
   ========================================= */
.texto-azul { color: #2b5c9d; }
.texto-gris { color: #777; }
.blanco { color: #ffffff !important; }
.texto-blanco { color: #cccccc !important; text-shadow: none !important; font-size: 16px !important; }
.cursiva { font-style: italic; }
.text-center { text-align: center; }

.margen-inferior-grande { margin-bottom: 25px; }
.margen-superior-grande { margin-top: 50px; }
.margen-top-sm { margin-top: 15px; }
.gap-pequeno { gap: 30px; }
.texto-base-margen { margin-bottom: 20px; }
.btn-margen-top { margin-top: 10px; }
.btn-margen-superior { margin-top: 15px; }
.contenedor-pequeno { max-width: 600px; }
.titulo-margen { margin-bottom: 20px; }
.form-inline-block { display: inline-block; }
.texto-rojo-bold { color: #d93025; font-weight: bold; margin-bottom: 10px; }
.texto-verde-bold { color: #28a745; font-weight: bold; font-size: 18px; }
.rol-admin { color: #d93025; font-weight: bold; }
.rol-visitante { color: #333; }
.rol-alumno { color: #2b5c9d; font-weight: bold; }
.rol-expositor { color: #fbbc05; font-weight: bold; }
.rol-vip { color: #DAA520; font-weight: bold; }
.rol-profesional { color: #8e44ad; font-weight: bold; }

/* =========================================
   4. ESTRUCTURA Y GRID
   ========================================= */
.contenedor {
    max-width: 1200px;
    margin: 0 auto;
}

.espaciado-seccion {
    padding: 60px 5%;
}

.contenedor-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 60px; 
    align-items: center; 
}

/* =========================================
   5. COMPONENTES GLOBALES (NAVBAR)
   ========================================= */
.barra-navegacion {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky; 
    top: 0; 
    z-index: 1000; 
}

.btn-hamburguesa { display: none; }

.menu-colapsable {
    display: flex;
    align-items: center;
    flex: 1; 
}

.menu-colapsable nav {
    margin: 0 auto; 
}

.logo { 
    display: flex; 
    flex-direction: column; 
    text-decoration: none; 
    line-height: 0.85; 
    font-family: 'Calibri', sans-serif; 
}

.texto-logo { 
    font-size: 3.5rem; 
    font-weight: 900; 
    color: #2b5c9d; 
    letter-spacing: -1px; 
}

.anio-logo { 
    font-size: 2.5rem; 
    font-weight: bold; 
    color: #55c2d6; 
    letter-spacing: 1px; 
}

.enlaces-nav { display: flex; list-style: none; gap: 60px; }
.enlaces-nav a { text-decoration: none; color: #2b5c9d; font-weight: bold; font-size: 1.35rem; transition: color 0.3s ease; }
.enlaces-nav a:hover { color: #55c2d6; }

.btn-principal, .btn-rojo {
    text-decoration: none;
    padding: 9px 22px;
    border-radius: 20px; 
    font-weight: bold;
    font-size: 0.9rem;
    transition: all 0.3s ease; 
    border: none;      
    outline: none;     
    cursor: pointer;   
    display: inline-block; 
}

.btn-principal { background-color: #2b5c9d; color: #ffffff; }
.btn-principal:hover { background-color: #55c2d6; transform: scale(0.95); }

.btn-rojo { background-color: #d93025; color: #ffffff; margin: 0; align-self: center; }
.btn-rojo:hover { background-color: #b3241c; }

.btn-ancho { width: 100%; padding: 15px; font-size: 18px; border: none; cursor: pointer; }

/* =========================================
   6. PÁGINA PRINCIPAL (INDEX)
   ========================================= */
.hero-titulo-portada {
    padding-top: 40px; 
    padding-bottom: 20px;
}

.hero-textos {
    margin-left: 5%; 
    max-width: 100%;
    text-align: left; 
}

.hero-textos h1,
.hero-textos p {
    text-align: left; 
}

.hero-textos h1.titulo-principal {
    margin-bottom: 0px; 
    line-height: 1.1; 
}

.hero-textos p.subtitulo-fecha {
    margin-top: -15px; 
}

.portada {
    width: 100%;
    margin-top: -40px; 
    margin-bottom: 50px; 
    display: flex;
    justify-content: flex-start; 
}

.contenedor-imagenes-portada { 
    display: flex; 
    justify-content: flex-start; 
    align-items: center; 
    width: 100%; 
    max-width: 1920px; 
    margin: 0; 
}

.img-izq { 
    width: 60%; 
    height: auto; 
    z-index: 1; 
    flex-shrink: 0; 
}

.img-der { 
    width: 35%; 
    height: auto; 
    margin-left: 20px; 
    z-index: 2; 
    flex-shrink: 0; 
}

.encabezado-seccion { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; margin-top: 15px; }
.icono-encabezado { width: 60px; height: auto; }

.encabezado-seccion h2 {
    font-size: 45px; 
    margin-bottom: 0; 
}

.imagen-redondeada { width: 100%; height: auto; border-radius: 20px; box-shadow: none; background-color: transparent; padding: 0; }
.imagen-escalada { border-radius: 0; box-shadow: none; transform: scale(1.02); transition: transform 0.3s ease; }

.lista-puntos, .sin-puntos { list-style: none; padding-left: 0; }
.lista-puntos li { position: relative; padding-left: 30px; margin-bottom: 15px; text-align: left;}
.lista-puntos li::before { content: "•"; color: #000; font-size: 24px; position: absolute; left: 0; top: -5px; }
.lista-espaciada li { margin-bottom: 25px; }
.sublista { margin-top: 10px; padding-left: 20px; }
.sublista li { margin-bottom: 8px; }
.sublista-limpia { padding-left: 20px; margin-top: 5px; }
.sublista-limpia li { padding-left: 0; margin-bottom: 10px; }

.bloque-publico h3 { font-size: 23px; font-weight: bold; color: #000; margin-bottom: 5px; text-transform: uppercase; }
.numero-gigante { display: block; font-size: 4rem; font-weight: 900; color: #2b5c9d; line-height: 1; margin-bottom: 5px; }
.dia-agenda { margin-bottom: 35px; padding-left: 10px; }
.dia-agenda strong { font-size: 26px; display: block; margin-bottom: 2px; }
.dia-agenda p { font-size: 20px; margin-bottom: 0px; }
.dia-agenda h3 { font-size: 32px; font-weight: bold; color: #2b5c9d; margin-top: 5px; text-transform: capitalize; }

.contenedor-programa { padding-left: 75px; }
.item-programa { margin-bottom: 30px; }
.hora-programa { font-size: 24px; font-weight: 800; color: #2b5c9d; text-transform: uppercase; display: block; margin-bottom: 10px; }
.actividades-jovenes { margin-top: 15px; }
.nota-pequena { font-size: 14px; line-height: 1.4; }
.imagen-plano { width: 80%; height: auto; display: block; margin: 10px auto 0 auto; border-radius: 20px;  }

.seccion-partners { background-color: transparent; }
.subtitulo-partners { font-size: 16px; font-weight: 700; color: #555; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 15px; }
.linea-separadora { width: 60px; height: 3px; background-color: #2b5c9d; margin: 0 auto 20px auto; }
.titulo-partners { font-size: 48px; font-weight: bold; color: #2b2b2b; margin-bottom: 30px; }
.texto-partners { max-width: 900px; margin: 0 auto 50px auto; text-align: center; }

.grid-logos-partners { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; align-items: center; justify-items: center; }
.logo-partner { width: 100%; max-width: 200px; height: 120px; padding: 15px; display: flex; justify-content: center; align-items: center; background-color: transparent; transition: transform 0.3s ease; }
.logo-partner img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; transition: transform 0.3s ease; }
.logo-partner:hover img { transform: scale(1.1); }

.logo-partner.logo-schneider img { transform: scale(2.60); }
.logo-partner.logo-schneider:hover img { transform: scale(2.80); }
.logo-partner.logo-livoltek img { transform: scale(2.90); }
.logo-partner.logo-livoltek:hover img { transform: scale(3.20); }
.logo-partner.logo-abb img { transform: scale(1.30); }
.logo-partner.logo-abb:hover img { transform: scale(1.50); }
.logo-partner.logo-signify img { transform: scale(1.80); }
.logo-partner.logo-signify:hover img { transform: scale(2.0); }
.logo-partner.logo-prysmian img { transform: scale(1.90); }
.logo-partner.logo-prysmian:hover img { transform: scale(2.10); }
.logo-partner.logo-wallbox img { transform: scale(2.40); }
.logo-partner.logo-wallbox:hover img { transform: scale(2.60); }
.logo-partner.logo-patroc1 img { transform: scale(2.20); }
.logo-partner.logo-patroc1:hover img { transform: scale(2.40); }
.logo-partner.logo-patroc2 img { transform: scale(2.00); }
.logo-partner.logo-patroc2:hover img { transform: scale(2.20); }
.logo-partner.logo-patroc3 img { transform: scale(2.30); }
.logo-partner.logo-patroc3:hover img { transform: scale(2.50); }
.logo-partner.logo-uca img { transform: scale(2.0); }
.logo-partner.logo-uca:hover img { transform: scale(2.20); }

.grid-logos-partners.grid-centrado {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 5px;
}

.bloque-categoria-partner { margin-top: 60px; margin-bottom: 50px; }
.titulo-categoria { font-size: 42px; font-weight: 900; margin-bottom: 40px; text-transform: uppercase; letter-spacing: 3px; display: inline-block; padding-bottom: 15px; border-bottom: 4px solid #ccc; }
.titulo-categoria.golden { color: #DAA520; border-bottom-color: #DAA520; }
.titulo-categoria.silver { color: #595959; border-bottom-color: #595959; }
.titulo-categoria.patrocinadores { color: #2b5c9d; border-bottom-color: #2b5c9d; }
.titulo-categoria.colaboradores { color: #395079; border-bottom-color: #395079; }

.titulo-categoria.golden + .grid-logos-partners { 
    grid-template-columns: repeat(3, 1fr); 
    gap: 130px; 
    padding: 20px 0; 
}

.titulo-categoria.patrocinadores + .grid-logos-partners { 
    grid-template-columns: auto auto; 
    justify-content: center;
    gap: 210px; 
    padding: 20px 0; 
}

.titulo-categoria.golden + .grid-logos-partners .logo-partner,
.titulo-categoria.patrocinadores + .grid-logos-partners .logo-partner { max-width: 210px; }

.proximamente-caja { background-color: #f0f4f8; border: 3px dashed #2b5c9d; border-radius: 15px; padding: 50px 20px; max-width: 600px; margin: 0 auto; color: #2b5c9d; font-size: 32px; font-weight: 900; text-align: center; text-transform: uppercase; letter-spacing: 2px; }

/* =========================================
   7. PÁGINAS INDEPENDIENTES Y PANEL ADMIN
   ========================================= */
.contenedor-proximamente { display: flex; justify-content: center; align-items: center; height: 70vh; text-align: center; }
.texto-proximamente { font-size: 5rem; color: #2b5c9d; font-weight: 900; text-transform: uppercase; letter-spacing: 2px; }

.tarjeta-login { background-color: #ffffff; padding: 40px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); width: 100%; max-width: 400px; text-align: center; }
.tarjeta-login h2 { font-size: 32px; margin-bottom: 25px; }
.formulario-login { display: flex; flex-direction: column; gap: 20px; }
.input-form { padding: 15px; border: 1px solid #ccc; border-radius: 10px; font-size: 16px; font-family: 'Calibri', sans-serif; outline: none; transition: border-color 0.3s; }
.input-form:focus { border-color: #2b5c9d; }

.contenedor-dashboard { max-width: 1200px; margin: 60px auto; padding: 40px; background-color: #ffffff; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); text-align: center; }
.panel-admin { background-color: #f8f9fa; padding: 30px; border-radius: 15px; margin-top: 30px; border: 1px solid #e0e0e0; text-align: left; }
.caja-formulario { background-color: #ffffff; padding: 20px; border-radius: 10px; margin-bottom: 30px; border: 1px solid #e0e0e0; }
.formulario-inline { display: flex; gap: 15px; align-items: center; flex-wrap: wrap; }

.mensaje-error { color: #d93025 !important; background-color: #fce8e6; padding: 10px; border-radius: 10px; margin-bottom: 20px; font-size: 14px !important; text-align: center !important; }
.mensaje-exito { color: #155724; background-color: #d4edda; padding: 10px; border-radius: 5px; margin-bottom: 20px; border: 1px solid #c3e6cb; }
.tabla-responsive { overflow-x: auto; }
.tabla-usuarios { width: 100%; border-collapse: collapse; background-color: #ffffff; border-radius: 10px; overflow: hidden; }
.tabla-usuarios th, .tabla-usuarios td { padding: 15px; border-bottom: 1px solid #e0e0e0; text-align: left; }
.tabla-usuarios th { background-color: #2b5c9d; color: #ffffff; }

.btn-accion { padding: 8px 15px; border-radius: 5px; color: white; text-decoration: none; font-size: 14px; cursor: pointer; border: none; }
.btn-editar { background-color: #fbbc05; color: #333; font-weight: bold; }
.btn-editar:hover { background-color: #e0a800; }
.btn-eliminar-sm { background-color: #d93025; }
.btn-eliminar-sm:hover { background-color: #b3241c; }

.main-auth { height: auto; padding: 60px 5%; min-height: 70vh; }
.main-auth-registro { height: auto; padding: 60px 5%; }
.tarjeta-centrada { margin: 0 auto; }
.tarjeta-registro { max-width: 650px; margin: 0 auto; }
.texto-registro { margin-top: 25px; font-size: 15px; color: #666; }
.enlace-registro { color: #2b5c9d; font-weight: bold; text-decoration: none; transition: color 0.3s; }
.enlace-registro:hover { color: #55c2d6; }
.alerta-exito { background-color: #d4edda; border: 2px solid #28a745; padding: 20px; border-radius: 15px; margin-bottom: 20px; }
.alerta-exito h2 { color: #155724; margin-bottom: 10px; font-size: 28px; }
.alerta-exito h3 { font-size: 24px; color: #333; margin-bottom: 5px; }
.caja-hamburguesa { background-color: #fff; padding: 15px; border-radius: 10px; margin-top: 20px; text-align: center; }
.btn-hamburguesa-qr { background-color: #fbbc05; color: #333; width: 100%; }
.btn-hamburguesa-qr:hover { background-color: #e0a800; transform: scale(0.98); }
.alerta-error { background-color: #f8d7da; border: 2px solid #dc3545; padding: 30px; border-radius: 15px; margin-bottom: 20px; }
.alerta-error h2 { color: #721c24; margin-bottom: 10px; font-size: 28px; }
.alerta-error p { color: #721c24; }
.info-codigo-leido { font-size: 12px !important; color: #666 !important; margin-top: 10px; text-align: left; }
.lector-camara-estilos { width: 100%; max-width: 500px; margin: 0 auto; border-radius: 15px; overflow: hidden; border: 3px solid #2b5c9d; }
.formulario-vertical { display: flex; flex-direction: column; gap: 15px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; width: 100%; }
.form-grupo { text-align: left; }
.form-label { font-weight: bold; color: #333; }
.form-input-full { width: 100%; margin-top: 5px; }
.form-nota { font-size: 12px; color: #666; margin-bottom: 5px; }
.btn-cancelar { background-color: #6c757d; color: white; padding: 15px; border-radius: 10px; text-decoration: none; font-weight: bold; text-align: center; display: block; transition: 0.3s; }
.btn-cancelar:hover { background-color: #5a6268; }
.titulo-dashboard { font-size: 40px; margin-bottom: 20px; }
.tarjeta-qr { background-color: #f8f9fa; padding: 40px; border-radius: 15px; margin-top: 30px; border: 1px solid #ccc; text-align: center; max-width: 600px; margin-left: auto; margin-right: auto; }
.subtitulo-qr { margin-bottom: 10px; font-size: 32px; }
.texto-tipo-entrada { font-size: 1.2rem; margin-bottom: 20px; }
.contenedor-codigo-qr {
    display: flex; justify-content: center; margin: 20px auto; padding: 15px; background: #fff;
    border-radius: 10px; border: 2px dashed #2b5c9d;
    width: 250px;
    max-width: 100%;
}
.contenedor-codigo-qr > canvas,
.contenedor-codigo-qr > img {
    width: 100% !important; height: auto !important; object-fit: contain;
}
.texto-token-qr { letter-spacing: 2px; color: #55c2d6; margin-top: 10px; }
.panel-margen-top { margin-top: 50px; }
.mensaje-secreto { font-family: 'Calibri', sans-serif; text-align: center; margin-top: 50px; }
.titulo-secreto { color: #d93025; margin-top: 15px; margin-bottom: 10px; }
.btn-secreto-login { padding: 10px 20px; background: #2b5c9d; color: white; text-decoration: none; border-radius: 10px; display: inline-block; font-weight: bold; }

/* Botones de Inicio de Sesión Social */
.separador-social {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: #999;
    font-weight: bold;
    text-transform: uppercase;
}
.separador-social::before, .separador-social::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #ddd;
}
.separador-social::not(:empty)::before { margin-right: 15px; }
.separador-social::not(:empty)::after { margin-left: 15px; }

.btn-social {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; padding: 12px; border-radius: 10px; border: 1px solid #ccc;
    background-color: #fff; color: #333; font-weight: bold; font-size: 16px;
    cursor: pointer; transition: background-color 0.3s, border-color 0.3s;
    text-decoration: none; margin-bottom: 10px;
}
.btn-social:hover { background-color: #f8f9fa; border-color: #aaa; }
.btn-social img { width: 24px; height: 24px; }

/* Botones Sociales Circulares */
.contenedor-social-circle {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 20px;
}
.btn-social-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    border: 1px solid #ccc;
    background-color: #fff;
    cursor: pointer;
    transition: transform 0.3s, border-color 0.3s, background-color 0.3s;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.btn-social-circle:hover { background-color: #f8f9fa; transform: translateY(-3px); border-color: #aaa; box-shadow: 0 6px 12px rgba(0,0,0,0.1); }
.btn-social-circle img { width: 32px; height: 32px; }

.btn-social-circle.disabled {
    filter: grayscale(100%);
    opacity: 0.5;
    box-shadow: none;
}
.btn-social-circle.disabled:hover { background-color: #fff; transform: none; border-color: #ccc; }

/* Estilos para el Formulario Multi-Paso */
.paso-formulario { display: none; animation: fadeIn 0.5s ease; }
.paso-formulario.activo { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.indicador-pasos { display: flex; justify-content: space-between; margin-bottom: 30px; position: relative; }
.indicador-pasos::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 3px; background: #e0e0e0; z-index: 1; transform: translateY(-50%); }
.paso-bolita { width: 35px; height: 35px; border-radius: 50%; background: #e0e0e0; color: #666; display: flex; justify-content: center; align-items: center; font-weight: bold; z-index: 2; position: relative; transition: 0.3s; border: 3px solid #fff; }
.paso-bolita.completado { background: #55c2d6; color: #fff; }
.paso-bolita.actual { background: #2b5c9d; color: #fff; transform: scale(1.2); }

.grupo-checkbox { text-align: left; background: #f8f9fa; padding: 15px; border-radius: 10px; border: 1px solid #ccc; margin-bottom: 15px; }
.grupo-checkbox label { display: block; margin-bottom: 8px; cursor: pointer; color: #333; }
.grupo-checkbox input[type="checkbox"] { margin-right: 10px; transform: scale(1.2); }

.botones-pasos { display: flex; gap: 15px; margin-top: 20px; }
.botones-pasos button { flex: 1; }
.btn-gris { background-color: #6c757d; color: #fff; }
.btn-gris:hover { background-color: #5a6268; }

/* =========================================
   8. FOOTER
   ========================================= */
.pie-pagina { background-color: #2b2b2b; color: #ffffff; padding: 60px 5% 0 5%; margin-top: 60px; }
.contenedor-footer { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.logo-footer { align-items: flex-start; }
.titulo-footer { color: #55c2d6; font-size: 18px; margin-bottom: 20px; letter-spacing: 1px; }

.lista-enlaces-footer, .lista-contacto-footer { list-style: none; padding: 0; }
.lista-enlaces-footer li, .lista-contacto-footer li { margin-bottom: 12px; color: #cccccc; font-size: 16px; text-align: left;}
.lista-enlaces-footer a { color: #cccccc; text-decoration: none; transition: color 0.3s ease; }
.lista-enlaces-footer a:hover { color: #55c2d6; }
.lista-contacto-footer strong { color: #ffffff; }

.copyright-footer { text-align: center; padding: 20px 0; }
.copyright-footer p { color: #888888 !important; font-size: 14px !important; text-shadow: none !important; text-align: center !important; }

/* =========================================
   9. MEDIA QUERIES (RESPONSIVE)
   ========================================= */

/* Pantallas Medianas (1920x1080 al 125%) */
@media (max-width: 1600px) {
    body::before { background-size: 67% auto; }
    .contenedor-imagenes-portada { justify-content: flex-start; width: 100%; }
    .img-izq { width: 60%; }
    .img-der { width: 30%; margin-left: 20px; }
}

/* Portátiles Estándar */
@media (max-width: 1440px) {
    body::before { background-size: 50% auto; }
}

/* Portátiles Pequeños y Tablets (Horizontal) */
@media (max-width: 1366px) {
    body::before { background-size: 100% auto; }
}

@media (max-width: 1024px) {
    .enlaces-nav { gap: 30px; }
    .enlaces-nav a { font-size: 1.2rem; }
}

/* Móviles y Tablets (Vertical) */
@media (max-width: 992px) {
    body { background-attachment: scroll; }
    body::before {
        background-image: url('../content/fondo_web_eew2.png'); 
        background-size: cover; 
        background-position: right center; 
        height: 80vh;
        opacity: 0.8; 
    }
    
    /* Navbar y Menú Hamburguesa */
    .barra-navegacion { flex-direction: row; justify-content: space-between; flex-wrap: wrap; padding: 15px 5%; position: relative; }
    .btn-hamburguesa { display: flex; flex-direction: column; gap: 6px; background: none; border: none; cursor: pointer; padding: 5px; }
    .btn-hamburguesa span { width: 35px; height: 4px; background-color: #2b5c9d; border-radius: 5px; transition: all 0.3s ease; }
    
    .menu-colapsable { display: none; position: absolute; top: 100%; right: 0; left: 0; background-color: #ffffff; min-width: 250px; padding: 25px 20px; border-radius: 0 0 15px 15px; box-shadow: 0 10px 25px rgba(0,0,0,0.15); flex-direction: column; gap: 20px; z-index: 999; }
    .menu-colapsable.activo { display: flex; }
    .menu-colapsable nav { margin: 0; }
    .enlaces-nav { flex-direction: column; gap: 15px; align-items: center; }
    .enlaces-nav a { font-size: 1.2rem; display: block; text-align: center; }
    .menu-colapsable .btn-principal, .menu-colapsable .btn-rojo { text-align: center; width: 100%; margin-top: 10px; }
    .nav-auth-container { flex-direction: column; align-items: stretch; width: 100%; margin-left: 0; gap: 15px; }
    
    /* Portada y Textos */
    .contenedor-imagenes-portada { display: flex; flex-direction: column; width: 100%; padding: 0; align-items: center; }
    .img-izq { width: 100% !important; margin: 0 0 20px 0; order: 2; }
    .img-der { width: 90%; margin: 0 auto !important; order: 1; }
    .hero-textos { margin-left: 0; padding-left: 5%; padding-right: 5%; box-sizing: border-box; }
    
    .seccion-intro { margin-top: 30px; }
    
    h2, .titulo-principal { font-size: 2.5rem; text-align: left; } 
    .subtitulo-fecha { font-size: 1.8rem; text-align: left; margin-top: 15px; margin-bottom: 15px; }
    p, li, .texto-base { font-size: 1rem; text-align: left; }
    .titulo-principal .texto-sansumi { display: block; text-align: left; margin-top: 10px; margin-bottom: 10px; }

    /* Secciones Generales */
    .contenedor-grid { grid-template-columns: 1fr; gap: 40px; }
    .encabezado-seccion { justify-content: flex-start; } 
    .encabezado-seccion h2 { font-size: 28px; } 

    .dia-agenda h3 { font-size: 32px; text-align: left; } 
    .dia-agenda p, .nota-pequena { text-align: left; } 
    .contenedor-programa { padding-left: 0; }
    .hora-programa { font-size: 18px; }

    /* Partners y Logos */
    .titulo-partners { font-size: 36px; text-align: center; }
    .subtitulo-partners { text-align: center; }
    .texto-partners { text-align: justify; }

    .grid-logos-partners { grid-template-columns: repeat(2, 1fr); gap: 15px; } 
    .titulo-categoria.golden + .grid-logos-partners { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    
    .logo-partner.logo-livoltek img { transform: scale(1.60); }
    .logo-partner.logo-prysmian img { transform: scale(1.10); }
    .logo-partner.logo-abb img { transform: scale(1.0); }
    .logo-partner.logo-signify img { transform: scale(1.20); }
    .logo-partner.logo-schneider img { transform: scale(1.60); }
    .logo-partner.logo-wallbox img { transform: scale(1.50); }

    .titulo-categoria.patrocinadores + .grid-logos-partners { grid-template-columns: 1fr; justify-items: center; gap: 30px; }
    .logo-partner.logo-patroc1 img { transform: scale(2.0); }
    .logo-partner.logo-patroc2 img { transform: scale(2.0); }
    .logo-partner.logo-patroc3 img { transform: scale(2.60); }
    
    .grid-logos-partners.grid-centrado .logo-partner.logo-uca { margin: 0 auto; }
    .logo-partner.logo-uca img { transform: scale(2.10); }

    /* Footer */
    .texto-proximamente { font-size: 3rem; }
    .contenedor-footer { grid-template-columns: 1fr; text-align: center; overflow: hidden; width: 100%; box-sizing: border-box; }
    .logo-footer { align-items: center; }
    .titulo-categoria { font-size: 28px; display: block; text-align: center; } 
    .proximamente-caja { font-size: 22px; padding: 30px 15px; }
    .form-grid-2 { grid-template-columns: 1fr; gap: 20px; margin-bottom: 20px; }

    /* Ajustes Panel Admin y Dashboard Móvil */
    .contenedor-dashboard { padding: 20px 15px; margin: 20px 5%; border-radius: 15px; }
    .formulario-inline { flex-direction: column !important; align-items: stretch !important; width: 100%; gap: 10px; }
    .formulario-inline .input-form, .formulario-inline select, .formulario-inline button { width: 100% !important; max-width: 100% !important; }
    #form-search-user, #form-search-inv { flex-direction: column !important; width: 100%; align-items: stretch !important; }
    #search-user-input, #search-inv-input { width: 100% !important; margin-top: 5px !important; }
    .tabla-usuarios th, .tabla-usuarios td { padding: 10px; font-size: 14px; white-space: nowrap; }
    .panel-admin { padding: 15px; margin-top: 30px; }
    .caja-formulario { padding: 15px; }
    .subtitulo-qr { text-align: center; }    
    .tarjeta-qr { padding: 30px 20px; }
    .contenedor-codigo-qr { width: 190px; }
}

/* =========================================
   10. LEGAL Y TÉRMINOS
   ========================================= */
.contenido-legal p, .contenido-legal li {
    font-size: 15px !important;
}
.contenido-legal h3 {
    font-size: 20px !important;
}

/* =========================================
   11. MODALES PERSONALIZADOS
   ========================================= */
.modal-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.6); z-index: 9999;
    align-items: center; justify-content: center;
    backdrop-filter: blur(3px);
}
.modal-overlay.activo { display: flex; animation: fadeIn 0.2s ease; }
.modal-card {
    background-color: #fff; padding: 40px; border-radius: 20px;
    max-width: 400px; width: 90%; text-align: center; box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    transform: translateY(-20px); animation: slideDown 0.3s ease forwards;
}
@keyframes slideDown { to { transform: translateY(0); } }
.modal-icono { font-size: 60px; margin-bottom: 10px; line-height: 1; }
.modal-texto { font-size: 18px; color: #555; margin-bottom: 30px; line-height: 1.4; }
.modal-botones { display: flex; gap: 15px; justify-content: center; }
.modal-btn { flex: 1; padding: 15px; border-radius: 10px; font-weight: bold; cursor: pointer; border: none; font-size: 15px; transition: 0.3s; }
.modal-btn-cancelar { background-color: #e0e0e0; color: #333; }
.modal-btn-cancelar:hover { background-color: #ccc; transform: scale(0.98); }
.modal-btn-confirmar { background-color: #d93025; color: #fff; }
.modal-btn-confirmar:hover { background-color: #b3241c; transform: scale(0.98); }

@media (max-width: 768px) {
    .modal-card { padding: 30px 20px; }
}

/* =========================================
   12. ESCÁNER (TARJETAS)
   ========================================= */
.body-escaner { background-color: #f4f7f6 !important; }
.scan-card { background: #fff; border-radius: 20px; padding: 40px 30px; box-shadow: 0 10px 40px rgba(0,0,0,0.08); width: 100%; max-width: 500px; margin: 0 auto; text-align: center; animation: fadeIn 0.3s ease; }
.scan-icon { font-size: 70px; margin-bottom: 10px; line-height: 1; }
.scan-title { font-size: 28px; font-weight: 900; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 1px; }
.scan-name { font-size: 26px; color: #333; margin-bottom: 5px; font-weight: bold; }
.scan-subtitle { font-size: 18px; color: #777; margin-bottom: 20px; }
.scan-badge { display: inline-block; padding: 6px 20px; border-radius: 50px; font-size: 16px; font-weight: bold; text-transform: uppercase; margin-bottom: 30px; letter-spacing: 1px; }
.badge-green { background: #d4edda; color: #155724; }
.badge-blue { background: #cce5ff; color: #004085; }
.badge-red { background: #f8d7da; color: #721c24; }
.btn-huge { width: 100%; padding: 18px; font-size: 20px; border-radius: 15px; font-weight: 900; margin-bottom: 15px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); cursor: pointer; border: none; transition: transform 0.2s; }
.btn-huge:hover { transform: scale(0.98); }
.btn-outline { background: #fff; color: #2b5c9d; border: 2px solid #2b5c9d; width: 100%; padding: 15px; border-radius: 15px; font-size: 18px; font-weight: bold; cursor: pointer; transition: 0.3s; display: block; text-decoration: none; box-sizing: border-box; }
.btn-outline:hover { background: #f0f4f8; }

/* =========================================
   13. UTILIDADES EXTRA Y COMPONENTES REFACTORIZADOS
   ========================================= */
.nav-auth-container { display: flex; gap: 15px; align-items: center; margin-left: 20px; }
.nav-link-login { color: #2b5c9d; font-weight: bold; text-decoration: none; font-size: 1.1rem; transition: color 0.3s; }
.nav-link-login:hover { color: #55c2d6; }
.dashboard-header-flex { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; flex-wrap: wrap; gap: 10px; }
.mt-30 { margin-top: 30px !important; }
.dashboard-title-count { margin: 0; color: #333; font-size: 18px; }
.search-form-flex { display: flex; gap: 5px; }
.search-input-box { padding: 8px; width: 250px; margin-top: 0; }
.pagination-wrapper { margin-top: 20px; display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; align-items: center; }
.pagination-btn { padding: 6px 12px; background-color: #6c757d; color: white; text-decoration: none; border-radius: 20px; font-weight: bold; font-size: 0.9rem; transition: background-color 0.3s; }
.pagination-btn:hover { background-color: #5a6268; }
.pagination-btn.active { background-color: #55c2d6; cursor: default; }
.pagination-btn.active:hover { background-color: #55c2d6; }
.pagination-btn.arrow { background-color: #2b5c9d; min-width: 36px; text-align: center; }
.pagination-btn.arrow:hover { background-color: #1e4280; }
.pagination-btn.arrow.disabled { background-color: #c8c8c8; cursor: default; pointer-events: none; }
.pagination-dots { color: #6c757d; font-weight: bold; font-size: 1rem; padding: 0 2px; }
.main-escaner-flex { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: calc(100vh - 80px); padding-top: 30px; padding-bottom: 30px; }
.btn-huge-yellow { background: #fbbc05; color: #333; }
.btn-huge-yellow:hover { background: #e0a800; }
.input-code-box { background: #f0f4f8; padding: 20px; border-radius: 10px; border: 2px dashed #2b5c9d; margin-bottom: 25px; }
.input-code-title { margin-bottom: 10px; font-weight: bold; color: #2b5c9d; font-size: 16px; }
.input-code-flex { display: flex; gap: 10px; }

/* Opciones de días y horas (Apúntate) */
.opciones-dia {
    padding-left: 25px; margin-top: 10px; margin-bottom: 20px; border-left: 2px solid #55c2d6; display: none;
}

@media (max-width: 768px) {
    .opciones-dia {
        padding-left: 15px;
        border-left-width: 3px;
    }
}

/* =========================================
   14. NUEVO DISEÑO FORMULARIOS (MAQUETA)
   ========================================= */
:root {
    --color-primary: #2b5c9d;
    --color-primary-light: #3a71b8;
    --color-primary-muted: rgba(43, 92, 157, 0.08);
    --color-selected: #55c2d6;
    --color-selected-muted: rgba(85, 194, 214, 0.08);
    --color-success: #2f9e44;
    --color-success-bg: #ecfdf3;
    --color-error: #dc3545;
    --color-text: #1a1a2e;
    --color-text-secondary: #64748b;
    --color-text-muted: #94a3b8;
    --color-bg: #f8fafc;
    --color-surface: #ffffff;
    --color-border: #e2e8f0;
    --color-border-focus: var(--color-primary);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 50px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.02);
    --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.07), 0 8px 10px -6px rgba(0,0,0,0.03);
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;
}

.form-card {
    background: var(--color-surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
    width: 100%; max-width: 650px; padding: 40px; margin: 0 auto; position: relative; font-family: var(--font-body);
}
.step-header { margin-bottom: 28px; text-align: left; }
.step-title { font-size: 1.8rem; font-weight: 700; color: var(--color-text); line-height: 1.3; margin-bottom: 8px; }
.step-title strong { color: var(--color-primary); }
.step-subtitle { font-size: 1rem; color: var(--color-text-secondary); line-height: 1.5; }

.field { margin-bottom: 18px; text-align: left; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--color-text); margin-bottom: 6px; }
.required { color: var(--color-error); }
.input {
    width: 100%; padding: 12px 14px; border: 1.5px solid var(--color-border); border-radius: var(--radius-sm);
    font-size: 0.95rem; font-family: var(--font-body); color: var(--color-text); background: var(--color-surface);
    outline: none; transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.input:focus { border-color: var(--color-border-focus); box-shadow: 0 0 0 3px rgba(43, 92, 157, 0.12); transform: translateY(-1px); }
.input[readonly] { background: var(--color-bg); color: var(--color-text-secondary); cursor: default; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.field-hint { display: block; font-size: 0.78rem; color: var(--color-text-muted); margin-top: 6px; text-align: left; }

.social-divider { display: flex; align-items: center; gap: 16px; margin: 24px 0 16px; color: var(--color-text-muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; }
.social-divider::before, .social-divider::after { content: ''; flex: 1; height: 1px; background: var(--color-border); }
.social-buttons { display: flex; gap: 12px; margin-bottom: 8px; }
.btn-social-rect {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px;
    border: 1.5px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-surface);
    font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; color: var(--color-text);
    cursor: pointer; transition: all var(--transition-fast); text-decoration: none;
}
.btn-social-rect:hover:not(.disabled) { border-color: var(--color-text-muted); background: var(--color-bg); }
.btn-social-rect.disabled { opacity: 0.4; cursor: not-allowed; filter: grayscale(1); }

.role-legend { font-size: 0.85rem; font-weight: 600; color: var(--color-primary); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid var(--color-primary-muted); width: 100%; text-align: left;}
.role-fields { border: none; padding: 0; margin: 0; }

.days-section { border: none; padding: 0; margin-bottom: 8px; margin-top: 30px; }
.day-card { border: 1.5px solid var(--color-border); border-radius: var(--radius-md); margin-bottom: 12px; overflow: hidden; transition: border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast); }
.day-card:hover:not(.selected) { border-color: #b0bec5; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.day-card.selected { border-color: var(--color-selected); background: var(--color-selected-muted); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(85, 194, 214, 0.2); }
.day-toggle { display: flex; align-items: center; gap: 14px; padding: 16px 18px; cursor: pointer; user-select: none; }
.day-toggle input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; }
.day-info { flex: 1; text-align: left; }
.day-info strong { display: block; font-size: 0.95rem; color: var(--color-text); }
.day-info span { font-size: 0.8rem; color: var(--color-text-secondary); }
.day-check-icon { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--color-border); position: relative; transition: all var(--transition-fast); flex-shrink: 0; }
.day-card.selected .day-check-icon { background: var(--color-selected); border-color: var(--color-selected); }
.day-card.selected .day-check-icon::after { content: ''; position: absolute; top: 4px; left: 7px; width: 6px; height: 10px; border: solid white; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.day-options { padding: 0 18px 18px; flex-wrap: wrap; gap: 8px; display: none; animation: fadeSlideDown 300ms ease forwards; text-align: left;}
@keyframes fadeSlideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.day-options-title { width: 100%; font-size: 0.8rem; font-weight: 600; color: var(--color-text-secondary); margin-bottom: 8px; }
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.option-chip { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 18px; border: 1.5px solid #c4cdd5; border-radius: var(--radius-full); font-size: 0.85rem; cursor: pointer; transition: all var(--transition-fast); user-select: none; color: var(--color-text); background: var(--color-surface); flex: 1; min-width: fit-content; }
.option-chip:hover { border-color: var(--color-primary); color: var(--color-primary); }
.option-chip:active { transform: scale(0.95); }
.option-chip:has(input:checked) { background: var(--color-primary); border-color: var(--color-primary); color: white; box-shadow: 0 2px 8px rgba(43, 92, 157, 0.25); }
.option-chip input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; }
.catering-toggle { width: 100%; display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--color-surface); border: 1.5px solid #c4cdd5; border-radius: var(--radius-sm); font-size: 0.85rem; cursor: pointer; color: var(--color-text); transition: all var(--transition-fast); margin-top: 10px; }
.catering-toggle:hover { border-color: var(--color-success); }
.catering-toggle:has(input:checked) { background: var(--color-success-bg); border-color: var(--color-success); color: var(--color-text); animation: cateringPop 300ms cubic-bezier(0.34, 1.56, 0.64, 1); }
.catering-toggle input { accent-color: var(--color-success); }
@keyframes cateringPop { 50% { transform: scale(1.02); } 100% { transform: scale(1); } }

.legal-check { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border-radius: var(--radius-sm); cursor: pointer; transition: background var(--transition-fast); font-size: 0.85rem; color: var(--color-text-secondary); line-height: 1.5; text-align: left; }
.legal-check:hover { background: var(--color-bg); }
.legal-check:has(input:checked) { background: rgba(43, 92, 157, 0.04); }
.legal-check input { margin-top: 3px; accent-color: var(--color-primary); flex-shrink: 0; width: 16px; height: 16px; }
.legal-check a { color: var(--color-primary); text-decoration: underline; }

.btn-rect { padding: 15px 24px; border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 1rem; font-weight: 600; border: none; cursor: pointer; transition: all var(--transition-fast); text-decoration: none; display: inline-flex; align-items: center; justify-content: center; width: 100%; }
.btn-rect-primary { background: var(--color-primary); color: white; }
.btn-rect-primary:hover { background: var(--color-primary-light); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(43, 92, 157, 0.25); }
.btn-rect-secondary { background: var(--color-bg); color: var(--color-primary); border: 1.5px solid var(--color-border); }
.btn-rect-secondary:hover { background: var(--color-primary-muted); border-color: var(--color-primary); }

/* =========================================
   15. CLASES DE UTILIDAD EXTRAÍDAS
   ========================================= */
.w-100 { width: 100%; text-align: center; }
.w-150 { width: 150px !important; }
.w-200 { width: 200px !important; flex: 1; min-width: 200px; }
.mb-0 { margin-bottom: 0 !important; }
.mb-5 { margin-bottom: 5px !important; }
.mt-15 { margin-top: 15px !important; }
.p-20 { padding: 20px !important; }
.min-h-100 { min-height: 100vh; }
.text-left { text-align: left !important; }
.color-verde { color: #369228 !important; }
.enlace-gris { color: #777; text-decoration: underline; font-size: 14px; }

.tarjeta-qr-bordered { border: 1px solid var(--color-border); box-shadow: var(--shadow-sm); }
.alert-warning-box { background: var(--color-warning-bg); border: 1px solid #fde68a; border-left: 4px solid #f59e0b; color: #92400e; padding: 20px; margin-top: 20px; border-radius: var(--radius-sm); text-align: left; }
.alert-success-box { background: var(--color-success-bg); border: 1px solid #a7f3d0; border-left: 4px solid var(--color-success); color: #065f46; padding: 20px; margin-top: 20px; border-radius: var(--radius-sm); text-align: left; }
.alert-box-title { font-size: 1.1rem; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.alert-box-text { font-size: 0.95rem; margin-bottom: 8px; }
.alert-box-text:last-child { margin-bottom: 0; }
.form-actions-stack { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }

.code-box-wrapper { background: var(--color-bg); padding: 20px; border-radius: var(--radius-md); border: 1px solid var(--color-border); margin-bottom: 24px; }
.code-input-row { display: flex; flex-direction: row !important; flex-wrap: nowrap !important; align-items: stretch; gap: 8px; margin-top: 8px; width: 100%; }
.code-input-styled { flex: 1; min-width: 0; text-transform: uppercase; font-weight: 500; }
.code-error-msg { display: none; margin-top: 10px; }

.terminos-container { max-width: 800px; background: var(--color-surface); padding: 40px; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); margin: 0 auto; }
.terminos-content { line-height: 1.6; color: #444; text-align: justify; }
.terminos-title { margin-top: 25px; margin-bottom: 10px; color: var(--color-primary); font-size: 1.2rem; }

/* Wizard Multi-Paso */
.progress { margin-bottom: 32px; }
.progress-track { height: 4px; background: var(--color-border); border-radius: 4px; margin-bottom: 16px; overflow: hidden; }
.progress-fill { height: 100%; width: 0%; background: var(--color-primary); border-radius: 4px; transition: width 500ms cubic-bezier(0.16, 1, 0.3, 1); }
.progress-steps { display: flex; justify-content: space-between; }
.progress-step { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; }
.step-dot { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 600; background: var(--color-bg); color: var(--color-text-muted); border: 2px solid var(--color-border); transition: all 300ms ease; }
.progress-step.active .step-dot { background: var(--color-primary); color: white; border-color: var(--color-primary); transform: scale(1.1); animation: dotPop 400ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }
.progress-step.completed .step-dot { background: var(--color-selected); color: white; border-color: var(--color-selected); animation: dotComplete 300ms ease forwards; }
.step-label { font-size: 0.75rem; font-weight: 600; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.5px; transition: color 300ms ease; }
.progress-step.active .step-label, .progress-step.completed .step-label { color: var(--color-text); }

.steps-viewport { position: relative; }
.steps-track { position: relative; }
.step { display: none; }
.step.active { display: block; animation: stepEnter 400ms cubic-bezier(0.16, 1, 0.3, 1) forwards; }

.step-actions { display: flex; gap: 12px; margin-top: 28px; }
.btn-ghost { background: transparent; color: var(--color-text-secondary); padding: 15px 20px; font-family: var(--font-body); font-weight: 600; border: none; cursor: pointer; border-radius: var(--radius-sm); transition: background 0.2s; }
.btn-ghost:hover { background: var(--color-bg); color: var(--color-text); }

@keyframes stepEnter { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes dotPop { 0% { transform: scale(0.8); } 50% { transform: scale(1.2); } 100% { transform: scale(1.1); } }
@keyframes dotComplete { 0% { transform: scale(1); } 50% { transform: scale(1.15); } 100% { transform: scale(1); } }

@media (max-width: 640px) {
    .form-card { padding: 24px 20px 28px; border-radius: var(--radius-md); }
    .field-grid { grid-template-columns: 1fr; gap: 0; }
    .social-buttons { flex-direction: column; }
    .step-label { font-size: 0.65rem; }
    .step-dot { width: 28px; height: 28px; font-size: 0.8rem; }
}

/* =========================================
   16. LIGHTBOX IMÁGENES
   ========================================= */
.img-clickable { cursor: pointer; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.img-clickable:hover { transform: scale(1.02); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }

.lightbox-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.85); z-index: 99999;
    display: none; justify-content: center; align-items: flex-start;
    overflow-y: auto; padding: 40px 0;
    opacity: 0; transition: opacity 0.3s ease; backdrop-filter: blur(5px);
}
.lightbox-overlay.activo { opacity: 1; }
.lightbox-img {
    width: 85%; max-width: 950px; height: auto;
    margin: auto; border-radius: 15px; cursor: zoom-out;
    background-color: #ffffff; padding: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    transform: scale(0.95); transition: transform 0.3s ease;
}
.lightbox-overlay.activo .lightbox-img { transform: scale(1); }
.lightbox-close {
    position: fixed; top: 20px; right: 30px; color: white;
    font-size: 40px; font-weight: bold; cursor: pointer; user-select: none; transition: color 0.3s;
}
.lightbox-close:hover { color: #55c2d6; }

/* =========================================
   17. ESTILOS ESPECÍFICOS (INDEX / FOOTER)
   ========================================= */
.seccion-cta-registro {
    margin-top: -20px;
    margin-bottom: 60px;
    position: relative;
    z-index: 10;
}
.btn-registro-gigante {
    font-size: 20px;
    padding: 18px 40px;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(43, 92, 157, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 1px;
}
.img-horario-centrada {
    margin-top: 40px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 920px;
}
.bloque-whatsapp { margin-top: 30px; }
.titulo-whatsapp { color: #ffffff; font-size: 16px; }
.enlace-whatsapp {
    color: #25D366; text-decoration: none; font-weight: bold;
    display: inline-flex; align-items: center; gap: 8px;
    margin-top: 8px; margin-bottom: 12px; font-size: 16px;
}
.qr-whatsapp-img {
    width: 110px; height: 110px; border-radius: 10px;
    padding: 5px; background: white;
}
