/* ===== Portada con dos headers que se alternan: 1) laptop/tablet/celular  2) mosaico de portadas interactivas =====
   REGLA: el Header 2 ocupa EXACTAMENTE el mismo bloque que el Header 1 (mismo alto, mismo ancho), en PC y en celular.
   El alto lo manda solo el Header 1; el Header 2 va encima, ocupando ese mismo espacio, y se alternan con un fundido.
   Sin JavaScript se ve solo el Header 1 (el Header 2 está oculto). */
.hero-slides { position: relative; }
.hero-slides > .hero { transition: opacity .7s ease; }
.hero-slides.is-2 > .hero { opacity: 0; pointer-events: none; visibility: hidden; transition: opacity .7s ease, visibility 0s linear .7s; }

.hero2 { display: none; position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; overflow: hidden; }
.hero-slides.has-2 > .hero2 { display: block; }
.hero-slides.is-2 > .hero2 { opacity: 1; }
.hero-slides:not(.is-2) > .hero2 { pointer-events: none; }

/* PC: el mosaico (maqueta B, proporción 2:1) se centra y se ajusta al bloque, sin pasarse de alto ni de ancho */
.hero2__inner { position: absolute; inset: 104px clamp(24px, 4.5vw, 96px) 76px; container-type: size; display: flex; align-items: center; justify-content: center; }
.mosaic { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: repeat(6, minmax(0, 1fr)); gap: 12px; width: min(100cqw, 1900px); height: min(100cqh, calc(min(100cqw, 1900px) / 1.9)); }
.mosaic__tile { position: relative; display: block; border-radius: 16px; overflow: hidden; color: inherit; text-decoration: none; transform: translateZ(0); }
.mosaic__tile--round { border-radius: 50%; justify-self: center; align-self: center; height: 100%; width: auto; aspect-ratio: 1 / 1; max-width: 100%; }
.mosaic__title { display: flex; flex-direction: column; justify-content: center; padding: 0 8px 0 24px; position: relative; grid-area: 1 / 1 / 3 / 4; min-width: 0; }
.mosaic__title::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; background: var(--brand-blue, #1E8CFF); border-radius: 2px; }
.mosaic__title h2 { font-family: var(--font-heading, 'Poppins', sans-serif); font-weight: 700; font-size: clamp(22px, 2.05vw, 36px); line-height: 1.12; letter-spacing: -.01em; color: var(--heading, #0E1A2D); }
.mosaic__title h2 .accent { color: var(--brand-blue, #1E8CFF); }
.mosaic__title p { margin-top: 10px; font-size: clamp(13px, 1.1vw, 16px); line-height: 1.4; color: var(--body, #5C6A7E); }
.mosaic__all { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 8px 14px 8px 16px; border-radius: 99px; background: var(--navy, #0A1B3C); color: #fff; white-space: nowrap; font: 600 clamp(11px, .95vw, 13px)/1 var(--font-body, 'Inter', sans-serif); text-decoration: none; transition: background .2s ease, transform .2s ease; }
.mosaic__all:hover { background: var(--navy-light, #15356C); transform: translateX(2px); }
.mosaic__all svg { flex: none; }
.mosaic__title small { margin-top: 10px; font-size: 13px; color: var(--brand-blue, #1E8CFF); font-weight: 600; }

/* Ubicación de cada portada (PC): usa todo el ancho; el alto lo marca el Header 1 */
.m-aurea { grid-area: 3 / 1 / 7 / 4; }
.m-burger { grid-area: 1 / 4 / 5 / 9; }
.m-gelato { grid-area: 1 / 9 / 5 / 11; }
.m-cafe { grid-area: 1 / 11 / 3 / 13; }
.m-pulse { grid-area: 3 / 11 / 5 / 13; }
.m-kicks { grid-area: 5 / 4 / 7 / 9; }
.m-flora { grid-area: 5 / 9 / 7 / 13; }

/* Botoncito «Ver» en cada portada del mosaico: abre la portada completa sin quitarle el clic al juego */
.mosaic__go { position: absolute; z-index: 8; right: 8px; top: 8px; padding: 5px 9px; border-radius: 99px; background: rgba(255, 255, 255, .9); color: #0A1B3C; font: 700 11px/1 var(--font-body, 'Inter', sans-serif); white-space: nowrap; text-decoration: none; opacity: 0; transform: translateY(-3px); transition: opacity .2s ease, transform .2s ease; box-shadow: 0 3px 10px rgba(0, 0, 0, .2); }
.mosaic__tile:hover .mosaic__go, .mosaic__go:focus-visible { opacity: 1; transform: none; }
.mosaic__tile--round .mosaic__go { right: 50%; top: 4%; transform: translate(50%, -3px); }
.mosaic__tile--round:hover .mosaic__go { transform: translate(50%, 0); }
@media (hover: none) { .mosaic__go { opacity: .95; transform: none; } .mosaic__tile--round .mosaic__go { transform: translate(50%, 0); } }

/* Selector de header: dos flechas sutiles a los costados (en el Header 1 y en el 2); casi invisibles hasta que se les acerca el cursor */
.hero-arrow { position: absolute; top: 50%; z-index: 6; display: none; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--navy, #0A1B3C); opacity: .3; cursor: pointer; transform: translateY(-50%); transition: opacity .25s ease, background .25s ease, transform .25s ease; }
.hero-arrow::before { content: ''; position: absolute; inset: -8px; }
.hero-slides.js-on .hero-arrow { display: inline-flex; }
.hero-arrow--prev { left: clamp(8px, 1.4vw, 28px); }
.hero-arrow--next { right: clamp(8px, 1.4vw, 28px); }
.hero-arrow:hover, .hero-arrow:focus-visible { opacity: 1; background: rgba(255, 255, 255, .92); box-shadow: 0 4px 16px rgba(14, 26, 45, .16); }
.hero-arrow--prev:hover { transform: translateY(-50%) translateX(-2px); }
.hero-arrow--next:hover { transform: translateY(-50%) translateX(2px); }

/* Celular y tablet chica: el MISMO bloque que el Header 1; las mismas siete portadas y el título, en una grilla compacta de 3 filas */
@media (max-width: 768px) {
  .hero2__inner { inset: 76px 12px 8px; container-type: normal; flex-direction: column; justify-content: flex-start; align-items: stretch; }
  .mosaic { width: 100%; flex: 1 1 0; min-height: 0; aspect-ratio: auto; gap: 8px; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: 1.25fr 1fr 1fr auto; }
  .m-burger { grid-area: 1 / 1 / 2 / 5; }
  .m-gelato { grid-area: 1 / 5 / 2 / 7; }
  .m-cafe { grid-area: 2 / 1 / 3 / 3; }
  .m-pulse { grid-area: 2 / 3 / 3 / 5; }
  .m-aurea { grid-area: 2 / 5 / 3 / 7; }
  .m-kicks { grid-area: 3 / 1 / 4 / 4; }
  .m-flora { grid-area: 3 / 4 / 4 / 7; }
  .mosaic__tile { border-radius: 12px; }
  .mosaic__title { grid-area: 4 / 1 / 5 / 7; padding: 4px 0 0; text-align: center; align-items: center; }
  .mosaic__title::before { display: none; }
  .mosaic__title h2 { font-size: 18px; }
  .mosaic__title h2 br { display: none; }
  .mosaic__title p { margin-top: 3px; font-size: 11.5px; }
  .mosaic__title small { display: none; }
  .mosaic__all { align-self: center; margin-top: 6px; padding: 6px 12px 6px 14px; font-size: 12px; }
}
@media (max-width: 768px) { .hero-arrow { width: 24px; height: 24px; opacity: .4; } .hero-arrow svg { width: 16px; height: 16px; } .hero-arrow--prev { left: 0; } .hero-arrow--next { right: 0; } }
@media (prefers-reduced-motion: reduce) { .hero-slides > .hero, .hero2, .hero-arrow { transition: none; } }

/* Celular: el área táctil ampliada de las flechas (.hero-arrow::before, inset -8px) sobresale 8 px por el borde derecho cuando la flecha está pegada al borde (right: 0).
   Eso hacía la página 8 px más ancha que la pantalla y se deslizaba de lado. overflow-x: clip lo recorta sin crear una zona de scroll; lo recortado queda fuera de la pantalla y no se podía tocar. */
@media (max-width: 768px) { .hero-slides { overflow-x: clip; } }
