/* =========================================================================
   PÁGINA DE ACTIVIDAD  ·  templates/tpl_colegiojapon/eventos/eventos.css
   Todo está limitado a .evento-pagina: no afecta al resto del sitio.
   ========================================================================= */

.evento-pagina { color: #18352a; font-family: 'Segoe UI', Arial, sans-serif; background: #fbfcfa; }
.evento-pagina *,
.evento-pagina *::before,
.evento-pagina *::after { box-sizing: border-box; }
.evento-pagina h1,
.evento-pagina h2,
.evento-pagina p { overflow-wrap: break-word; }

.evento-contenedor { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }


/* ---------- BANNER (fijo) ---------- */

.evento-banner {
    position: relative;
    display: flex;
    align-items: center;
    min-height: clamp(320px, 34vw, 440px);
    overflow: hidden;
    color: #fff;
    background: #075c38 center / cover no-repeat;
    border-bottom: 5px solid #f4b400;
}
.evento-banner::before {
    position: absolute;
    inset: 0;
    content: '';
    background: linear-gradient(90deg, rgba(5, 70, 44, .96) 0%, rgba(5, 70, 44, .9) 38%, rgba(5, 70, 44, .3) 70%, rgba(5, 70, 44, 0) 100%);
}
.evento-banner-sin-foto { background: linear-gradient(120deg, #06452c 0%, #087048 60%, #d79b08 170%); }
.evento-banner-sin-foto::before { display: none; }

.evento-banner-texto { position: relative; z-index: 1; width: min(1160px, calc(100% - 40px)); margin: 0 auto; padding: 56px 0; }
.evento-banner-texto > * { max-width: 560px; }
.evento-banner-etiqueta { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; color: #fff; font-size: 20px; font-weight: 700; }
.evento-banner-etiqueta svg { width: 30px; height: 30px; color: #f4b400; }
.evento-banner h1 { margin: 0 0 16px; color: #fff; font-size: clamp(32px, 4.4vw, 54px); line-height: 1.08; }
.evento-banner h1 strong { color: #ffc400; }
.evento-banner-resumen { margin: 0; color: rgba(255, 255, 255, .92); font-size: 18px; line-height: 1.6; }


/* ---------- DOS COLUMNAS ---------- */

.evento-principal { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; align-items: start; padding: 56px 0; }

.evento-titulo-bloque { display: flex; align-items: center; gap: 16px; }
.evento-icono { display: grid; width: 56px; height: 56px; flex: 0 0 56px; place-items: center; border-radius: 50%; color: #fff; background: #075c38; }
.evento-icono svg { width: 28px; height: 28px; }
.evento-titulo-bloque h2 { margin: 0; color: #075c38; font-size: clamp(26px, 3vw, 34px); line-height: 1.1; }
.evento-subrayado { display: block; width: 64px; height: 5px; margin-top: 8px; border-radius: 4px; background: #f4b400; }

.evento-sobre > p { margin: 22px 0 0; color: #33483d; font-size: 17px; line-height: 1.75; }
.evento-sobre > .evento-titulo-bloque + p { margin-top: 26px; }

.evento-info { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; margin-top: 30px; }
.evento-fecha { display: flex; align-items: center; gap: 14px; padding: 16px 22px; border-radius: 12px; color: #18352a; background: #eaf3ee; font-size: 15px; line-height: 1.4; }
.evento-fecha-icono { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; color: #075c38; }
.evento-fecha-icono svg { width: 36px; height: 36px; }
.evento-sobre .evento-gracias { max-width: 240px; margin: 0; color: #075c38; font: 24px/1.25 'Segoe Script', 'Brush Script MT', 'Lucida Handwriting', cursive; transform: rotate(-4deg); }


/* ---------- GALERÍA ---------- */

.evento-galeria-panel { min-width: 0; padding: 24px; border-radius: 16px; background: #f1f6f3; }
.evento-galeria-texto { margin: 6px 0 0; color: #33483d; font-size: 15px; line-height: 1.5; }

/* object-fit: contain -> la foto se ve completa, sin recortes */
.evento-visor { position: relative; aspect-ratio: 16 / 10; margin-top: 20px; overflow: hidden; border-radius: 12px; background: #dce7df; }
.evento-visor img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain !important; transition: opacity .2s ease; }
.evento-visor:focus-visible { outline: 3px solid #f4b400; outline-offset: 3px; }

.evento-flecha { position: absolute; top: 50%; z-index: 2; display: grid; width: 42px; height: 42px; place-items: center; padding: 0 0 3px; border: 0; border-radius: 50%; color: #075c38; background: rgba(255, 255, 255, .94); box-shadow: 0 2px 8px rgba(0, 0, 0, .22); font-size: 28px; line-height: 1; cursor: pointer; transform: translateY(-50%); }
.evento-flecha:hover { color: #fff; background: #075c38; }
.evento-flecha-anterior { left: 12px; }
.evento-flecha-siguiente { right: 12px; }

.evento-puntos { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin-top: 14px; }
.evento-punto { width: 12px; height: 12px; padding: 0; border: 2px solid #7f9a8b; border-radius: 50%; background: transparent; cursor: pointer; }
.evento-punto.activo { border-color: #f4b400; background: #f4b400; }

.evento-miniaturas { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 24px) / 3); gap: 12px; margin-top: 16px; padding-bottom: 4px; overflow-x: auto; scrollbar-width: thin; }
.evento-miniatura { aspect-ratio: 4 / 3; padding: 0; overflow: hidden; border: 3px solid transparent; border-radius: 10px; background: #dce7df; cursor: pointer; }
.evento-miniatura img { display: block; width: 100%; height: 100%; object-fit: contain !important; }
.evento-miniatura.activa { border-color: #f4b400; }
.evento-miniatura:focus-visible { outline: 3px solid #075c38; outline-offset: 2px; }

.evento-galeria-vacia { display: grid; min-height: 220px; place-items: center; margin-top: 20px; padding: 24px; border: 2px dashed #9bb2a5; border-radius: 12px; color: #486657; background: #e5ece7; text-align: center; }


/* ---------- CIERRE ---------- */

.evento-cierre { padding: 52px 0; background: #eef5f1; }
.evento-cierre-interior { display: grid; grid-template-columns: auto minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: 32px; }
.evento-cierre-icono { display: grid; width: 92px; height: 92px; place-items: center; color: #075c38; }
.evento-cierre-icono svg { width: 80px; height: 80px; }
.evento-cierre-titulo h2 { margin: 0; color: #075c38; font-size: clamp(26px, 3.2vw, 38px); line-height: 1.1; }
.evento-cierre-interior > p { margin: 0; color: #33483d; font-size: 17px; line-height: 1.75; }


/* ---------- VOLVER ---------- */

.evento-volver-zona { padding: 32px 0 56px; }
.evento-volver { display: inline-flex; align-items: center; gap: 10px; padding: 13px 20px; color: #075c38; background: #edf4ef; font-weight: 700; text-decoration: none; transition: color .2s, background .2s; }
.evento-volver:hover,
.evento-volver:focus-visible { color: #fff; background: #075c38; }


/* ---------- TABLET Y CELULAR ---------- */

@media (max-width: 900px) {
    .evento-principal { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 40px 0; }
    .evento-cierre-interior { grid-template-columns: auto minmax(0, 1fr); }
    .evento-cierre-interior > p { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
    .evento-contenedor,
    .evento-banner-texto { width: calc(100% - 28px); }
    .evento-banner { min-height: 300px; }
    .evento-banner::before { background: rgba(5, 70, 44, .84); }
    .evento-banner-texto { padding: 44px 0; }
    .evento-banner-resumen { font-size: 16px; }
    .evento-sobre > p { font-size: 16px; }
    .evento-galeria-panel { padding: 16px; }
    .evento-miniaturas { grid-auto-columns: calc((100% - 12px) / 2.4); gap: 8px; }
    .evento-flecha { width: 38px; height: 38px; }
    .evento-cierre { padding: 40px 0; }
    .evento-cierre-icono { width: 64px; height: 64px; }
    .evento-cierre-icono svg { width: 56px; height: 56px; }
    .evento-volver-zona { padding: 24px 0 44px; }
}

@media (prefers-reduced-motion: reduce) {
    .evento-visor img { transition: none; }
}