/* Tipografía de los títulos: Outfit servida desde el propio sitio. */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/outfit-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/outfit-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --brand: #003399;
  --brand-dark: #00267a;
  --blue: #003399;
  --blue-deep: #0a1a3f;
  --blue-soft: #e8eefc;
  --gold: #c98a2b;
  --bg: #ffffff;
  --card: #ffffff;
  --text: #15192b;
  --muted: #5f6678;
  --radius: 22px;
  --shadow: 0 10px 30px -14px rgba(6, 20, 46, 0.35);
  --glass: rgba(255, 255, 255, 0.16);
  --glass-edge: rgba(255, 255, 255, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--blue);
}

.container {
  width: min(1180px, 100% - 32px);
  margin-inline: auto;
}

.container-wide {
  width: min(1880px, 100% - 32px);
}

/* Encabezado flotante (PillNav) */
/* Encabezado único, blanco y alto, fijo arriba.
   PC ancha:  [logo] [menú] [buscador] [redes]
   PC chica:  [logo] [buscador] [redes] / [menú]
   Celular:   [logo] [☰] / [buscador]               */
.site-header {
  position: sticky;
  top: 0;
  z-index: 55;
  background: #fff;
  transition: box-shadow 0.3s;
}

.site-header.is-compact {
  box-shadow: 0 10px 30px -18px rgba(10, 26, 63, 0.35);
}

.site-header__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    'logo search social'
    'logo nav nav';
  align-items: center;
  column-gap: clamp(18px, 2.4vw, 40px);
  row-gap: 4px;
  min-height: 128px;
  padding: 18px clamp(16px, 3.5vw, 56px);
  transition:
    padding 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    min-height 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-header__logo {
  grid-area: logo;
  display: block;
  line-height: 0;
}

.site-header__logo img {
  display: block;
  width: auto;
  height: clamp(56px, 5.4vw, 84px);
  transition: height 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-header__menu {
  grid-area: nav;
  min-width: 0;
}

.site-header.is-compact .site-header__inner {
  min-height: 84px;
  padding-block: 10px;
}

.site-header.is-compact .site-header__logo img {
  height: clamp(44px, 4vw, 60px);
}

/* Menú de texto (PC) */
.main-nav ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(4px, 1vw, 14px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav__item {
  position: relative;
}

.main-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 12px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  color: var(--blue-deep);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s;
}

/* Subrayado animado en naranja, como el de la línea institucional */
.main-nav__link::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: #ec6608;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.main-nav__link:hover,
.main-nav__link:focus-visible,
.main-nav__item.is-open > .main-nav__link,
.main-nav__link.is-active {
  color: var(--brand);
  outline: none;
}

.main-nav__link:hover::after,
.main-nav__link:focus-visible::after,
.main-nav__item.is-open > .main-nav__link::after,
.main-nav__link.is-active::after {
  transform: scaleX(1);
}

.main-nav__link .nav-chevron {
  transition: transform 0.2s;
}

.main-nav__item.is-open .nav-chevron {
  transform: rotate(180deg);
}

.main-nav__dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 60;
  padding-top: 8px;
  transform: translate(-50%, 6px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.2s,
    transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.2s;
}

.main-nav__item.is-open .main-nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.main-nav__dropdown ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(190px, 1fr));
  gap: 2px 8px;
  padding: 12px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #e6ebf5;
  box-shadow: 0 24px 48px -20px rgba(10, 26, 63, 0.35);
}

.main-nav__dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--blue-deep);
  text-decoration: none;
  font-size: 0.95rem;
  white-space: nowrap;
  transition:
    background 0.15s,
    color 0.15s;
}

.main-nav__dropdown a:hover,
.main-nav__dropdown a:focus-visible {
  background: #eef2fb;
  color: var(--brand);
  outline: none;
}

/* Botón ☰ y panel del menú en celular */
.burger {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: var(--brand);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.burger span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition:
    transform 0.25s,
    opacity 0.2s;
}

.burger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.is-open span:nth-child(2) {
  opacity: 0;
}

.burger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 60;
  max-height: calc(100vh - 100%);
  overflow-y: auto;
  background: #fff;
  border-top: 1px solid #edf0f6;
  box-shadow: 0 24px 40px -24px rgba(10, 26, 63, 0.45);
  animation: dropdown-pop 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu > ul {
  margin: 0;
  padding: 8px 16px 16px;
  list-style: none;
}

.mobile-menu > ul > li + li {
  border-top: 1px solid #f0f2f7;
}

.mobile-menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 15px 4px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--blue-deep);
  text-decoration: none;
  text-align: left;
  cursor: pointer;
}

.mobile-menu__link.is-active {
  color: var(--brand);
}

.mobile-menu__link[aria-expanded='true'] .nav-chevron {
  transform: rotate(180deg);
}

.mobile-menu__sub {
  margin: 0 0 12px;
  padding: 6px;
  list-style: none;
  border-radius: 14px;
  background: #f5f7fc;
}

.mobile-menu__sub a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 10px;
  color: var(--blue-deep);
  text-decoration: none;
}

.mobile-menu__sub a:active {
  background: #e6ecf8;
}

.header-search {
  position: relative;
  grid-area: search;
  width: 100%;
}

.header-search form {
  position: relative;
}

.header-search__icon {
  position: absolute;
  left: 18px;
  top: 50%;
  translate: 0 -50%;
  color: var(--brand);
  pointer-events: none;
}

.header-search input {
  width: 100%;
  height: 52px;
  padding: 0 20px 0 50px;
  border: 1.5px solid #d9e0ef;
  border-radius: 999px;
  background: #f6f8fc;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    background 0.2s;
}

.header-search input::placeholder {
  color: #8a93a8;
}

.header-search input:focus {
  background: #fff;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(0, 51, 153, 0.12);
}

.header-search__results {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 70;
  padding: 14px;
  max-height: min(420px, 70vh);
  overflow-y: auto;
  border-radius: 20px;
  background: #fff;
  border: 1px solid #e3e8f3;
  box-shadow: 0 22px 44px -18px rgba(10, 26, 63, 0.35);
  animation: dropdown-pop 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes dropdown-pop {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}

/* Resultados en texto, con la parte que coincide subrayada */
.header-search__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 2px;
}

.header-search__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 12px;
  color: var(--blue-deep);
  text-decoration: none;
  transition:
    background 0.15s,
    color 0.15s;
}

.header-search__item svg {
  flex: none;
  opacity: 0;
  transform: translateX(-4px);
  transition:
    opacity 0.15s,
    transform 0.15s;
}

.header-search__item.is-active {
  background: #eef2fb;
  color: var(--brand);
}

.header-search__item.is-active svg {
  opacity: 1;
  transform: none;
}

.header-search__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.header-search__title {
  font-size: 0.98rem;
  font-weight: 500;
}

.header-search__text small {
  color: var(--muted);
  font-size: 0.8rem;
}

.header-search__item mark {
  background: none;
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: #ec6608;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* Botón para volver arriba */
.back-to-top {
  position: fixed;
  right: clamp(14px, 2.5vw, 28px);
  bottom: clamp(14px, 2.5vw, 28px);
  z-index: 50;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 12px 26px -10px rgba(0, 51, 153, 0.7);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity 0.25s,
    visibility 0.25s,
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.2s;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.back-to-top:hover {
  background: var(--brand-dark);
  transform: translateY(-3px);
}

.back-to-top:focus-visible {
  outline: 3px solid #ec6608;
  outline-offset: 3px;
}

.header-search__empty {
  margin: 0;
  padding: 6px 8px;
  color: var(--muted);
  text-align: center;
}

.site-header__social {
  grid-area: social;
  display: flex;
  gap: 8px;
}

.site-header__social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  transition:
    transform 0.2s,
    background 0.2s;
}

.site-header__social a:hover {
  transform: translateY(-2px);
  background: var(--brand-dark);
}

.site-nav {
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-chevron {
  opacity: 0.7;
}

/* Hero */
/* Hero de borde a borde, rectangular, con la línea pegada arriba y abajo */
.hero-wrap {
  padding: 0;
}

.hero {
  position: relative;
  height: clamp(460px, 62vw, 700px);
  border-radius: 0;
  overflow: hidden;
  background: var(--brand);
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  container-type: size;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* En PC, si hay video, no se muestra la imagen: el video entra directo (aparece al reproducirse) */
@media (min-width: 769px) {
  .hero-media.has-video picture {
    display: none;
  }
}

.hero-file {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.hero-file.is-ready {
  opacity: 1;
}

/* Pantalla de carga con el logo (solo PC, inicio con video) */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  background: #fff;
  transition:
    opacity 0.6s ease,
    visibility 0.6s;
  /* Por si el JavaScript no carga: se oculta sola a los 8 segundos */
  animation: preloader-failsafe 0.4s ease 8s forwards;
}

.preloader.is-leaving {
  opacity: 0;
  visibility: hidden;
}

.preloader img {
  width: min(380px, 70vw);
  height: auto;
  animation: preloader-breathe 1.8s ease-in-out infinite;
}

.preloader__bar {
  position: relative;
  width: min(220px, 50vw);
  height: 4px;
  border-radius: 4px;
  overflow: hidden;
  background: #e7ecf6;
}

.preloader__bar span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 40%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--brand), #ec6608);
  animation: preloader-slide 1.1s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes preloader-breathe {
  50% {
    opacity: 0.7;
    transform: scale(0.98);
  }
}

@keyframes preloader-slide {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(250%);
  }
}

@keyframes preloader-failsafe {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

@media (max-width: 768px) {
  .preloader {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .preloader img,
  .preloader__bar span {
    animation: none;
  }
}

/* Video de YouTube de fondo: se escala para cubrir todo el hero (como object-fit: cover) */
.hero-yt {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.hero-yt.is-ready {
  opacity: 1;
}

.hero-yt iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100cqw, 177.78cqh);
  height: max(100cqh, 56.25cqw);
  translate: -50% -50%;
  scale: 1.04;
  border: 0;
}

/* Sin video: azul institucional con un brillo suave que se mueve lento */
.hero-fallback {
  background:
    radial-gradient(55% 75% at 22% 25%, rgba(255, 255, 255, 0.14) 0%, transparent 60%),
    radial-gradient(45% 65% at 82% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 60%),
    #003399;
  animation: drift 18s ease-in-out infinite alternate;
  background-size: 140% 140%, 140% 140%, 100% 100%;
}

@keyframes drift {
  to {
    background-position: 30% 40%, 70% 20%, 0 0;
  }
}

/* Con video: velo azul #003399 para que el texto se lea siempre */
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0, 51, 153, 0.45) 0%, rgba(0, 51, 153, 0.15) 45%, rgba(0, 38, 122, 0.6) 100%);
}

.hero-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}

.hero-title {
  margin: 0;
  font-size: clamp(2.8rem, 10vw, 7.5rem);
  line-height: 0.95;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  background: linear-gradient(180deg, #ffffff 30%, #cdd9f5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.45));
}

/* Reloj (vidrio) abajo a la izquierda */
.clock {
  position: absolute;
  left: 22px;
  bottom: 22px;
  padding: 12px 20px;
  border-radius: 20px;
  color: #fff;
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
}

.clock-date {
  font-size: 0.88rem;
  text-transform: capitalize;
  opacity: 0.92;
}

.clock-time {
  font-size: 2rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  letter-spacing: 0.03em;
}

/* Secciones */
.section {
  padding-block: 48px 52px;
}

.section--banner {
  padding-block: 40px;
}

/* Separador entre secciones: imagen linea.png estirada a todo el ancho */
.section-divider {
  width: 100%;
  height: clamp(6px, 0.7vw, 11px);
  background: url('../../imagenes/linea.png') center / 100% 100% no-repeat;
}

.section-title {
  margin: 0 0 34px;
  text-align: center;
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--blue-deep);
}

.section-title::after {
  content: '';
  display: block;
  width: 44px;
  height: 2px;
  margin: 16px auto 0;
  border-radius: 2px;
  background: var(--brand);
}

.empty {
  color: var(--muted);
  text-align: center;
  margin-inline: auto;
}

.more {
  text-align: right;
  font-weight: 600;
  margin-top: 20px;
}

/* Información importante.
   PC: las 7 tarjetas a la vista, en una fila (sin carrusel).
   Tablet y celular: carrusel que avanza de a 1 (3 y 2 visibles, ver media queries). */
#informacion.container-wide {
  width: min(1900px, 100% - 24px);
}

.info-grid {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 16px;
  padding-block: 12px 8px;
}

.info-grid::-webkit-scrollbar {
  display: none;
}

.info-card {
  display: block;
  flex: 1 1 0;
  min-width: 0;
  max-width: 260px;
  scroll-snap-align: start;
  transition:
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.25s;
}

.info-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}

.info-card:hover,
.info-card:focus-visible {
  transform: translateY(-6px);
  filter: drop-shadow(0 12px 14px rgba(6, 20, 46, 0.22));
  outline: none;
}

.info-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 14px;
}

.info-arrow {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--blue-deep);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 14px -6px rgba(6, 20, 46, 0.6);
  transition: transform 0.15s;
}

.info-arrow:active {
  transform: scale(0.92);
}

.info-dots {
  display: flex;
  gap: 6px;
}

.info-dots span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(6, 20, 46, 0.22);
  transition:
    width 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.35s;
}

.info-dots span.is-active {
  width: 22px;
  background: var(--gold);
}

/* Carrusel de banners */
/* Banner de 1150x150 en PC; en pantallas más angostas se achica manteniendo la proporción */
.carousel,
.banner-placeholder {
  width: 100%;
  max-width: 1150px;
  aspect-ratio: 1150 / 150;
  margin-inline: auto;
}

.carousel {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: var(--brand);
  box-shadow: 0 18px 36px -22px rgba(0, 51, 153, 0.55);
  outline: none;
}

.carousel:focus-visible {
  box-shadow:
    0 0 0 3px #fff,
    0 0 0 6px var(--blue);
}

/* Hover suave: el banner se eleva un poco y la imagen se acerca levemente */
.carousel {
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s;
}

.carousel:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 44px -22px rgba(0, 51, 153, 0.7);
}

/* El acercamiento del hover va en el <picture> (no en la imagen, que tiene su propio
   zoom lento de entrada), así entra y sale con la misma velocidad. */
.carousel-slide picture {
  transition: scale 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.carousel:hover .carousel-slide.is-active picture {
  scale: 1.03;
}

.carousel-stage {
  position: absolute;
  inset: 0;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  visibility: hidden;
  z-index: 0;
}

.carousel-slide.is-prev {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.carousel-slide.is-active {
  visibility: visible;
  z-index: 2;
  animation: slide-in 0.9s ease both;
}

@keyframes slide-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 7s ease-out;
}

.carousel-slide.is-active img {
  transform: scale(1);
}

.carousel-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 20, 46, 0.55) 0%, rgba(6, 20, 46, 0) 55%),
    linear-gradient(0deg, rgba(6, 20, 46, 0.45) 0%, rgba(6, 20, 46, 0) 40%);
}

.carousel-caption {
  position: absolute;
  left: clamp(16px, 3vw, 40px);
  top: 50%;
  margin-top: -1.4em;
  max-width: min(520px, 60%);
  color: #fff;
  transform: translateY(14px);
  opacity: 0;
  transition:
    transform 0.8s 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.8s 0.25s;
}

.is-active .carousel-caption {
  transform: none;
  opacity: 1;
}

.carousel-caption h3 {
  margin: 0 0 4px;
  font-size: clamp(0.95rem, 2vw, 1.6rem);
  line-height: 1.1;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
}

.carousel-caption p {
  margin: 0;
  opacity: 0.92;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--glass-edge);
  background: var(--glass);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  transition:
    opacity 0.25s,
    background 0.2s,
    scale 0.2s;
}

.carousel:hover .carousel-arrow,
.carousel:focus-within .carousel-arrow {
  opacity: 1;
}

.carousel-arrow:hover {
  background: rgba(255, 255, 255, 0.32);
  scale: 1.08;
}

.carousel-arrow.prev {
  left: 18px;
}

.carousel-arrow.next {
  right: 18px;
}

.carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 10px;
  translate: -50% 0;
  display: flex;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(6, 20, 46, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.carousel-dot {
  position: relative;
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  overflow: hidden;
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.carousel-dot.is-active {
  width: 40px;
}

.carousel-dot span {
  position: absolute;
  inset: 0;
  background: #fff;
  transform-origin: left;
  transform: scaleX(0);
}

.carousel-dot.is-active span {
  animation-name: dot-progress;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}

.carousel-dot.is-active.is-paused span {
  animation-play-state: paused;
}

@keyframes dot-progress {
  to {
    transform: scaleX(1);
  }
}

.banner-placeholder {
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 0.9rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--muted);
  border: 2px dashed #b7c0d6;
}

/* Galería de noticias */
.news-gallery {
  padding-block: 6px;
}

/* Números útiles: misma lógica visual que Información importante */
/* En PC todos en una sola fila */
.numbers-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 22px;
  justify-content: center;
}

.number-card {
  flex: 1 1 0;
  min-width: 0;
  max-width: 170px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.number-card img {
  display: block;
  width: 100%;
  max-width: 150px;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  transition:
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.25s;
}

/* La imagen es el botón: en PC abre WhatsApp, en celular llama o pregunta "Llamar / WhatsApp" */
.number-card {
  position: relative;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-decoration: none;
}

.number-card.is-action {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.number-card.is-action:hover img,
.number-card.is-action:focus-visible img {
  transform: translateY(-6px) scale(1.05);
  filter: drop-shadow(0 12px 14px rgba(6, 20, 46, 0.25));
}

.number-card.is-action:active img {
  transform: scale(0.96);
}

.number-card:focus-visible {
  outline: none;
}

.number-card:focus-visible img {
  outline: 3px solid #ec6608;
  outline-offset: 4px;
  border-radius: 50%;
}

/* Insignia de WhatsApp (PC) */
.number-badge {
  position: absolute;
  right: 12%;
  bottom: 8%;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 6px 14px -6px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: scale(0.6);
  transition:
    opacity 0.2s,
    transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.number-card.is-action:hover .number-badge,
.number-card.is-action:focus-visible .number-badge {
  opacity: 1;
  transform: scale(1);
}

/* Hoja inferior "¿Cómo querés comunicarte?" (celular) */
.contact-sheet {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(5, 12, 35, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: sheet-fade 0.2s ease;
}

.contact-sheet__panel {
  width: min(480px, 100%);
  padding: 18px 16px calc(16px + env(safe-area-inset-bottom));
  border-radius: 24px 24px 0 0;
  background: #fff;
  box-shadow: 0 -20px 40px -20px rgba(0, 0, 0, 0.4);
  display: grid;
  gap: 10px;
  animation: sheet-up 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-sheet__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 4px 8px;
}

.contact-sheet__head img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.contact-sheet__head span {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
}

.contact-sheet__head strong {
  font-size: 1.1rem;
  color: var(--blue-deep);
}

.contact-sheet__btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
}

.contact-sheet__btn span {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.contact-sheet__btn small {
  font-weight: 500;
  font-size: 0.82rem;
  opacity: 0.8;
  font-variant-numeric: tabular-nums;
}

.contact-sheet__btn.is-call {
  background: var(--brand);
  color: #fff;
}

.contact-sheet__btn.is-wa {
  background: #25d366;
  color: #fff;
}

.contact-sheet__cancel {
  padding: 12px;
  border: 0;
  border-radius: 14px;
  background: #f1f3f8;
  color: var(--blue-deep);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

@keyframes sheet-up {
  from {
    transform: translateY(100%);
  }
}

@keyframes sheet-fade {
  from {
    opacity: 0;
  }
}

/* Videos */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

.video-card {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  text-align: left;
  font: inherit;
  cursor: pointer;
  background: var(--card);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
  color: var(--text);
  transition:
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.25s;
}

.video-card:hover,
.video-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px -16px rgba(0, 51, 153, 0.45);
  outline: none;
}

.video-thumb {
  position: relative;
  display: block;
  overflow: hidden;
}

.video-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.video-card:hover .video-thumb img {
  transform: scale(1.04);
}

.video-thumb .play {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  padding-left: 3px;
  border-radius: 50%;
  background: rgba(0, 51, 153, 0.82);
  color: #fff;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.25);
  transition: scale 0.25s;
}

.video-card:hover .play {
  scale: 1.1;
}

.video-card h3 {
  margin: 0;
  padding: 12px 16px 16px;
  font-size: 1rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Reproductor en ventana emergente */
.video-modal {
  width: min(1000px, 100% - 24px);
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: #000;
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7);
}

.video-modal::backdrop {
  background: rgba(5, 12, 35, 0.78);
  backdrop-filter: blur(4px);
}

.video-modal[open] {
  animation: modal-in 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
}

.video-modal__frame {
  position: relative;
  aspect-ratio: 16 / 9;
}

.video-modal__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-modal__bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: var(--brand);
  color: #fff;
}

.video-modal__bar strong {
  flex: 1;
  min-width: 0;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.video-modal__bar a {
  color: #fff;
  font-size: 0.88rem;
  white-space: nowrap;
}

.video-modal__close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  cursor: pointer;
}

.video-modal__close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Listado de noticias y artículo */
.page-top {
  padding-top: 24px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

.news-card {
  background: var(--card);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s;
}

.news-card:hover {
  transform: translateY(-4px);
}

.news-card a {
  color: inherit;
  text-decoration: none;
  display: block;
  height: 100%;
}

.news-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.news-body {
  padding: 14px 18px 20px;
}

.news-body time,
.article time {
  color: var(--muted);
  font-size: 0.85rem;
}

.news-body h3 {
  margin: 4px 0 6px;
  color: var(--blue-deep);
}

.news-body p {
  margin: 0;
  color: var(--muted);
}

.pager {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
  font-weight: 600;
}

.article {
  max-width: 820px;
}

.article h1 {
  color: var(--blue-deep);
  margin-bottom: 4px;
}

.article-cover {
  display: block;
  width: 100%;
  margin: 20px 0;
  border-radius: 22px;
}

.rich {
  font-size: 1.08rem;
}

/* Footer (inspirado en bloque oscuro con columnas) */
.site-footer {
  margin: 40px 6px 6px;
}

.footer-shell {
  padding: 36px clamp(20px, 5vw, 72px) 22px;
  border-radius: 30px;
  background: var(--brand);
  color: rgba(255, 255, 255, 0.82);
}

.footer-top {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  flex-wrap: wrap;
}

.footer-top a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.footer-top a:hover {
  text-decoration: underline;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  font-size: 1.1rem;
}

.footer-brand img {
  border-radius: 50%;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 28px;
  padding-block: 28px;
}

.footer-col h4 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.footer-col p {
  margin: 0 0 8px;
  font-size: 0.92rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-col a,
.footer-col p a {
  color: #c9d3ea;
  text-decoration: none;
  font-size: 0.92rem;
}

.footer-col a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

.socials {
  display: flex;
  gap: 14px;
}

.social {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  transition:
    background 0.2s,
    transform 0.2s;
}

.social:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-2px);
}

.footer-legal {
  margin: 0;
  font-size: 0.85rem;
  text-align: center;
}

/* PC: el buscador se centra en su fila; el menú va debajo, en el mismo encabezado blanco */
@media (min-width: 901px) {
  .header-search {
    max-width: 560px;
    justify-self: center;
  }
}

/* Desde 1000 px: todo en una sola fila (logo · menú · buscador · redes) */
@media (min-width: 1000px) {
  .site-header__inner {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    grid-template-areas: 'logo nav search social';
    column-gap: clamp(12px, 1.6vw, 32px);
    min-height: 104px;
    padding-inline: clamp(16px, 2.4vw, 48px);
  }
  .site-header__logo img {
    height: clamp(46px, 4.3vw, 76px);
  }
  .site-header.is-compact .site-header__logo img {
    height: clamp(40px, 3.4vw, 58px);
  }
  .site-header__menu .main-nav ul {
    justify-content: center;
    gap: clamp(0px, 0.5vw, 10px);
  }
  .header-search {
    width: clamp(220px, 16vw, 380px);
    max-width: none;
    justify-self: end;
  }
}

/* Entre 1000 y 1599 px no entra el buscador completo: queda como una lupa
   que se despliega sobre el menú al hacer clic. Menú y redes, un poco más compactos. */
@media (min-width: 1000px) and (max-width: 1599px) {
  .main-nav__link {
    padding: 8px 9px;
    font-size: 0.94rem;
  }
  .main-nav__link::after {
    left: 9px;
    right: 9px;
  }
  .site-header__social {
    gap: 6px;
  }
  .site-header__social a {
    width: 34px;
    height: 34px;
  }
  .site-header__social svg {
    width: 16px;
    height: 16px;
  }
  .header-search {
    width: 44px;
    height: 44px;
  }
  .header-search form {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 65;
  }
  .header-search input {
    width: 44px;
    height: 44px;
    padding: 0 0 0 42px;
    cursor: pointer;
    transition:
      width 0.3s cubic-bezier(0.22, 1, 0.36, 1),
      border-color 0.2s,
      box-shadow 0.2s,
      background 0.2s;
  }
  .header-search__icon {
    left: 12px;
  }
  .header-search input::placeholder {
    color: transparent;
  }
  .header-search:focus-within input {
    width: min(360px, 60vw);
    padding-right: 16px;
    cursor: text;
    box-shadow:
      0 0 0 4px rgba(0, 51, 153, 0.12),
      0 18px 36px -18px rgba(10, 26, 63, 0.45);
  }
  .header-search:focus-within input::placeholder {
    color: #8a93a8;
  }
  .header-search__results {
    left: auto;
    right: 0;
    width: min(360px, 60vw);
    top: calc(44px + 10px);
  }
}

/* Información importante: por debajo de 900px pasa a carrusel que avanza de a 1 (3 visibles en tablet) */
@media (max-width: 900px) {
  /* Encabezado en tablet/celular: logo + ☰ arriba, buscador abajo.
     Las redes quedan dentro del menú ("Redes"). */
  .site-header__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      'logo nav'
      'search search';
    gap: 12px;
    min-height: 0;
    padding: 12px 16px;
  }
  .site-header.is-compact .site-header__inner {
    min-height: 0;
    padding-block: 8px;
  }
  .main-nav,
  .site-header__social {
    display: none;
  }
  .burger {
    display: flex;
  }
  .header-search input {
    height: 48px;
  }

  /* El reloj y la fecha solo se muestran en PC */
  .clock {
    display: none;
  }

  /* Números útiles: grilla de 3 columnas (3, 3 y el último centrado) */
  .numbers-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px 12px;
  }
  .number-card {
    max-width: none;
  }
  .number-card:last-child:nth-child(3n + 1) {
    grid-column: 2;
  }
  .number-card.is-action:hover img {
    transform: none;
    filter: none;
  }

  .info-grid {
    justify-content: flex-start;
    gap: 12px;
    padding-block: 10px 6px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .info-card {
    flex: 0 0 calc((100% - 24px) / 3);
    max-width: none;
  }
  .info-card:hover,
  .info-card:focus-visible {
    transform: none;
    filter: none;
  }
}

@media (max-width: 860px) {
  /* Banner chico: solo la imagen y los puntos */
  .carousel-caption,
  .carousel-arrow {
    display: none;
  }
}

@media (max-width: 600px) {
  .hero {
    border-radius: 0;
  }
  .site-footer {
    margin-inline: 4px;
    margin-bottom: 4px;
  }
  .clock {
    left: 12px;
    bottom: 12px;
    padding: 8px 14px;
  }
  .clock-time {
    font-size: 1.5rem;
  }
  /* Información importante: en celular, 2 visibles */
  .info-card {
    flex-basis: calc((100% - 12px) / 2);
  }
  .site-header__logo img,
  .site-header.is-compact .site-header__logo img {
    height: 44px;
  }
  .section {
    padding-block: 36px 40px;
  }
  .section--banner {
    padding-block: 24px;
  }

  /* Banner en celular: dentro de los márgenes, con esquinas redondeadas y más alto (4,5:1).
     Si no hay imagen para celular, la principal se recorta por los costados. */
  .section--banner .carousel,
  .section--banner .banner-placeholder {
    aspect-ratio: 9 / 2;
    border-radius: 14px;
  }
  .carousel-dots {
    bottom: 6px;
    padding: 4px 7px;
  }
  .carousel-dot {
    width: 7px;
    height: 7px;
  }
  .carousel-dot.is-active {
    width: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .carousel-slide,
  .carousel-slide img,
  .carousel-caption,
  .hero-fallback {
    transition: none;
    animation: none;
  }
}

.carousel-slide picture {
  display: block;
  width: 100%;
  height: 100%;
}

.footer-contact .socials {
  flex-wrap: wrap;
  margin-bottom: 14px;
}

/* ===== Páginas de trámites (/registro-civil, /dni-pasaporte, …) ===== */
.tramite {
  max-width: 940px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 0.88rem;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--brand);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.tramite__intro {
  max-width: 680px;
  margin: -14px auto 30px;
  text-align: center;
  color: var(--muted);
}

.accordion {
  display: grid;
  gap: 12px;
}

.acc {
  border: 1px solid #e3e8f3;
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.acc[open] {
  border-color: #c9d5ef;
  box-shadow: 0 16px 34px -24px rgba(0, 51, 153, 0.45);
}

.acc summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.acc summary::-webkit-details-marker {
  display: none;
}

.acc summary:hover .acc__title,
.acc summary:focus-visible .acc__title {
  color: var(--brand);
}

.acc summary:focus-visible {
  outline: 3px solid rgba(236, 102, 8, 0.6);
  outline-offset: -3px;
  border-radius: 18px;
}

.acc__num {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #eef2fb;
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.acc[open] .acc__num {
  background: var(--brand);
  color: #fff;
}

.acc__title {
  flex: 1;
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 1.12rem;
  font-weight: 400;
  color: var(--blue-deep);
  transition: color 0.2s;
}

.acc__chev {
  flex: none;
  color: var(--muted);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.acc[open] .acc__chev {
  transform: rotate(180deg);
  color: var(--brand);
}

/* Apertura animada donde el navegador lo soporta */
.acc::details-content {
  block-size: 0;
  overflow-y: clip;
  transition:
    block-size 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    content-visibility 0.35s allow-discrete;
}

.acc[open]::details-content {
  block-size: auto;
}

@supports (interpolate-size: allow-keywords) {
  :root {
    interpolate-size: allow-keywords;
  }
}

.acc__body {
  padding: 0 22px 22px 70px;
  color: var(--text);
}

.acc__rich {
  font-size: 1rem;
}

.acc__rich p {
  margin: 0 0 10px;
}

.acc__rich ul,
.acc__rich ol {
  margin: 0 0 12px;
  padding-left: 20px;
}

.acc__rich li {
  margin-bottom: 6px;
}

.acc__rich li::marker {
  color: #ec6608;
}

.acc__rich h4 {
  margin: 16px 0 8px;
  font-size: 0.95rem;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Lista de contactos (teléfonos, WhatsApp, e-mail) */
.contacts {
  list-style: none;
  margin: 0 0 6px;
  padding: 0;
  display: grid;
  gap: 2px;
}

.contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f2f7;
}

.contact:last-child {
  border-bottom: 0;
}

.contact__who {
  display: flex;
  flex-direction: column;
  min-width: 200px;
  flex: 1;
}

.contact__who strong {
  font-weight: 600;
  color: var(--blue-deep);
}

.contact__who span {
  font-size: 0.86rem;
  color: var(--muted);
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 0.15s,
    background 0.15s;
}

a.chip:hover {
  transform: translateY(-1px);
}

.chip--phone {
  background: #eef2fb;
  color: var(--brand);
}

.chip--wa {
  background: #e3f7ea;
  color: #128c4a;
}

.chip--mail {
  background: #fff3ea;
  color: #b34d04;
  white-space: normal;
  word-break: break-all;
}

.chip--muted {
  background: #f3f4f7;
  color: var(--muted);
}

/* Botones de descarga */
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--brand);
  color: var(--brand);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition:
    background 0.2s,
    color 0.2s;
}

.btn-download:hover {
  background: var(--brand);
  color: #fff;
}

.btn-download--big {
  padding: 14px 26px;
  font-size: 1rem;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 14px 28px -14px rgba(0, 51, 153, 0.7);
}

.btn-download--big:hover {
  background: var(--brand-dark);
}

.tramite__all {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

@media (max-width: 600px) {
  .acc summary {
    padding: 15px 16px;
    gap: 12px;
  }
  .acc__body {
    padding: 0 16px 18px;
  }
  .acc__title {
    font-size: 1.02rem;
  }
}

/* Desplegables cortos (ej. Boletín Oficial): una sola columna */
.main-nav__dropdown ul.is-single {
  grid-template-columns: minmax(190px, 1fr);
}

/* Botón "MÁS NÚMEROS" debajo de los íconos */
.numbers-more {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.numbers-more a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 28px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  box-shadow: 0 14px 28px -14px rgba(0, 51, 153, 0.75);
  transition:
    background 0.2s,
    transform 0.2s;
}

.numbers-more a:hover {
  background: var(--brand-dark);
  transform: translateY(-2px);
}

.numbers-more a svg {
  transition: transform 0.2s;
}

.numbers-more a:hover svg {
  transform: translateX(3px);
}

/* PC: las 7 tarjetas de Información importante más grandes.
   Menos separación y un leve escalado que compensa el margen transparente de las imágenes. */
@media (min-width: 901px) {
  #informacion.container-wide {
    width: min(2100px, 100% - 32px);
  }
  #informacion .info-grid {
    gap: 6px;
  }
  #informacion .info-card {
    max-width: 300px;
  }
  #informacion .info-card img {
    transform: scale(1.1);
  }
}

/* Subtítulo de grupo dentro de una página de acordeones (ej. "Veredas chicas") */
.acc-group {
  margin: 26px 0 4px;
  padding-left: 12px;
  border-left: 4px solid #ec6608;
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--brand);
}

.acc-group:first-child {
  margin-top: 0;
}

/* ===== Listado de podadores ===== */
.tramite--wide {
  max-width: 1080px;
}

.pruners__toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.pruners__search {
  flex: 1;
  height: 48px;
  padding: 0 18px;
  border: 1.5px solid #d9e0ef;
  border-radius: 999px;
  background: #f6f8fc;
  font: inherit;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    background 0.2s;
}

.pruners__search:focus {
  background: #fff;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(0, 51, 153, 0.12);
}

.pruners__count {
  flex: none;
  font-size: 0.88rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.pruners__table-wrap {
  border: 1px solid #e3e8f3;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}

.pruners__table {
  width: 100%;
  border-collapse: collapse;
}

.pruners__table thead th {
  position: sticky;
  top: 0;
  padding: 14px 18px;
  background: var(--brand);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
}

.pruners__table td {
  padding: 10px 18px;
  border-top: 1px solid #eef1f7;
  vertical-align: middle;
}

.pruners__table tbody tr:nth-child(even) {
  background: #f8faff;
}

.pruners__table tbody tr:hover {
  background: #eef2fb;
}

.pruners__table td.num {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.pruner-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chip--icon {
  padding: 6px 8px;
}

.muted {
  color: var(--muted);
}

.pruners .empty {
  padding: 20px;
}

/* Celular: cada podador como tarjeta */
@media (max-width: 700px) {
  .pruners__toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  .pruners__count {
    text-align: right;
  }
  .pruners__table-wrap {
    border: 0;
    background: none;
    overflow: visible;
  }
  .pruners__table thead {
    display: none;
  }
  .pruners__table,
  .pruners__table tbody,
  .pruners__table tr,
  .pruners__table td {
    display: block;
    width: 100%;
  }
  .pruners__table tr {
    margin-bottom: 10px;
    padding: 12px 16px;
    border: 1px solid #e3e8f3;
    border-radius: 16px;
    background: #fff !important;
  }
  .pruners__table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 6px 0;
    border: 0;
  }
  .pruners__table td::before {
    content: attr(data-label);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
  }
}

@media (max-width: 700px) {
  .pruners__search {
    flex: none;
  }
}

/* ===== Footer: columnas + mapa ===== */
.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px 40px;
  padding-block: 28px;
}

.footer-main .footer-cols {
  padding-block: 0;
}

@media (min-width: 1000px) {
  .footer-main {
    grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr);
    align-items: start;
  }
}

.footer-col--map h4 {
  margin-bottom: 14px;
}

.footer-map {
  display: grid;
  gap: 8px;
}

.footer-map__canvas {
  height: 230px;
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.18);
  background: #dfe6f2;
  z-index: 0;
}

.footer-map__link {
  justify-self: end;
  font-size: 0.85rem;
  color: #c9d3ea !important;
  text-decoration: none;
}

.footer-map__link:hover {
  color: #fff !important;
  text-decoration: underline;
}

/* Pin con el escudo de la Municipalidad */
.map-pin {
  background: none;
  border: 0;
}

.map-pin__badge {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--brand);
  box-shadow: 0 8px 18px -6px rgba(0, 0, 0, 0.55);
}

.map-pin__badge img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.map-pin__tip {
  position: absolute;
  left: 50%;
  top: 46px;
  width: 0;
  height: 0;
  margin-left: -9px;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 16px solid var(--brand);
}

.footer-map .leaflet-popup-content {
  margin: 12px 14px;
  font-family: inherit;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--text);
}

.footer-map .leaflet-popup-content a {
  color: var(--brand) !important;
  font-weight: 600;
}

.footer-map .leaflet-container a.leaflet-popup-close-button {
  color: var(--muted) !important;
}

.footer-map .leaflet-control-attribution a {
  color: var(--brand) !important;
}

/* 1000–1199 px: aún más compacto para que logo, menú, lupa y redes entren en una fila */
@media (min-width: 1000px) and (max-width: 1199px) {
  .site-header__inner {
    column-gap: 10px;
    padding-inline: 16px;
  }
  .site-header__logo img,
  .site-header.is-compact .site-header__logo img {
    height: 40px;
  }
  .site-header__menu .main-nav ul {
    gap: 0;
  }
  .main-nav__link {
    padding: 8px 6px;
    font-size: 0.9rem;
  }
  .main-nav__link::after {
    left: 6px;
    right: 6px;
  }
  .site-header__social {
    gap: 4px;
  }
  .site-header__social a {
    width: 32px;
    height: 32px;
  }
  .header-search,
  .header-search input {
    width: 40px;
    height: 40px;
  }
  .header-search__icon {
    left: 10px;
  }
}

@media (max-width: 999px) {
  .footer-col--map {
    margin-top: 22px;
  }
}

.accordion-gallery {
  --ag-accent: #ffffff;
  --ag-overlay: #060010;
  --ag-text: #ffffff;
  --ag-gap: 10px;
  --ag-radius: 16px;
  --ag-media-size: 320px;

  display: flex;
  flex-direction: row;
  gap: var(--ag-gap);
  width: 100%;
  max-width: 100%;
  perspective: 1400px;
  perspective-origin: 50% 50%;
}

.accordion-gallery--vertical {
  flex-direction: column;
}

.ag-panel {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: var(--ag-radius);
  cursor: pointer;
  display: block;
  text-decoration: none;
  outline: none;
  transform-style: preserve-3d;
  transform-origin: center center;
  background: #0a0713;
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.8);
  will-change: flex-grow, transform;
  -webkit-tap-highlight-color: transparent;
}

.ag-panel:focus-visible {
  box-shadow:
    0 0 0 2px var(--ag-accent),
    0 10px 30px -18px rgba(0, 0, 0, 0.8);
}

.ag-panel__frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
}

.ag-panel__media {
  --ag-gray: 1;
  --ag-dim: 0.35;
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--ag-media-size);
  height: 100%;
  filter: grayscale(var(--ag-gray));
  will-change: transform, filter;
}

.accordion-gallery--vertical .ag-panel__media {
  width: 100%;
  height: var(--ag-media-size);
}

.ag-panel__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.ag-panel__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 45%, color-mix(in srgb, var(--ag-overlay) 78%, transparent) 100%),
    color-mix(in srgb, var(--ag-overlay) calc(var(--ag-dim, 0.35) * 100%), transparent);
}

.ag-panel__label {
  position: absolute;
  left: 20px;
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: none;
  z-index: 2;
}

.ag-panel__bar {
  flex: 0 0 auto;
  width: 3px;
  height: 26px;
  border-radius: 3px;
  background: var(--ag-accent);
  opacity: 0;
  box-shadow: 0 0 12px color-mix(in srgb, var(--ag-accent) 60%, transparent);
}

.ag-panel__text {
  color: var(--ag-text);
  font-family: inherit;
  font-weight: 600;
  font-size: clamp(1rem, 1.4vw, 1.4rem);
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}

@media (max-width: 520px) {
  .accordion-gallery {
    flex-direction: column;
    perspective: none;
    height: auto !important;
  }
  .ag-panel {
    min-height: 84px;
    transform: none !important;
  }
  .accordion-gallery .ag-panel__media {
    width: 100%;
    height: var(--ag-media-size);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ag-panel,
  .ag-panel__media {
    will-change: auto;
  }
}

/* Todo elemento con [hidden] queda oculto aunque su clase defina display. */
[hidden] {
  display: none !important;
}
