/* ==========================================================
   ZORBA HELADOS · POSTRES HELADOS (catálogo)
   Composición inspirada en la referencia (visor central con flechas, ficha lateral,
   miniaturas abajo) con la paleta Zorba: azul, crema, durazno y chispas.
   ========================================================== */
.ps-page { background: var(--cream, #FFFBF5); overflow-x: clip; }
@keyframes psFloat { 0%,100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes psEntra { from { opacity: 0; transform: translateY(16px) scale(.94); } to { opacity: 1; transform: none; } }

.ps-hero {
    position: relative; isolation: isolate; text-align: center; padding: 128px 24px 110px;
    background:
        radial-gradient(ellipse 50% 40% at 50% 62%, rgba(108,198,240,.22) 0%, rgba(108,198,240,0) 70%),
        linear-gradient(180deg, #FFFBF5 0%, #FFF3E6 55%, #FFFBF5 100%);
}
.ps-deco { position: absolute; z-index: -1; height: auto; pointer-events: none; filter: drop-shadow(0 10px 10px rgba(31,40,60,.22)); animation: psFloat 9s ease-in-out infinite; }
.ps-deco-1 { width: 64px; left: 7%; top: 70px; transform: rotate(-10deg); }
.ps-deco-2 { width: 70px; right: 8%; top: 110px; transform: rotate(12deg); animation-delay: -3s; }
.ps-deco-3 { width: 54px; left: 4%; bottom: 120px; transform: rotate(8deg); animation-delay: -5s; }
.ps-spr { position: absolute; z-index: -1; width: 15px; height: 5px; border-radius: 3px; box-shadow: 0 2px 2px rgba(31,40,60,.22); background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,0) 45%, rgba(0,0,0,.14)), var(--c); }
.ps-s1 { --c: #F08CB0; left: 18%; top: 90px; transform: rotate(30deg); }
.ps-s2 { --c: #4DB3E6; right: 20%; top: 70px; transform: rotate(-25deg); }
.ps-s3 { --c: #F2C66C; right: 6%; bottom: 150px; transform: rotate(40deg); }
.ps-s4 { --c: #8FD18B; left: 14%; bottom: 90px; transform: rotate(-30deg); }

.ps-migas { display: flex; justify-content: center; flex-wrap: wrap; gap: 9px; margin-bottom: 18px; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted, #6B6B6B); }
.ps-migas a { color: var(--zorba-blue, #1C7FB8); } .ps-migas a:hover { text-decoration: underline; text-underline-offset: 4px; }
.ps-migas b { color: var(--ink, #2B2B2B); font-weight: 800; }
.ps-hero h1 { margin: 0; font-family: var(--font-title); font-size: clamp(40px, 5.6vw, 76px); font-weight: 800; line-height: 1; letter-spacing: -.06em; color: var(--ink, #2B2B2B); }
.ps-hero h1 span { color: var(--zorba-blue, #1C7FB8); }
.ps-sub { margin: 12px 0 44px; font-family: 'Caveat', cursive; font-size: clamp(24px, 2.6vw, 34px); font-weight: 600; color: #1D5F7E; }

/* Escenario: la "pantalla" de la referencia */
.ps-escenario {
    --tono: #1C7FB8;
    position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 340px; grid-template-rows: auto auto; column-gap: 28px;
    width: min(1120px, 100%); margin: 0 auto; padding: 0 20px; text-align: left;
}
.ps-visor { position: relative; grid-column: 1; grid-row: 1; display: grid; grid-template-columns: 56px minmax(0, 1fr) 56px; align-items: center; gap: 8px; min-height: 0; grid-template-rows: auto auto; align-self: center; }
.ps-foto { position: relative; grid-column: 2; grid-row: 1; display: grid; place-items: center; height: 380px; }
.ps-halo { position: absolute; left: 50%; top: 50%; width: 96%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--tono) 26%, transparent) 0%, transparent 68%); transition: background .5s ease; }
.ps-slide { position: absolute; inset: 0;  margin: 0; display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility .35s; }
.ps-slide.is-activo { opacity: 1; visibility: visible; }
.ps-slide img { position: absolute; inset: 4px; width: calc(100% - 8px); height: calc(100% - 8px); object-fit: contain; filter: drop-shadow(0 26px 22px rgba(60,35,20,.28)); }
.ps-slide.is-activo img { animation: psEntra .55s cubic-bezier(.2,.8,.2,1) both; }
.ps-nombre-foto { grid-column: 1 / -1; grid-row: 2; margin: 10px 0 0; text-align: center; font-family: var(--font-title); font-size: 20px; font-weight: 700; letter-spacing: -.02em; color: #5A4636; }

.ps-flecha {
    display: grid; place-items: center; width: 52px; height: 52px; border: 0; border-radius: 50%; cursor: pointer; background: #fff; color: var(--zorba-blue, #1C7FB8); font-size: 20px;
    box-shadow: 0 10px 22px rgba(31,57,73,.14); transition: transform .2s ease, background .2s ease, color .2s ease;
}
.ps-flecha:hover { background: var(--zorba-blue, #1C7FB8); color: #fff; transform: scale(1.08); }
.ps-prev { grid-column: 1; grid-row: 1; } .ps-next { grid-column: 3; grid-row: 1; }
.ps-flecha:focus-visible, .ps-mini:focus-visible, .ps-boton:focus-visible { outline: 3px solid #6CC6F0; outline-offset: 3px; }

/* Ficha lateral */
.ps-ficha { grid-column: 2; grid-row: 1 / span 2; display: grid; align-self: center; }
.ps-detalle {
    grid-area: 1 / 1; padding: 34px 30px 30px; border-radius: 26px; background: rgba(255,255,255,.7); backdrop-filter: blur(6px);
    box-shadow: 0 18px 44px rgba(72,55,38,.10); opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .35s ease, transform .35s ease, visibility .35s;
}
.ps-detalle.is-activo { opacity: 1; visibility: visible; transform: none; }
.ps-tipo { display: inline-block; padding: 5px 13px; border-radius: 999px; background: #EAF7FD; color: #1D5F7E; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.ps-detalle h2 { margin: 14px 0 8px; font-family: var(--font-title); font-size: 30px; font-weight: 800; line-height: 1.1; letter-spacing: -.045em; color: var(--zorba-blue, #1C7FB8); }
.ps-desc { margin: 0 0 18px; font-size: 14.5px; line-height: 1.65; color: #5C5249; }
.ps-detalle h3 { margin: 0 0 8px; font-family: var(--font-title); font-size: 15px; font-weight: 800; color: #5A4636; }
.ps-detalle ul { margin: 0 0 24px; padding: 0; list-style: none; }
.ps-detalle li { position: relative; padding: 4px 0 4px 20px; font-size: 14px; line-height: 1.5; color: #5C5249; }
.ps-detalle li::before { content: ""; position: absolute; left: 3px; top: 12px; width: 7px; height: 7px; border-radius: 50%; background: var(--tono); }
.ps-boton {
    display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 20px; border-radius: 999px; background: var(--zorba-blue, #1C7FB8); color: #fff;
    font-family: var(--font-title); font-size: 16px; font-weight: 800; box-shadow: 0 12px 24px rgba(28,127,184,.32); transition: transform .2s ease, background .2s ease;
}
.ps-boton:hover { background: #115D88; transform: translateY(-2px); }
.ps-boton i { font-size: 19px; }

/* Miniaturas */
.ps-miniaturas { grid-column: 1; grid-row: 2; display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 30px; }
.ps-mini {
    display: grid; place-items: center; width: 82px; height: 82px; padding: 8px; border: 2px solid transparent; border-radius: 50%; cursor: pointer; background: rgba(255,255,255,.7);
    box-shadow: 0 8px 18px rgba(72,55,38,.10); transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.ps-mini { position: relative; }
.ps-mini img { position: absolute; inset: 9px; width: calc(100% - 18px); height: calc(100% - 18px); object-fit: contain; }
.ps-mini:hover { transform: translateY(-4px); }
.ps-mini.is-activo { border-color: var(--tono); background: #fff; transform: scale(1.12); }
.ps-puntos { display: none; }

@media (min-width: 961px) { .ps-nombre-foto { display: none; } .ps-foto { height: 360px; } }
/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 960px) {
    .ps-escenario { grid-template-columns: 1fr; padding: 0; max-width: 560px; }
    .ps-visor { grid-column: 1; min-height: 0; grid-template-columns: 44px minmax(0, 1fr) 44px; }
    .ps-foto { height: 300px; }
    .ps-flecha { width: 44px; height: 44px; font-size: 17px; }
    .ps-miniaturas { grid-row: 2; margin-top: 22px; }
    .ps-ficha { grid-column: 1; grid-row: 3; margin-top: 22px; align-self: stretch; }
    .ps-hero { padding-bottom: 90px; }
}
@media (max-width: 600px) {
    .ps-hero { padding: 108px 14px 80px; }
    .ps-escenario { padding: 0; }
    .ps-foto { height: 240px; }
    .ps-visor { grid-template-columns: 38px minmax(0, 1fr) 38px; gap: 4px; }
    .ps-flecha { width: 38px; height: 38px; font-size: 15px; }
    .ps-mini { width: 62px; height: 62px; padding: 6px; } .ps-miniaturas { gap: 10px; }
    .ps-detalle { padding: 26px 22px 24px; } .ps-detalle h2 { font-size: 26px; }
    .ps-deco, .ps-s1, .ps-s4 { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .ps-deco { animation: none; } .ps-slide.is-activo img { animation: none; } * { transition-duration: .01s !important; }
}

/* Segunda sección de una misma página (p. ej. "Baldes extra" en sabores.php) */
.ps-seccion { padding-top: 70px; background: linear-gradient(180deg, #FFFBF5 0%, #FFF3E6 55%, #FFFBF5 100%); }
.ps-seccion::before { content: ""; display: block; width: min(1120px, calc(100% - 40px)); height: 0; margin: -20px auto 56px; border-top: 2px dashed rgba(28,127,184,.22); }
.ps-titulo-sec { margin: 0; font-family: var(--font-title); font-size: clamp(34px, 4.6vw, 62px); font-weight: 800; line-height: 1; letter-spacing: -.06em; color: var(--ink, #2B2B2B); }
.ps-titulo-sec span { color: var(--zorba-blue, #1C7FB8); }
