/* Iron & Steel Summit — paleta e identidad de Peña Colorada */
html { scroll-behavior: smooth; }

@font-face {
    font-family: 'Gilroy';
    src: url('../fonts/Gilroy-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Gilroy';
    src: url('../fonts/Gilroy-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Gilroy';
    src: url('../fonts/Gilroy-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Gilroy';
    src: url('../fonts/Gilroy-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Gilroy';
    src: url('../fonts/Gilroy-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Gilroy';
    src: url('../fonts/Gilroy-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Colores de marca Peña Colorada */
    --primary: #5D7388;    /* Azul Peña Colorada · Pantone 5405 C */
    --primary-dark: #46586a;
    --accent: #DA2B1F;     /* Rojo Peña Colorada · Pantone 485 C */
    --accent-dark: #b8231a;
    --gray: #898B8E;       /* Gris Peña Colorada · Pantone Cool Gray 8 C */

    --success: #16a34a;
    --warning: #d97706;
    --error: #dc2626;
    --bg: #f5f6f7;
    --text: #1f2430;
    --muted: #6b7280;
    --border: #e3e6e8;
    --radius: 14px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    overflow-x: hidden;
    font-family: 'Gilroy', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
}

h1, h2, h3, .btn { font-family: 'Gilroy', sans-serif; }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.01em; }

a { color: var(--primary); }

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px 16px 64px;
}
.container-narrow { max-width: 480px; }
.container-wide { max-width: 1280px; }

/* ---------- Landing / Hero ---------- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
/* Separador de identidad institucional: la misma línea gris/roja/gris que
   enmarca la tarjeta de Registro, aquí aplanada como franja bajo el header. */
.topbar::after {
    content: '';
    display: block;
    height: 7px;
    background: linear-gradient(to bottom,
        var(--gray) 0 2px,
        #fff 2px 3px,
        var(--accent) 3px 5px,
        #fff 5px 6px,
        var(--gray) 6px 7px);
}
.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto;
    padding: 14px 20px;
}
.topbar img { height: 46px; width: auto; display: block; }
.topbar-nav { display: flex; align-items: center; gap: 22px; }
.topbar-nav a:not(.btn) { color: var(--primary-dark); text-decoration: none; font-weight: 600; font-size: 0.92rem; }
.topbar-nav a:not(.btn):hover { color: var(--accent); }
.btn-small { padding: 9px 20px; font-size: 0.88rem; }
@media (max-width: 640px) {
    .topbar-nav a:not(.btn) { display: none; }
}

/* Deja aire para que el contenido de cada ancla no quede tapado por la
   barra superior fija al hacer scroll suave desde el menú. */
.section { scroll-margin-top: 84px; }

.hero {
    background: radial-gradient(circle at 15% 20%, rgba(218,43,31,0.10), transparent 45%),
                radial-gradient(circle at 85% 0%, rgba(93,115,136,0.12), transparent 40%),
                #fff;
    padding: 28px 20px 0;
    text-align: center;
    overflow: hidden;
}
.hero-kicker {
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: var(--accent);
    margin: 0 0 6px;
}
.hero-logo {
    display: block;
    width: min(52%, 300px);
    height: auto;
    margin: 18px auto 0;
}

.hero-banner {
    margin-top: 28px;
    background: linear-gradient(120deg, var(--primary), var(--primary-dark));
    color: #fff;
    padding: 34px 20px 40px;
    background-size: cover;
    background-position: center;
}
.hero-banner-inner { max-width: 720px; margin: 0 auto; }
.hero-banner h2 { margin: 0 0 6px; font-size: 1.4rem; }
.hero-banner p { margin: 0 0 22px; opacity: 0.92; }

.countdown { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.countdown-item { display: flex; flex-direction: column; align-items: center; }
.countdown-num {
    background: var(--accent);
    color: #fff;
    font-weight: 800;
    font-size: 1.6rem;
    width: 76px; height: 76px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.countdown-label { font-size: 0.7rem; letter-spacing: 1px; text-transform: uppercase; margin-top: 6px; opacity: 0.85; }

.hero-meta { margin: 0 0 22px; font-size: 1.02rem; opacity: 0.95; }

/* ---------- Botones ---------- */
.btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 999px;
    border: none;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: transform 0.1s ease, background-color 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-secondary { background: #eef1f3; color: var(--primary-dark); }
.btn-block { width: 100%; }
.btn-link { color: var(--primary); text-decoration: none; margin-left: 12px; font-size: 0.9rem; }

.btn-tiny {
    display: inline-block;
    font-size: 0.75rem;
    padding: 4px 8px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    text-decoration: none;
    border-radius: 6px;
    cursor: pointer;
    margin-right: 4px;
}
.btn-tiny-danger { border-color: var(--error); color: var(--error); }

/* ---------- Secciones ---------- */
.section { max-width: 1000px; margin: 0 auto; padding: 56px 20px; }
.section-title { font-size: 2.3rem; color: var(--accent); margin: 0 0 6px; }
.section-lede { color: var(--muted); max-width: 620px; margin: 0 0 32px; }

.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.about-date { margin-top: 22px; }
.about-date .day { font-size: 2rem; font-weight: 900; color: var(--primary); }
.about-date .place { color: var(--muted); font-weight: 600; }

/* ---------- "¡Tienes que vivirlo!" ---------- */
/* Fondo blanco de borde a borde de la ventana: el <section> ya no lleva
   la clase .section (que limita a max-width:1000px), así que su propio
   background llega de forma natural hasta los bordes del navegador.
   El contenido interno se centra con .section-inner, que reproduce las
   mismas medidas que .section (max-width + padding + scroll-margin-top). */
.section-inner { max-width: 1000px; margin: 0 auto; padding: 56px 20px; }
.vivelo-section { background: #fff; scroll-margin-top: 84px; }
.vivelo-section .section-inner { padding-top: 64px; }
#ponentes { background: #fff; scroll-margin-top: 84px; }
.vivelo-grid { display: grid; grid-template-columns: 1fr; }
.section-kicker { color: var(--accent); font-weight: 800; font-size: 1.6rem; margin: 0; line-height: 1; }
.vivelo-title {
    font-size: clamp(2.6rem, 6vw, 3.6rem);
    color: var(--accent);
    margin: 0 0 18px;
    line-height: 0.95;
}
.vivelo-desc { max-width: 640px; font-size: 1.05rem; color: var(--text); }
.vivelo-desc strong { color: var(--accent); font-weight: 800; }

/* ---------- CTA al final de cada sección ---------- */
.section-cta { text-align: center; margin-top: 40px; }

/* ---------- Motivo decorativo de fondo (intercalado en algunas secciones) ---------- */
.section-motif { position: relative; }
.section-motif::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    /* Ancla al borde derecho real de la ventana, no al borde del contenedor
       centrado de 1000px: distancia = mitad del espacio entre el ancho de
       la ventana y el ancho de este elemento. */
    right: calc(-1 * (100vw - 100%) / 2);
    background: url('../img/iss-fondo-motif.png') no-repeat bottom right;
    background-size: min(46%, 420px) auto;
    pointer-events: none;
    z-index: 0;
}
.section-motif > * { position: relative; z-index: 1; }
@media (max-width: 700px) {
    .section-motif::after { background-size: min(70%, 260px) auto; }
}

/* ---------- Lo que vas a encontrar (highlights) ---------- */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px 24px;
    margin-top: 16px;
}
.highlight-item { text-align: center; }
.highlight-photo {
    width: 118px; height: 118px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto 16px;
    box-shadow: 0 0 0 10px rgba(93,115,136,0.16);
}
.highlight-item h4 { margin: 0 0 6px; font-size: 0.95rem; color: var(--text); }
.highlight-item p { margin: 0; color: var(--muted); font-size: 0.82rem; line-height: 1.4; }

/* ---------- Programa (timeline) ---------- */
.timeline { max-width: 680px; margin: 8px auto 0; }
.timeline-item { display: flex; gap: 16px; }
.timeline-item:last-child .timeline-rail::after { display: none; }
.timeline-time {
    flex: 0 0 72px;
    text-align: right;
    font-weight: 800;
    color: var(--accent);
    font-size: 0.85rem;
    padding-top: 3px;
}
.timeline-rail { flex: 0 0 14px; display: flex; flex-direction: column; align-items: center; }
.timeline-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--primary); margin-top: 6px; flex-shrink: 0; }
.timeline-rail::after { content: ''; flex: 1; width: 2px; background: var(--border); margin-top: 4px; min-height: 30px; }
.timeline-content { padding-bottom: 26px; }
.timeline-tag { margin: 0 0 2px; font-size: 0.72rem; letter-spacing: 1px; text-transform: uppercase; color: var(--gray); font-weight: 700; }
.timeline-content h4 { margin: 0 0 2px; font-size: 1.02rem; color: var(--text); }
.timeline-speaker { margin: 0; color: var(--muted); font-size: 0.9rem; }

.confirmation-logo { max-height: 52px; width: auto; margin: 0 auto 18px; display: block; }

.partners-strip { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.partners-inner { max-width: 1000px; margin: 0 auto; padding: 30px 20px; }
.partners-label { text-align: center; color: var(--muted); font-size: 0.8rem; letter-spacing: 2px; text-transform: uppercase; margin: 0 0 20px; }
.partners-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 36px; }
.partners-logos img { height: 46px; width: auto; filter: grayscale(1); opacity: 0.7; }

/* ---------- Datos destacados (sección "vivirlo") ---------- */
.about-stats { display: flex; flex-wrap: wrap; gap: 28px; margin: 22px 0 6px; }
.about-stat { display: flex; flex-direction: column; }
.about-stat-num { font-size: 2rem; font-weight: 900; color: var(--accent); line-height: 1; }
.about-stat-label { color: var(--muted); font-size: 0.82rem; font-weight: 600; max-width: 140px; margin-top: 4px; }

/* ---------- Ponentes ---------- */
.speakers-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.speaker-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 20px;
    text-align: center;
}
.speaker-photo {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg);
    box-shadow: 0 0 0 6px rgba(93,115,136,0.10);
    margin-bottom: 14px;
}
.speaker-name { margin: 0 0 4px; font-size: 1.05rem; color: var(--text); }
.speaker-role { margin: 0 0 10px; color: var(--accent); font-size: 0.82rem; font-weight: 700; }
.speaker-bio { margin: 0; color: var(--muted); font-size: 0.85rem; line-height: 1.5; font-style: italic; }

/* ---------- Programa: encabezado de día y panel de egresados ---------- */
.day-heading {
    max-width: 680px;
    margin: 40px auto 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    font-size: 1.15rem;
}
.timeline + .day-heading { margin-top: 48px; }
.day-badge {
    background: var(--primary);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 999px;
    flex-shrink: 0;
}
.panel-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 4px; }
.panel-chip {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 0.78rem;
    color: var(--text);
}

/* ---------- Registro: panel diferenciado del fondo del Programa ---------- */
.registro-section {
    max-width: 1100px;
    margin: 24px auto 56px;
    padding: 56px 24px;
    border-radius: 28px;
    background:
        radial-gradient(circle at 12% 0%, rgba(218,43,31,0.10), transparent 45%),
        radial-gradient(circle at 90% 100%, rgba(93,115,136,0.16), transparent 50%),
        linear-gradient(165deg, #2f3d4a, var(--primary-dark) 55%, var(--primary));
    box-shadow:
        0 0 0 2px var(--gray),
        0 0 0 5px #fff,
        0 0 0 7px var(--accent),
        0 0 0 10px #fff,
        0 0 0 12px var(--gray);
}
.registro-section .section-title,
.registro-section .section-lede { color: #fff; }
.registro-section .section-lede { color: rgba(255,255,255,0.82); }
.registro-card {
    box-shadow: 0 24px 48px -20px rgba(20,28,38,0.55);
    border-color: transparent;
}
@media (max-width: 640px) {
    .registro-section { border-radius: 20px; padding: 40px 18px; margin: 16px 24px 40px; }
}

/* ---------- Tarjetas / genérico ---------- */
.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 20px;
}

.text-center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }

.form label {
    display: block;
    margin-bottom: 16px;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: left;
}
/* .form label ya fija display:block con más especificidad que la hoja de
   estilos por defecto del navegador para [hidden], así que sin esto un campo
   oculto con el atributo hidden (ej. Institución cuando el tipo de acceso es
   Staff) se seguiría viendo. */
.form [hidden] { display: none !important; }
.form input, .form textarea, .form select {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
}
.form input:focus, .form textarea:focus, .form select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(93,115,136,0.15);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid label { grid-column: span 1; }
.form-grid .full { grid-column: span 2; }
@media (max-width: 560px) {
    .form-grid { grid-template-columns: 1fr; }
    .form-grid .full { grid-column: span 1; }
}

.inline-form { display: inline-flex; gap: 6px; align-items: center; }

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 0.9rem;
}
.alert-error { background: #fee2e2; color: #991b1b; }
.alert-success { background: #dcfce7; color: #166534; }

.qr-box { margin: 24px 0; }
.qr-box img { border: 8px solid #fff; box-shadow: 0 0 0 1px var(--border); border-radius: 8px; }

/* ---------- Escáner ---------- */
.scan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #fff;
    border-bottom: 1px solid var(--border);
}
.qr-reader { width: 100%; border-radius: var(--radius); overflow: hidden; margin: 16px 0; }

/* Selector de evento a validar en el escáner: ambos reutilizan el mismo QR. */
.scan-mode-switch {
    display: flex;
    margin-top: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.scan-mode-btn {
    flex: 1;
    padding: 10px 12px;
    border: none;
    background: #fff;
    color: var(--muted);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
}
.scan-mode-btn + .scan-mode-btn { border-left: 1px solid var(--border); }
.scan-mode-btn.active { background: var(--primary); color: #fff; }

.result-panel {
    text-align: center;
    padding: 20px 16px;
    border-radius: var(--radius);
    margin-top: 16px;
    transition: background-color 0.15s ease;
}
.result-status { font-size: 1.1rem; font-weight: 700; margin: 0; }
.result-panel-idle { background: #eef0ff; color: var(--primary-dark); }
.result-panel-pending { background: #eef0ff; color: var(--primary-dark); }
.result-panel-success { background: #dcfce7; color: #166534; }
.result-panel-warning { background: #fef3c7; color: #92400e; }
.result-panel-error { background: #fee2e2; color: #991b1b; }

.result-attendee { margin-top: 10px; }
.result-attendee.hidden { display: none; }
.attendee-name { font-size: 1.6rem; font-weight: 800; margin: 4px 0 2px; }
.attendee-email { font-size: 1rem; opacity: 0.8; margin: 0 0 6px; }
.attendee-extra { font-size: 0.95rem; opacity: 0.85; margin: 0; }

.result-actions { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.result-actions.hidden { display: none; }
.result-actions .hidden { display: none; }
.result-actions .btn-primary { font-size: 1.1rem; padding: 16px 24px; }

/* ---------- Panel admin ---------- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}
.stat-box {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
}
.stat-num { display: block; font-size: 1.8rem; font-weight: 700; color: var(--primary); }

.table-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
/* white-space normal (no "nowrap" por default): con muchas columnas
   (institución, carrera, correo...) forzar una sola línea empuja la tabla
   fuera de la pantalla y obliga a hacer scroll horizontal para ver los
   botones de acciones. Dejamos que el texto largo baje de línea en vez de
   estirar la columna. */
.table th, .table td { padding: 8px 10px; border-bottom: 1px solid var(--border); text-align: left; white-space: normal; overflow-wrap: anywhere; vertical-align: top; }
.table th { white-space: nowrap; }
/* Las acciones se apilan en vertical (en vez de en fila) — así la columna de
   acciones ocupa el ancho de un solo botón en lugar del de cinco, que era lo
   que más empujaba la tabla fuera de la pantalla. */
.actions-cell { white-space: normal; }
.actions-group { display: flex; flex-direction: column; align-items: stretch; gap: 4px; min-width: 128px; }
.actions-group form.inline-form { display: contents; }
.actions-group .btn-tiny { text-align: center; }

.table-toolbar .inline-form input[type="text"] { width: 260px; }

.badge { padding: 2px 8px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; }
.badge-pending_verification { background: #fef3c7; color: #92400e; }
.badge-registered { background: #eef0ff; color: var(--primary-dark); }
.badge-checked_in { background: #dcfce7; color: #166534; }
.badge-cancelled { background: #fee2e2; color: #991b1b; }
.badge-yes { background: #dcfce7; color: #166534; }
.badge-no { background: #f1f2f3; color: var(--muted); }

.pagination { display: flex; gap: 6px; margin-top: 16px; }
.pagination a { padding: 4px 10px; border: 1px solid var(--border); border-radius: 6px; text-decoration: none; }
.pagination a.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.banner-preview { max-width: 240px; display: block; margin-top: 8px; border-radius: 8px; }

.footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px 32px;
    text-align: center;
    padding: 28px;
    color: var(--muted);
    font-size: 0.85rem;
    background: #fff;
    border-top: 1px solid var(--border);
}
.footer img { height: 30px; margin-bottom: 10px; }
.footer-main { flex: 1 1 auto; }
.footer-sponsors {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    margin-left: auto;
}
.footer-sponsors img { height: 26px; margin-bottom: 0; }
@media (max-width: 760px) {
    .footer-sponsors { margin-left: 0; }
}

@media (max-width: 760px) {
    .about-grid { grid-template-columns: 1fr; }
    .highlights-grid { grid-template-columns: repeat(3, 1fr); gap: 32px 16px; }
    .speakers-grid { grid-template-columns: repeat(2, 1fr); }
    .about-stats { gap: 20px; }

    /* La tabla de registros se convierte en tarjetas apiladas: en una pantalla
       angosta, una tabla ancha con scroll horizontal deja los botones de
       acciones cortados a la mitad. Así cada fila es una tarjeta legible. */
    .table-responsive thead { display: none; }
    .table-responsive, .table-responsive tbody, .table-responsive tr, .table-responsive td {
        display: block;
        width: 100%;
    }
    .table-responsive tr {
        border: 1px solid var(--border);
        border-radius: var(--radius);
        margin-bottom: 14px;
        padding: 14px;
        background: #fff;
    }
    .table-responsive td {
        white-space: normal;
        padding: 7px 0;
        border-bottom: 1px dashed var(--border);
    }
    .table-responsive td:last-child { border-bottom: none; padding-bottom: 0; }
    .table-responsive td::before {
        content: attr(data-label);
        display: block;
        font-weight: 700;
        font-size: 0.7rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: var(--muted);
        margin-bottom: 3px;
    }
    .table-responsive td.actions-cell { padding-top: 10px; }
    /* En la tarjeta móvil, los botones vuelven a ir en fila (envolviendo),
       no apilados uno debajo de otro como en la tabla de escritorio: en una
       tarjeta ya angosta, apilarlos alargaría demasiado cada tarjeta. */
    .table-responsive .actions-group { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
    .table-responsive .btn-tiny {
        flex: 1 1 auto;
        text-align: center;
        padding: 9px 10px;
        font-size: 0.82rem;
        margin-right: 0;
    }
    .table-wrap { overflow-x: visible; }
}
@media (max-width: 600px) {
    .hero-banner { padding: 28px 16px 32px; }
    .countdown-num { width: 62px; height: 62px; font-size: 1.3rem; }
    .highlights-grid { grid-template-columns: repeat(2, 1fr); }
    .highlight-photo { width: 96px; height: 96px; }
    .timeline-time { flex-basis: 58px; font-size: 0.75rem; }
    .speakers-grid { grid-template-columns: 1fr; }
    .day-heading { margin-left: 20px; margin-right: 20px; }
    .scan-mode-btn { padding: 10px 6px; font-size: 0.72rem; }
}

/* ---------- Visita a la mina / Peletizadora: toggle del formulario + popup de info ---------- */
.mine-visit-field, .peletizadora-field {
    background: #f2f4f5;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}
.mine-visit-field:has(input:disabled), .peletizadora-field:has(input:disabled) { opacity: 0.6; cursor: not-allowed; }
.mine-visit-toggle-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-weight: 600;
    color: var(--text);
}
.mine-visit-toggle-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--accent);
    flex-shrink: 0;
}
.mine-visit-counter {
    margin-left: auto;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary-dark);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 3px 12px;
    white-space: nowrap;
}
.mine-visit-legend {
    font-size: 0.82rem;
    color: var(--muted);
    font-weight: 400;
    padding-left: 28px;
}
.mine-visit-legend a { color: var(--primary); font-weight: 600; }

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 24, 30, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 500;
}
.modal-overlay[hidden] { display: none; }
.modal-box {
    position: relative;
    background: #fff;
    border-radius: 12px;
    max-width: 440px;
    width: 100%;
    padding: 28px 24px 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}
.modal-box h3 { margin: 0 0 12px; color: var(--accent); }
.modal-box p { margin: 0; color: var(--text); line-height: 1.5; }
.modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    color: var(--muted);
    cursor: pointer;
    padding: 4px 8px;
}
.modal-close:hover { color: var(--accent); }
