/* ==========================================================
   ZORBA HELADOS · UBICACIÓN
   Misma línea visual de Inicio e Historia: azul metalizado, crema, tarjetas redondeadas,
   scoops y goteo. Usa las variables de index.css (--font-title, --font-body, --cream, etc.).
   Todas las clases empiezan con "ub-" para no pisar otras hojas.
   ========================================================== */
.ub-page { background: var(--cream, #FFFBF5); overflow-x: clip; }
@keyframes ubFloat { 0%,100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes ubGira { to { transform: rotate(360deg); } }
@keyframes ubCinta { to { transform: translateX(-50%); } }

/* ---------------- ENCABEZADO ---------------- */
.ub-hero {
    position: relative; isolation: isolate; z-index: 2; color: #fff;
    background-color: #28549C;
    background-image:
        linear-gradient(112deg, rgba(255,255,255,0) 26%, rgba(255,255,255,.085) 39%, rgba(255,255,255,0) 52%),
        radial-gradient(ellipse 44% 86% at 76% 46%, rgba(80,168,255,.58) 0%, rgba(80,168,255,.24) 48%, rgba(80,168,255,0) 100%),
        radial-gradient(ellipse 70% 100% at 0% 100%, rgba(8,28,72,.42) 0%, rgba(8,28,72,0) 70%);
}
.ub-hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.ub-marca {
    position: absolute; right: 3%; top: 50%; transform: translateY(-50%);
    font-family: var(--font-title); font-size: clamp(240px, 36vw, 520px); font-weight: 800; line-height: .8; letter-spacing: -.08em;
    color: rgba(255,255,255,.075); user-select: none;
}
.ub-sp { position: absolute; width: 15px; height: 5px; border-radius: 3px; background: linear-gradient(180deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,0) 45%, rgba(0,0,0,.14) 100%), var(--spr, #F08CB0); box-shadow: 0 2px 2px rgba(5,20,55,.35); }
.ub-sp-1 { left: 16%; top: 22%; --spr: #F08CB0; transform: rotate(32deg); }
.ub-sp-2 { left: 40%; top: 78%; --spr: #F2C66C; transform: rotate(-24deg); }
.ub-sp-3 { left: 52%; top: 16%; --spr: #8FD18B; transform: rotate(40deg); }
.ub-sp-4 { left: 8%; top: 70%; --spr: #6DCBFF; transform: rotate(-10deg); }
.ub-sp-5 { right: 6%; top: 80%; --spr: #E5483E; transform: rotate(20deg); }

.ub-hero-inner {
    position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: 40px;
    width: min(1180px, calc(100% - 48px)); min-height: 420px; margin: 0 auto; padding: 56px 0 84px;
}
.ub-migas { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: 22px; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.8); }
.ub-migas a { color: #BFE6FF; transition: color .2s ease; }
.ub-migas a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.ub-migas [aria-current] { color: #fff; }
.ub-titulo { margin: 0; font-family: var(--font-title); font-size: clamp(56px, 8.6vw, 112px); font-weight: 800; line-height: .96; letter-spacing: -.06em; text-transform: none; color: #fff; text-shadow: 0 10px 34px rgba(5,20,55,.28); }
.ub-subtitulo { max-width: 520px; margin: 22px 0 0; padding: 0 0 0 22px; border-left: 4px solid #F08CB0; font-family: var(--font-body); font-size: clamp(17px, 1.7vw, 22px); font-weight: 500; line-height: 1.5; color: #DDF1FF; }

/* Aro tipo radar con pin */
.ub-aro { position: relative; width: min(340px, 100%); aspect-ratio: 1; margin: 0 auto; }
.ub-aro-borde { position: absolute; inset: 0; border-radius: 50%; border: 2px dashed rgba(255,255,255,.5); animation: ubGira 48s linear infinite; }
.ub-aro-medio { position: absolute; inset: 16%; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); }
.ub-aro-nucleo { position: absolute; inset: 32%; border-radius: 50%; background: radial-gradient(circle at 34% 28%, rgba(255,255,255,.34) 0%, rgba(255,255,255,.08) 62%), rgba(12,36,84,.32); box-shadow: inset 0 0 0 3px rgba(255,255,255,.22), 0 24px 46px rgba(5,20,55,.34); }
.ub-aro-pin { position: absolute; left: 50%; top: 50%; translate: -50% -56%; display: grid; place-items: center; width: 104px; height: 104px; border-radius: 50% 50% 50% 8%; transform: rotate(-45deg); background: #A31C20; box-shadow: 0 18px 26px rgba(5,20,55,.4), inset 0 0 0 3px rgba(255,255,255,.2); animation: ubFloat 8s ease-in-out infinite; }
.ub-aro-pin::after { content: ""; width: 34px; height: 34px; border-radius: 50%; background: #fff; }
.ub-aro-img { position: absolute; height: auto; filter: drop-shadow(0 14px 14px rgba(5,20,55,.38)); animation: ubFloat 8s ease-in-out infinite; }
.ub-a1 { width: 24%; left: 2%; top: 18%; transform: rotate(-12deg); }
.ub-a2 { width: 24%; right: 0; top: 12%; transform: rotate(12deg); animation-delay: -3s; }
.ub-a3 { width: 22%; right: 6%; bottom: 6%; transform: rotate(-8deg); animation-delay: -5s; }
.ub-a4 { width: 18%; left: 8%; bottom: 10%; transform: rotate(14deg); animation-delay: -1s; }

/* Goteo del baño azul */
.ub-goteo { position: absolute; left: 0; top: calc(100% - 1px); z-index: 1; display: block; width: 100%; height: 86px; fill: #28549C; filter: drop-shadow(0 10px 8px rgba(8,28,72,.22)); pointer-events: none; }

/* ---------------- CUERPO ---------------- */
.ub-cuerpo { position: relative; padding: 150px 0 40px; }
.ub-deco { position: absolute; z-index: 0; height: auto; pointer-events: none; filter: drop-shadow(0 10px 10px rgba(31,40,60,.22)); animation: ubFloat 9s ease-in-out infinite; }
.ub-deco-1 { width: 58px; right: 24px; top: 230px; transform: rotate(12deg); }
.ub-deco-2 { width: 64px; left: 24px; top: 620px; transform: rotate(-6deg); animation-delay: -3s; }

/* Mapa + texto */
.ub-contenido { position: relative; z-index: 1; display: grid; grid-template-columns: 7fr 5fr; gap: 36px; align-items: stretch; width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.ub-mapa { position: relative; margin: 0; min-height: 480px; overflow: hidden; border: 10px solid #fff; border-radius: 40px; background: #EAF7FD; box-shadow: 0 28px 60px rgba(28,64,126,.28), 0 0 0 1px rgba(40,84,156,.12); }
.ub-mapa iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.ub-lateral { display: flex; flex-direction: column; gap: 28px; }
.ub-tarjeta { position: relative; padding: 44px 40px; border-radius: 34px; background: radial-gradient(circle at 12% 18%, rgba(255,255,255,.75) 0, rgba(255,255,255,0) 45%), linear-gradient(135deg, #FFF3E6 0%, #FFE4CC 100%); border: 1px solid rgba(153,104,62,.12); box-shadow: 0 22px 54px rgba(72,55,38,.10); }
.ub-tarjeta p { margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.85; color: #54483D; text-align: left; }
.ub-tarjeta .primer-parrafo::first-letter { float: left; margin: 6px 12px 0 0; font-family: var(--font-title); font-size: 78px; font-weight: 800; line-height: .78; color: var(--zorba-blue, #1C7FB8); }
.ub-direccion {
    position: relative; display: flex; align-items: center; gap: 20px; padding: 30px 34px; border-radius: 34px; color: #fff; background-color: #28549C;
    background-image:
        linear-gradient(112deg, rgba(255,255,255,0) 26%, rgba(255,255,255,.08) 40%, rgba(255,255,255,0) 54%),
        radial-gradient(ellipse 50% 90% at 88% 20%, rgba(80,168,255,.5) 0%, rgba(80,168,255,0) 100%);
    box-shadow: 0 28px 60px rgba(28,64,126,.32);
}
.ub-direccion-icono { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #F08CB0; color: #0C2454; font-size: 28px; }
.ub-direccion p { margin: 0; font-family: var(--font-title); font-size: 21px; font-weight: 700; line-height: 1.35; letter-spacing: -.02em; color: #fff; }

/* Cinta con el lema */
.ub-cinta { position: relative; z-index: 1; margin: 110px -30px 22px; padding: 18px 0; overflow: hidden; transform: rotate(-1.4deg); background: linear-gradient(90deg, #1C7FB8, #28549C 50%, #1C7FB8); box-shadow: 0 -8px 24px rgba(28,64,126,.2); }
.ub-cinta-pista { display: flex; align-items: center; gap: 34px; width: max-content; animation: ubCinta 48s linear infinite; }
.ub-cinta-pista span { font-family: var(--font-title); font-size: 22px; font-weight: 800; letter-spacing: -.02em; text-transform: uppercase; color: #fff; white-space: nowrap; }
.ub-cinta-pista img { width: 36px; height: auto; filter: drop-shadow(0 4px 4px rgba(5,20,55,.35)); }

/* Aparición al hacer scroll (solo si hay JavaScript) */
.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .ub-valor-azul.reveal { transform: translateY(8px); }
.js .ub-valor-azul.reveal.is-visible { transform: translateY(-26px); }
.js .ub-valor-azul.reveal.is-visible:hover { transform: translateY(-34px); }

/* Aparición al hacer scroll (solo si hay JavaScript) */
.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 1240px) { .ub-deco { display: none; } }
@media (max-width: 960px) {
    .ub-hero-inner { grid-template-columns: 1fr; min-height: 0; gap: 26px; padding: 44px 0 100px; }
    .ub-aro { width: 250px; margin: 6px 0 0; }
    .ub-contenido { grid-template-columns: 1fr; }
    .ub-mapa { min-height: 380px; }
}
@media (max-width: 600px) {
    .ub-hero-inner { width: calc(100% - 36px); padding: 34px 0 88px; }
    .ub-aro { width: 200px; }
    .ub-goteo { height: 62px; }
    .ub-cuerpo { padding: 110px 0 30px; }
    .ub-contenido { width: calc(100% - 28px); }
    .ub-mapa { min-height: 320px; border-width: 6px; border-radius: 28px; }
    .ub-tarjeta { padding: 34px 24px; border-radius: 26px; }
    .ub-tarjeta p { font-size: 15.5px; line-height: 1.8; }
    .ub-direccion { padding: 22px 22px; border-radius: 26px; gap: 14px; } .ub-direccion p { font-size: 17px; } .ub-direccion-icono { width: 52px; height: 52px; font-size: 22px; }
    .ub-cinta { margin: 80px -20px 0; padding: 13px 0; } .ub-cinta-pista span { font-size: 16px; } .ub-cinta-pista img { width: 28px; }
}
@media (prefers-reduced-motion: reduce) {
    .ub-aro-borde, .ub-aro-pin, .ub-aro-img, .ub-deco, .ub-cinta-pista { animation: none; }
    .js .reveal { opacity: 1; transition: none; }
}