/* ==========================================================================
   Plantilla Ayuntamiento de Tijarafe — estilos base
   Joomla 4.4 / 5 / 6 · sin dependencias (no carga Bootstrap)
   ========================================================================== */

/* 1. Tipografía autoalojada (sin llamadas a Google: RGPD) ----------------- */
@font-face { font-family: "Libre Franklin"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/libre-franklin-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Libre Franklin"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/libre-franklin-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Libre Franklin"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/libre-franklin-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Libre Franklin"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/libre-franklin-latin-800-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Libre Franklin"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/libre-franklin-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Libre Franklin"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/libre-franklin-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Libre Franklin"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/libre-franklin-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Libre Franklin"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/libre-franklin-latin-ext-800-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* 2. Variables de diseño --------------------------------------------------- */
:root {
  --t-red: #ed0026;          /* rojo institucional */
  --t-red-bar: #dd0223;      /* barra superior, botones */
  --t-red-text: #b8001e;     /* rojo para texto sobre blanco (contraste AA) */
  --t-red-dark: #8a0016;
  --t-red-soft: #fde8eb;     /* fondo de iconos */
  --t-red-tint: #fdecee;     /* elemento activo */
  --t-ink: #1f1a1a;          /* texto */
  --t-ink-2: #4a4242;        /* texto secundario */
  --t-ink-3: #6b6262;        /* rótulos */
  --t-nav: #333333;          /* barra de menú */
  --t-nav-active: #262626;
  --t-bg: #ffffff;
  --t-bg-soft: #f7f3f2;      /* franjas y cabecera de página */
  --t-line: #e8e2e2;
  --t-line-2: #f0eaea;
  --t-footer: #1f1a1a;
  --t-radius: 12px;
  --t-radius-sm: 8px;
  --t-container: 1240px;
  --t-gutter: 24px;
  --t-font: "Libre Franklin", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* 3. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--t-font); font-size: 17px; line-height: 1.6; color: var(--t-ink); background: var(--t-bg); }
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--t-red-text); text-decoration: none; }
a:hover { color: var(--t-red-dark); text-decoration: none; }
/* Enlaces sin subrayado: el hover cambia de color (también en barra superior y pie) */
a { text-decoration: none; }
.topbar a:hover, .topbar a:focus-visible { color: #ffd2d9; text-decoration: none; }
:focus-visible { outline: 3px solid var(--t-red-bar); outline-offset: 2px; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .6em; line-height: 1.2; font-weight: 800; color: var(--t-ink); }
h1 { font-size: clamp(30px, 4vw, 42px); }
h2 { font-size: clamp(22px, 2.6vw, 26px); }
h3 { font-size: 20px; }
h4 { font-size: 18px; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--t-line); margin: 2em 0; }
.visually-hidden, .sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; padding: 10px 16px; background: var(--t-ink); color: #fff; border-radius: 0 0 8px 8px; font-weight: 700; }
.skip-link:focus { top: 0; color: #fff; }
.container { width: 100%; max-width: var(--t-container); margin: 0 auto; padding: 0 var(--t-gutter); }

/* 4. Barra superior --------------------------------------------------------- */
.topbar { background: var(--t-red-bar); color: #fff; font-size: 14px; }
.topbar__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px; min-height: 40px; padding-top: 6px; padding-bottom: 6px; }
.topbar a { color: #fff; }
.topbar__links ul { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; padding: 0; list-style: none; }
.topbar__links li { margin: 0; }
/* Submenús de la barra superior (p. ej. «Reserva de pistas», que es un separador): desplegable */
.topbar__links li { position: relative; }
.topbar__links li.parent > a, .topbar__links li.parent > span { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.topbar__links li.parent > a::after, .topbar__links li.parent > span::after { content: ""; width: 7px; height: 7px; margin-top: -3px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); opacity: .85; }
.topbar__links li.parent > span:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 3px; }
.topbar__links li ul { display: none; position: absolute; top: 100%; left: -12px; z-index: 80; min-width: 240px; margin: 0; padding: 6px 0; flex-direction: column; gap: 0; list-style: none; background: #fff; border-bottom: 3px solid var(--t-red-bar); border-radius: 0 0 var(--t-radius-sm) var(--t-radius-sm); box-shadow: 0 12px 28px rgba(0, 0, 0, .18); }
.topbar__links li:hover > ul, .topbar__links li:focus-within > ul, .topbar__links li.is-open > ul { display: flex; }
.topbar__links li ul { top: var(--tb-drop, 100%); }
.topbar__links li ul::before { content: ""; position: absolute; left: 0; right: 0; top: calc(-1 * var(--tb-gap, 8px)); height: var(--tb-gap, 8px); } /* puente para no perder el hover */
.topbar__links li ul a { display: block; padding: 9px 18px; color: var(--t-ink); font-size: 15px; font-weight: 600; white-space: nowrap; }
.topbar__links li ul a:hover, .topbar__links li ul a:focus-visible { background: var(--t-red-tint); color: var(--t-red-text); }
.topbar__right { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.topbar__social { display: inline-flex; padding: 4px; border-radius: 4px; }
.topbar__translate { display: flex; align-items: center; gap: 6px; padding-left: 12px; border-left: 1px solid rgba(255, 255, 255, .4); }
.topbar__translate img { display: block; }

/* 5. Cabecera --------------------------------------------------------------- */
.site-header { background: #fff; position: relative; z-index: 50; }
.site-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 40px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--t-ink); text-decoration: none; }
.brand:hover { text-decoration: none; color: var(--t-ink); }
.brand__logo { width: auto; height: 64px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__top { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--t-ink-3); }
.brand__name { font-size: 30px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; color: var(--t-red); }
.site-header__contact { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.header-contact { display: flex; flex-direction: column; line-height: 1.2; color: var(--t-ink); }
.header-contact:hover { color: var(--t-ink); }
.header-contact__label { font-size: 12px; color: var(--t-ink-3); text-transform: uppercase; letter-spacing: .08em; }
.header-contact__value { font-size: 16px; font-weight: 700; }
.header-contact__value--big { font-size: 18px; font-weight: 800; }
.btn-sede { display: inline-flex; align-items: center; gap: 10px; padding: 13px 18px; border-radius: var(--t-radius-sm); background: var(--t-red); color: #fff; font-weight: 700; }
.btn-sede:hover { background: var(--t-red-text); color: #fff; text-decoration: none; }
.nav-toggle { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--t-nav); border-radius: var(--t-radius-sm); background: #fff; color: var(--t-nav); font: inherit; font-weight: 700; cursor: pointer; }

/* 6. Menú principal (mod_menu) --------------------------------------------- */
.mainnav { background: var(--t-nav); }
.mainnav ul { margin: 0; padding: 0; list-style: none; }
.mainnav .container > ul { display: flex; flex-wrap: wrap; gap: 0 4px; }
.mainnav .container > ul > li { position: relative; display: flex; align-items: center; }
.mainnav .container > ul > li > a,
.mainnav .container > ul > li > span { display: block; padding: 15px 14px 12px; border-bottom: 3px solid transparent; color: #fff; font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer; }
.mainnav .container > ul > li > a:hover,
.mainnav .container > ul > li:hover > span { background: var(--t-nav-active); color: #fff; }
.mainnav .container > ul > li.active > a,
.mainnav .container > ul > li.active > span,
.mainnav .container > ul > li.current > a { background: var(--t-nav-active); border-bottom-color: var(--t-red-bar); }
.subnav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin-left: -10px; margin-right: 4px; border: 0; border-radius: 4px; background: transparent; color: #fff; cursor: pointer; }
.subnav-toggle:hover { background: var(--t-nav-active); }
.mainnav li.is-open > .subnav-toggle svg { transform: rotate(180deg); }
/* Desplegables */
.mainnav .container > ul > li > ul { position: absolute; top: 100%; left: 0; z-index: 60; display: none; min-width: 260px; padding: 6px 0; background: #fff; border-bottom: 3px solid var(--t-red-bar); border-radius: 0 0 var(--t-radius-sm) var(--t-radius-sm); box-shadow: 0 12px 28px rgba(0, 0, 0, .16); }
.mainnav .container > ul > li:hover > ul,
.mainnav .container > ul > li:focus-within > ul,
.mainnav .container > ul > li.is-open > ul { display: block; }
.mainnav li li > a, .mainnav li li > span { display: block; padding: 9px 18px; color: var(--t-ink); font-size: 15px; font-weight: 600; }
.mainnav li li > a:hover { background: var(--t-red-tint); color: var(--t-red-text); text-decoration: none; }
.mainnav li li.current > a, .mainnav li li.active > a { background: var(--t-red-tint); color: var(--t-red-text); box-shadow: inset 4px 0 0 var(--t-red-bar); }
.mainnav li li ul { padding-left: 12px; }

@media (max-width: 991px) {
  .nav-toggle { display: inline-flex; }
  .header-contact--email { display: none; }
  .mainnav { display: none; }
  .mainnav.is-open { display: block; }
  .mainnav .container { padding: 0; }
  .mainnav .container > ul { flex-direction: column; }
  .mainnav .container > ul > li { flex-wrap: wrap; border-top: 1px solid #444; }
  .mainnav .container > ul > li > a, .mainnav .container > ul > li > span { flex: 1 1 auto; padding: 14px var(--t-gutter); border-bottom: 0; }
  .mainnav .container > ul > li.active > a, .mainnav .container > ul > li.active > span { box-shadow: inset 4px 0 0 var(--t-red-bar); }
  .subnav-toggle { width: 48px; height: 48px; margin: 0; }
  .mainnav .container > ul > li > ul { position: static; flex: 1 1 100%; min-width: 0; box-shadow: none; border-radius: 0; border-bottom: 0; }
  .mainnav .container > ul > li:hover > ul, .mainnav .container > ul > li:focus-within > ul { display: none; }
  .mainnav .container > ul > li.is-open > ul { display: block; }
  .mainnav li li > a, .mainnav li li > span { padding: 12px calc(var(--t-gutter) + 12px); }
}

/* 6b. Menú principal en móvil como panel lateral (parámetro «Menú en móvil» = Panel lateral) */
.drawer-head, .nav-backdrop { display: none; }
@media (max-width: 991px) {
  .nav-drawer .mainnav { display: block; position: fixed; top: 0; right: 0; bottom: 0; z-index: 2; width: min(86vw, 380px); overflow-y: auto; overscroll-behavior: contain; transform: translateX(100%); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s; box-shadow: -12px 0 32px rgba(0, 0, 0, .3); }
  .nav-drawer .mainnav.is-open { transform: none; visibility: visible; transition: transform .25s ease; }
  .nav-drawer .mainnav .container > ul > li:first-child { border-top: 0; }
  .nav-drawer .drawer-head { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; padding: 0 8px 0 var(--t-gutter); background: var(--t-red-bar); color: #fff; font-size: 18px; font-weight: 800; }
  .nav-drawer .drawer-close { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 0; border-radius: 8px; background: transparent; color: #fff; cursor: pointer; }
  .nav-drawer .drawer-close:hover, .nav-drawer .drawer-close:focus-visible { background: rgba(0, 0, 0, .15); }
  .nav-drawer .nav-backdrop { display: block; position: fixed; inset: 0; z-index: 1; background: rgba(20, 15, 15, .55); opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s linear .25s; }
  .nav-drawer.nav-open .nav-backdrop { opacity: 1; visibility: visible; transition: opacity .25s; }
  .nav-drawer.nav-open { overflow: hidden; }
  .nav-drawer .mainnav .container > ul > li > ul { background: #262222; border-bottom: 0; }
  .nav-drawer .mainnav li li > a, .nav-drawer .mainnav li li > span { color: #ece5e5; font-weight: 500; }
  .nav-drawer .mainnav li li + li { border-top: 1px solid #3a3434; }
  .nav-drawer .mainnav li li > a:hover, .nav-drawer .mainnav li li.current > a, .nav-drawer .mainnav li li.active > a { background: #3a3030; color: #fff; box-shadow: inset 4px 0 0 var(--t-red-bar); }
  .nav-drawer.nav-open .site-header { z-index: 400; }
}

/* 7. Cabecera de página interior ------------------------------------------ */
.page-band { background: var(--t-bg-soft); border-bottom: 1px solid #ece5e3; }
.page-band .container { display: flex; flex-direction: column; gap: 14px; padding-top: 22px; padding-bottom: 30px; }
.page-band__title { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.page-band__icon { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: var(--t-red-soft); flex: 0 0 64px; }
.page-band__icon img { width: 30px; height: 30px; }
.page-band__kicker { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--t-red-text); }
.page-band__heading { margin: 0; }
/* Migas de pan (mod_breadcrumbs) */
.mod-breadcrumbs__wrapper ol, ol.breadcrumb { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; padding: 0; list-style: none; font-size: 14px; color: #5a5050; }
.mod-breadcrumbs__here, .mod-breadcrumbs__divider { display: none; }
.breadcrumb-item + .breadcrumb-item::before { content: "›"; padding: 0 8px; color: #8a7f7f; }
.breadcrumb-item.active, .breadcrumb-item:last-child { color: var(--t-ink); font-weight: 600; }

/* 8. Disposición contenido + lateral -------------------------------------- */
.layout { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px; padding-top: 36px; padding-bottom: 64px; }
.layout__main { flex: 999 1 560px; min-width: 0; }
.layout__aside { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.has-sidebar .layout__main > .com-content-article { max-width: 780px; }

/* El título ya está en la cabecera de página: no se repite */
.is-inner .layout__main .com-content-article > .page-header,
.is-inner .layout__main .com-content-category > h1,
.is-inner .layout__main .com-content-category-blog > h1,
.is-inner .layout__main .com-contact > .page-header,
.is-inner .layout__main .com-contact-category > h1 { display: none; }

/* 9. Contenido de artículos ------------------------------------------------ */
.com-content-article__body { font-size: 18px; line-height: 1.65; }
.com-content-article__body > p:first-child { font-size: 20px; line-height: 1.55; color: #3d3535; }
.com-content-article__body h2 { margin-top: 1.4em; }
.com-content-article__body > :first-child { margin-top: 0; }
.com-content-article__body img { border-radius: var(--t-radius-sm); }
/* Listas como tarjetas con check (añadir la clase "lista-simple" a una lista para verla normal) */
.com-content-article__body ul:not(.lista-simple) { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; margin: 0 0 1.4em; padding: 0; list-style: none; }
.com-content-article__body ul:not(.lista-simple) > li { position: relative; padding: 16px 18px 16px 50px; background: var(--t-bg-soft); border-radius: 10px; font-size: 16px; line-height: 1.45; }
.com-content-article__body ul:not(.lista-simple) > li::before { content: ""; position: absolute; left: 18px; top: 18px; width: 20px; height: 20px; background: no-repeat center/20px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23dd0223' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E"); }
.com-content-article__body ol { padding-left: 1.4em; }
.com-content-article__body table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: 16px; display: block; overflow-x: auto; }
.com-content-article__body th, .com-content-article__body td { padding: 10px 12px; border-bottom: 1px solid var(--t-line); text-align: left; vertical-align: top; }
.com-content-article__body th { border-bottom: 2px solid var(--t-ink); }
.com-content-article__body blockquote { margin: 1.4em 0; padding: 16px 22px; background: var(--t-bg-soft); border-left: 4px solid var(--t-red-bar); border-radius: 0 10px 10px 0; }
.com-content-article__body a[href$=".pdf"]::after { content: " (PDF)"; font-size: .8em; font-weight: 700; }
/* Artículo (override html/com_content/article): cuerpo + lateral "Atención al público" */
.art-layout { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px; }
.art-main { flex: 999 1 560px; min-width: 0; max-width: 780px; display: flex; flex-direction: column; gap: 28px; }
.art--con-lateral .art-main { max-width: none; }
.art-main > .com-content-article__body > :last-child { margin-bottom: 0; }
.art-aside { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.art-estado { margin: 0 0 16px; }
.art-badge { display: inline-block; margin-right: 6px; padding: 3px 10px; border-radius: 99px; background: #fff4d6; color: #5c4400; font-size: 13px; font-weight: 700; }
.art-icon { flex: 0 0 auto; }
.art-gestion__title { margin: 0 0 14px; font-size: 24px; }
.art-gestion__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.art-gestion__card { display: flex; flex-direction: column; gap: 8px; padding: 20px; border: 1px solid var(--t-line); border-radius: 10px; color: var(--t-ink); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.art-gestion__card .art-icon { width: 26px; height: 26px; color: var(--t-red-bar); }
.art-gestion__card:hover { border-color: var(--t-red-bar); box-shadow: 0 6px 18px rgba(31, 26, 26, .08); color: var(--t-ink); text-decoration: none; }
.art-gestion__name { font-size: 17px; font-weight: 700; line-height: 1.3; }
.art-gestion__desc { font-size: 14px; color: #5a5050; line-height: 1.4; }
.art-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 20px; border-top: 1px solid var(--t-line); font-size: 14px; color: var(--t-ink-3); }
.art-footer__tools { display: flex; flex-wrap: wrap; gap: 10px; }
.art-tool { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid #c9bcbc; border-radius: 6px; background: #fff; color: var(--t-ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.art-tool .art-icon { width: 18px; height: 18px; }
.art-tool:hover { border-color: var(--t-ink); }
.art-contact { border: 1px solid var(--t-line); border-radius: var(--t-radius); overflow: hidden; background: #fff; }
.art-contact__title { margin: 0; padding: 16px 22px; background: var(--t-nav); color: #fff; font-size: 17px; font-weight: 800; }
.art-contact__list { margin: 0; padding: 8px 22px 18px; }
.art-contact__row { display: flex; flex-direction: column; gap: 3px; padding: 12px 0; border-bottom: 1px solid var(--t-line-2); }
.art-contact__row:last-child { padding-bottom: 0; border-bottom: 0; }
.art-contact__row dt { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--t-ink-3); }
.art-contact__row dd { margin: 0; font-size: 16px; line-height: 1.45; }
.art-contact__strong { font-weight: 700; }
.art-contact__phones { display: flex; flex-direction: column; gap: 2px; }
.art-contact__phones a { font-weight: 800; }
.art-subnav { border: 1px solid var(--t-line); border-radius: var(--t-radius); overflow: hidden; }
.art-subnav__title { margin: 0; padding: 14px 20px; border-bottom: 1px solid var(--t-line-2); font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--t-ink-3); }
.art-subnav ul { margin: 0; padding: 0; list-style: none; }
.art-subnav li + li { border-top: 1px solid #f6f1f1; }
.art-subnav a { display: block; padding: 12px 20px; color: var(--t-ink); font-size: 15px; font-weight: 600; }
.art-subnav a:hover { background: var(--t-bg-soft); text-decoration: none; }
.art-subnav li.current > a { padding-left: 16px; background: var(--t-red-tint); border-left: 4px solid var(--t-red-bar); color: var(--t-red-text); font-weight: 800; }
/* Listas con buscador (Horarios) */
.art-main--wide { max-width: none; }
.cat-desc { font-size: 18px; color: var(--t-ink-2); }
.cat-desc > :last-child { margin-bottom: 0; }
.filter-bar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; }
.filter-bar__field { flex: 1 1 320px; max-width: 460px; display: flex; flex-direction: column; gap: 6px; }
.filter-bar__field label { font-size: 14px; font-weight: 700; }
.filter-bar__input { position: relative; display: block; }
.filter-bar__input .art-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--t-ink-3); pointer-events: none; }
.filter-bar .filter-bar__input input { padding-left: 44px; border-width: 2px; border-color: #d6cccc; }
.filter-bar__count { font-size: 14px; color: #5a5050; padding-bottom: 12px; }
.filter-empty { margin: 0; padding: 24px; background: var(--t-bg-soft); border-radius: 10px; text-align: center; }
.card-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.card-list > li { display: flex; }
.card-list > li[hidden] { display: none; }
.card-link { flex: 1 1 auto; display: flex; align-items: flex-start; gap: 16px; padding: 20px; border: 1px solid var(--t-line); border-radius: var(--t-radius); background: #fff; color: var(--t-ink); transition: border-color .15s, box-shadow .15s; }
.card-link:hover { border-color: var(--t-red-bar); box-shadow: 0 6px 18px rgba(31, 26, 26, .08); color: var(--t-ink); text-decoration: none; }
.card-link__icon { flex: 0 0 52px; height: 52px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--t-red-soft); color: var(--t-red-bar); }
.card-link__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.card-link__title { font-size: 17px; font-weight: 700; line-height: 1.3; }
.card-link__meta { font-size: 13px; color: var(--t-ink-3); }
.card-link__arrow { color: var(--t-red-bar); margin-top: 2px; }
.side-note { padding: 20px; border-radius: var(--t-radius); background: var(--t-bg-soft); font-size: 15px; line-height: 1.5; }
.side-note p { margin: 0 0 6px; }
.side-note p:last-child { margin-bottom: 0; }
.side-note__title { font-weight: 800; }
.side-note__phone { font-weight: 700; }

/* Contacto: formulario en tarjeta (formulario del núcleo + casilla GDPR, solo estilo) */
.form-card { padding: 28px; border: 1px solid var(--t-line); border-radius: var(--t-radius); background: #fff; }
.form-card__head { margin-bottom: 20px; }
.form-card__title { margin: 0 0 6px; font-size: 26px; }
.form-card__intro { margin: 0; color: var(--t-ink-2); font-size: 16px; }
.form-card .contact-form legend { display: none; }
.form-card .contact-form form { margin: 0; }
.form-card .control-group .controls { display: flex; flex-direction: column; gap: 6px; }
.form-card .control-group:has(input[type="checkbox"]) .controls { flex-direction: row; align-items: center; }
.form-card #gdpr_privacy_policy_checkbox, .form-card input[name="gdpr_privacy_policy_checkbox"] { flex: 0 0 22px; width: 22px; height: 22px; margin: 4px 10px 0 0; vertical-align: top; }
.form-card a[data-role="gdpr_privacy_policy"] { font-weight: 700; }
.form-card a[data-role="gdpr_privacy_policy"] label { cursor: pointer; }
.form-card [class*="gdpr"] { font-size: 15px; }
.form-card .btn-primary { min-width: 200px; }
.form-card__note { margin: 18px 0 0; font-size: 14px; color: var(--t-ink-3); }
.contact-misc { margin-bottom: 4px; }

/* Directorio de teléfonos */
.directorio { display: flex; flex-direction: column; gap: 28px; }
.dir-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.dir-emergency { display: flex; align-items: center; gap: 18px; padding: 22px 24px; border-radius: var(--t-radius); background: var(--t-red-bar); color: #fff; }
.dir-emergency:hover { background: var(--t-red-text); color: #fff; text-decoration: none; }
.dir-emergency__num { font-size: 48px; font-weight: 800; line-height: 1; }
.dir-emergency__text { display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.dir-emergency__title { font-size: 19px; font-weight: 800; }
.dir-ayto { display: flex; flex-direction: column; gap: 4px; padding: 22px 24px; border-radius: var(--t-radius); background: var(--t-nav); color: #fff; }
.dir-ayto__name { font-weight: 800; }
.dir-ayto__phone { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-size: 28px; font-weight: 800; }
.dir-ayto__phone:hover { color: #fff; }
.dir-ayto__meta { font-size: 14px; color: #d9d0d0; }
.dir-group[hidden] { display: none; }
.dir-group__title { margin: 0 0 12px; font-size: 22px; }
.dir-list { margin: 0; padding: 0; list-style: none; border: 1px solid var(--t-line); border-radius: var(--t-radius); overflow: hidden; }
.dir-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding: 14px 20px; }
.dir-row + .dir-row { border-top: 1px solid var(--t-line-2); }
.dir-row[hidden] { display: none; }
.dir-row__who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dir-row__name { font-size: 17px; font-weight: 700; }
.dir-row__sub { font-size: 14px; color: var(--t-ink-3); }
.dir-row__phones { display: flex; flex-wrap: wrap; gap: 8px; }
.dir-call { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 99px; background: var(--t-red-tint); color: var(--t-red-text); font-weight: 800; white-space: nowrap; }
.dir-call:hover { background: var(--t-red-bar); color: #fff; text-decoration: none; }
.dir-call--text { background: var(--t-bg-soft); color: var(--t-ink); }

/* Equipo de gobierno: foto grande arriba (4:3, sirve para fotos de despacho horizontales) */
.gobierno { display: flex; flex-direction: column; gap: 24px; }
.gov-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--t-line); border-radius: var(--t-radius); background: #fff; scroll-margin-top: 20px; }
.gov-card:target { border-color: var(--t-red-bar); box-shadow: 0 0 0 3px rgba(221, 2, 35, .15); }
.gov-card__photo { flex: none; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: var(--t-red-soft); display: flex; align-items: center; justify-content: center; }
.gov-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; }
.gov-card__initials { font-size: 64px; font-weight: 800; color: var(--t-red-bar); }
.gov-card__body { flex: 1 1 auto; min-width: 0; padding: 20px 22px 22px; }
.gov-card__name { margin: 0 0 4px; font-size: 21px; }
.gov-card__role { margin: 0 0 12px; font-size: 15px; color: var(--t-ink-2); line-height: 1.45; }
.gov-card__contact { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.gov-card__contact li { display: flex; align-items: center; gap: 8px; min-width: 0; }
.gov-card__contact .art-icon { color: var(--t-red-bar); flex: 0 0 auto; }
.gov-card__contact a { font-weight: 700; overflow-wrap: anywhere; }
.gov-card__areas { margin: 12px 0 0; font-size: 14px; }
.gov-card__areas-label { font-weight: 700; color: var(--t-ink-3); margin-right: 4px; }
.gov-card--featured { flex-direction: row; align-items: stretch; background: var(--t-nav); border-color: var(--t-nav); color: #fff; }
.gov-card--featured .gov-card__photo { width: 44%; max-width: 520px; aspect-ratio: auto; min-height: 300px; background: #3b3333; }
.gov-card--featured .gov-card__body { align-self: center; padding: 32px 36px; }
.gov-card--featured .gov-card__initials { color: #fff; font-size: 80px; }
.gov-card--featured .gov-card__name { color: #fff; font-size: 30px; }
.gov-card--featured .gov-card__role, .gov-card--featured .gov-card__areas-label { color: #d9d0d0; font-size: 16px; }
.gov-card--featured a { color: #fff; }
.gov-card--featured .gov-card__contact .art-icon { color: #ff8a9b; }
.gov-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 1020px) { .gov-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .gov-grid { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .gov-card--featured { flex-direction: column; }
  .gov-card--featured .gov-card__photo { width: 100%; max-width: none; min-height: 0; aspect-ratio: 4 / 3; }
  .gov-card--featured .gov-card__body { padding: 22px; }
  .gov-card--featured .gov-card__name { font-size: 24px; }
}

/* Tamaños de foto (parámetro «Fotos del equipo de gobierno»): l = grande (por defecto arriba),
   m = mediana (foto a la izquierda, 2 columnas), s = pequeña (foto a la izquierda, 3 columnas) */
.gobierno--m .gov-card:not(.gov-card--featured), .gobierno--s .gov-card:not(.gov-card--featured) { flex-direction: row; align-items: flex-start; }
.gobierno--m .gov-card:not(.gov-card--featured) .gov-card__photo { width: 220px; flex: 0 0 220px; margin: 20px 0 20px 20px; border-radius: 10px; }
.gobierno--m .gov-card:not(.gov-card--featured) .gov-card__initials { font-size: 52px; }
.gobierno--m .gov-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gobierno--m .gov-card--featured .gov-card__photo { width: 380px; flex: 0 0 380px; min-height: 0; aspect-ratio: 4 / 3; }
.gobierno--s .gov-card:not(.gov-card--featured) .gov-card__photo { width: 120px; flex: 0 0 120px; margin: 18px 0 18px 18px; border-radius: 10px; }
.gobierno--s .gov-card:not(.gov-card--featured) .gov-card__initials { font-size: 34px; }
.gobierno--s .gov-card:not(.gov-card--featured) .gov-card__body { padding: 16px 18px 18px; }
.gobierno--s .gov-card:not(.gov-card--featured) .gov-card__name { font-size: 18px; }
.gobierno--s .gov-card:not(.gov-card--featured) .gov-card__role, .gobierno--s .gov-card__contact { font-size: 14px; }
.gobierno--s .gov-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.gobierno--s .gov-card--featured .gov-card__photo { width: 260px; flex: 0 0 260px; min-height: 0; aspect-ratio: 4 / 3; }
.gobierno--s .gov-card--featured .gov-card__name { font-size: 26px; }
@media (max-width: 1200px) { .gobierno--s .gov-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .gobierno--m .gov-grid { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .gobierno--m .gov-card--featured .gov-card__photo, .gobierno--s .gov-card--featured .gov-card__photo { width: 100%; flex: none; }
  .gobierno--s .gov-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .gobierno--m .gov-card:not(.gov-card--featured), .gobierno--s .gov-card:not(.gov-card--featured) { flex-direction: column; }
  .gobierno--m .gov-card:not(.gov-card--featured) .gov-card__photo, .gobierno--s .gov-card:not(.gov-card--featured) .gov-card__photo { width: auto; flex: none; margin: 16px 16px 0; align-self: stretch; }
}

/* Protección de datos */
.art-gestion__grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 600px) { .art-gestion__grid--2 { grid-template-columns: 1fr; } }
.cookie-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding: 22px 24px; border-radius: var(--t-radius); background: var(--t-bg-soft); }
.cookie-box[hidden] { display: none; }
.cookie-box__title { margin: 0 0 4px; font-size: 20px; }
.cookie-box p { margin: 0; font-size: 15px; color: var(--t-ink-2); }
.pd-seal { padding: 16px; border: 1px solid var(--t-line); border-radius: var(--t-radius); text-align: center; }
.pd-seal img { max-height: 120px; width: auto; }
.article-info, dl.article-info { margin: 0 0 1em; font-size: 14px; color: var(--t-ink-3); }
.article-info dt { display: none; }
.article-info dd { display: inline; margin: 0 14px 0 0; }

/* 10. Formularios, botones y avisos (clases del núcleo de Joomla) ---------- */
.btn, button.btn, a.btn, input[type="submit"] { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 1px solid var(--t-nav); border-radius: var(--t-radius-sm); background: #fff; color: var(--t-nav); font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--t-bg-soft); color: var(--t-ink); text-decoration: none; }
.btn-primary, button.btn-primary, input[type="submit"] { background: var(--t-red-bar); border-color: var(--t-red-bar); color: #fff; }
.btn-primary:hover { background: var(--t-red-text); border-color: var(--t-red-text); color: #fff; }
.btn-secondary { background: var(--t-nav); border-color: var(--t-nav); color: #fff; }
.btn-secondary:hover { background: var(--t-nav-active); color: #fff; }
.form-control, .form-select, .inputbox,
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], input[type="url"], input[type="password"], input[type="number"], input[type="date"], input[type="time"], select, textarea { width: 100%; max-width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid #b9adad; border-radius: var(--t-radius-sm); background: #fff; color: var(--t-ink); font: inherit; font-size: 16px; }
textarea { min-height: 160px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--t-red-bar); outline: 3px solid rgba(221, 2, 35, .2); outline-offset: 0; }
input[type="checkbox"], input[type="radio"] { width: 20px; height: 20px; accent-color: var(--t-red-bar); }
.control-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.control-label label, .form-label { font-size: 15px; font-weight: 700; }
.star, .required-star, span.star { color: var(--t-red-text); }
.invalid, input.invalid, textarea.invalid { border-color: var(--t-red-text); }
.form-control-feedback, .invalid-feedback { color: var(--t-red-text); font-size: 14px; }
fieldset { margin: 0 0 1.4em; padding: 0; border: 0; }
legend { margin-bottom: .6em; font-size: 22px; font-weight: 800; }
.alert, joomla-alert { display: block; margin: 0 0 24px; padding: 16px 20px; border-radius: 10px; border: 1px solid var(--t-line); background: var(--t-bg-soft); }
.alert-success, joomla-alert[type="success"] { background: #e8f5ec; border-color: #2e7d4f; color: #1d5a37; }
.alert-danger, .alert-error, joomla-alert[type="danger"] { background: #fdecee; border-color: var(--t-red-text); color: var(--t-red-dark); }
.alert-warning, joomla-alert[type="warning"] { background: #fff4d6; border-color: #b78a00; color: #5c4400; }
.pagination, ul.pagination { display: flex; flex-wrap: wrap; gap: 6px; margin: 24px 0 0; padding: 0; list-style: none; }
.pagination .page-link { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px; border: 1px solid var(--t-line); border-radius: var(--t-radius-sm); color: var(--t-ink); font-weight: 600; }
.pagination .active .page-link { background: var(--t-nav); border-color: var(--t-nav); color: #fff; }
.pagination .disabled .page-link { color: #aaa; }
.counter { font-size: 14px; color: var(--t-ink-3); }
.table, table.category { width: 100%; border-collapse: collapse; }
.table th, .table td, table.category th, table.category td { padding: 12px; border-bottom: 1px solid var(--t-line); text-align: left; }

/* 11. Lateral --------------------------------------------------------------- */
.side-card { border: 1px solid var(--t-line); border-radius: var(--t-radius); overflow: hidden; background: #fff; }
.side-card__title { margin: 0; padding: 14px 20px; border-bottom: 1px solid var(--t-line-2); font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--t-ink-3); }
.side-card__body > ul { margin: 0; padding: 0; list-style: none; }
.side-card__body > ul > li + li { border-top: 1px solid #f6f1f1; }
.side-card__body > ul a, .side-card__body > ul span { display: block; padding: 12px 20px; color: var(--t-ink); font-size: 15px; font-weight: 600; }
.side-card__body > ul a:hover { background: var(--t-bg-soft); text-decoration: none; }
.side-card__body > ul li.current > a, .side-card__body > ul li.active > a { padding-left: 16px; background: var(--t-red-tint); border-left: 4px solid var(--t-red-bar); color: var(--t-red-text); font-weight: 800; }
.side-card__body > ul ul { padding-left: 14px; list-style: none; }
.side-card__body > :not(ul) { padding: 16px 20px; }

/* 12. Portada: franjas de módulos ------------------------------------------ */
.hsection { padding: 48px 0; }
.hsection--alt { background: var(--t-bg-soft); }
.hsection--dark { background: var(--t-footer); color: #fff; }
.hsection--tight { padding: 24px 0; }
.hsection__title { margin: 0 0 22px; font-size: 26px; font-weight: 800; }
.is-home .hsection:first-child { padding-top: 40px; }

/* 13. Pie ------------------------------------------------------------------- */
.site-footer { background: var(--t-footer); color: #e9e2e2; font-size: 14px; }
.site-footer a { color: #e9e2e2; }
.site-footer a:hover { color: #ff9aa8; text-decoration: none; }
.site-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; padding-top: 56px; padding-bottom: 28px; }
.footer-col p { margin: 0 0 8px; }
.footer-col__title { margin: 0 0 12px !important; color: #fff; font-size: 15px; font-weight: 800; }
.footer-col ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col ul ul { display: none; }
.footer-sellos { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px; }
.footer-sellos img { display: block; max-height: 90px; width: auto; }
.footer-sellos p { margin: 0; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 18px; padding-bottom: 32px; border-top: 1px solid #3b3333; color: #b9aeae; }

/* 14. Página de error y vista componente ---------------------------------- */
.error-box { padding-top: 64px; padding-bottom: 96px; max-width: 760px; }
.error-box__code { margin: 0; font-size: 96px; font-weight: 800; line-height: 1; color: var(--t-red); }
.error-box__title { margin: 12px 0; }
.error-box__text { color: var(--t-ink-2); font-size: 18px; }
.error-box__debug { white-space: pre-wrap; padding: 16px; background: var(--t-bg-soft); border-radius: 8px; font-size: 13px; }
.component-body { padding-top: 24px; padding-bottom: 24px; }

/* 15. Impresión ------------------------------------------------------------- */
@media print {
  .topbar, .mainnav, .site-header__contact, .layout__aside, .site-footer__grid, .skip-link, .art-footer__tools, .art-gestion, .art-subnav { display: none !important; }
  .art-layout { display: block; }
  .art-aside { margin-top: 24px; }
  .art-contact__title { background: none; color: #000; padding-left: 0; }
  .page-band { background: none; border: 0; }
  body { font-size: 12pt; }
  a { color: #000; text-decoration: underline; }
}

/* 16. Móvil: accesos de la barra superior tras un botón y cabecera alineada --- */
.topbar { position: relative; z-index: 70; }
.topbar__toggle { display: none; align-items: center; justify-content: center; width: 40px; height: 40px; margin-left: -8px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: #fff; cursor: pointer; }
.topbar__toggle:hover, .topbar__toggle[aria-expanded="true"] { background: rgba(0, 0, 0, .15); }
@media (max-width: 767px) {
  .topbar__inner { flex-wrap: nowrap; gap: 8px; min-height: 48px; padding-top: 4px; padding-bottom: 4px; }
  .topbar__toggle { display: inline-flex; }
  .topbar__links { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 6px 0 10px; background: var(--t-red-bar); box-shadow: 0 10px 24px rgba(0, 0, 0, .2); }
  .topbar__links.is-open { display: block; }
  .topbar__links ul { flex-direction: column; gap: 0; }
  .topbar__links li a, .topbar__links li span { display: block; padding: 12px var(--t-gutter); font-size: 16px; border-top: 1px solid rgba(255, 255, 255, .18); }
  .topbar__links li:first-child a, .topbar__links li:first-child span { border-top: 0; }
  .topbar__links li.parent > a::after, .topbar__links li.parent > span::after { display: none; }
  .topbar__links li.parent > a, .topbar__links li.parent > span { display: block; cursor: default; }
  .topbar__links li ul, .topbar__links li:hover > ul, .topbar__links li:focus-within > ul { display: flex; position: static; min-width: 0; padding: 0; background: transparent; border: 0; box-shadow: none; border-radius: 0; }
  .topbar__links li ul::before { display: none; }
  .topbar__links li ul a { padding: 11px var(--t-gutter) 11px calc(var(--t-gutter) + 18px); color: #fff; font-size: 15px; font-weight: 400; white-space: normal; border-top: 1px solid rgba(255, 255, 255, .12); }
  .topbar__links li ul a:hover, .topbar__links li ul a:focus-visible { background: rgba(0, 0, 0, .12); color: #fff; }
  .topbar__right { flex: 0 0 auto; gap: 8px; }
  .topbar__translate { padding-left: 8px; }
}
@media (max-width: 991px) {
  .site-header__inner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 14px 16px; padding-top: 14px; padding-bottom: 14px; }
  .brand { grid-column: 1; grid-row: 1; min-width: 0; }
  .nav-toggle { grid-column: 2; grid-row: 1; }
  .site-header__contact { grid-column: 1 / -1; grid-row: 2; flex-wrap: nowrap; justify-content: space-between; gap: 12px; }
}
@media (max-width: 380px) {
  .brand__name { font-size: 26px; }
  .btn-sede { padding: 11px 14px; font-size: 15px; }
  .header-contact__value--big { font-size: 17px; }
}
