/* ================================
   Variables generales
================================ */

:root {
  --green: #0f6b4f;
  --green-dark: #094633;
  --gold: #d9a441;
  --cream: #f8f4ea;
  --text: #1f2933;
  --muted: #64748b;
  --white: #ffffff;
  --shadow: 0 14px 35px rgba(0, 0, 0, 0.12);
}

/* ================================
   Reset y base
================================ */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--white);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

img {
  display: block;
  width: 100%;
}

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

.container {
  margin: auto;
  width: min(1120px, 92%);
}

/* ================================
   Header y navegación
================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.06);
}

.nav {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  height: 72px;
  /* Permite separar marca e idiomas sin sacar la navegacion del centro visual. */
  width: min(1400px, calc(100% - 2rem));
}

/* Identidad institucional ubicada a la izquierda del encabezado. */
.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #6f1620;
  text-decoration: none;
}

.logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.brand-text {
  display: grid;
  gap: 0.15rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #6f1620;
  text-transform: uppercase;
  line-height: 0.94;
}

.brand-text span:last-child {
  font-size: 0.7em;
  letter-spacing: 0.18em;
}


.logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  transition: 0.3s ease;
}

.n2-logo {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
}
.n2-logo-img {
  display: block;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  object-fit: contain;
}
.logo:hover {
  transform: scale(1.05);
}

.nav-links {
  position: absolute;
  left: 50%;
  display: flex;
  gap: 1rem;
  margin-left: 0;
  list-style: none;
  font-size: 0.94rem;
  font-weight: 700;
  transform: translateX(-50%);
}

.nav-links > li > a {
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--green);
}

/* Submenú de Gobierno: hover para mouse y focus-within para teclado. */
.nav-dropdown {
  position: relative;
}

.dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.dropdown-trigger span {
  color: var(--gold);
  font-size: 0.72rem;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.8rem);
  left: 50%;
  z-index: 20;
  display: grid;
  gap: 0.2rem;
  min-width: 245px;
  padding: 0.55rem;
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: 0.9rem;
  box-shadow: var(--shadow);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -12px;
  right: 0;
  left: 0;
  height: 14px;
}

.dropdown-menu a {
  display: block;
  padding: 0.58rem 0.7rem;
  color: var(--green-dark);
  border-radius: 0.55rem;
  white-space: nowrap;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus {
  background: #eef7f3;
  color: var(--green-dark);
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.active-link {
  color: var(--green);
}

.menu-btn {
  display: none;
  padding: 0.5rem 0.75rem;
  border: 0;
  background: var(--green);
  color: var(--white);
  border-radius: 0.6rem;
  font-size: 1.2rem;
}

/* Selector ES/EN/PT. Se genera desde i18n.js para estar presente en cada página. */
.language-switch {
  display: flex;
  grid-column: 3;
  gap: 0.25rem;
  margin-left: 0;
  padding: 0.25rem;
  border: 1px solid #e2e8f0;
  background: var(--white);
  border-radius: 999px;
}

.language-switch button {
  border: 0;
  padding: 0.38rem 0.52rem;
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  cursor: pointer;
}

.language-switch button:hover,
.language-switch button.active {
  background: var(--green);
  color: var(--white);
}

/* ================================
   Hero
================================ */

.hero {
  display: grid;
  place-items: center;
  min-height: 76vh;
  background:
    linear-gradient(90deg, rgba(9, 70, 51, 0.9), rgba(15, 107, 79, 0.55)),
    url("img/fondo1.jpeg") center / cover;
}

.hero-content {
  max-width: 780px;
  margin-left: 6%;
  color: var(--white);
}

.hero h1,
.page-hero h1 {
  margin: 0.5rem 0;
  font-size: clamp(2.5rem, 7vw, 5.2rem);
  line-height: 1.05;
}

.hero p,
.page-hero p {
  font-size: 1.2rem;
}

.hero-actions {
  margin-top: 1.4rem;
}

.page-hero {
  padding: 90px 0;
  background:
    linear-gradient(90deg, rgba(9, 70, 51, 0.93), rgba(15, 107, 79, 0.7)),
    url("img/fondo1.jpeg") center / cover;
  color: var(--white);
}

.small-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
}

/* ================================
   Componentes generales
================================ */

.section {
  padding: 86px 0;
}

.alt {
  background: var(--cream);
}

.eyebrow {
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-title {
  max-width: 790px;
  margin-bottom: 2rem;
}

.centered {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-title h2,
.feature-text h2 {
  margin: 0.35rem 0;
  color: var(--green-dark);
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.1;
}

.btn {
  display: inline-block;
  margin-right: 0.8rem;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  font-weight: 800;
}

.primary {
  background: var(--gold);
  color: #2b2106;
}

.secondary {
  border: 2px solid var(--white);
  color: var(--white);
}

/* ================================
   Cards
================================ */

.cards {
  display: grid;
  gap: 1.4rem;
}

.two {
  grid-template-columns: repeat(2, 1fr);
}

.three {
  grid-template-columns: repeat(3, 1fr);
}

.profile-card,
.event-card,
.news-card,
.ad-card,
.place-card {
  overflow: hidden;
  background: var(--white);
  border-radius: 1.4rem;
  box-shadow: var(--shadow);
}

.profile-card img {
  height: 330px;
  object-fit: cover;
}

.card-content,
.event-card,
.news-card,
.ad-card,
.place-info {
  padding: 1.4rem;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1rem;
}

.socials a,
.filter {
  padding: 0.5rem 0.8rem;
  background: #eef7f3;
  color: var(--green-dark);
  border-radius: 999px;
  font-weight: 700;
}

/* ================================
   Historia y lugares
================================ */

.feature-grid {
  display: grid;
  align-items: center;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.feature-text p {
  margin-bottom: 1rem;
}

.feature-image img {
  min-height: 430px;
  object-fit: cover;
  border-radius: 1.6rem;
  box-shadow: var(--shadow);
}

.places-list {
  display: grid;
  gap: 2rem;
}

.place-detail-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  align-items: stretch;
  overflow: hidden;
  background: var(--white);
  border-radius: 1.5rem;
  box-shadow: var(--shadow);
}

.place-detail-card.reverse .place-gallery {
  order: 2;
}

.place-gallery {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  grid-template-rows: repeat(2, 1fr);
  gap: 0.5rem;
  padding: 0.7rem;
}

.place-gallery img {
  height: 100%;
  min-height: 190px;
  object-fit: cover;
  border-radius: 1rem;
}

.place-gallery img:first-child {
  grid-row: span 2;
}

.place-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.8rem;
}

.place-body span {
  color: var(--gold);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.place-body h3 {
  margin: 0.4rem 0 0.8rem;
  color: var(--green-dark);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.1;
}

.place-body p {
  color: var(--text);
  margin-bottom: 1.2rem;
}

.place-location h4 {
  margin-bottom: 0.6rem;
  color: var(--green-dark);
}

.place-location iframe {
  width: 100%;
  min-height: 230px;
  border: 0;
  border-radius: 1rem;
  box-shadow: var(--shadow);
}
/* ================================
   Noticias
================================ */

.news-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin-bottom: 2rem;
}

.filter {
  border: 0;
  cursor: pointer;
  transition: 0.25s ease;
}

.filter:hover,
.filter.active {
  background: var(--green);
  color: var(--white);
}

.news-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}

.news-card {
  overflow: hidden;
  background: var(--white);
  border-radius: 1.4rem;
  box-shadow: var(--shadow);
  transition: 0.3s ease;
}

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

/* El filtro utiliza clases; evita estilos inline incompatibles con la CSP. */
.news-card.is-filtered-out {
  display: none;
}

.featured-news {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.news-image {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.featured-news .news-image {
  height: 100%;
  min-height: 420px;
}

.news-content {
  display: flex;
  flex-direction: column;
  padding: 1.4rem;
}

.featured-news .news-content {
  justify-content: center;
  padding: 2rem;
}

.news-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.news-category {
  padding: 0.35rem 0.7rem;
  background: #eef7f3;
  color: var(--green-dark);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.news-card small {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.news-card h3 {
  margin-bottom: 0.8rem;
  color: var(--green-dark);
  font-size: clamp(1.3rem, 3vw, 2rem);
  line-height: 1.15;
}

.news-card p {
  color: var(--text);
  margin-bottom: 1.2rem;
}

.news-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

.news-footer span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.news-footer a {
  color: var(--gold);
  font-weight: 900;
}

/* ================================
   Multimedia y contacto
================================ */

.card-video {
  margin-top: 1rem;
}

.card-video iframe,
iframe {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 1rem;
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow);
}

.contact-panel {
  max-width: 900px;
}

.contact-list {
  list-style: none;
  padding: 1.4rem;
  background: var(--white);
  border-radius: 1rem;
  box-shadow: var(--shadow);
}

.contact-list li {
  margin: 0.7rem 0;
}

/* ================================
   Eventos detallados y calendario
================================ */

.event-detail-list {
  display: grid;
  gap: 2rem;
}

.event-detail-card {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  overflow: hidden;
  background: var(--white);
  border-radius: 1.5rem;
  box-shadow: var(--shadow);
  scroll-margin-top: 96px;
  transition: 0.3s ease;
}

.event-detail-card.reverse .event-media {
  order: 2;
}

.event-detail-card.event-focus {
  outline: 4px solid rgba(217, 164, 65, 0.55);
  transform: translateY(-4px);
}

.event-media {
  padding: 1rem;
  background: #f8fafc;
}

.event-gallery {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 0.7rem;
  margin-bottom: 0.7rem;
}

.event-gallery img {
  height: 170px;
  object-fit: cover;
  border-radius: 1rem;
}

.event-gallery img:first-child {
  grid-row: span 2;
  height: 100%;
}

.event-video iframe {
  display: block;
  width: 100%;
  min-height: 260px;
  border: 0;
  border-radius: 1rem;
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow);
}

.event-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
}

.event-info h3 {
  margin: 0.35rem 0 1rem;
  color: var(--green-dark);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.1;
}

.event-info p {
  margin-bottom: 1rem;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1rem;
  list-style: none;
}

.event-meta li {
  padding: 0.55rem 0.8rem;
  background: #eef7f3;
  color: var(--green-dark);
  border-radius: 999px;
  font-size: 0.92rem;
}

.interview-box {
  margin: 0.5rem 0 1.2rem;
  padding: 1rem;
  border-left: 5px solid var(--gold);
  background: var(--cream);
  border-radius: 0.8rem;
}

.interview-box h4 {
  margin-bottom: 0.35rem;
  color: var(--green-dark);
}

.map-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 0.8rem 1rem;
  background: var(--green);
  color: var(--white);
  border-radius: 999px;
  font-weight: 800;
}

.map-link:hover {
  background: var(--green-dark);
}

.event-calendar {
  max-width: 900px;
  margin: auto;
  padding: 1.3rem;
  background: var(--white);
  border-radius: 1.5rem;
  box-shadow: var(--shadow);
}

.calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.calendar-toolbar h3 {
  color: var(--green-dark);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  text-transform: capitalize;
}

.calendar-nav {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  background: var(--green);
  color: var(--white);
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.calendar-nav:hover {
  background: var(--green-dark);
}

.calendar-weekdays,
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
}

.calendar-weekdays {
  margin-bottom: 0.5rem;
}

.calendar-weekdays span {
  color: var(--green-dark);
  text-align: center;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.calendar-empty,
.calendar-day {
  min-height: 88px;
  border-radius: 0.9rem;
}

.calendar-day {
  position: relative;
  padding: 0.6rem;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: var(--text);
  text-align: left;
  cursor: default;
}

.calendar-day.today {
  box-shadow: inset 0 0 0 2px rgba(15, 107, 79, 0.35);
}

.calendar-day.important {
  border-color: #dc2626;
  background: #fff1f2;
  color: #991b1b;
  cursor: pointer;
}

.calendar-day.important:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(220, 38, 38, 0.18);
}

.calendar-day.selected::after {
  content: "↓";
  position: absolute;
  top: 0.35rem;
  right: 0.55rem;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  background: var(--gold);
  color: #2b2106;
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 900;
}

.day-number {
  display: block;
  font-weight: 900;
}

.day-event-name {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.2;
}

.event-dot,
.legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: #dc2626;
  border-radius: 50%;
}

.calendar-legend {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.calendar-selected {
  margin-top: 1rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 1rem;
  color: var(--muted);
  font-weight: 700;
}

.calendar-selected.active {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text);
}

.calendar-arrow {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  background: var(--gold);
  color: #2b2106;
  border-radius: 50%;
  font-size: 1.6rem;
  font-weight: 900;
}
/* ================================
   Deportes
================================ */

.sports-list {
  display: grid;
  gap: 1.5rem;
}

.sport-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  overflow: hidden;
  background: var(--white);
  border-radius: 1.5rem;
  box-shadow: var(--shadow);
  transition: 0.3s ease;
}

.sport-card:hover {
  transform: translateY(-5px);
}

.featured-sport {
  grid-template-columns: 1fr 1fr;
}

.sport-image img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
}

.sport-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.6rem;
}

.sport-content span {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sport-content h3 {
  margin: 0.35rem 0 0.8rem;
  color: var(--green-dark);
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  line-height: 1.1;
}

.sport-content p {
  margin-bottom: 1rem;
}
/* ================================
   Servicios
================================ */

.emergency-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 3rem;
  padding: 1.6rem;
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: var(--white);
  border-radius: 1.5rem;
  box-shadow: var(--shadow);
}

.emergency-strip span {
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.emergency-strip h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.1;
}

.emergency-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.emergency-numbers a {
  padding: 0.75rem 1rem;
  background: var(--gold);
  color: #2b2106;
  border-radius: 999px;
  font-weight: 900;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.service-card {
  display: flex;
  gap: 1rem;
  padding: 1.4rem;
  background: var(--white);
  border-radius: 1.4rem;
  box-shadow: var(--shadow);
  transition: 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
}

.featured-service {
  grid-column: span 3;
  align-items: center;
  padding: 1.8rem;
  background: var(--cream);
}

.service-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  background: #eef7f3;
  border-radius: 1rem;
  font-size: 1.8rem;
}

.featured-service .service-icon {
  width: 70px;
  height: 70px;
  font-size: 2.2rem;
}

.service-content span {
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.service-content h3 {
  margin: 0.25rem 0 0.55rem;
  color: var(--green-dark);
  font-size: clamp(1.25rem, 3vw, 2rem);
  line-height: 1.1;
}

.service-content p {
  margin-bottom: 0.9rem;
  color: var(--text);
}

.service-content ul {
  margin-bottom: 1rem;
  list-style: none;
}

.service-content li {
  margin-bottom: 0.35rem;
  color: var(--muted);
}

.service-content a {
  font-weight: 800;
}

.service-link {
  display: inline-flex;
  width: fit-content;
  padding: 0.7rem 0.95rem;
  background: var(--green);
  color: var(--white);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 900;
}

.service-link:hover {
  background: var(--green-dark);
}
/* ================================
   Mapa de contacto
================================ */

.contact-map-section {
  padding-bottom: 1rem;
  background: linear-gradient(180deg, var(--cream), var(--white));
}

.contact-map-card {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 1.5rem;
  align-items: stretch;
  overflow: hidden;
  background: var(--white);
  border-radius: 1.6rem;
  box-shadow: var(--shadow);
}

.map-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
}

.map-info h2 {
  margin: 0.4rem 0 0.8rem;
  color: var(--green-dark);
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.05;
}

.map-info p {
  margin-bottom: 1.3rem;
  color: var(--text);
}

.map-frame {
  min-height: 470px;
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 470px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

/* ================================
   Chatbot y redes flotantes
================================ */

.floating-tools {
  position: fixed;
  right: 1.3rem;
  bottom: 1.3rem;
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  gap: 0.8rem;
}

.social-floating {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.social-btn {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  color: var(--white);
  border-radius: 50%;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.22);
  transition: 0.25s ease;
}

.social-btn svg {
  width: 25px;
  height: 25px;
  fill: currentColor;
}

.social-btn:hover {
  transform: translateY(-4px) scale(1.08);
}

.instagram {
  background: radial-gradient(circle at 30% 110%, #ffdc80 0%, #fcaf45 25%, #f77737 45%, #e1306c 65%, #833ab4 100%);
}

.facebook {
  background: #1877f2;
}

.facebook svg {
  width: 28px;
  height: 28px;
}

.chatbot-widget {
  position: relative;
}

.chatbot-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 0;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 14px 35px rgba(15, 107, 79, 0.35);
  transition: 0.25s ease;
}

.chatbot-button:hover {
  transform: translateY(-5px) scale(1.04);
}

.chatbot-button::after {
  content: "";
  position: absolute;
  inset: -6px;
  border: 2px solid rgba(217, 164, 65, 0.55);
  border-radius: 50%;
  animation: chatbotPulse 1.8s infinite;
}

@keyframes chatbotPulse {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }

  100% {
    transform: scale(1.2);
    opacity: 0;
  }
}

.robot-head {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 38px;
  background: var(--white);
  border-radius: 14px;
}

.robot-antena {
  position: absolute;
  top: -13px;
  width: 4px;
  height: 13px;
  background: var(--white);
  border-radius: 999px;
}

.robot-antena::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  width: 10px;
  height: 10px;
  background: var(--gold);
  border-radius: 50%;
  transform: translateX(-50%);
}

.robot-eyes {
  display: flex;
  gap: 0.5rem;
}

.robot-eyes span {
  width: 8px;
  height: 8px;
  background: var(--green-dark);
  border-radius: 50%;
}

.robot-mouth {
  position: absolute;
  bottom: 8px;
  width: 18px;
  height: 4px;
  background: var(--gold);
  border-radius: 999px;
}

.chatbot-panel {
  position: absolute;
  right: 0;
  bottom: 88px;
  width: min(360px, calc(100vw - 2rem));
  overflow: hidden;
  background: var(--white);
  border-radius: 1.4rem;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.25);
  transform: translateY(20px) scale(0.96);
  opacity: 0;
  visibility: hidden;
  transition: 0.25s ease;
}

.chatbot-panel.active {
  transform: translateY(0) scale(1);
  opacity: 1;
  visibility: visible;
}

.chatbot-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem;
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: var(--white);
}

.chatbot-header h3 {
  margin: 0;
  font-size: 1rem;
}

.chatbot-header p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.82rem;
}

.chatbot-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: var(--white);
  border-radius: 50%;
}

.mini-robot {
  display: flex;
  gap: 0.25rem;
}

.mini-robot span {
  width: 7px;
  height: 7px;
  background: var(--green-dark);
  border-radius: 50%;
}

.chatbot-close {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--white);
  font-size: 1.8rem;
  cursor: pointer;
}

.chatbot-messages {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  max-height: 260px;
  padding: 1rem;
  overflow-y: auto;
  background: #f8fafc;
}

.bot-message,
.user-message {
  max-width: 88%;
  padding: 0.75rem 0.9rem;
  border-radius: 1rem;
  font-size: 0.92rem;
  line-height: 1.4;
}

.bot-message {
  align-self: flex-start;
  background: var(--white);
  color: var(--text);
  border-bottom-left-radius: 0.2rem;
}

.assistant-action {
  display: block;
  width: fit-content;
  margin-top: 0.65rem;
  padding: 0.45rem 0.75rem;
  background: #eef7f3;
  color: var(--green-dark);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
}

.user-message {
  align-self: flex-end;
  background: var(--green);
  color: var(--white);
  border-bottom-right-radius: 0.2rem;
}

.chatbot-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.8rem 1rem;
  background: var(--white);
  border-top: 1px solid #e2e8f0;
}

.chatbot-options button {
  border: 0;
  padding: 0.45rem 0.7rem;
  background: #eef7f3;
  color: var(--green-dark);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
}

.chatbot-options button:hover {
  background: var(--green);
  color: var(--white);
}

.chatbot-form {
  display: flex;
  gap: 0.5rem;
  padding: 1rem;
  border-top: 1px solid #e2e8f0;
}

.chatbot-form input {
  width: 100%;
  border: 1px solid #dbe3ea;
  padding: 0.75rem;
  border-radius: 999px;
  outline: none;
}

.chatbot-form input:focus {
  border-color: var(--green);
}

.chatbot-form button {
  border: 0;
  padding: 0.75rem 0.9rem;
  background: var(--green);
  color: var(--white);
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
}

.chatbot-form button:hover {
  background: var(--green-dark);
}
/* ================================
   Formulario ciudadano
================================ */

.citizen-form-section {
  background: var(--white);
}

.citizen-form-card {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 2rem;
  align-items: center;
  padding: 2rem;
  background: var(--cream);
  border-radius: 1.6rem;
  box-shadow: var(--shadow);
}

.citizen-form-info h2 {
  margin: 0.4rem 0 0.8rem;
  color: var(--green-dark);
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.05;
}

.citizen-form-info p {
  color: var(--text);
}

.citizen-form {
  padding: 1.5rem;
  background: var(--white);
  border-radius: 1.3rem;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--green-dark);
  font-weight: 900;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid #dbe3ea;
  background: #f8fafc;
  color: var(--text);
  border-radius: 0.9rem;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  transition: 0.25s ease;
}

.form-group textarea {
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(15, 107, 79, 0.12);
}

.form-submit {
  width: fit-content;
  border: 0;
  padding: 0.85rem 1.2rem;
  background: var(--green);
  color: var(--white);
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
  transition: 0.25s ease;
}

.form-submit:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
}

.form-message {
  display: none;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  background: #eef7f3;
  color: var(--green-dark);
  border-left: 5px solid var(--green);
  border-radius: 0.8rem;
  font-weight: 800;
}

.form-message.show {
  display: block;
}

/* ================================
   Portal ciudadano y turismo
================================ */

.portal-shortcuts {
  position: relative;
  z-index: 2;
  margin-top: -42px;
}

.shortcut-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.8rem;
}

.shortcut-card {
  display: flex;
  flex-direction: column;
  min-height: 138px;
  padding: 1rem;
  background: var(--white);
  border: 1px solid rgba(15, 107, 79, 0.12);
  border-radius: 1.1rem;
  box-shadow: var(--shadow);
  transition: 0.25s ease;
}

.shortcut-card:hover {
  border-color: var(--gold);
  transform: translateY(-5px);
}

.shortcut-card span {
  margin-bottom: 0.35rem;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shortcut-card strong {
  color: var(--green-dark);
  font-size: 1.08rem;
}

.shortcut-card small {
  margin-top: auto;
  color: var(--muted);
  line-height: 1.3;
}

.shortcut-card.urgent {
  background: var(--green-dark);
}

.shortcut-card.urgent strong,
.shortcut-card.urgent small {
  color: var(--white);
}

.notice-strip {
  padding: 62px 0 48px;
}

.notice-content {
  display: grid;
  grid-template-columns: 1fr 1.1fr auto;
  gap: 1.7rem;
  align-items: center;
  padding: 1.4rem 1.6rem;
  background: #fff8e8;
  border: 1px solid #f4db9b;
  border-radius: 1.4rem;
}

.notice-content h2 {
  color: var(--green-dark);
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  line-height: 1.15;
}

.notice-content > p {
  color: #4b5563;
}

.notice-btn {
  margin: 0;
  background: var(--green);
  color: var(--white);
  white-space: nowrap;
}

.heritage-section {
  background:
    linear-gradient(110deg, #07372c 0%, #095340 50%, rgba(9, 70, 51, 0.87) 100%),
    url("img/fondo1.jpeg") center / cover;
  color: var(--white);
}

.heritage-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 3rem;
  align-items: center;
}

.heritage-intro h2,
.local-economy h2 {
  margin: 0.4rem 0 1rem;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.08;
}

.heritage-intro > p:not(.eyebrow) {
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
}

.heritage-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.text-link {
  color: var(--gold);
  font-weight: 900;
}

.heritage-route {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

.heritage-route article {
  min-height: 166px;
  padding: 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 1.2rem;
  backdrop-filter: blur(5px);
}

.heritage-route span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 0.7rem;
  background: var(--gold);
  color: #2b2106;
  border-radius: 50%;
  font-weight: 900;
}

.heritage-route h3 {
  margin-bottom: 0.3rem;
}

.heritage-route p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
}

.qr-concept {
  display: flex;
  gap: 1rem;
  margin-top: 2.3rem;
  padding: 1.15rem 1.3rem;
  border-left: 4px solid var(--gold);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0.8rem;
}

.agenda-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.agenda-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem;
  border: 1px solid #e4e7eb;
  background: var(--white);
  border-radius: 1.3rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.agenda-card time {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  flex: 0 0 76px;
  height: 86px;
  background: var(--cream);
  color: var(--green-dark);
  border-radius: 1rem;
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.agenda-card time strong {
  font-size: 1.8rem;
  line-height: 1;
}

.agenda-card h3 {
  color: var(--green-dark);
  font-size: 1.2rem;
}

.agenda-card a {
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 900;
}

.featured-agenda {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: var(--white);
}

.featured-agenda h3,
.featured-agenda a {
  color: var(--white);
}

.featured-agenda time {
  background: var(--gold);
}

.center-action {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.management-section {
  background: var(--cream);
}

.management-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.management-card {
  padding: 1.35rem;
  background: var(--white);
  border-radius: 1.3rem;
  box-shadow: var(--shadow);
}

.management-card h3 {
  margin: 0.8rem 0 0.4rem;
  color: var(--green-dark);
  font-size: 1.45rem;
}

.status-ready {
  display: inline-block;
  padding: 0.35rem 0.6rem;
  background: #eef7f3;
  color: var(--green-dark);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.progress-bar {
  overflow: hidden;
  height: 8px;
  margin-top: 1.2rem;
  background: #e2e8f0;
  border-radius: 99px;
}

.progress-bar span {
  display: block;
  height: 100%;
  background: repeating-linear-gradient(135deg, var(--green), var(--green) 8px, #70ae97 8px, #70ae97 16px);
}

/* Barras ilustrativas: no representan datos reales hasta vincular la base oficial. */
.progress-preview-wide {
  width: 72%;
}

.progress-preview-medium {
  width: 48%;
}

.management-card.participation {
  background: var(--green-dark);
  color: var(--white);
}

.management-card.participation h3 {
  color: var(--white);
}

.local-economy {
  background: var(--green-dark);
  color: var(--white);
}

.economy-layout {
  display: grid;
  grid-template-columns: 1fr 0.65fr;
  gap: 2rem;
  align-items: center;
}

.economy-layout > div:first-child p:not(.eyebrow) {
  max-width: 650px;
  margin-bottom: 1.3rem;
  color: rgba(255, 255, 255, 0.84);
}

.economy-invite {
  padding: 1.7rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 1.4rem;
}

.economy-invite strong {
  font-size: 1.5rem;
}

.economy-invite p {
  margin: 0.65rem 0 1rem;
}

.citizen-headline {
  max-width: 700px;
  margin: 0 auto 2rem;
  text-align: center;
}

.citizen-headline h2,
.tracking-layout h2,
.official-channels h2 {
  color: var(--green-dark);
  font-size: clamp(2rem, 5vw, 3rem);
}

.prototype-note {
  margin-top: 1.4rem;
  padding: 1rem;
  border-left: 5px solid var(--gold);
  background: #fff7e6;
  border-radius: 0.8rem;
}

.prototype-note p {
  margin-top: 0.35rem;
  font-size: 0.92rem;
}

.form-message strong,
.form-message span {
  display: block;
}

.tracking-section {
  background: var(--cream);
}

.tracking-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 2rem;
  align-items: center;
}

.tracking-card,
.official-channels {
  padding: 1.6rem;
  background: var(--white);
  border-radius: 1.4rem;
  box-shadow: var(--shadow);
}

.tracking-card label {
  display: block;
  margin-bottom: 0.6rem;
  color: var(--green-dark);
  font-weight: 900;
}

.tracking-input {
  display: flex;
  gap: 0.6rem;
}

.tracking-input input {
  flex: 1;
  padding: 0.85rem 1rem;
  border: 1px solid #dbe3ea;
  border-radius: 999px;
  font-size: 1rem;
}

.tracking-input button {
  border: 0;
  padding: 0.85rem 1.2rem;
  background: var(--green);
  color: var(--white);
  border-radius: 999px;
  font-weight: 900;
}

.tracking-result {
  display: none;
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 0.9rem;
}

.tracking-result.show {
  display: block;
}

.tracking-result.success {
  background: #eef7f3;
  color: var(--green-dark);
}

.tracking-result.error {
  background: #fff1f2;
  color: #991b1b;
}

.tracking-result p {
  margin: 0.25rem 0;
}

.official-channels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.channel-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.channel-links a {
  padding: 0.8rem 1rem;
  background: #eef7f3;
  color: var(--green-dark);
  border-radius: 999px;
  font-weight: 900;
}

/* ================================
   Gobierno y transparencia
================================ */

.government-hero {
  background:
    linear-gradient(90deg, rgba(9, 70, 51, 0.94), rgba(15, 107, 79, 0.72)),
    url("img/fondo1.jpeg") center / cover;
}

.government-jump {
  padding-top: 42px;
  padding-bottom: 32px;
  background: var(--cream);
}

.government-jump-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.government-jump-grid a {
  display: flex;
  flex-direction: column;
  padding: 1.2rem;
  background: var(--white);
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  transition: 0.22s ease;
}

.government-jump-grid a:hover {
  transform: translateY(-4px);
}

.government-jump-grid strong {
  color: var(--green-dark);
  font-size: 1.12rem;
}

.government-jump-grid span {
  color: var(--muted);
  font-size: 0.9rem;
}

.government-section {
  scroll-margin-top: 90px;
}

.government-alt {
  background: var(--cream);
}

.official-data-note {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.4rem;
  padding: 0.9rem 1rem;
  border: 1px solid #f4db9b;
  background: #fff7e6;
  color: #6b4c00;
  border-radius: 0.9rem;
}

.officials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.official-card {
  padding: 1.35rem;
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: 1.2rem;
}

.official-card span,
.document-tag,
.report-preview span,
.org-level span {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.official-card h3 {
  margin: 0.45rem 0;
  color: var(--green-dark);
  font-size: 1.45rem;
}

.official-card small {
  display: block;
  margin-top: 0.9rem;
  color: var(--muted);
  font-weight: 700;
}

.agreements-list {
  display: grid;
  gap: 0.8rem;
}

.agreement-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.35rem;
  background: var(--white);
  border-radius: 1.1rem;
}

.agreement-card h3 {
  margin: 0.38rem 0;
  color: var(--green-dark);
}

.annual-report {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.annual-report-intro h2 {
  margin: 0.4rem 0 1rem;
  color: var(--green-dark);
  font-size: clamp(2.2rem, 5vw, 3.3rem);
  line-height: 1.08;
}

.report-preview {
  padding: 1.7rem;
  background: var(--green-dark);
  color: var(--white);
  border-radius: 1.35rem;
  box-shadow: var(--shadow);
}

.report-preview strong {
  display: block;
  margin: 0.4rem 0 0.65rem;
  font-size: 1.7rem;
}

.report-preview p {
  color: rgba(255, 255, 255, 0.82);
}

.report-preview button {
  margin-top: 1.15rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border-radius: 999px;
  font-weight: 800;
}

.org-chart {
  margin-top: 2rem;
}

.org-level {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.org-level article {
  display: flex;
  flex-direction: column;
  min-width: 180px;
  padding: 1rem;
  background: var(--white);
  border: 1px solid #d9e4df;
  border-radius: 1rem;
  text-align: center;
}

.org-level strong {
  margin-top: 0.35rem;
  color: var(--green-dark);
}

.org-level.leadership article {
  min-width: 250px;
  border: 0;
  background: var(--green-dark);
}

.org-level.leadership strong {
  color: var(--white);
  font-size: 1.35rem;
}

.org-connector {
  width: 2px;
  height: 34px;
  margin: 0 auto;
  background: var(--gold);
}

.organization-warning {
  margin: 1.7rem auto 0;
  padding: 0.85rem 1rem;
  max-width: 670px;
  background: #fff7e6;
  color: #6b4c00;
  border-radius: 0.85rem;
  text-align: center;
  font-weight: 700;
}
/* ================================
   Directorio local de servicios
================================ */

.local-directory-section {
  background: linear-gradient(180deg, var(--white), var(--cream));
}

.local-directory-panel {
  padding: 1.5rem;
  background: var(--white);
  border-radius: 1.5rem;
  box-shadow: var(--shadow);
}

.directory-disclaimer,
.content-preview-note {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  margin-bottom: 1.25rem;
  padding: 0.85rem 1rem;
  background: #fff7e6;
  color: #6b4c00;
  border: 1px solid #f4db9b;
  border-radius: 0.9rem;
  font-size: 0.94rem;
}

.directory-disclaimer strong,
.content-preview-note strong {
  flex: 0 0 auto;
}

.local-search-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.local-search-box input {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid #dbe3ea;
  background: #f8fafc;
  color: var(--text);
  border-radius: 999px;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
}

.local-search-box input:focus {
  border-color: var(--green);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(15, 107, 79, 0.12);
}

.local-search-box button {
  border: 0;
  padding: 0.85rem 1rem;
  background: var(--green-dark);
  color: var(--white);
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
}

.local-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.local-filter {
  border: 0;
  padding: 0.65rem 0.9rem;
  background: #eef7f3;
  color: var(--green-dark);
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
  transition: 0.25s ease;
}

.local-filter:hover,
.local-filter.active {
  background: var(--green);
  color: var(--white);
}

.local-directory-message {
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  background: #f8fafc;
  color: var(--muted);
  border-radius: 1rem;
  font-weight: 700;
}
.local-directory-message:empty {
  display: none;
}
.local-services-results {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
}

.local-service-card {
  display: none;
  padding: 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
}

.local-service-card.show {
  display: block;
}

.local-service-card span {
  display: inline-block;
  margin-bottom: 0.35rem;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.local-service-card h3 {
  margin-bottom: 0.45rem;
  color: var(--green-dark);
  font-size: 1.15rem;
}

.local-service-card p {
  margin-bottom: 0.7rem;
  color: var(--text);
  font-size: 0.95rem;
}

.local-service-card ul {
  list-style: none;
}

.local-service-card li {
  margin-bottom: 0.25rem;
  color: var(--muted);
  font-size: 0.9rem;
}
/* ================================
   Footer
================================ */

.site-footer {
  background: var(--green-dark);
  color: var(--white);
}

/* Footer global: concentra contacto, legales y credito N2 para todas las paginas. */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 2rem;
  padding: 42px 0;
}

.footer-grid h3 {
  margin-bottom: 0.8rem;
  color: var(--gold);
}

.footer-contact {
  list-style: none;
}

.footer-contact li,
.footer-links li {
  margin-bottom: 0.45rem;
}

.footer-links {
  list-style: none;
}

.footer-contact a,
.footer-links a {
  color: rgba(255, 255, 255, 0.86);
}

.footer-contact a:hover,
.footer-links a:hover {
  color: var(--gold);
}

.footer-credit {
  align-self: start;
}

/* Gota N2: cambiar solo el href del enlace en HTML cuando la web de N2 este publicada. */
.n2-credit {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, background 0.2s ease;
}

.n2-credit:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

.n2-drop {
  width: 22px;
  height: 22px;
  border-radius: 65% 35% 65% 35%;
  background: linear-gradient(135deg, #7dd3fc, #22c55e);
  transform: rotate(45deg);
}

.footer-bottom {
  padding: 1rem;
  background: #062e22;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
}

/* Paginas legales simples para privacidad, terminos y accesibilidad. */
.legal-page {
  padding: 4rem 0;
}

.legal-card {
  margin-bottom: 1rem;
  padding: 1.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  background: var(--white);
  box-shadow: 0 10px 26px rgba(15, 107, 79, 0.08);
}

.legal-card h2 {
  margin-bottom: 0.6rem;
  color: var(--green-dark);
}

/* ================================
   Responsive
================================ */

@media (max-width: 1080px) {
  .nav {
    display: flex;
    width: min(1120px, 92%);
  }

  .menu-btn {
    display: block;
    order: 3;
    margin-left: 0.35rem;
  }

  .language-switch {
    order: 2;
    margin-right: 0.4rem;
    margin-left: auto;
  }

  .language-switch button {
    padding: 0.35rem 0.45rem;
    font-size: 0.68rem;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    padding: 1rem 6%;
    background: var(--white);
    box-shadow: var(--shadow);
    transform: none;
  }

  .nav-links.show {
    display: flex;
  }

  .hero-content {
    margin: auto;
  }

  .hero {
    min-height: 72vh;
  }

  .portal-shortcuts {
    margin-top: -24px;
  }

  .shortcut-grid,
  .notice-content,
  .heritage-layout,
  .agenda-grid,
  .management-grid,
  .economy-layout,
  .tracking-layout,
  .government-jump-grid,
  .officials-grid,
  .annual-report {
    grid-template-columns: 1fr;
  }

  .shortcut-grid {
    gap: 0.65rem;
  }

  .shortcut-card {
    min-height: 100px;
  }

  .notice-content {
    gap: 1rem;
  }

  .heritage-route {
    grid-template-columns: 1fr;
  }

  .heritage-route article {
    min-height: auto;
  }

  .qr-concept,
  .official-channels,
  .directory-disclaimer,
  .content-preview-note {
    align-items: flex-start;
    flex-direction: column;
  }

  .tracking-input {
    flex-direction: column;
  }

  .two,
  .three,
  .feature-grid,
  .places-grid,
  .places-list,
  .place-detail-card,
  .news-list,
  .video-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .commerce-ads-grid,
  .featured-ad {
    grid-template-columns: 1fr;
  }
  .featured-ad {
    grid-column: span 1;
  }

  .ad-image {
    min-height: 240px;
  }
  .featured-news {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }

  .featured-news .news-image {
    height: 260px;
    min-height: auto;
  }

  .news-top,
  .news-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .place-detail-card.reverse .place-gallery {
    order: 0;
  }

  .place-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .place-gallery img:first-child {
    grid-row: auto;
  }

  .place-gallery img,
  .feature-image img {
    height: 260px;
    min-height: auto;
  }

  .place-location iframe {
    min-height: 250px;
  }
  .event-detail-card,
  .event-detail-card.reverse {
    grid-template-columns: 1fr;
  }

  .event-detail-card.reverse .event-media {
    order: 0;
  }

  .event-gallery {
    grid-template-columns: 1fr;
  }

  .event-gallery img,
  .event-gallery img:first-child {
    height: 230px;
  }

  .event-info {
    padding: 1.4rem;
  }

  .calendar-day {
    min-height: 74px;
    padding: 0.45rem;
  }

  .day-event-name {
    font-size: 0.64rem;
  }

  .calendar-selected.active {
    align-items: flex-start;
  }

    .emergency-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .services-grid,
  .featured-service {
    grid-template-columns: 1fr;
  }

  .featured-service {
    grid-column: span 1;
  }

  .service-card,
  .featured-service {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-map-card {
    grid-template-columns: 1fr;
  }

  .map-frame,
  .map-frame iframe {
    min-height: 360px;
  }

  .floating-tools {
    right: 0.9rem;
    bottom: 0.9rem;
  }

  .social-floating {
    display: none;
  }

  .social-btn {
    width: 42px;
    height: 42px;
  }

  .chatbot-button {
    width: 58px;
    height: 58px;
  }

  .chatbot-panel {
    right: -0.2rem;
    bottom: 70px;
  }
  .brand {
    display: flex;
    align-items: center;
    gap: 1rem;

    font-size: 1.2rem;
    font-weight: 800;
    color: var(--green-dark);
  }
  .nav-dropdown {
    width: 100%;
  }

  .dropdown-menu {
    position: static;
    display: grid;
    min-width: 100%;
    margin-top: 0.5rem;
    padding-left: 0.7rem;
    border: 0;
    border-left: 2px solid var(--gold);
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .dropdown-menu a {
    padding: 0.4rem 0.65rem;
    white-space: normal;
  }

  .agreement-card,
  .official-data-note {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.7rem;
  }

  .org-level.departments {
    flex-direction: column;
  }

  .org-level.departments article {
    min-width: 100%;
  }

  .event-category-grid,
  .sport-card,
  .featured-sport {
    grid-template-columns: 1fr;
  }

  .sport-image img {
    min-height: 260px;
  }
    .citizen-form-card,
  .form-row {
    grid-template-columns: 1fr;
  }

  .citizen-form-card {
    padding: 1.2rem;
  }

  .citizen-form {
    padding: 1rem;
  }
  .local-search-box,
  .local-services-results {
    grid-template-columns: 1fr;
  }

  .footer-bottom-content {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* En celulares angostos se priorizan idioma y menú sin comprimir controles. */
@media (max-width: 540px) {
  .brand-text {
    display: none;
  }

  .logo {
    width: 58px;
    height: 58px;
  }
}
