/* Web de la Comunidad de Usuarios de los Pozos Farola y Umbría.
   Móvil primero, minimalista: fondo claro, tarjetas blancas, una barra fina arriba y, en el
   móvil, las cuatro secciones en una barra de pestañas abajo. Sin dependencias.
   Contrastes: texto 4,5:1 o más; bordes, iconos y foco 3:1 o más (WCAG 1.4.3, 1.4.11). */

:root {
    --azul: #0a5f8f;            /* 6,6:1 sobre blanco */
    --azul-hondo: #073f5f;
    --azul-suave: #e9f3f9;
    --texto: #15222c;           /* 15:1 */
    --tenue: #56656f;           /* 5,9:1 sobre blanco, 5,4:1 sobre el fondo */
    --linea: #e3e9ee;
    --linea-fuerte: #8696a2;    /* 3,1:1: bordes de los campos */
    --fondo: #f5f7f9;
    --blanco: #ffffff;
    --verde: #17663a;
    --verde-suave: #e8f5ed;
    --ambar: #9a5b00;
    --ambar-suave: #fff5df;
    --rojo: #b3261e;
    --foco: #f2b600;
    --radio: 16px;
    --radio-chico: 12px;
    --sombra: 0 1px 2px rgba(21, 34, 44, .06), 0 4px 16px rgba(21, 34, 44, .05);
    --letra: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --barra: 60px;
    --pestanas: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--barra) + 12px); }
body {
    margin: 0;
    font: 1rem/1.6 var(--letra);
    color: var(--texto);
    background: var(--fondo);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    padding-bottom: calc(var(--pestanas) + env(safe-area-inset-bottom));
}
img { max-width: 100%; height: auto; }
a { color: var(--azul); text-underline-offset: .18em; }
a[href^="tel:"] { white-space: nowrap; }
a:hover { color: var(--azul-hondo); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; color: var(--texto); letter-spacing: -.015em; }
h1 { font-size: clamp(1.6rem, 1.25rem + 1.6vw, 2.3rem); font-weight: 750; }
h2 { font-size: 1.15rem; font-weight: 700; }
h3 { font-size: 1rem; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.icono { width: 1.25em; height: 1.25em; flex: none; }
:focus-visible { outline: 3px solid var(--foco); outline-offset: 2px; border-radius: 6px; }
.saltar { position: absolute; left: -9999px; top: 0; background: var(--azul-hondo); color: #fff; padding: .6em 1em; z-index: 20; }
.saltar:focus { left: 1rem; top: .5rem; }
.oculto { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tenue { color: var(--tenue); }
.solo-ancho { display: none; }
@media (min-width: 40rem) { .solo-ancho { display: inline; } .solo-movil { display: none; } }

.ancho { width: min(100% - 2rem, 68rem); margin-inline: auto; }
.estrecho { max-width: 32rem; }
.principal { flex: 1; padding: 1.25rem 0 2.5rem; }
.principal:focus { outline: none; }
.antetitulo { color: var(--azul); font-weight: 650; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: .35rem; }
.entradilla { font-size: 1.08rem; color: var(--tenue); }

/* ---- Barra superior ------------------------------------------------------------------- */
.barra {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(255, 255, 255, .92);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--linea);
    padding-top: env(safe-area-inset-top);
}
.barra__fila { display: flex; align-items: center; gap: 1rem; min-height: var(--barra); }
.marca { display: flex; align-items: center; gap: .6rem; color: var(--texto); text-decoration: none; min-height: 44px; margin-right: auto; }
.marca:hover { color: var(--texto); }
.marca__icono { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--azul); color: #fff; }
.marca__icono .icono { width: 20px; height: 20px; }
.marca__texto { font-weight: 750; font-size: 1.02rem; line-height: 1.1; letter-spacing: -.01em; }
.marca__texto span { display: block; font-weight: 500; font-size: .8rem; color: var(--tenue); letter-spacing: 0; }

.menu { display: none; }
.barra__acciones { margin: 0; }
.boton-icono {
    display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; min-width: 44px; justify-content: center;
    padding: 0 .75rem; border: 1px solid var(--linea); border-radius: 999px; background: var(--blanco);
    color: var(--texto); font: inherit; font-weight: 600; cursor: pointer;
}
.boton-icono:hover { border-color: var(--linea-fuerte); }

/* ---- Pestañas inferiores (móvil) ----------------------------------------------------- */
.pestanas {
    position: fixed; inset: auto 0 0 0; z-index: 1000;
    display: grid; grid-template-columns: repeat(4, 1fr);
    background: rgba(255, 255, 255, .96);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    backdrop-filter: saturate(180%) blur(12px);
    border-top: 1px solid var(--linea);
    padding-bottom: env(safe-area-inset-bottom);
}
.pestanas__enlace {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem;
    min-height: var(--pestanas); color: var(--tenue); text-decoration: none; font-size: .74rem; font-weight: 600;
    position: relative; touch-action: manipulation;
}
.pestanas__enlace .icono { width: 24px; height: 24px; }
.pestanas__enlace:hover { color: var(--texto); }
.pestanas__enlace[aria-current="page"] { color: var(--azul); }
.pestanas__enlace[aria-current="page"]::before {
    content: ""; position: absolute; top: 0; width: 32px; height: 3px; border-radius: 0 0 3px 3px; background: var(--azul);
}

@media (min-width: 52rem) {
    body { padding-bottom: 0; }
    .pestanas { display: none; }
    .menu { display: flex; align-items: center; gap: .25rem; margin-right: .5rem; }
    .menu__enlace {
        color: var(--tenue); text-decoration: none; font-weight: 600; font-size: .95rem;
        padding: .5rem .85rem; border-radius: 999px; min-height: 40px; display: inline-flex; align-items: center;
    }
    .menu__enlace:hover { color: var(--texto); background: var(--fondo); }
    .menu__enlace[aria-current="page"] { color: var(--azul); background: var(--azul-suave); }
    .principal { padding-top: 2rem; }
}
@media (max-width: 22rem) { .marca__texto span { display: none; } }

/* ---- Botones ------------------------------------------------------------------------- */
.boton {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    min-height: 48px; padding: .6rem 1.2rem; border-radius: var(--radio-chico); border: 1px solid var(--azul);
    background: var(--azul); color: #fff; font: inherit; font-weight: 650; text-decoration: none; cursor: pointer;
    touch-action: manipulation; transition: background-color .15s ease, transform .1s ease;
}
.boton:hover { background: var(--azul-hondo); border-color: var(--azul-hondo); color: #fff; }
.boton:active { transform: scale(.98); }
.boton[aria-busy="true"] { opacity: .75; cursor: progress; }
.boton--grande { min-height: 54px; font-size: 1.05rem; width: 100%; }
.boton--claro { background: var(--blanco); color: var(--azul); border-color: var(--linea); }
.boton--claro:hover { background: var(--azul-suave); color: var(--azul-hondo); border-color: var(--azul-suave); }
.boton--pequeno { min-height: 44px; padding: .4rem .9rem; font-size: .92rem; }
.boton--secundario { background: var(--blanco); color: var(--azul); border-color: var(--linea); }
.boton--secundario:hover { background: var(--azul-suave); color: var(--azul-hondo); border-color: var(--azul-suave); }
.telefonos { display: flex; flex-wrap: wrap; gap: .5rem; }
.telefonos .boton { font-variant-numeric: tabular-nums; }
.acciones { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.enlace-flecha { display: inline-flex; align-items: center; gap: .2rem; font-weight: 600; text-decoration: none; }
.enlace-flecha:hover { text-decoration: underline; }
.enlace-flecha .icono { width: 1.1em; height: 1.1em; }
@media (min-width: 40rem) { .boton--grande { width: auto; } }

/* ---- Tarjetas y avisos --------------------------------------------------------------- */
.tarjeta { background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--radio); padding: 1.25rem; box-shadow: var(--sombra); }
.tarjeta h2 { margin-bottom: .6rem; }
.tarjeta--acento { background: var(--azul-suave); border-color: transparent; box-shadow: none; }
.rejilla { display: grid; gap: 1rem; margin-top: 1rem; }
@media (min-width: 52rem) { .rejilla { grid-template-columns: 1.2fr 1fr; } .rejilla .tarjeta--acento { grid-column: 1 / -1; } }
.bloque { margin-top: 1.25rem; }
.bloque__cabecera { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem; margin-bottom: .75rem; }
.bloque__cabecera h2 { margin: 0; }

.nota { border-radius: var(--radio); padding: 1rem 1.15rem; margin: 1rem 0; background: var(--azul-suave); border: 1px solid transparent; }
.nota__titulo { font-weight: 700; margin-bottom: .25rem; display: flex; align-items: center; gap: .4rem; }
.nota--aviso { background: var(--ambar-suave); border-color: #f3dfae; }
.nota--aviso .nota__titulo { color: var(--ambar); }
.nota--ok { background: var(--verde-suave); }
.nota--ok .nota__titulo { color: var(--verde); }
.nota--info { background: var(--azul-suave); }
.vacio, .nota-pie { color: var(--tenue); }
.nota-pie { font-size: .92rem; margin-top: .9rem; }

/* Aviso legal, privacidad y cookies: texto para leer, más estrecho */
.legal { max-width: 46rem; padding-bottom: 2rem; }
.legal h2 { margin-bottom: .4rem; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: .6rem; }
.migas { font-size: .92rem; margin-bottom: .75rem; }
.migas a { display: inline-flex; align-items: center; gap: .25rem; min-height: 44px; font-weight: 600; text-decoration: none; }
.migas .icono { transform: scaleX(-1); }

/* ---- Portada ------------------------------------------------------------------------- */
.portada { position: relative; border-radius: 20px; overflow: hidden; background: var(--azul-hondo); aspect-ratio: 4 / 3.4; max-height: 460px; width: 100%; }
.portada__foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 35% 50%; }
.portada::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 40, 60, .05) 25%, rgba(7, 40, 60, .9) 100%); }
.portada__texto { position: absolute; inset: auto 0 0 0; z-index: 1; padding: 1.25rem; color: #fff; }
.portada__texto h1 { color: #fff; max-width: 20ch; margin: 0; }
.portada__antetitulo { font-size: .85rem; font-weight: 600; opacity: .9; margin-bottom: .35rem; }
@media (min-width: 52rem) { .portada { aspect-ratio: 21 / 8; } .portada__texto { padding: 2rem 2.25rem; } }

.accesos { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: 1rem; }
.acceso {
    display: flex; flex-direction: column; gap: .7rem; padding: 1rem; min-height: 120px;
    background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--radio); box-shadow: var(--sombra);
    color: var(--texto); text-decoration: none; touch-action: manipulation; transition: transform .1s ease, border-color .15s ease;
}
.acceso:hover { color: var(--texto); border-color: var(--linea-fuerte); }
.acceso:active { transform: scale(.98); }
.acceso__icono { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--azul-suave); color: var(--azul); }
.acceso__texto { display: flex; flex-direction: column; gap: .1rem; }
.acceso__texto strong { font-size: 1rem; line-height: 1.25; }
.acceso__texto span { font-size: .85rem; color: var(--tenue); }
.acceso--principal { background: var(--azul); border-color: var(--azul); color: #fff; }
.acceso--principal:hover { color: #fff; background: var(--azul-hondo); }
.acceso--principal .acceso__icono { background: rgba(255, 255, 255, .16); color: #fff; }
.acceso--principal .acceso__texto span { color: rgba(255, 255, 255, .88); }
@media (min-width: 52rem) { .accesos { grid-template-columns: repeat(4, 1fr); } }

/* ---- Recibos ------------------------------------------------------------------------- */
.saludo { margin-bottom: 1rem; }
.ficha { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1.25rem; margin: 0 0 1rem; }
.ficha dt { font-size: .75rem; color: var(--tenue); text-transform: uppercase; letter-spacing: .05em; }
.ficha dd { margin: .1rem 0 0; font-weight: 650; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
@media (min-width: 40rem) { .ficha { grid-template-columns: repeat(4, auto); justify-content: start; gap: .5rem 2.5rem; } }

.lista-recibos { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.recibo-fila { display: flex; align-items: stretch; background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--radio); box-shadow: var(--sombra); overflow: hidden; }
.recibo-fila__enlace { flex: 1; min-width: 0; display: flex; align-items: center; gap: .75rem; padding: .9rem 1rem; color: var(--texto); text-decoration: none; }
.recibo-fila__enlace:hover { background: var(--fondo); color: var(--texto); }
.recibo-fila__datos { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.recibo-fila__datos strong { font-size: 1rem; }
.recibo-fila__datos > span { font-size: .85rem; color: var(--tenue); }
.recibo-fila__datos > .estado { font-size: .85rem; }
.recibo-fila__importe { font-weight: 750; font-size: 1.08rem; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.recibo-fila__importe small { display: block; font-size: .78rem; font-weight: 600; color: var(--tenue); }
/* Los del programa anterior se abren igual pero no tienen PDF. En pantalla ancha, su importe y su flecha en la
   misma columna que los de las facturas (lo que ocupa el botón del PDF); en el móvil, ese hueco partiría la fecha. */
@media (min-width: 40rem) { .recibo-fila--anterior .recibo-fila__enlace { padding-right: calc(1rem + 65px); } }
.sin-cortar { white-space: nowrap; }
@media (min-width: 40rem) { .historico .selector select { flex: 0 1 20rem; } }
.historico__mas { margin-top: .75rem; }
.historico__mas .enlace-flecha { min-height: 44px; }
.recibo-fila__flecha { color: var(--linea-fuerte); }
.recibo-fila__pdf {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem; width: 64px;
    border-left: 1px solid var(--linea); color: var(--azul); text-decoration: none; font-size: .72rem; font-weight: 700;
}
.recibo-fila__pdf:hover { background: var(--azul-suave); }
.estado { display: inline-flex; align-items: center; gap: .3rem; font-weight: 600; }
.estado::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; display: inline-block; }
.estado--pagado { color: var(--verde); }
.estado--pagado::before { background: var(--verde); }
.estado--pendiente { color: var(--ambar); }
.estado--pendiente::before { background: transparent; border: 2px solid var(--ambar); }
.estado--devuelto { color: var(--ambar); }
.estado--devuelto::before { background: transparent; border: 2px solid var(--ambar); transform: rotate(45deg); border-radius: 2px; }
.recibo__devuelto { display: flex; align-items: baseline; gap: .45rem; margin: .4rem 0 0; }
.recibo__devuelto::before { flex: none; }

.recibo__cabecera { display: grid; gap: 1rem; margin-bottom: 1rem; }
.recibo__cabecera h1 { margin-bottom: .25rem; }
.recibo__total { display: grid; gap: .25rem; background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--radio); padding: 1.1rem; box-shadow: var(--sombra); }
.recibo__total span { color: var(--tenue); font-size: .85rem; }
.recibo__total strong { font-size: 2rem; font-variant-numeric: tabular-nums; line-height: 1.05; letter-spacing: -.02em; }
/* Recibo del programa anterior: en el sitio del PDF, por qué no lo hay y el teléfono para pedir una copia. */
.recibo__sin-importe { font-weight: 650; margin: 0; }
.recibo__sin-pdf { color: var(--tenue); font-size: .88rem; line-height: 1.45; margin: .5rem 0 .25rem; max-width: 19rem; }
@media (min-width: 40rem) { .recibo__cabecera { grid-template-columns: 1fr auto; align-items: start; } .recibo__total { min-width: 16rem; } }

/* ---- Tablas (detalle del recibo, lecturas) ------------------------------------------ */
.tabla-marco { background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--radio); box-shadow: var(--sombra); padding: .5rem 1.1rem; overflow-x: auto; }
.tabla { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tabla caption { text-align: left; font-weight: 700; padding: .6rem 0; }
.tabla th, .tabla td { text-align: left; padding: .7rem .5rem; border-bottom: 1px solid var(--linea); vertical-align: middle; }
.tabla thead th { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--tenue); font-weight: 600; }
.tabla tbody th { font-weight: 600; }
.tabla .num { text-align: right; white-space: nowrap; }
.tabla tbody tr:last-child th, .tabla tbody tr:last-child td { border-bottom: 0; }
.tabla tfoot th { text-align: right; font-weight: 500; color: var(--tenue); }
.tabla tfoot td, .tabla tfoot th { border-bottom: 0; padding-block: .3rem; }
.tabla tfoot tr:first-child th, .tabla tfoot tr:first-child td { border-top: 1px solid var(--linea); padding-top: .7rem; }
.tabla__total th, .tabla__total td { font-size: 1.1rem; font-weight: 750; color: var(--texto); }
.tabla__nota td { color: var(--tenue); font-size: .88rem; }
@media (max-width: 40rem) {
    .tabla-marco { padding: .25rem 1rem; }
    .tabla thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .tabla tbody tr { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .9rem; padding: .8rem 0; border-bottom: 1px solid var(--linea); }
    .tabla tbody tr:last-child { border-bottom: 0; }
    .tabla tbody th, .tabla tbody td { border: 0; padding: 0; text-align: left; }
    .tabla tbody th { flex: 1 1 calc(100% - 8.5rem); }
    .tabla tbody .tabla__clave { flex: 0 0 7.5rem; text-align: right; font-weight: 700; order: 1; }
    .tabla tbody td:not(.tabla__clave) { order: 2; font-size: .88rem; color: var(--tenue); }
    .tabla tbody td:not(.tabla__clave)[data-label]::before { content: attr(data-label) " "; font-size: .75rem; }
    .tabla tbody .tabla__nota td { font-size: .85rem; }
    .tabla tbody .tabla__nota td::before { content: none; }
    .tabla tfoot tr { display: flex; justify-content: space-between; gap: 1rem; }
    .tabla tfoot tr:first-child { border-top: 1px solid var(--linea); padding-top: .6rem; }
    .tabla tfoot tr:first-child th, .tabla tfoot tr:first-child td { border-top: 0; padding-top: .3rem; }
    .tabla tfoot th[colspan] { text-align: left; }
}

/* ---- Gráfica de consumo -------------------------------------------------------------- */
.grafica { margin: 0; }
.barras { list-style: none; margin: 0; padding: 0; display: flex; align-items: stretch; gap: clamp(.35rem, 2vw, 1.25rem); height: 13.5rem; border-bottom: 1px solid var(--linea); }
.barras__dato { flex: 1 1 0; min-width: 0; max-width: 4.5rem; margin-inline: auto; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; padding: 1.7rem 0 2.9rem; }
.barras__barra { display: block; width: 100%; background: #b9d6e7; border-radius: 8px 8px 3px 3px; position: relative; }
.barras__valor { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); padding-bottom: .2rem; font-weight: 700; font-size: .9rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.barras__dato--ultima .barras__barra { background: var(--azul); }
.barras__mes { position: absolute; bottom: 1.35rem; font-size: .78rem; color: var(--tenue); white-space: nowrap; }
.barras__euros { position: absolute; bottom: 0; font-size: .75rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.barras__euros--sin { color: var(--tenue); font-weight: 400; }
/* En el móvil caben 6 barras con sus dos cifras (4 en los más estrechos); la lista completa va debajo. */
@media (max-width: 40rem) { .barras__dato:nth-last-child(n+7) { display: none; } }
@media (max-width: 24rem) { .barras__dato:nth-last-child(n+5) { display: none; } }
.barras__barra--5 { height: 5%; } .barras__barra--10 { height: 10%; } .barras__barra--15 { height: 15%; } .barras__barra--20 { height: 20%; }
.barras__barra--25 { height: 25%; } .barras__barra--30 { height: 30%; } .barras__barra--35 { height: 35%; } .barras__barra--40 { height: 40%; }
.barras__barra--45 { height: 45%; } .barras__barra--50 { height: 50%; } .barras__barra--55 { height: 55%; } .barras__barra--60 { height: 60%; }
.barras__barra--65 { height: 65%; } .barras__barra--70 { height: 70%; } .barras__barra--75 { height: 75%; } .barras__barra--80 { height: 80%; }
.barras__barra--85 { height: 85%; } .barras__barra--90 { height: 90%; } .barras__barra--95 { height: 95%; } .barras__barra--100 { height: 100%; }

/* ---- Formularios --------------------------------------------------------------------- */
.formulario { margin-top: 1rem; }
.campo { margin-bottom: 1.15rem; }
.campo label { display: block; font-weight: 650; margin-bottom: .15rem; }
.ayuda { color: var(--tenue); font-size: .9rem; margin: 0 0 .4rem; }
.campo input, .campo textarea, .selector select {
    width: 100%; font: inherit; font-size: 1.05rem; color: var(--texto); background: var(--blanco);
    border: 1px solid var(--linea-fuerte); border-radius: var(--radio-chico); padding: .7rem .85rem; min-height: 52px;
}
.campo textarea { resize: vertical; min-height: 9rem; }
.campo input:focus, .campo textarea:focus, .selector select:focus { border-color: var(--azul); outline: 3px solid var(--foco); outline-offset: 1px; }
.campo--error input, .campo--error textarea { border-color: var(--rojo); border-width: 2px; }
.error { color: var(--rojo); font-weight: 600; margin: 0 0 .35rem; font-size: .92rem; }
.resumen-errores { background: #fdf0ef; border: 1px solid #f2c7c3; border-radius: var(--radio); padding: 1rem 1.15rem; margin: 1rem 0; }
.resumen-errores:focus { outline: 3px solid var(--rojo); outline-offset: 2px; }
.resumen-errores h2 { color: var(--rojo); font-size: 1rem; margin-bottom: .35rem; }
.resumen-errores ul { margin: 0; padding-left: 1.1rem; }
.resumen-errores a { color: var(--rojo); font-weight: 600; }
.trampa { position: absolute; left: -9999px; }
.recordar { margin: .9rem 0 0; }
.selector { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: 1rem; }
.selector label { font-weight: 650; }
.selector select { width: auto; flex: 1; min-width: 12rem; }

.desplegable { margin-top: 1rem; }
.desplegable summary { cursor: pointer; font-weight: 650; color: var(--azul); min-height: 48px; display: flex; align-items: center; list-style: none; }
.desplegable summary::-webkit-details-marker { display: none; }
.desplegable summary::after { content: "+"; margin-left: auto; font-size: 1.4rem; line-height: 1; }
.desplegable[open] summary::after { content: "−"; }
.desplegable img { border: 1px solid var(--linea); border-radius: var(--radio-chico); margin: .5rem 0 1rem; }

/* ---- Mapa ---------------------------------------------------------------------------- */
.mapa { height: clamp(18rem, 52vh, 30rem); border-radius: var(--radio); background: var(--azul-suave); border: 1px solid var(--linea); margin: .5rem 0 1rem; overflow: hidden; z-index: 0; }
.lugares { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.lugar { display: flex; gap: .9rem; align-items: flex-start; }
.lugar h2 { margin-bottom: .3rem; }
.lugar p { color: var(--tenue); margin-bottom: .75rem; }
.lugar__numero {
    display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%;
    background: var(--azul); color: #fff; font-weight: 750; font-size: .95rem;
}
@media (min-width: 52rem) { .lugares { grid-template-columns: repeat(3, 1fr); } }
.marcador { background: none; border: 0; }
.marcador span {
    display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
    background: var(--azul); color: #fff; font: 750 1rem/1 var(--letra);
    border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}
.leaflet-popup-content { font: .95rem/1.45 var(--letra); }
.leaflet-popup-content p { margin: .3rem 0 0; color: var(--tenue); }

/* ---- Dos columnas (contacto, acceso) ------------------------------------------------- */
.dos-columnas { display: grid; gap: 1rem; }
@media (min-width: 52rem) { .dos-columnas { grid-template-columns: 3fr 2fr; align-items: start; gap: 2rem; } }
.dos-columnas aside { display: grid; gap: 1rem; }

/* ---- Pie ----------------------------------------------------------------------------- */
.pie { border-top: 1px solid var(--linea); padding: 1.75rem 0 1.25rem; font-size: .9rem; color: var(--tenue); background: var(--blanco); }
.pie__columnas { display: grid; gap: 1rem 2rem; }
@media (min-width: 52rem) { .pie__columnas { grid-template-columns: 1fr 1fr; } }
.pie__titulo { font-weight: 700; color: var(--texto); margin-bottom: .2rem; }
.pie p { margin-bottom: .4rem; }
.pie__telefonos { display: flex; flex-wrap: wrap; gap: 0 1rem; font-variant-numeric: tabular-nums; }
.pie a { display: inline-block; padding-block: .6rem; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
    .barra, .pestanas, .pie, .boton, .saltar, .migas, .recibo-fila__pdf { display: none !important; }
    body { font-size: 11pt; background: #fff; padding: 0; }
    .tarjeta, .recibo__total, .tabla-marco, .recibo-fila { box-shadow: none; }
}
