/* ==========================================================================
   OFICINA Y CROQUIS
   Marcado en sitio_web/componentes/ubicacion_oficina.html
   Comportamiento en sitio_web/js/ubicacion_oficina.js
   ========================================================================== */

.oficina {
    --of-azul: #102a43;
    --of-vino: #6b1e2e;
    --of-verde: #15803d;
    --of-tinta: #0f172a;
    --of-suave: #5f7183;
    --of-linea: #e3eaf1;
    padding: clamp(48px, 6vw, 80px) 0 clamp(56px, 7vw, 92px);
    color: var(--of-tinta);
}
.oficina *, .oficina *::before, .oficina *::after { box-sizing: border-box; }
.oficina-ancho { width: min(1180px, 92vw); margin-inline: auto; }
.oficina svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Cabecera ---------- */
.oficina-cabecera {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}
.oficina-etiqueta {
    display: inline-block;
    margin-bottom: 13px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(107, 30, 46, .09);
    color: var(--of-vino);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}
.oficina-cabecera h2 {
    margin: 0 0 8px;
    font-size: clamp(28px, 3.3vw, 44px);
    line-height: 1.05;
    letter-spacing: -.035em;
    color: var(--of-azul);
}
.oficina-cabecera p { max-width: 620px; margin: 0; color: var(--of-suave); font-size: 15px; line-height: 1.6; }

.oficina-abierto {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 15px;
    border-radius: 999px;
    border: 1px solid var(--of-linea);
    background: #fff;
    font-size: 13px;
    font-weight: 700;
    color: var(--of-suave);
    white-space: nowrap;
}
.oficina-abierto::before {
    content: "";
    width: 9px; height: 9px;
    border-radius: 50%;
    background: #94a3b8;
}
.oficina-abierto[hidden] { display: none; }
.oficina-abierto.abierto { color: var(--of-verde); border-color: rgba(21, 128, 61, .25); background: #f0fdf4; }
.oficina-abierto.abierto::before { background: var(--of-verde); box-shadow: 0 0 0 0 rgba(21,128,61,.5); animation: of-latido 1.8s infinite; }
.oficina-abierto.cerrado { color: var(--of-vino); }
.oficina-abierto.cerrado::before { background: var(--of-vino); }
.oficina-abierto b { color: var(--of-tinta); font-weight: 700; }

@keyframes of-latido {
    0% { box-shadow: 0 0 0 0 rgba(21,128,61,.5); }
    70% { box-shadow: 0 0 0 9px rgba(21,128,61,0); }
    100% { box-shadow: 0 0 0 0 rgba(21,128,61,0); }
}

/* ---------- Reja: foto | croquis ---------- */
.oficina-reja {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 18px;
    align-items: stretch;
}
.oficina-reja.solo-foto,
.oficina-reja.solo-croquis { grid-template-columns: minmax(0, 1fr); }

.oficina-foto {
    position: relative;
    margin: 0;
    min-height: 420px;
    border-radius: 20px;
    overflow: hidden;
    background: #e2e8f0;
    box-shadow: 0 18px 44px rgba(15, 23, 42, .12);
}
.oficina-foto img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
/* Foto chica: entera y sin agrandar, sobre un fondo marino liso. */
.oficina-foto.es-chica { background: #102a43; }
.oficina-foto.es-chica .oficina-foto-img {
    inset: 0 0 118px;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: calc(100% - 118px);
    margin: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0,0,0,.35);
}
/* Rótulo de la dirección: colores sólidos de la marca, sin vidrio ni
   degradados. Marino de fondo y vino en el emblema. */
.oficina-rotulo {
    position: absolute;
    left: 18px; right: 18px; bottom: 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px 16px 16px;
    border-radius: 14px;
    background: #102a43;
    box-shadow: 0 16px 36px rgba(0, 0, 0, .3);
    color: #ffffff;
}
.oficina-rotulo-emblema {
    flex: 0 0 46px;
    width: 46px; height: 46px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #6b1e2e;
    color: #ffffff;
}
.oficina-rotulo-emblema svg { width: 21px; height: 21px; stroke-width: 1.8; }
.oficina-rotulo-texto { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
/* Letra al estilo Apple: SF Pro en iPhone y Mac, Inter en lo demás. */
.oficina-rotulo-texto {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.oficina-rotulo-texto small {
    color: #f2c9d1;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.oficina-rotulo-texto strong {
    font-size: clamp(17px, 1.45vw, 21px);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -.015em;
    color: #ffffff;
}
.oficina-rotulo-texto em {
    color: #b9c6d4;
    font-size: 13px;
    font-weight: 500;
    font-style: normal;
    letter-spacing: -.005em;
}

.oficina-croquis {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--of-linea);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(15, 23, 42, .08);
    min-width: 0;
}

/* ---------- Mapa ---------- */
.oficina-mapa {
    position: relative;
    height: 440px;
    border-radius: 14px;
    overflow: hidden;
    background: #eef2f6;
    isolation: isolate;
}
.oficina-mapa .maplibregl-canvas { outline: none; }
/* La «i» de los créditos, pequeña y translúcida mientras está plegada. */
.oficina-mapa .maplibregl-ctrl-attrib.maplibregl-compact:not(.maplibregl-compact-show) {
    min-height: 22px;
    background-color: rgba(255, 255, 255, .55);
    opacity: .75;
}
.oficina-mapa .maplibregl-ctrl-attrib.maplibregl-compact:not(.maplibregl-compact-show) .maplibregl-ctrl-attrib-button {
    width: 22px; height: 22px; background-size: 16px;
}
.oficina-mapa .maplibregl-ctrl-attrib.maplibregl-compact-show { font-size: 11px; }
.oficina-mapa .maplibregl-ctrl-group { border-radius: 10px; box-shadow: 0 4px 14px rgba(15,23,42,.18); }
.oficina-mapa .maplibregl-cooperative-gesture-screen { font-family: inherit; font-weight: 700; }
.oficina-mapa:fullscreen { border-radius: 0; height: 100%; }
.oficina-mapa.a-pantalla { position: fixed; inset: 0; z-index: 9000; height: auto; border-radius: 0; }

.oficina-mapa-espera {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 14px;
    color: var(--of-suave);
    font-size: 13px;
    font-weight: 600;
    background:
        linear-gradient(90deg, rgba(16,42,67,.05) 1px, transparent 1px) 0 0 / 32px 32px,
        linear-gradient(rgba(16,42,67,.05) 1px, transparent 1px) 0 0 / 32px 32px,
        #f4f7fa;
}
.oficina-radar {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--of-vino);
    box-shadow: 0 0 0 0 rgba(107,30,46,.45);
    animation: of-radar 1.6s infinite;
}
@keyframes of-radar {
    0% { box-shadow: 0 0 0 0 rgba(107,30,46,.45); }
    100% { box-shadow: 0 0 0 26px rgba(107,30,46,0); }
}

.oficina-mapa-controles {
    position: absolute;
    top: 10px; right: 10px;
    z-index: 800;
    display: flex;
    gap: 6px;
}
.oficina-mapa-controles[hidden] { display: none; }
.oficina-capas {
    display: flex;
    padding: 3px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(15,23,42,.18);
}
.oficina-capas button {
    min-height: 32px;
    padding: 0 11px;
    border: 0;
    border-radius: 8px;
    background: none;
    color: var(--of-suave);
    font: inherit;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
}
.oficina-capas button.activo { background: var(--of-azul); color: #fff; }
.oficina-icono-boton {
    width: 38px; height: 38px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: #fff;
    color: var(--of-azul);
    box-shadow: 0 4px 14px rgba(15,23,42,.18);
    cursor: pointer;
}
.oficina-icono-boton svg { width: 19px; height: 19px; }
.oficina-icono-boton:hover { color: var(--of-vino); }

.oficina-boton-3d { font-family: inherit; font-size: 12.5px; font-weight: 800; }
.oficina-boton-3d.activo { background: var(--of-azul); color: #fff; }

/* Pin de la oficina: foto o logo en una gota con latido. */
.oficina-pin { position: relative; width: 54px; height: 64px; }
.oficina-pin-gota {
    position: absolute;
    left: 3px; top: 0;
    width: 48px; height: 48px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    background: var(--of-vino);
    border: 3px solid #fff;
    box-shadow: 0 10px 22px rgba(15,23,42,.35);
    overflow: hidden;
}
.oficina-pin-gota img,
.oficina-pin-gota span {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    transform: rotate(45deg) scale(1.25);
    object-fit: cover;
}
.oficina-pin-gota span {
    display: grid;
    place-items: center;
    color: #fff;
    font: 900 16px/1 Inter, sans-serif;
    transform: rotate(45deg);
}
.oficina-pin-onda {
    position: absolute;
    left: 50%; bottom: 0;
    width: 16px; height: 6px;
    margin-left: -8px;
    border-radius: 50%;
    background: rgba(107,30,46,.35);
    animation: of-onda 2s ease-out infinite;
}
@keyframes of-onda {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(4.5); opacity: 0; }
}

.oficina-ref {
    width: 24px; height: 24px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 2px solid #fff;
    background: var(--of-azul);
    color: #fff;
    font: 800 11px/1 Inter, sans-serif;
    box-shadow: 0 3px 8px rgba(15,23,42,.3);
}
.oficina-yo {
    width: 18px; height: 18px;
    border-radius: 50%;
    border: 3px solid #fff;
    background: #2563eb;
    box-shadow: 0 0 0 6px rgba(37,99,235,.22), 0 2px 6px rgba(15,23,42,.35);
}
.oficina-pin, .oficina-ref { cursor: pointer; }
.oficina .maplibregl-popup-content { padding: 11px 14px; border-radius: 14px; font-family: inherit; font-size: 13px; line-height: 1.45;
                                     box-shadow: 0 12px 30px rgba(15,23,42,.2); }
.oficina .maplibregl-popup-content strong { display: block; color: var(--of-azul); font-size: 14px; }

/* ---------- Ruta ---------- */
.oficina-ruta {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding: 12px 44px 12px 12px;
    border-radius: 14px;
    background: #f1f5f9;
}
.oficina-ruta[hidden] { display: none; }
.oficina-modos { display: flex; gap: 4px; padding: 3px; border-radius: 10px; background: #fff; }
.oficina-modos button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 11px;
    border: 0;
    border-radius: 8px;
    background: none;
    color: var(--of-suave);
    font: inherit;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
}
.oficina-modos button svg { width: 17px; height: 17px; }
.oficina-modos button.activo { background: var(--of-vino); color: #fff; }
.oficina-ruta-cifras { display: flex; gap: 22px; }
.oficina-ruta-cifras strong { display: block; color: var(--of-azul); font-size: 19px; line-height: 1.1; }
.oficina-ruta-cifras span { color: var(--of-suave); font-size: 11.5px; }
.oficina-cerrar-ruta {
    position: absolute;
    top: 50%; right: 10px;
    width: 28px; height: 28px;
    margin-top: -14px;
    border: 0;
    border-radius: 8px;
    background: #fff;
    color: var(--of-suave);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

/* ---------- Datos y acciones ---------- */
.oficina-datos { display: grid; gap: 10px; margin: 0; padding: 0 4px; list-style: none; }
.oficina-datos li { display: flex; gap: 12px; align-items: flex-start; }
.oficina-datos svg {
    flex: 0 0 36px;
    width: 36px; height: 36px;
    padding: 8px;
    border-radius: 10px;
    background: rgba(107,30,46,.08);
    color: var(--of-vino);
}
.oficina-datos span {
    display: block;
    color: var(--of-suave);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.oficina-datos strong { display: block; margin-top: 2px; font-size: 15px; line-height: 1.35; color: var(--of-tinta); }
.oficina-datos small { display: block; margin-top: 3px; color: var(--of-suave); font-size: 13px; }

.oficina-acciones { display: flex; flex-wrap: wrap; gap: 8px; }
.oficina-boton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid #d5dee8;
    border-radius: 11px;
    background: #fff;
    color: var(--of-azul);
    font: inherit;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: border-color .15s ease, color .15s ease, transform .15s ease;
}
.oficina-boton svg { width: 17px; height: 17px; }
.oficina-boton:hover { border-color: var(--of-vino); color: var(--of-vino); transform: translateY(-1px); }
.oficina-boton.principal { flex: 1 1 100%; border-color: var(--of-vino); background: var(--of-vino); color: #fff; }
.oficina-boton.principal:hover { background: #531824; color: #fff; }
.oficina-boton[disabled] { opacity: .6; cursor: progress; transform: none; }
.oficina-estado { min-height: 0; margin: 0; padding: 0 4px; color: var(--of-suave); font-size: 12.5px; }
.oficina-estado:empty { display: none; }
.oficina-estado.error { color: #b42318; font-weight: 600; }

/* ---------- Pantallas estrechas ---------- */
@media (max-width: 960px) {
    .oficina-reja { grid-template-columns: minmax(0, 1fr); }
    .oficina-foto { min-height: 0; aspect-ratio: 16 / 10; }
    .oficina-foto.es-chica .oficina-foto-img { inset: 0 0 92px; max-height: calc(100% - 92px); }
}
@media (max-width: 620px) {
    .oficina-cabecera { flex-direction: column; align-items: flex-start; gap: 12px; }
    .oficina-foto { border-radius: 16px; aspect-ratio: 4 / 3; }
    .oficina-rotulo { left: 10px; right: 10px; bottom: 10px; gap: 12px; padding: 12px 14px 12px 12px; }
    .oficina-rotulo-emblema { flex-basis: 38px; width: 38px; height: 38px; }
    .oficina-rotulo-texto small { font-size: 9.5px; letter-spacing: .2em; }
    .oficina-croquis { padding: 10px; border-radius: 16px; }
    .oficina-mapa { height: 360px; }
}
@media (prefers-reduced-motion: reduce) {
    .oficina *, .oficina *::before { animation: none !important; transition: none !important; }
}

/* El mapa llega a los bordes de su tarjeta; la dirección y los botones
   quedan debajo con su margen. */
.oficina-croquis { padding: 0 0 18px; overflow: hidden; }
.oficina-croquis > .oficina-mapa { border-radius: 0; }
.oficina-croquis > :not(.oficina-mapa) { margin-inline: 18px; }
@media (max-width: 620px) {
    .oficina-croquis { padding-bottom: 12px; }
    .oficina-croquis > :not(.oficina-mapa) { margin-inline: 12px; }
}

/* ==========================================================================
   FICHA AL ESTILO APPLE (Apple Maps): letra del sistema, jerarquía por
   tamaño y gris, filetes finos, botones grises sin borde. Pisa lo anterior.
   ========================================================================== */
.oficina-croquis {
    --ap-gris: #6e6e73;
    --ap-relleno: #f2f2f7;
    --ap-filete: rgba(60, 60, 67, .14);
    gap: 0;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", Inter, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    border-color: rgba(60, 60, 67, .1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 12px 32px rgba(0, 0, 0, .06);
}

/* Dirección */
.oficina-croquis .oficina-datos { gap: 0; padding: 18px 0 16px; border-bottom: 1px solid var(--ap-filete); }
.oficina-croquis .oficina-datos li { display: block; }
.oficina-croquis .oficina-datos span {
    color: var(--ap-gris);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: -.005em;
    text-transform: none;
}
.oficina-croquis .oficina-datos strong {
    margin-top: 3px;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -.02em;
    color: #1d1d1f;
}
.oficina-croquis .oficina-datos small {
    margin-top: 2px;
    color: var(--ap-gris);
    font-size: 15px;
    letter-spacing: -.01em;
}

/* Acciones */
.oficina-croquis .oficina-acciones { display: grid; gap: 10px; padding-top: 16px; }
.oficina-croquis .oficina-boton {
    min-height: 0;
    border: 0;
    border-radius: 12px;
    font-weight: 600;
    letter-spacing: -.01em;
    transition: background-color .15s ease, transform .1s ease;
}
.oficina-croquis .oficina-boton:hover { transform: none; }
.oficina-croquis .oficina-boton:active { transform: scale(.98); }
.oficina-croquis .oficina-boton.principal {
    min-height: 50px;
    font-size: 16px;
    background: #6b1e2e;
    color: #fff;
}
.oficina-croquis .oficina-boton.principal:hover { background: #5a1826; color: #fff; }
.oficina-croquis .oficina-boton.principal svg { width: 18px; height: 18px; }

.oficina-secundarias { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.oficina-secundarias .oficina-boton {
    flex-direction: column;
    gap: 5px;
    padding: 11px 6px 10px;
    background: var(--ap-relleno);
    color: #6b1e2e;
    font-size: 12.5px;
    text-align: center;
}
.oficina-secundarias .oficina-boton span,
.oficina-secundarias .oficina-boton { color: #6b1e2e; }
.oficina-secundarias .oficina-boton:hover { background: #e8e8ed; color: #6b1e2e; }
.oficina-secundarias .oficina-boton svg { width: 22px; height: 22px; stroke-width: 1.7; }

/* Ruta: control segmentado y cifras grandes */
.oficina-croquis .oficina-ruta {
    margin-top: 16px;
    padding: 12px 44px 12px 12px;
    border-radius: 14px;
    background: var(--ap-relleno);
}
.oficina-croquis .oficina-modos { padding: 2px; border-radius: 9px; background: rgba(118, 118, 128, .12); }
.oficina-croquis .oficina-modos button { min-height: 30px; border-radius: 7px; color: #1d1d1f; font-weight: 600; }
.oficina-croquis .oficina-modos button.activo {
    background: #fff;
    color: #1d1d1f;
    box-shadow: 0 3px 8px rgba(0, 0, 0, .12), 0 3px 1px rgba(0, 0, 0, .04);
}
.oficina-croquis .oficina-ruta-cifras strong { color: #1d1d1f; font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.oficina-croquis .oficina-ruta-cifras span { color: var(--ap-gris); font-size: 12px; }
.oficina-croquis .oficina-cerrar-ruta { border-radius: 50%; background: rgba(118, 118, 128, .16); color: #3a3a3c; }

.oficina-croquis .oficina-estado { padding: 10px 0 0; font-size: 13px; color: var(--ap-gris); }
.oficina-croquis .oficina-estado.error { color: #d70015; }

@media (max-width: 620px) {
    .oficina-croquis .oficina-datos strong { font-size: 17px; }
    .oficina-croquis .oficina-datos small { font-size: 14px; }
    .oficina-secundarias .oficina-boton { flex: initial; }
}

/* ==========================================================================
   COLORES AL ESTILO APPLE: azul de sistema para lo que se pulsa, grises
   #F5F5F7 de fondo, texto #1D1D1F y el pin rojo de Apple Maps. Colores
   sólidos, sin degradados. Pisa lo anterior.
   ========================================================================== */
.oficina {
    --ap-azul: #0071e3;
    --ap-azul-hover: #0077ed;
    --ap-tinta: #1d1d1f;
    --ap-gris: #6e6e73;
    --ap-relleno: #f5f5f7;
    --ap-rojo: #ff3b30;
    --ap-verde: #34c759;
}

/* Cabecera */
.oficina-etiqueta { background: var(--ap-relleno); color: var(--ap-gris); }
.oficina-cabecera h2 { color: var(--ap-tinta); letter-spacing: -.03em; }
.oficina-abierto.abierto { color: #248a3d; background: #eaf8ee; border-color: transparent; }
.oficina-abierto.abierto::before { background: var(--ap-verde); }
.oficina-abierto.cerrado { color: #d70015; background: #fff1f0; border-color: transparent; }
.oficina-abierto.cerrado::before { background: var(--ap-rojo); }

/* Rótulo de la foto: blanco sólido, como las fichas de Apple */
.oficina-foto.es-chica { background: var(--ap-relleno); }
.oficina-rotulo { background: #ffffff; color: var(--ap-tinta); box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
.oficina-rotulo-emblema { background: var(--ap-rojo); color: #ffffff; }
.oficina-rotulo-texto small { color: var(--ap-gris); }
.oficina-rotulo-texto strong { color: var(--ap-tinta); }
.oficina-rotulo-texto em { color: var(--ap-gris); }

/* Ficha del croquis */
.oficina-croquis .oficina-datos strong { color: var(--ap-tinta); }
.oficina-croquis .oficina-boton.principal { background: var(--ap-azul); color: #fff; }
.oficina-croquis .oficina-boton.principal:hover { background: var(--ap-azul-hover); color: #fff; }
.oficina-secundarias .oficina-boton,
.oficina-secundarias .oficina-boton span { background: var(--ap-relleno); color: var(--ap-azul); }
.oficina-secundarias .oficina-boton span { background: none; }
.oficina-secundarias .oficina-boton:hover { background: #e8e8ed; color: var(--ap-azul); }
.oficina-croquis .oficina-ruta { background: var(--ap-relleno); }

/* Controles del mapa y pin */
.oficina-capas button.activo,
.oficina-boton-3d.activo { background: var(--ap-tinta); color: #fff; }
.oficina-icono-boton { color: var(--ap-tinta); }
.oficina-icono-boton:hover { color: var(--ap-azul); }
.oficina-pin-gota { background: var(--ap-rojo); }
.oficina-pin-onda { background: rgba(255, 59, 48, .35); }
.oficina-ref { background: var(--ap-tinta); }
.oficina-yo { background: var(--ap-azul); box-shadow: 0 0 0 6px rgba(0, 113, 227, .22), 0 2px 6px rgba(0, 0, 0, .3); }
.oficina-radar { background: var(--ap-azul); }

/* ==========================================================================
   NIVEL: sello discreto en la foto, marcador de Apple Maps, ficha con
   nombre y el mapa a la altura de la foto. Pisa lo anterior.
   ========================================================================== */

/* Foto: ya no lleva un recuadro encima, así que se ve entera. */
.oficina-foto.es-chica .oficina-foto-img { inset: 0; max-height: 100%; border-radius: 0; box-shadow: none; }
.oficina-sello {
    position: absolute;
    left: 18px; bottom: 18px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 15px 9px 12px;
    border-radius: 999px;
    background: #ffffff;
    color: var(--ap-tinta);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, "Segoe UI", Roboto, sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: -.01em;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .16);
    -webkit-font-smoothing: antialiased;
}
.oficina-sello-punto {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--ap-rojo);
    box-shadow: 0 0 0 3px rgba(255, 59, 48, .18);
}
.oficina-sello span[aria-hidden] { color: var(--ap-gris); font-weight: 400; }

/* Marcador: el centro del círculo es el punto; el nombre va debajo. */
.oficina-marca {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}
.oficina-marca-punto {
    position: relative;
    z-index: 1;
    width: 42px; height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 3px solid #ffffff;
    background: var(--ap-rojo);
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .35);
    transition: transform .2s ease;
}
.oficina-marca:hover .oficina-marca-punto { transform: scale(1.08); }
.oficina-marca-punto svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.9; }
.oficina-marca-onda {
    position: absolute;
    top: 0; left: 50%;
    width: 42px; height: 42px;
    margin-left: -21px;
    border-radius: 50%;
    background: rgba(255, 59, 48, .45);
    animation: of-marca-onda 2.2s ease-out infinite;
}
@keyframes of-marca-onda {
    0% { transform: scale(1); opacity: .9; }
    100% { transform: scale(2.6); opacity: 0; }
}
.oficina-marca-nombre {
    padding: 4px 10px;
    border-radius: 8px;
    background: #ffffff;
    color: var(--ap-tinta);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, "Segoe UI", Roboto, sans-serif;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: -.01em;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
}

/* Ficha: nombre, tipo y dirección, como un lugar en Apple Maps. */
.oficina-ficha { padding: 20px 0 16px; border-bottom: 1px solid rgba(60, 60, 67, .14); }
.oficina-ficha h3 {
    margin: 0;
    color: var(--ap-tinta);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.025em;
}
.oficina-ficha-tipo { margin: 4px 0 0; color: var(--ap-gris); font-size: 15px; letter-spacing: -.01em; }
.oficina-ficha-dir {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 14px 0 0;
    color: var(--ap-tinta);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: -.01em;
}
.oficina-ficha-dir svg {
    flex: 0 0 18px;
    width: 18px; height: 18px;
    margin-top: 1px;
    color: var(--ap-rojo);
    stroke-width: 2;
}
.oficina-ficha-dir small { display: block; margin-top: 2px; color: var(--ap-gris); font-size: 14px; font-weight: 400; }

/* El mapa estira hasta que la tarjeta mide lo mismo que la foto. */
.oficina-croquis > .oficina-mapa { flex: 1 1 auto; min-height: 440px; height: auto; }
@media (max-width: 960px) {
    .oficina-croquis > .oficina-mapa { flex: none; height: 420px; min-height: 0; }
}
@media (max-width: 620px) {
    .oficina-croquis > .oficina-mapa { height: 360px; }
    .oficina-ficha h3 { font-size: 20px; }
    .oficina-sello { left: 10px; bottom: 10px; font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) {
    .oficina-marca-onda { display: none; }
}

/* Marcador con el isotipo: círculo blanco para que se lean el marino y el
   vino del logo; el pulso, en vino de la marca. */
.oficina-marca-punto {
    width: 52px; height: 52px;
    border: 3px solid #ffffff;
    background: #ffffff;
    box-shadow: 0 0 0 2px rgba(107, 30, 46, .9), 0 8px 20px rgba(0, 0, 0, .35);
}
.oficina-marca-punto img { width: 36px; height: 36px; display: block; object-fit: contain; }
.oficina-marca-onda {
    width: 52px; height: 52px;
    margin-left: -26px;
    background: rgba(107, 30, 46, .45);
}
.oficina-sello-ciudad { font-weight: 700; letter-spacing: .04em; }
/* Sin el punto rojo, el sello queda con el mismo aire a los dos lados. */
.oficina-sello { padding: 9px 15px; }

/* ==========================================================================
   PLOMO: grafito sólido en lugar del azul. La ruta y el «estás aquí» del
   mapa siguen en azul, que es como se lee una ruta. Pisa lo anterior.
   ========================================================================== */
.oficina { --plomo: #3a3a3c; --plomo-oscuro: #1d1d1f; }
.oficina-croquis .oficina-boton.principal { background: var(--plomo); }
.oficina-croquis .oficina-boton.principal:hover { background: var(--plomo-oscuro); }
.oficina-secundarias .oficina-boton,
.oficina-secundarias .oficina-boton span,
.oficina-secundarias .oficina-boton:hover { color: var(--plomo); }

/* Coordenadas: un cuadrito pequeño, cifras tabulares, con copiar. */
.oficina-coords {
    display: inline-flex;
    align-items: center;
    gap: 0;
    margin: 12px 0 0 28px;
    border: 1px solid rgba(60, 60, 67, .16);
    border-radius: 9px;
    background: #fbfbfd;
    overflow: hidden;
    font-variant-numeric: tabular-nums;
}
.oficina-coords > span {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    padding: 6px 10px;
    color: var(--plomo);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: -.005em;
}
.oficina-coords > span + span { border-left: 1px solid rgba(60, 60, 67, .12); }
.oficina-coords small {
    color: #8e8e93;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.oficina-coords button {
    align-self: stretch;
    display: grid;
    place-items: center;
    width: 32px;
    padding: 0;
    border: 0;
    border-left: 1px solid rgba(60, 60, 67, .12);
    background: none;
    color: #8e8e93;
    cursor: pointer;
}
.oficina-coords button:hover { background: #f2f2f7; color: var(--plomo); }
.oficina-coords button svg { width: 15px; height: 15px; stroke-width: 1.9; }
.oficina-coords button.copiado { color: #248a3d; }
@media (max-width: 620px) {
    .oficina-coords { margin-left: 0; }
    .oficina-coords > span { padding: 6px 8px; font-size: 12px; }
}

/* Aviso al topar el acercamiento en satélite. */
.oficina-aviso-tope {
    position: absolute;
    left: 50%; bottom: 16px;
    z-index: 820;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: calc(100% - 32px);
    padding: 8px 8px 8px 14px;
    border-radius: 999px;
    background: #1d1d1f;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, "Segoe UI", Roboto, sans-serif;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
}
.oficina-aviso-tope[hidden] { display: none; }
.oficina-aviso-tope button {
    padding: 6px 12px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: #1d1d1f;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
@media (max-width: 620px) {
    .oficina-aviso-tope { white-space: normal; font-size: 12px; }
}

/* «Nuestra oficina» más cerca del mapa de cobertura que la precede. */
.oficina { padding-top: clamp(16px, 2.2vw, 32px); }
