/* Modelo 5 — Una página. Los colores los reemplaza el desplegador (no cambiar el nombre de las variables). */
:root {
    --color-server: #0395ce;
    --color-server-rgb: 3,149,206;
    --color-server-hover-dark: #0077b0;
    --color-server-hover-light: #21b3ec;
    --color-server2: #000000;
    --color-server2-rgb: 0,0,0;
    --color-server2-hover-dark: #000000;
    --color-server2-hover-light: #1e1e1e;
    --pw-fuente: "Outfit", system-ui, sans-serif;
    --pw-radio: 18px;
}

/* Cabecera: transparente sobre la portada, sólida al hacer scroll */
.m5-cabecera { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px clamp(16px, 4vw, 48px); color: #fff; transition: background .3s, box-shadow .3s, padding .3s; }
.m5-cabecera .pw-marca { color: inherit; }
.m5-cabecera .pw-marca img { height: 44px; }
.m5-cabecera--solida { background: var(--pw-fondo); color: var(--pw-texto); box-shadow: 0 2px 18px rgba(0, 0, 0, .08); padding-block: 8px; }
.m5-cabecera .pw-menu a:hover { background: rgba(255, 255, 255, .15); }
.m5-cabecera--solida .pw-menu a:hover { background: var(--pw-fondo-alt); }
body:not(.pw-pagina-index) #pw-contenido { padding-top: 64px; }

/* Portada */
.m5-portada { position: relative; min-height: 100svh; display: grid; place-items: center; text-align: center; color: #fff; overflow: hidden; background: var(--pw-primario); }
.m5-portada__car { position: absolute; inset: 0; }
.m5-portada__car .pw-carrusel__item { height: 100%; }
.m5-slide { position: relative; height: 100%; display: grid; place-items: center; }
.m5-portada__fondo { position: absolute; inset: 0; background: center / cover no-repeat; transform: scale(1.06); transition: transform 7s ease; }
.pw-carrusel__item.activo .m5-portada__fondo { transform: scale(1); }
.m5-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, .15) 40%, rgba(0, 0, 0, .55)); }
.m5-portada--sombra .m5-slide::after { background: rgba(0, 0, 0, .55); }
.m5-portada__texto { position: relative; z-index: 1; max-width: 860px; padding: 120px 16px 80px; }
.m5-portada h1, .m5-portada__titulo { font-size: clamp(2.2rem, 6vw, 4.4rem); font-weight: 800; letter-spacing: -.02em; text-shadow: 0 2px 20px rgba(0, 0, 0, .3); }
.m5-portada .pw-carrusel__puntos { bottom: 72px; }
/* Barra superior encima de la portada; la cabecera baja mientras se está arriba */
.pw-con-barra .pw-barra { position: absolute; inset: 0 0 auto; }
.pw-con-barra .m5-cabecera { transition: background .3s, box-shadow .3s, padding .3s, top .3s; }
.pw-con-barra .m5-cabecera.m5-arriba { top: var(--pw-barra-h); }
body.pw-con-barra:not(.pw-pagina-index) #pw-contenido { padding-top: calc(64px + var(--pw-barra-h)); }
.m5-agenda { display: grid; grid-template-columns: minmax(0, 360px) 1fr; gap: 32px; align-items: start; max-width: 1000px; margin: 0 auto; }
.m5-agenda .m5-eventos { max-width: none; margin: 0; }
.m5-evento { width: 100%; }
@media (max-width: 820px) { .m5-agenda { grid-template-columns: 1fr; } }
.m5-carril__item { display: block; }
.m5-persona small { color: var(--pw-texto-suave); font-size: .8rem; line-height: 1.3; }
.m5-seccion .pw-tarjeta { height: 100%; }
.m5-portada p { font-size: clamp(1.05rem, 2vw, 1.3rem); opacity: .95; }
.m5-portada__botones { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.m5-portada__bajar { position: absolute; bottom: 24px; left: 50%; z-index: 1; translate: -50% 0; color: #fff; font-size: 1.6rem; animation: m5-rebote 2s infinite; }
@keyframes m5-rebote { 50% { transform: translateY(8px); } }

/* Secciones */
.m5-seccion { min-height: 70vh; display: flex; align-items: center; scroll-margin-top: 60px; }
.m5-seccion > .pw-seccion { width: 100%; padding-block: 88px; }
.m5-seccion--alt { background: var(--pw-fondo-alt); }
.m5-encabezado { text-align: center; margin-bottom: 40px; }
.m5-encabezado h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; }
.m5-encabezado h2::after { content: ""; display: block; width: 56px; height: 4px; border-radius: 4px; background: var(--pw-secundario); margin: 14px auto 0; }
.m5-encabezado p { color: var(--pw-texto-suave); max-width: 640px; margin: 0 auto; }
.m5-centro { text-align: center; margin-top: 32px; }

.m5-dividido { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.m5-dividido .m5-encabezado { text-align: left; margin-bottom: 16px; }
.m5-dividido .m5-encabezado h2::after { margin-left: 0; }
.m5-dividido__img { border-radius: var(--pw-radio); box-shadow: var(--pw-sombra); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.m5-resumen { font-size: 1.08rem; color: var(--pw-texto-suave); }
@media (max-width: 820px) { .m5-dividido { grid-template-columns: 1fr; } }

.m5-cifras { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; }
.m5-cifra { text-align: center; padding: 28px 12px; border-radius: var(--pw-radio); background: var(--pw-fondo); box-shadow: var(--pw-sombra); }
.m5-cifra b { display: block; font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 800; color: var(--pw-primario); line-height: 1.1; }
.m5-cifra span { color: var(--pw-texto-suave); font-weight: 600; }

.m5-programa { display: flex; flex-direction: column; border-radius: var(--pw-radio); overflow: hidden; background: var(--pw-fondo); box-shadow: var(--pw-sombra); text-decoration: none; color: inherit; transition: transform .25s; }
.m5-programa:hover { transform: translateY(-6px); }
.m5-programa img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.m5-programa div { padding: 20px; }
.m5-programa p { color: var(--pw-texto-suave); }
.m5-programa span { color: var(--pw-primario); font-weight: 700; }

.m5-carril { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 32%); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
.m5-carril__item { position: relative; scroll-snap-align: start; border-radius: var(--pw-radio); overflow: hidden; color: #fff; text-decoration: none; }
.m5-carril__item img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; transition: transform .4s; }
.m5-carril__item:hover img { transform: scale(1.05); }
.m5-carril__item span { position: absolute; inset: auto 0 0 0; padding: 40px 16px 16px; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); font-weight: 700; }

.m5-equipo { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; }
.m5-persona { width: 160px; text-align: center; text-decoration: none; color: inherit; display: grid; gap: 4px; justify-items: center; }
.m5-persona img { width: 130px; height: 130px; border-radius: 50%; object-fit: cover; border: 4px solid var(--pw-fondo); box-shadow: 0 0 0 3px var(--pw-primario); transition: transform .25s; }
.m5-persona:hover img { transform: scale(1.06); }
.m5-persona span { color: var(--pw-texto-suave); font-size: .9rem; }

.m5-eventos { display: grid; gap: 14px; max-width: 820px; margin: 0 auto; }
.m5-evento { display: flex; gap: 18px; align-items: stretch; text-align: left; border: 0; padding: 0; border-radius: var(--pw-radio); overflow: hidden; background: var(--pw-fondo); box-shadow: var(--pw-sombra); cursor: pointer; font: inherit; color: inherit; }
.m5-evento > span:last-child { display: grid; gap: 4px; padding: 16px 16px 16px 0; align-content: center; }
.m5-evento small { color: var(--pw-texto-suave); }

.m5-interes { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
.m5-interes__item { display: grid; justify-items: center; gap: 10px; padding: 26px 14px; border-radius: var(--pw-radio); background: var(--pw-fondo); box-shadow: var(--pw-sombra); text-decoration: none; color: inherit; text-align: center; transition: transform .25s, background .25s, color .25s; }
.m5-interes__item:hover { transform: translateY(-4px); background: var(--pw-primario); color: #fff; }
.m5-interes__icono { font-size: 2rem; color: var(--pw-primario); }
.m5-interes__item:hover .m5-interes__icono { color: #fff; }

.m5-datos p { display: flex; gap: 10px; align-items: baseline; }
.m5-datos i { color: var(--pw-primario); width: 18px; }
.m5-horario { margin: 12px 0; color: var(--pw-texto-suave); }
.m5-tarjeta { background: var(--pw-fondo); border-radius: var(--pw-radio); box-shadow: var(--pw-sombra); padding: clamp(20px, 4vw, 36px); }

/* Indicador lateral de sección */
.m5-puntos { position: fixed; right: 18px; top: 50%; translate: 0 -50%; z-index: 40; display: grid; gap: 12px; }
.m5-puntos a { position: relative; display: block; width: 12px; height: 12px; border-radius: 50%; background: rgba(120, 120, 120, .45); transition: transform .2s, background .2s; }
.m5-puntos a.activo { background: var(--pw-primario); transform: scale(1.4); }
.m5-puntos span { position: absolute; right: 22px; top: 50%; translate: 0 -50%; white-space: nowrap; background: var(--pw-texto); color: #fff; font-size: .8rem; padding: 3px 8px; border-radius: 6px; opacity: 0; pointer-events: none; transition: opacity .2s; }
.m5-puntos a:hover span { opacity: 1; }
@media (max-width: 900px) { .m5-puntos { display: none; } .m5-cabecera .pw-menu { color: var(--pw-texto); } }

/* Pie */
.m5-pie { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr); gap: 32px; padding: 56px clamp(16px, 5vw, 64px) 28px; background: var(--pw-noche); color: color-mix(in srgb, #fff 80%, var(--pw-primario)); }
.m5-pie__marca { display: grid; gap: 12px; justify-items: start; align-content: start; }
.m5-pie__firma { grid-column: 1 / -1; text-align: center; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 18px; }
.m5-pie h3 { color: #fff; }
@media (max-width: 760px) { .m5-pie { grid-template-columns: 1fr; } }
.m5-pie__logo { max-height: 72px; width: auto; }
.m5-pie__lema { max-width: 560px; }
.m5-pie a { color: #fff; }
.m5-pie .pw-redes a { background: rgba(255, 255, 255, .08); color: #fff; }
.m5-pie__firma { font-size: .85rem; opacity: .8; margin-top: 12px; }
.m5-dividido--solo { grid-template-columns: 1fr; max-width: 820px; margin: 0 auto; text-align: center; } .m5-dividido--solo .m5-encabezado { text-align: center; } .m5-dividido--solo .m5-encabezado h2::after { margin-left: auto; }
.m5-dividido:not(:has(> img)) { grid-template-columns: 1fr; max-width: 820px; margin: 0 auto; }
.pw-menu-abierto .m5-cabecera { background: var(--pw-fondo); color: var(--pw-texto); }
