/*
 * Enjaen.es — hoja de estilos del sitio web.
 *
 * Temas: las variables de :root son el tema claro. El oscuro se aplica si el sistema lo
 * pide (y el visitante no ha forzado claro) o si el visitante lo ha elegido
 * (html[data-theme="dark"]). La cabecera con el logo es oscura en ambos temas.
 *
 * Estructura: cabecera (logo) · barra pegajosa de secciones · main en dos columnas
 * (lateral + agenda) · pie. Móvil: una columna y solo la agenda. Pantallas muy anchas: la
 * agenda reparte los días en varias columnas. Ancho máximo 3000px.
 */

/* ------------------------------------------------------------------ variables */

:root {
    color-scheme: light;

    --fondo: #f0f0f0;
    --fondo-panel: #fdfdfd;
    --fondo-dia: rgba(105, 176, 198, 0.28);
    --fondo-dia-hoy: #ffe1ac;
    --fondo-lunes: rgba(105, 176, 198, 0.45);
    --fondo-hover: rgba(254, 232, 173, 0.6);
    --texto: #1d1d1d;
    --texto-suave: #5f5f5f;
    --texto-tenue: #9d9d9d;
    --linea: #dcdcdc;
    --linea-punteada: #b8c7d2;
    --acento: #9d2b04;
    --acento-suave: #ffe1ac;
    --recomendado: #b4330a;
    --suspendido: #990000;
    --en-curso: #2f8f4e;
    --cabecera-fondo: #0d0d0d;
    --cabecera-texto: #fdfdfd;
    --nav-fondo: #1d1d1d;
    --nav-texto: #fdfdfd;
    --sombra: rgba(0, 0, 0, 0.08);

    --ancho-maximo: 3000px;
    --fuente: "Roboto", system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;

        --fondo: #000000;
        --fondo-panel: #161616;
        --fondo-dia: rgba(107, 178, 200, 0.28);
        --fondo-dia-hoy: #685f44;
        --fondo-lunes: rgba(107, 178, 200, 0.45);
        --fondo-hover: rgba(179, 158, 117, 0.35);
        --texto: #f5f5f5;
        --texto-suave: #b5b5b5;
        --texto-tenue: #6e6e6e;
        --linea: #2a2a2a;
        --linea-punteada: #3d4a54;
        --acento: #ff9d6b;
        --acento-suave: #685f44;
        --recomendado: #ffb088;
        --suspendido: #ff6b6b;
        --en-curso: #5ec27f;
        --cabecera-fondo: #000000;
        --cabecera-texto: #fdfdfd;
        --nav-fondo: #3e3e3e;
        --nav-texto: #fdfdfd;
        --sombra: rgba(0, 0, 0, 0.6);
    }
}

:root[data-theme="dark"] {
    color-scheme: dark;

    --fondo: #000000;
    --fondo-panel: #161616;
    --fondo-dia: rgba(107, 178, 200, 0.28);
    --fondo-dia-hoy: #685f44;
    --fondo-lunes: rgba(107, 178, 200, 0.45);
    --fondo-hover: rgba(179, 158, 117, 0.35);
    --texto: #f5f5f5;
    --texto-suave: #b5b5b5;
    --texto-tenue: #6e6e6e;
    --linea: #2a2a2a;
    --linea-punteada: #3d4a54;
    --acento: #ff9d6b;
    --acento-suave: #685f44;
    --recomendado: #ffb088;
    --suspendido: #ff6b6b;
    --en-curso: #5ec27f;
    --cabecera-fondo: #000000;
    --cabecera-texto: #fdfdfd;
    --nav-fondo: #3e3e3e;
    --nav-texto: #fdfdfd;
    --sombra: rgba(0, 0, 0, 0.6);
}

/* ------------------------------------------------------------------ base */

* {
    box-sizing: border-box;
}

html {
    font-size: 100%;
    scroll-padding-top: 4rem;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--fondo);
    color: var(--texto);
    font-family: var(--fuente);
    font-weight: 300;
    line-height: 1.45;
}

.contenido {
    flex: 1 0 auto;
    width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1,
h2,
h3 {
    font-weight: 400;
    margin: 0;
}

strong {
    font-weight: 500;
}

ul,
ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

img {
    max-width: 100%;
    height: auto;
}

/* ------------------------------------------------------------------ cabecera */

.cabecera {
    background: var(--cabecera-fondo);
    color: var(--cabecera-texto);
    padding: 1.5rem 1rem 1.25rem;
}

.cabecera .logo img {
    display: block;
    width: 15rem;
    max-width: 60vw;
    height: auto;
}

.lema {
    margin: 0.5rem 0 0;
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 0.04em;
    opacity: 0.75;
}

.cabecera .logo,
.lema {
    max-width: var(--ancho-maximo);
    margin-left: auto;
    margin-right: auto;
}

/* ------------------------------------------------------------------ barra de secciones */

.barra {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--nav-fondo);
    color: var(--nav-texto);
    box-shadow: 0 2px 6px var(--sombra);
}

.barra-interior {
    max-width: var(--ancho-maximo);
    margin: 0 auto;
    padding: 0.35rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.barra-logo {
    display: block;
    width: 0;
    overflow: hidden;
    opacity: 0;
    transition: width 0.3s, opacity 0.3s;
}

.barra-logo img {
    width: 4.5rem;
    display: block;
}

.barra.pegada .barra-logo {
    width: 4.5rem;
    opacity: 1;
    margin-right: 0.75rem;
}

.barra a:not(.barra-logo) {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    color: var(--nav-texto);
    font-weight: 400;
    opacity: 0.85;
    transition: background 0.2s, opacity 0.2s;
}

.barra a:not(.barra-logo):hover {
    background: rgba(255, 255, 255, 0.12);
    opacity: 1;
    text-decoration: none;
}

.barra a.menu-activo {
    background: rgba(255, 255, 255, 0.18);
    opacity: 1;
}

.barra i {
    font-size: 1.1rem;
}

/* Texto corto del menú: solo en móvil (ver @media max-width 600px). */
.barra-corto {
    display: none;
}

.barra-redes {
    margin-left: auto;
    display: flex;
    gap: 0.15rem;
}

.barra-redes a {
    display: inline-flex;
    width: 2.1rem;
    height: 2.1rem;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--nav-texto);
    opacity: 0.75;
    transition: background 0.2s, opacity 0.2s;
}

.barra-redes a:hover {
    background: rgba(255, 255, 255, 0.12);
    opacity: 1;
    text-decoration: none;
}

.tema-boton {
    margin-left: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    color: var(--nav-texto);
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
}

.tema-boton:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* ------------------------------------------------------------------ dos columnas */

.contenido {
    max-width: var(--ancho-maximo);
    margin: 0 auto;
    padding: 1.25rem 1rem 1.5rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

@media (min-width: 900px) {
    .contenido {
        grid-template-columns: minmax(18rem, 2fr) minmax(0, 5fr);
    }
}

@media (min-width: 1500px) {
    .contenido {
        grid-template-columns: minmax(22rem, 1fr) minmax(0, 3fr);
    }
}

.lateral,
.agenda {
    min-width: 0;
}

.lateral {
    display: none;
}

@media (min-width: 900px) {
    .lateral {
        display: block;
        position: sticky;
        top: 4rem;
    }
}

.lateral-titulo {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--texto-tenue);
    margin-bottom: 0.5rem;
}

/* ------------------------------------------------------------------ recomendados */

.recomendados {
    background: var(--fondo-panel);
    border: 1px solid var(--linea);
    border-radius: 0.75rem;
    padding: 1rem 1.1rem;
    box-shadow: 0 1px 3px var(--sombra);
}

.recomendado a {
    display: block;
    padding: 0.55rem 0.35rem;
    border-bottom: 1px dotted var(--linea-punteada);
    border-radius: 0.3rem;
    transition: background 0.2s;
}

.recomendado:last-child a {
    border-bottom: 0;
}

.recomendado a:hover {
    background: var(--fondo-hover);
    text-decoration: none;
}

.recomendado-cuando {
    display: block;
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--recomendado);
}

.recomendado-titulo {
    display: block;
    font-size: 1.05rem;
    font-weight: 400;
}

.recomendado-titulo i {
    width: 1.4rem;
    color: var(--texto-tenue);
}

.recomendado-lugar {
    display: block;
    font-size: 0.8rem;
    color: var(--texto-suave);
    font-style: italic;
}

/* ------------------------------------------------------------------ agenda */

.agenda {
    background: var(--fondo-panel);
    border: 1px solid var(--linea);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem 1rem;
    box-shadow: 0 1px 3px var(--sombra);
}

.agenda-nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.9rem;
    padding: 0.25rem 0.5rem;
    color: var(--texto-suave);
}

.agenda-nav a {
    color: var(--acento);
    font-weight: 400;
}

.dias {
    display: block;
}

.dia {
    break-inside: avoid;
    margin-bottom: 1.4rem;
}

.dia-titulo {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem 0.75rem;
    background: var(--fondo-dia);
    padding: 0.45rem 0.85rem;
    font-size: 1.05rem;
    border-radius: 0.4rem;
}

.dia-titulo time {
    flex: 1 1 auto;
    display: block;
}

.dia-titulo time::first-letter {
    text-transform: uppercase;
}

.dia-titulo strong {
    font-weight: 500;
}

.dia-lunes .dia-titulo {
    background: var(--fondo-lunes);
}

.dia-hoy .dia-titulo {
    background: var(--fondo-dia-hoy);
}

.dia-festivo {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--acento);
}

.dia-tiempo {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--texto);
    white-space: nowrap;
}

.dia-tiempo:hover {
    text-decoration: none;
}

.dia-tiempo i {
    color: var(--texto-suave);
    margin-right: 0.15rem;
}

.dia-tiempo-min {
    color: var(--texto-suave);
    margin-left: 0.2rem;
}

.agenda-fuente {
    margin: 0.5rem 0 0;
    font-size: 0.75rem;
    color: var(--texto-tenue);
    text-align: right;
}

.dia-festivo.dia-senalado {
    color: var(--texto-suave);
    font-style: italic;
    font-weight: 300;
}

.dia-vacio {
    margin: 0.4rem 0.85rem;
    font-size: 0.85rem;
    font-style: italic;
    color: var(--texto-tenue);
}

.evento a {
    position: relative;
    display: grid;
    grid-template-columns: 1.6rem 3.4rem minmax(0, 1fr);
    gap: 0.55rem;
    align-items: baseline;
    padding: 0.5rem 0.6rem;
    border-bottom: 1px dotted var(--linea-punteada);
    border-radius: 0.3rem;
    transition: background 0.2s;
}

.evento a:hover {
    background: var(--fondo-hover);
    text-decoration: none;
}

.evento-icono {
    color: var(--texto-tenue);
    text-align: center;
    font-size: 0.95rem;
}

.evento-hora {
    font-variant-numeric: tabular-nums;
    font-weight: 400;
    color: var(--texto);
    white-space: nowrap;
}

.evento-texto {
    min-width: 0;
}

.evento-tipo {
    font-size: 0.75rem;
    font-style: italic;
    color: var(--texto-tenue);
    margin-right: 0.35rem;
}

.evento-titulo {
    font-size: 1.08rem;
    font-weight: 400;
    overflow-wrap: anywhere;
}

.evento-lugar {
    font-size: 0.8rem;
    color: var(--texto-suave);
    margin-left: 0.35rem;
    font-style: italic;
}

.evento-aviso {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0 0.4rem;
    border-radius: 0.2rem;
    background: var(--suspendido);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Todo el día: exposiciones y similares, más discretos. */
.evento-expo a,
.evento-24h a {
    font-style: italic;
}

.evento-expo .evento-titulo,
.evento-24h .evento-titulo {
    font-size: 0.95rem;
    font-weight: 300;
}

.evento-recomendado .evento-titulo {
    color: var(--recomendado);
    font-weight: 500;
}

.evento-suspendido .evento-titulo {
    text-decoration: line-through;
    color: var(--texto-tenue);
}

/* Hoy: los que ya pasaron se atenúan; los que están en curso llevan barra de progreso. */
.evento-terminado a {
    opacity: 0.45;
}

.evento-en-curso .evento-hora {
    color: var(--en-curso);
    font-weight: 500;
}

.evento-progreso {
    position: absolute;
    left: 0.6rem;
    right: 0.6rem;
    bottom: 0;
    height: 2px;
    background: transparent;
}

.evento-progreso span {
    display: block;
    height: 100%;
    background: var(--en-curso);
    border-radius: 2px;
}

/* Pantallas muy anchas: los días se reparten en columnas. */
@media (min-width: 1800px) {
    .dias {
        column-width: 36rem;
        column-gap: 2rem;
    }

    .agenda-secundaria .dias {
        column-width: 30rem;
    }
}

/* ------------------------------------------------------------------ pie */

.pie {
    margin-top: 1rem;
    padding: 2rem 1rem 2.5rem;
    background: var(--cabecera-fondo);
    color: var(--cabecera-texto);
    text-align: center;
    font-size: 0.9rem;
}

.pie p {
    max-width: 50rem;
    margin: 0 auto 0.9rem;
}

.pie a {
    color: inherit;
}

.pie-redes {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
}

.pie-redes span:first-child {
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.6;
    margin-right: 0.4rem;
}

.pie-redes a {
    display: inline-flex;
    width: 2.6rem;
    height: 2.6rem;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    font-size: 1.1rem;
    transition: background 0.2s, transform 0.2s;
}

.pie-redes a:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: scale(1.08);
    text-decoration: none;
}

.pie-enlaces {
    opacity: 0.85;
}

.pie-nota {
    font-size: 0.75rem;
    font-style: italic;
    opacity: 0.55;
}

.pie-copy {
    margin-top: 1.25rem;
    font-size: 0.8rem;
    opacity: 0.6;
    line-height: 1.7;
}

.boton-instalar {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.1rem;
    border: 1px solid var(--acento);
    border-radius: 999px;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.boton-instalar:hover {
    background: rgba(255, 255, 255, 0.08);
}

.pie-copy a {
    font-size: 0.75rem;
    letter-spacing: 0.04em;
}

/* ------------------------------------------------------------------ ficha de evento, local, ciclo */

@media (min-width: 900px) {
    .ruta-evento .contenido,
    .ruta-local .contenido,
    .ruta-ciclo .contenido,
    .ruta-avisar .contenido,
    .ruta-interes .contenido,
    .ruta-tiempo .contenido {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
}


.ficha {
    min-width: 0;
    background: var(--fondo-panel);
    border: 1px solid var(--linea);
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem 1.5rem;
    box-shadow: 0 1px 3px var(--sombra);
}

.ficha-tipo {
    margin: 0 0 0.35rem;
    font-size: 0.78rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--texto-suave);
}

.ficha-tipo a {
    color: var(--acento);
}

.ficha-titulo {
    font-size: 1.9rem;
    font-weight: 400;
    line-height: 1.15;
    margin: 0 0 0.85rem;
    padding: 0.4rem 0.7rem;
    background: var(--fondo-dia-hoy);
    border-radius: 0.4rem;
    overflow-wrap: anywhere;
}

.ficha-etiqueta {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.05rem 0.5rem;
    border-radius: 0.3rem;
    border: 1px solid var(--linea);
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    vertical-align: middle;
}

.ficha-etiqueta-recomendado {
    border-color: var(--recomendado);
    color: var(--recomendado);
}

.ficha-suspendido {
    display: inline-block;
    margin: 0 0 0.75rem;
    padding: 0.2rem 0.6rem;
    background: var(--suspendido);
    color: #fff;
    border-radius: 0.3rem;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

.ficha-cuando,
.ficha-donde {
    padding: 0.6rem 0;
    border-top: 1px dotted var(--linea-punteada);
}

.ficha-fecha,
.ficha-pasado {
    margin: 0;
    font-size: 1.15rem;
}

.ficha-fecha::before {
    content: "\f133";
    font-family: "Font Awesome 6 Free";
    font-weight: 400;
    margin-right: 0.5rem;
    color: var(--texto-tenue);
}

.ficha-fecha + .ficha-fecha::before {
    content: "";
    margin-right: 1.45rem;
}

.ficha-pasado {
    color: var(--texto-tenue);
    font-style: italic;
}

.ficha-mas-fechas {
    margin: 0.2rem 0 0;
    font-size: 0.8rem;
}

.ficha-mas-fechas a,
.ficha-direccion a,
.ficha-proximos a {
    color: var(--acento);
}

.ficha-local {
    margin: 0;
    font-size: 1.15rem;
}

.ficha-local a {
    font-weight: 400;
}

.ficha-en {
    font-size: 0.75rem;
    vertical-align: super;
    color: var(--texto-tenue);
}

.ficha-direccion {
    margin: 0.2rem 0 0;
    font-size: 0.9rem;
    font-style: italic;
}

.ficha-redes {
    margin: 0.5rem 0 0;
    display: flex;
    gap: 0.4rem;
}

.ficha-redes a {
    display: inline-flex;
    width: 2.1rem;
    height: 2.1rem;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--linea);
    border-radius: 50%;
    color: var(--texto-suave);
    transition: background 0.2s, transform 0.2s;
}

.ficha-redes a:hover {
    background: var(--fondo-hover);
    transform: scale(1.08);
    text-decoration: none;
}

.oculto {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.ficha-cartel {
    margin: 1rem 0;
    text-align: center;
}

.ficha-cartel img {
    max-height: 60vh;
    width: auto;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px var(--sombra);
}

.ficha-subtitulo {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--texto-tenue);
    margin: 0 0 0.4rem;
}

.ficha-descripcion {
    margin: 1rem 0;
    font-size: 1.05rem;
}

.ficha-precio {
    margin: 1.25rem 0;
    padding: 0.75rem 1rem;
    background: var(--fondo);
    border-radius: 0.5rem;
}

.ficha-notas {
    font-size: 0.95rem;
    font-style: italic;
    color: var(--texto-suave);
}

.ficha-horarios {
    margin: 0.5rem 0 0;
    font-size: 0.9rem;
    color: var(--texto-suave);
}

.ficha-fechas {
    margin: 1.25rem 0;
    padding-top: 0.75rem;
    border-top: 1px dotted var(--linea-punteada);
}

.ficha-fechas li {
    padding: 0.15rem 0;
}

.ficha-compartir {
    margin: 1.25rem 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--texto-suave);
}

.ficha-compartir a,
.ficha-compartir .copiar {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 2.1rem;
    padding: 0 0.75rem;
    border: 1px solid var(--linea);
    border-radius: 999px;
    background: var(--fondo-panel);
    color: var(--texto);
    font: inherit;
    cursor: pointer;
    transition: background 0.2s;
}

.ficha-compartir a:hover,
.ficha-compartir .copiar:hover {
    background: var(--fondo-hover);
    text-decoration: none;
}

.ficha-proximos {
    margin-top: 1.25rem;
}

.ficha-pasados {
    opacity: 0.75;
}

.proximos-lista li a,
.lista-evento a {
    display: block;
    padding: 0.4rem 0.3rem;
    border-bottom: 1px dotted var(--linea-punteada);
    border-radius: 0.3rem;
    color: var(--texto);
    transition: background 0.2s;
}

.proximos-lista li a:hover,
.lista-evento a:hover {
    background: var(--fondo-hover);
    text-decoration: none;
}

.lista-evento a {
    display: grid;
    grid-template-columns: 7.5rem minmax(0, 1fr);
    gap: 0.5rem;
}

.proximo-cuando,
.lista-cuando {
    display: block;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--acento);
    white-space: nowrap;
}

.proximo-titulo i,
.lista-titulo i {
    width: 1.3rem;
    color: var(--texto-tenue);
}

.lista-tipo {
    font-size: 0.75rem;
    font-style: italic;
    color: var(--texto-tenue);
    margin-right: 0.25rem;
}

.lista-lugar {
    font-size: 0.8rem;
    font-style: italic;
    color: var(--texto-suave);
    margin-left: 0.3rem;
}

.lista-evento-suspendido .lista-titulo {
    text-decoration: line-through;
    color: var(--texto-tenue);
}

.ficha-pie {
    margin-top: 1.5rem;
    font-size: 0.75rem;
    font-style: italic;
    color: var(--texto-tenue);
}

.ficha-vacia h1 {
    font-size: 1.4rem;
}

/* ------------------------------------------------------------------ texto Markdown */

.md p {
    margin: 0 0 0.8rem;
}

.md p:last-child {
    margin-bottom: 0;
}

.md ul,
.md ol {
    margin: 0 0 0.8rem 1.4rem;
    list-style: disc;
}

.md ol {
    list-style: decimal;
}

.md li {
    margin: 0.15rem 0;
}

.md blockquote {
    margin: 0.8rem 0;
    padding: 0.6rem 0.9rem;
    border-left: 3px solid var(--acento-suave);
    background: var(--fondo);
    border-radius: 0 0.4rem 0.4rem 0;
    font-size: 0.95rem;
}

.md h3,
.md h4,
.md h5 {
    margin: 1rem 0 0.4rem;
    font-weight: 500;
    font-size: 1.05rem;
}

.md a {
    color: var(--acento);
    text-decoration: underline;
    text-decoration-color: var(--linea-punteada);
    overflow-wrap: anywhere;
}

.md .telefono {
    white-space: nowrap;
}

.md .md-icono {
    color: var(--recomendado);
    margin-right: 0.25rem;
}

.md-boton a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1rem;
    border: 1px solid var(--acento);
    border-radius: 0.4rem;
    color: var(--acento);
    font-weight: 400;
    text-decoration: none;
    min-width: 12rem;
    transition: background 0.2s, box-shadow 0.2s;
}

.md-boton a:hover {
    background: var(--fondo-hover);
    box-shadow: 0 2px 6px var(--sombra);
}

.md-boton-principal a {
    background: var(--acento);
    color: #fff;
}

.md-video {
    margin: 0.8rem 0;
}

.md-video iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 0.5rem;
}

/* ------------------------------------------------------------------ formulario de aviso */

.formulario-avisar label {
    display: block;
    margin: 0.9rem 0 0.2rem;
    font-size: 0.9rem;
    color: var(--texto-suave);
}

.formulario-avisar input,
.formulario-avisar textarea {
    display: block;
    width: 100%;
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--linea);
    border-radius: 0.4rem;
    background: var(--fondo);
    color: var(--texto);
    font: inherit;
}

.formulario-avisar textarea {
    resize: vertical;
}

.formulario-avisar input:focus,
.formulario-avisar textarea:focus {
    outline: 2px solid var(--acento-suave);
    border-color: var(--acento);
}

.formulario-avisar .campos-dos {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0 1rem;
}

@media (min-width: 600px) {
    .formulario-avisar .campos-dos {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
}

.formulario-avisar button {
    margin-top: 1.25rem;
    padding: 0.7rem 1.4rem;
    border: 0;
    border-radius: 0.4rem;
    background: var(--acento);
    color: #fff;
    font: inherit;
    font-size: 1.05rem;
    cursor: pointer;
}

.formulario-avisar button:hover {
    filter: brightness(1.1);
}

.campo-trampa {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.pie-formulario {
    font-size: 0.8rem;
    margin-top: 0.75rem;
}

.aviso {
    padding: 0.6rem 0.9rem;
    border-radius: 0.4rem;
    border: 1px solid var(--linea);
    background: var(--fondo);
}

.aviso-error {
    border-color: var(--suspendido);
    color: var(--suspendido);
}

/* ------------------------------------------------------------------ móvil */

@media (max-width: 600px) {
    .cabecera {
        padding: 1rem 1rem 0.75rem;
    }

    .cabecera .logo img {
        width: 9rem;
    }

    .lema {
        font-size: 0.8rem;
    }

    /* Menú en móvil: icono encima de un texto corto; las redes ya están en el pie. */
    .barra a:not(.barra-logo) {
        flex-direction: column;
        gap: 0.1rem;
        padding: 0.3rem 0.55rem;
        border-radius: 0.5rem;
    }

    .barra-largo {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .barra-corto {
        display: inline;
        font-size: 0.7rem;
        white-space: nowrap;
    }

    .barra-redes {
        display: none;
    }

    .barra .tema-boton {
        margin-left: auto;
    }

    .barra-interior {
        padding: 0.3rem 0.5rem;
    }

    .contenido {
        padding: 0.75rem 0.75rem 2rem;
    }

    .evento a {
        grid-template-columns: 1.4rem 3rem minmax(0, 1fr);
        padding: 0.5rem 0.35rem;
    }

    .evento-titulo {
        font-size: 1rem;
    }

    .ficha {
        padding: 1rem 1rem 1.25rem;
    }

    .ficha-titulo {
        font-size: 1.5rem;
    }

    .lista-evento a {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.1rem;
    }
}

/* Menos movimiento si el visitante lo pide. */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
}

/* ------------------------------------------------------------------ sitios de interés */

.interes-grupo {
    margin-top: 1.25rem;
}

.interes-lista {
    list-style: none;
    margin: 0;
    padding: 0;
}

.interes-sitio {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 1rem;
    align-items: baseline;
    padding: 0.55rem 0;
    border-bottom: 1px dotted var(--linea-punteada);
}

.interes-nombre {
    grid-column: 1;
    font-weight: 400;
}

.interes-direccion,
.interes-dominio {
    grid-column: 1;
    font-size: 0.85rem;
    color: var(--texto-suave);
}

.interes-dominio {
    color: var(--texto-tenue);
}

.interes-web {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    padding: 0.25rem 0.75rem;
    border: 1px solid var(--acento);
    border-radius: 0.4rem;
    color: var(--acento);
    font-size: 0.85rem;
    white-space: nowrap;
}

.interes-web:hover {
    background: var(--fondo-hover);
    text-decoration: none;
}

.interes-nombre i,
.interes-web i {
    font-size: 0.75em;
}

/* ------------------------------------------------------------------ el tiempo */

.tiempo-dias {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
    gap: 0.75rem;
}

.tiempo-dia {
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--linea);
    border-radius: 0.6rem;
    background: var(--fondo);
}

.tiempo-hoy {
    border-color: var(--acento);
}

.tiempo-fecha {
    margin: 0 0 0.4rem;
    font-size: 0.95rem;
    font-weight: 400;
}

.tiempo-fecha::first-letter {
    text-transform: uppercase;
}

.tiempo-fecha strong {
    font-weight: 500;
}

.tiempo-principal {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 0.75rem;
    align-items: center;
}

.tiempo-icono {
    grid-row: 1 / span 2;
    font-size: 2.2rem;
    color: var(--acento);
}

.tiempo-temp {
    font-size: 1.4rem;
}

.tiempo-min {
    margin-left: 0.4rem;
    color: var(--texto-suave);
    font-size: 1.1rem;
}

.tiempo-texto {
    font-size: 0.85rem;
    color: var(--texto-suave);
}

.tiempo-datos {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 0.9rem;
    margin: 0.6rem 0 0;
    font-size: 0.85rem;
}

.tiempo-datos i {
    color: var(--texto-tenue);
}

.tiempo-tramos {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.25rem;
    margin: 0.6rem 0 0;
    padding: 0.5rem 0 0;
    border-top: 1px dotted var(--linea-punteada);
    text-align: center;
    font-size: 0.75rem;
}

.tiempo-tramos li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
}

.tiempo-tramos i {
    font-size: 1.1rem;
    color: var(--texto-suave);
}

.tiempo-lluvia {
    color: var(--texto-suave);
}
