/* ==========================================================================
   VO GROUP · Ubicaciones (/ubicaciones/ y sus 5 ciudades, desde 27-oct-2026)
   Misma estética del Home v2, Paquetes v2, las LP v3 y los hubs v2.
   Se carga DESPUÉS de home-v2.css, resenas-google.css, mapa-sedes.css,
   oficina-privada.css (portada con velo, precios en vidrio, tarjetas de sede
   oa2-sede, cierre) y oficinas-virtuales.css (tarjetas de ciudad ov2-city).
   Solo agrega lo propio de estas páginas con el prefijo ub2-.
   Las páginas las genera tools/ubicaciones/build_ubicaciones.py.
   ========================================================================== */

.ub2 { --ub2-line: rgba(0, 56, 125, 0.10); }

/* ==========================================================================
   PORTADA: muro de fachadas reales (o el ícono de la ciudad si no hay fotos)
   ========================================================================== */
.ub2-hero { padding-bottom: clamp(110px, 12vw, 150px); }
.ub2-hero__wall {
    position: absolute; inset: -6% -4%; z-index: -2; display: grid; gap: 12px;
    grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr));
    transform: rotate(-5deg) scale(1.08); transform-origin: 50% 40%;
}
.ub2-hero__col { display: flex; flex-direction: column; gap: 12px; animation: ub2-drift 22s ease-in-out infinite alternate; }
.ub2-hero__col:nth-child(even) { margin-top: -90px; animation-direction: alternate-reverse; }
.ub2-hero__col img {
    width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; border-radius: 18px;
    background: var(--hv2-blue-700); filter: saturate(0.85);
}
@keyframes ub2-drift { from { transform: translateY(0); } to { transform: translateY(-42px); } }

/* Ciudades sin fotos propias todavía (Monterrey, Guadalajara, Cancún): ícono de la ciudad sobre retícula */
.ub2-hero--icon::after {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background-image: radial-gradient(rgba(255,255,255,0.16) 1.2px, transparent 1.3px);
    background-size: 22px 22px;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,0.6) 60%, transparent 100%);
            mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,0.6) 60%, transparent 100%);
}
.ub2-hero__mark {
    position: absolute; z-index: -1; right: max(2vw, calc(50% - 640px)); bottom: 70px;
    width: clamp(180px, 26vw, 360px); height: auto; opacity: 0.22; pointer-events: none;
    filter: brightness(0) invert(1);
}

/* Accesos directos: ciudades (índice) o sedes (página de ciudad) */
.ub2-jump { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 26px; padding: 0; }
.ub2-jump a {
    display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff !important;
    padding: 9px 12px 9px 16px; border-radius: 999px; font-size: 15px; font-weight: 600;
    background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.24);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    transition: transform 0.25s var(--hv2-ease), background 0.2s, border-color 0.2s;
}
.ub2-jump a:hover { background: rgba(255,255,255,0.22); border-color: #fff; transform: translateY(-2px); }
.ub2-jump b {
    min-width: 26px; height: 26px; padding: 0 7px; border-radius: 999px; display: inline-grid; place-items: center;
    background: #5fe08a; color: #0c3b1f; font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums;
}
.ub2-jump--sedes a { font-size: 14px; padding: 8px 16px; }

/* ==========================================================================
   TARJETAS DE SEDE (páginas de ciudad): filas centradas de hasta 3
   ========================================================================== */
.ub2-sedes { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(16px, 2.2vw, 28px); }
.ub2-sedes > .oa2-sede { flex: 0 1 calc((100% - 2 * clamp(16px, 2.2vw, 28px)) / 3); min-width: 0; scroll-margin-top: 150px; }
.ub2-sedes--1 > .oa2-sede { flex-basis: 100%; max-width: 980px; }
.ub2-sedes--1 > .oa2-sede { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
.ub2-sedes--1 .oa2-sede__media { aspect-ratio: auto; min-height: 340px; }
.oa2-sede.is-target { animation: ub2-ping 1.6s var(--hv2-ease); }
@keyframes ub2-ping { 0% { box-shadow: 0 0 0 0 rgba(40,167,69,0.55); } 100% { box-shadow: 0 0 0 18px rgba(40,167,69,0); } }

/* Sede sin foto de fachada: ícono de la ciudad, retícula y alfiler (no es foto del edificio) */
.ub2-nophoto {
    position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: #fff;
    background-image: radial-gradient(rgba(255,255,255,0.18) 1.2px, transparent 1.3px);
    background-size: 18px 18px;
}
.ub2-nophoto img { width: 44%; max-width: 150px; height: auto; opacity: 0.5; filter: brightness(0) invert(1); }
.ub2-nophoto__pin {
    position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -62px 0 0 -23px;
    color: #5fe08a; filter: drop-shadow(0 6px 12px rgba(0,0,0,0.35));
}
.ub2-nophoto__label {
    position: absolute; left: 14px; right: 14px; bottom: 14px; font-size: 12.5px; font-weight: 600;
    color: rgba(255,255,255,0.78);
}
.oa2-sede__badge--off { background: rgba(255,255,255,0.92); color: #7a3b12; }

.ub2-sede__svc { margin: 0 0 4px; }
.ub2-sede__svc .hv2-chip { font-size: 13px; padding: 5px 11px; }
.ub2-sede__svc .ub2-off {
    display: inline-block; font-size: 13px; font-weight: 600; padding: 5px 11px; border-radius: 999px;
    color: var(--hv2-ink-soft); background: #f1f3f6; text-decoration: line-through; text-decoration-color: rgba(74,91,112,0.45);
}
.ub2-sede__actions {
    display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center;
    margin-top: auto; padding-top: 14px; border-top: 1px dashed #d9e3f0;
}
.ub2-sede__actions .hv2-more { margin-top: 0; font-size: 14.5px; }
.ub2-sede__actions button.hv2-more { appearance: none; background: none; border: 0; padding: 0; font: inherit; font-weight: 700; font-size: 14.5px; cursor: pointer; }
.ub2-sede__actions .ub2-wa { color: #1f8a3f !important; }
.ub2-sede__actions svg { width: 16px; height: 16px; }
.oa2-sede .oa2-sede__addr { margin-bottom: 12px; }

/* ==========================================================================
   ÍNDICE: tarjetas de ciudad (ov2-city) con lo propio de esta página
   ========================================================================== */
.ov2-city p.ub2-city__svc { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 10px 0 0; font-size: 13.5px; line-height: 1.4; color: var(--hv2-ink-soft); }
.ub2-city__svc span { font-weight: 600; }
.ub2-city__svc a { color: var(--hv2-blue-700) !important; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(0,56,125,0.3); text-underline-offset: 3px; }
.ub2-city__svc a:hover { text-decoration-color: currentColor; }

/* ==========================================================================
   LO QUE HAY EN CADA SEDE / SERVICIOS DE LA CIUDAD
   ========================================================================== */
.ub2-offer { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: clamp(14px, 2vw, 22px); }
.ub2-offer .hv2-card h3 { font-size: 19px; margin-bottom: 8px; }
.ub2-offer .hv2-card p { font-size: 15px; margin-bottom: 14px; }
.ub2-offer .hv2-more { margin-top: auto; font-size: 14.5px; }
.ub2-price { display: block; margin: 0 0 12px; font-size: 13px; color: var(--hv2-ink-soft); }
.ub2-price b { display: block; font-size: 24px; line-height: 1.2; color: var(--hv2-blue-900); font-variant-numeric: tabular-nums; }
.ub2-price--plain b { font-size: 18px; }

.ub2-notes { max-width: 980px; margin: clamp(22px, 3vw, 34px) auto 0; padding: clamp(18px, 2.4vw, 26px); border-radius: 22px; background: rgba(255,255,255,0.78); border: 1px solid var(--ub2-line); }
.ub2-notes h3 { font-size: 17px; color: var(--hv2-blue-900); margin: 0 0 12px; }
.ub2-notes .ov2-city__notes { border-top: 0; padding-top: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 22px; }
.ub2-notes .ov2-city__notes li { font-size: 14.5px; }

/* Tabla: qué aplica en cada ciudad */
.ub2-compare { max-width: 1080px; margin: 0 auto; }
.ub2-swipe { display: none; font-size: 13px; color: var(--hv2-ink-soft); margin: 0 0 8px; }
.ub2-table-wrap { overflow-x: auto; border-radius: 22px; border: 1px solid var(--ub2-line); background: #fff; box-shadow: 0 14px 44px rgba(0, 38, 94, 0.08); }
.ub2-table-wrap:focus-visible { outline: 3px solid rgba(26,95,180,0.45); outline-offset: 2px; }
.ub2-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; }
.ub2-table th, .ub2-table td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid #edf1f6; line-height: 1.45; }
.ub2-table thead th { background: #f4f8fd; font-size: 12.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--hv2-blue-700); }
.ub2-table tbody th { font-weight: 700; color: var(--hv2-blue-900); white-space: nowrap; }
.ub2-table tbody th a { color: inherit; text-decoration: none; }
.ub2-table tbody th a:hover { color: var(--hv2-blue-500); text-decoration: underline; }
.ub2-table tbody th small { display: block; font-weight: 500; font-size: 13px; color: var(--hv2-ink-soft); }
.ub2-table tbody tr:last-child th, .ub2-table tbody tr:last-child td { border-bottom: 0; }
.ub2-yes, .ub2-no, .ub2-soon { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.ub2-yes { color: #1f6e3c; }
.ub2-no { color: var(--hv2-ink-soft); }
.ub2-soon { color: #7a5a12; }
.ub2-yes::before, .ub2-no::before, .ub2-soon::before { content: ''; width: 18px; height: 18px; border-radius: 50%; flex: none; }
.ub2-yes::before { background: #e4f4ea url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232d8b4e' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/11px no-repeat; }
.ub2-no::before { background: #eef1f5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a5b70' stroke-width='3.5' stroke-linecap='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E") center/10px no-repeat; }
.ub2-soon::before { background: #fff4d6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a5a12' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Cpath d='M12 8v4l2.5 1.5'/%3E%3C/svg%3E") center/12px no-repeat; }
.ub2-table td small { display: block; margin-top: 2px; font-size: 13px; color: var(--hv2-ink-soft); font-weight: 500; }
.ub2-compare__note { font-size: 13.5px; line-height: 1.55; color: var(--hv2-ink-soft); margin: 14px 4px 0; }

/* ==========================================================================
   VISITA: tres pasos
   ========================================================================== */
.ub2-steps { list-style: none; margin: 0 auto; padding: 0; max-width: 1080px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 22px); counter-reset: ub2; }
.ub2-step { position: relative; padding: clamp(22px, 2.6vw, 30px); padding-top: 62px; }
.ub2-step::after {
    counter-increment: ub2; content: counter(ub2); position: absolute; left: clamp(22px, 2.6vw, 30px); top: 20px;
    width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--hv2-blue-700), var(--hv2-blue-500)); color: #fff; font-weight: 800; font-size: 15px;
}
.ub2-step h3 { font-size: 18px; margin: 0 0 8px; }
.ub2-step p { font-size: 15px; margin: 0; }
.ub2-visit__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 18px; align-items: center; margin-top: clamp(22px, 3vw, 32px); }
.ub2-visit__cta .hv2-more { margin-top: 0; }

/* Otras ciudades (páginas de ciudad) */
.ub2-others { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.8vw, 18px); max-width: 1080px; margin: 0 auto; }
.ub2-other { display: flex; align-items: center; gap: 14px; padding: 16px 18px; text-decoration: none; }
.ub2-other img { width: 44px; height: 44px; flex: none; object-fit: contain; }
.ub2-other b { display: block; font-size: 16.5px; color: var(--hv2-blue-900); }
.ub2-other span { display: block; font-size: 13px; color: var(--hv2-green); font-weight: 600; }

.ub2-geo__note { text-align: center; margin: clamp(18px, 2.6vw, 28px) auto 0; font-size: 15px; color: var(--hv2-ink-soft); }
.ub2-geo__note .hv2-more { margin-top: 0; }

/* ==========================================================================
   ADAPTACIÓN A TABLETA Y CELULAR
   ========================================================================== */
@media (max-width: 1100px) {
    .ub2-offer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ub2-others { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
    .ub2-sedes > .oa2-sede { flex-basis: calc((100% - clamp(16px, 2.2vw, 28px)) / 2); }
    .ub2-sedes--1 > .oa2-sede { grid-template-columns: 1fr; flex-basis: 100%; }
    .ub2-sedes--1 .oa2-sede__media { aspect-ratio: 4 / 3; min-height: 0; }
    .ub2-steps { grid-template-columns: 1fr; max-width: 620px; }
    .ub2-hero__wall { --cols: 4 !important; }
    .ub2-hero__col:nth-child(n+5) { display: none; }
}
@media (max-width: 720px) {
    .ub2-sedes > .oa2-sede { flex-basis: 100%; }
    .ub2-offer, .ub2-others { grid-template-columns: 1fr; }
    .ub2-notes .ov2-city__notes { grid-template-columns: 1fr; }
    .ub2-swipe { display: block; }
    .ub2-jump { justify-content: flex-start; }
    .ub2-hero__wall { --cols: 3 !important; inset: -4% -12%; }
    .ub2-hero__col:nth-child(n+4) { display: none; }
    .ub2-hero__mark { right: -30px; bottom: 120px; width: 200px; opacity: 0.16; }
    .ub2-visit__cta .hv2-finder__go { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
    .ub2-hero__col { animation: none; }
    .oa2-sede.is-target { animation: none; }
}
