/* =========================================================
   1) VARIABLES + RESET + BASE
========================================================= */
:root{
  --color-primario:#4298B5;
  --color-fondo:#F5F1E8;
  --texto:#1F2933;
  --texto-suave:#6B7280;
}

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

body{
  font-family:"Inter",sans-serif;
  background: linear-gradient(180deg,#f4efe8 0%,#f7f2ec 40%,#ffffff 100%);
  color:var(--texto);
  line-height:1.6;
}

.container{
  max-width:1200px;
  margin:3rem auto 0;
  padding:0 1rem;
}

.section-sub{
  font-size:1rem;
  color:#475569;
  margin-bottom:1.5rem;
  max-width:720px;
}

.page-hero{ margin-bottom:2.2rem; }
.page-hero h1{
  font-size:2.3rem;
  font-weight:800;
  color:#0f172a;
  letter-spacing:-.02em;
}

/* Skip link (accesibilidad) */
.skip-link{
  position:absolute;
  left:-9999px;
  top:12px;
  background:#fff;
  color:#0f172a;
  padding:.6rem .9rem;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.15);
  font-weight:900;
  z-index:9999;
}
.skip-link:focus{
  left:12px;
}

/* =========================================================
   2) HEADER / FOOTER / LINKS (GLOBAL)
========================================================= */
.simple-header{
  position:sticky;
  top:0;
  z-index:50;
  padding:.75rem 0;
  background:transparent;
}

.simple-header-inner{
  max-width:1200px;
  margin:0 auto;
  background:var(--color-primario);
  color:white;
  border-radius:999px;
  padding:.6rem 1.5rem;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1.5rem;
  box-shadow:0 10px 25px rgba(0,0,0,.2);
  position:relative;
}

.header-logo{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:.2rem .8rem;
  border-radius:999px;
  background:rgba(255,255,255,.12);
}

.logo-combo{ display:flex; align-items:center; gap:.4rem; }
.logo-isotipo{ height:40px; width:auto; filter:drop-shadow(0 2px 6px rgba(0,0,0,.35)); }
.logo-escudo{ height:32px; width:auto; }

.header-nav{
  display:flex;
  gap:1.4rem;
  font-size:.95rem;
  font-weight:600;
}

.header-nav a{ color:white; text-decoration:none; }
.header-nav a:hover{ text-decoration:underline; text-underline-offset:3px; }

.social{ display:flex; align-items:center; gap:.5rem; }
.social a{
  display:flex; align-items:center; justify-content:center;
  width:34px; height:34px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.7);
  text-decoration:none;
}

/* Bloquear scroll cuando el menú mobile está abierto */
body.nav-open{
  overflow:hidden;
  touch-action:none;
}

/* Overlay */
.nav-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.28);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition: opacity .18s ease, visibility .18s ease;
  z-index:40;
}

body.nav-open .nav-overlay{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}

/* Footer */
.footer{
  background:#0B1723;
  color:white;
  padding:3rem 1rem 1.5rem;
  margin-top:3rem;
}
.footer-container{
  max-width:1200px;
  margin:0 auto;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
  gap:2rem;
}
.footer-logo{ width:120px; margin-bottom:.5rem; }
.footer-col a{ color:#cbd5e1; text-decoration:none; }
.footer-col a:hover{ text-decoration:underline; }
.footer-bottom{
  text-align:center;
  padding-top:1.5rem;
  border-top:1px solid rgba(255,255,255,.2);
  opacity:.7;
}

/* Links */
.more-link{
  display:inline-block;
  margin-top:1rem;
  color:#0f766e;
  font-weight:700;
  text-decoration:none;
}
.more-link:hover{ text-decoration:underline; }

/* =========================================================
   2.1) HEADER – MOBILE
========================================================= */
.nav-toggle{
  display:none;
  background:none;
  border:none;
  cursor:pointer;
  gap:4px;
}

.nav-toggle span{
  display:block;
  width:22px;
  height:2px;
  background:#fff;
  border-radius:2px;
}

@media (max-width: 900px){

  .simple-header{
    padding: 1rem 0;
  }

  .simple-header-inner{
    padding:.6rem 1rem;
    border-radius:22px;
  }

  .nav-toggle{
    display:flex;
    flex-direction:column;
  }

  .header-nav{
    position:absolute;
    top:calc(100% + 10px);
    left:50%;
    transform:translateX(-50%) translateY(-6px);
    width:min(92%, 560px);
    background:var(--color-primario);
    border-radius:22px;
    padding:1.1rem 1rem;
    box-shadow:0 20px 45px rgba(0,0,0,.25);

    display:flex;
    flex-direction:column;
    gap:1rem;
    text-align:center;
    z-index:999;

    opacity:0;
    visibility:hidden;
    pointer-events:none;

    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  }

  .header-nav a{ font-size:1.05rem; }

  .social{ display:none; }

  .simple-header-inner.is-open .header-nav{
    opacity:1;
    visibility:visible;
    pointer-events:auto;
    transform:translateX(-50%) translateY(0);
  }

  .simple-header-inner.is-open .social{
    display:flex;
    justify-content:center;
    gap:.6rem;
    margin-top:.8rem;
  }
}

@media (min-width: 901px){
  .simple-header{
    padding: 1rem 0;
  }
}

/* =========================================================
   3) HOME (index.php)
========================================================= */

/* HERO */
.hero{
  position: relative;
  width: 100%;
  height: 80vh;
  min-height: 520px;
  margin-top: -2.8rem;
  overflow: hidden;
  border-bottom-left-radius: 24px;
  border-bottom-right-radius: 24px;
}

@media (max-width: 600px){
  .hero{
    height: 74vh;
    min-height: 460px;
    margin-top: -2.2rem;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
  }
}

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

.hero-overlay{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.30);
  z-index:2;
}

.hero-content{
  position:relative;
  z-index:4;
  height:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:1.2rem;
  text-align:center;
  padding: 0 1rem;
}

.hero-imagotipo{
  max-width: 420px;
  width: min(92%, 420px);
  height:auto;
  filter: drop-shadow(0 8px 22px rgba(0,0,0,.40));
}

/* BUSCADOR */
.hero-search{
  display:flex;
  align-items:stretch;
  gap:.6rem;
  width: min(760px, 92vw);
  max-width: 92vw;
}

.hero-search input{
  flex: 1 1 auto;
  min-width: 0;
  padding: .85rem 1rem;
  border-radius: 999px;
  border: none;
  outline: none;
  box-shadow: 0 10px 25px rgba(0,0,0,.18);
}

.hero-search button{
  flex:0 0 auto;
  padding:.85rem 1.3rem;
  border-radius:999px;
  border:none;
  background: var(--color-primario);
  color:white;
  font-weight: 700;
  cursor:pointer;
  white-space:nowrap;
  box-shadow: 0 10px 25px rgba(0,0,0,.18);
}

.hero-search button:hover{
  filter: brightness(.96);
}

@media (max-width: 480px){
  .hero-search{
    gap:.5rem;
    width: 94vw;
  }
  .hero-search input{ padding: .8rem .95rem; }
  .hero-search button{ padding: .8rem 1.05rem; }
}

/* ACCESOS RÁPIDOS */
.quick-row{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:1rem;
  margin-bottom: 2rem;
}

.quick-btn{
  background: #fff;
  border: 2px solid var(--color-primario);
  padding: .85rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  min-width: 160px;
  text-align:center;
  text-decoration:none;
  color: inherit;
  transition: transform .12s ease, background .12s ease, color .12s ease;
}

.quick-btn:hover{
  background: var(--color-primario);
  color: #fff;
  transform: translateY(-1px);
}

@media (max-width: 480px){
  .quick-btn{ min-width: 140px; padding: .8rem 1.1rem; }
}

/* RECOMENDACIONES (Carrusel) */
.reco{ margin: 2rem 0; }
.reco-head{ margin-bottom: .9rem; }

#recoSlider.reco-slider{
  position: relative;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 18px 45px rgba(0,0,0,.06);
  max-width: 100%;
}

#recoSlider .reco-viewport{
  width: 100%;
  overflow: hidden !important;
  border-radius: 18px;
  background: #f1f5f9;
  height: clamp(220px, 28vw, 420px);
}

#recoSlider .reco-track{
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: stretch;
  width: 100%;
  height: 100%;
  transition: transform .55s ease;
  will-change: transform;
}

#recoSlider .reco-slide{
  flex: 0 0 100% !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  margin: 0 !important;
}

#recoSlider .reco-slide img{
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: cover;
  object-position: center;
}

#recoSlider .reco-slide.is-portrait img{
  object-fit: contain;
  background: #f1f5f9;
}

/* Flechas */
#recoSlider .reco-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(255,255,255,.88);
  cursor: pointer;
  font-size: 26px;
  line-height: 36px;
  font-weight: 900;
  display: grid;
  place-items: center;
  z-index: 5;
}

#recoSlider .reco-nav.prev{ left: 10px; }
#recoSlider .reco-nav.next{ right: 10px; }

@media (max-width: 600px){
  #recoSlider .reco-nav{ display:none; }
}

/* Dots */
#recoSlider .reco-dots{
  position: absolute;
  left: 0; right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 5;
}

#recoSlider .reco-dot{
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.20);
  background: rgba(255,255,255,.75);
  cursor: pointer;
}

#recoSlider .reco-dot.is-active{
  background: rgba(15, 23, 42, .85);
  border-color: rgba(15, 23, 42, .85);
}

@media (max-width: 900px){
  #recoSlider .reco-viewport{ height: clamp(220px, 35vw, 320px); }
}

/* NOTICIAS HOME */
.news-cards{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.news-card-link{
  text-decoration: none;
  color: inherit;
  display: block;
}

.news-card{
  background: #fff;
  border-radius: .95rem;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.10);
  box-shadow: 0 14px 35px rgba(0,0,0,.05);
  transition: transform .12s ease, box-shadow .12s ease;
}

.news-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 45px rgba(0,0,0,.08);
}

.news-card img{
  width:100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.news-card-body{ padding: .9rem; }
.news-meta{ font-size: .85rem; color: var(--texto-suave); font-weight: 600; }
.news-title{ font-weight: 800; margin: .25rem 0; }

/* Próximo evento */
.home-next-event{
  margin: 1.4rem 0 1.6rem;
}

.home-next-event__card{
  display:grid;
  grid-template-columns: 1fr 130px;
  gap:1rem;
  align-items:stretch;
  border-radius:22px;
  padding:1.15rem 1.15rem;
  background: linear-gradient(135deg, rgba(38,167,205,.10), rgba(246,200,64,.12));
  border:1px solid rgba(0,0,0,.06);
  box-shadow:0 18px 45px rgba(0,0,0,.06);
}

.home-next-event__kicker{
  font-weight:900;
  color:#172B48;
  opacity:.9;
  margin-bottom:.35rem;
}

.home-next-event__title{
  margin:.1rem 0 .6rem;
  font-weight:900;
  letter-spacing:-.02em;
  color:#0f172a;
  font-size:1.35rem;
}

.home-next-event__meta{
  display:flex;
  gap:.5rem;
  flex-wrap:wrap;
  margin:.4rem 0 .6rem;
}

.home-next-event__pill{
  display:inline-flex;
  align-items:center;
  padding:.35rem .65rem;
  border-radius:999px;
  background: rgba(255,255,255,.78);
  border:1px solid rgba(0,0,0,.06);
  font-weight:800;
  color:#172B48;
}

.home-next-event__note{
  margin:.2rem 0 0;
  color:#475569;
  font-weight:650;
  line-height:1.6;
}

.home-next-event__actions{
  margin-top:.85rem;
}

.home-next-event__btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:.7rem 1rem;
  border-radius:999px;
  text-decoration:none;
  font-weight:900;
  background: var(--color-primario);
  color:#fff;
  border:1px solid rgba(0,0,0,.06);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.home-next-event__btn:hover{
  transform: translateY(-2px);
  box-shadow:0 18px 45px rgba(0,0,0,.14);
  filter: brightness(1.03);
}

.home-next-event__date{
  border-radius:18px;
  background: rgba(255,255,255,.78);
  border:1px solid rgba(0,0,0,.06);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:.8rem .6rem;
}

.home-next-event__num{
  font-weight:900;
  font-size:2.2rem;
  line-height:1;
  color:#172B48;
}

.home-next-event__month{
  margin-top:.25rem;
  font-weight:900;
  text-transform: uppercase;
  letter-spacing:.02em;
  color:#334155;
  font-size:.9rem;
}

@media (max-width: 720px){
  .home-next-event__card{
    grid-template-columns: 1fr;
  }
  .home-next-event__date{
    order:-1;
    flex-direction:row;
    gap:.6rem;
    justify-content:flex-start;
    align-items:baseline;
    padding:.7rem .8rem;
  }
  .home-next-event__num{ font-size:1.8rem; }
  .home-next-event__month{ margin-top:0; }
}

.home-next-event a{
  color: inherit;
  text-decoration: none;
}
.home-next-event a:hover{
  text-decoration: none;
}
/* =========================================================
   FARMACIA DE TURNO (HOME)
========================================================= */
.farmacia-turno{
  margin: 1.4rem 0 1.8rem;
}

.farmacia-card{
  background: linear-gradient(135deg, rgba(34,197,94,.08), rgba(16,185,129,.12));
  border: 1px solid rgba(34,197,94,.22);
  border-radius: 20px;
  padding: 1.3rem 1.4rem;
  box-shadow: 0 18px 45px rgba(0,0,0,.06);
}

.farmacia-header{
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: .9rem;
}

.farmacia-icon{
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(34,197,94,.16);
  border: 1px solid rgba(34,197,94,.28);
  display: grid;
  place-items: center;
  font-size: 26px;
  flex: 0 0 auto;
}

.farmacia-kicker{
  font-weight: 900;
  font-size: .9rem;
  color: #065f46;
  opacity: .9;
  margin-bottom: .2rem;
}

.farmacia-title{
  margin: 0;
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: -.02em;
  color: #0f172a;
}

.farmacia-meta{
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1rem;
}

.farmacia-pill{
  display: inline-flex;
  align-items: center;
  padding: .4rem .7rem;
  border-radius: 999px;
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(0,0,0,.06);
  font-weight: 800;
  font-size: .9rem;
  color: #0f172a;
}

.farmacia-actions{
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

.farmacia-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .8rem 1.1rem;
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
  border: 1px solid rgba(0,0,0,.08);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.farmacia-btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 35px rgba(0,0,0,.12);
  filter: brightness(1.02);
}

.farmacia-btn--wa{
  background: #22c55e;
  color: #fff;
}

.farmacia-btn--tel{
  background: rgba(59,130,246,.14);
  border-color: rgba(59,130,246,.28);
  color: #0f172a;
}

@media (max-width: 640px){
  .farmacia-header{
    flex-direction: column;
    text-align: center;
  }
  
  .farmacia-icon{
    width: 64px;
    height: 64px;
    font-size: 32px;
  }
  
  .farmacia-title{
    font-size: 1.35rem;
  }
  
  .farmacia-meta{
    justify-content: center;
  }
  
  .farmacia-actions{
    flex-direction: column;
  }
  
  .farmacia-btn{
    width: 100%;
  }
}
/* "Nuestra ciudad" */
.city-grid{
  display:grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.5rem;
  align-items: center;
}

.city-grid > img{
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display:block;
  border-radius: 1.2rem;
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
  border: 1px solid rgba(0,0,0,.08);
}

@media (max-width: 860px){
  .city-grid{
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .city-grid > img{ max-height: 360px; }
}

/* =========================================================
   4) CIUDAD – PANELS
========================================================= */
.page-ciudad .city-panels{
  margin-top:2.2rem;
  padding:1.4rem;
  border-radius:22px;
  background: rgba(255,255,255,.55);
  border:1px solid rgba(0,0,0,.06);
  box-shadow:0 18px 45px rgba(0,0,0,.08);
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  grid-auto-rows:240px;
  gap:1.6rem;
}

.page-ciudad .city-panel{
  height:100%;
  padding:2.3rem 2.6rem;
  border-radius:26px;
  color:#fff;
  text-decoration:none;
  display:flex;
  flex-direction:column;
  justify-content:center;
  box-shadow:0 22px 55px rgba(0,0,0,.20);
  transition:transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.page-ciudad .city-panel:hover{
  transform:translateY(-6px);
  box-shadow:0 28px 70px rgba(0,0,0,.25);
  filter:brightness(1.04);
}

.page-ciudad .city-panel h2{ font-size:2.15rem; margin-bottom:.6rem; font-weight:800; }
.page-ciudad .city-panel p{ font-size:1.05rem; opacity:.92; }

.panel-dark{ background:#0E2438; }
.panel-green{ background:#0F6F6E; }
.panel-blue{ background:#64A9FF; }
.panel-cyan{ background:#0AA0E6; }

@media(max-width:900px){
  .page-ciudad .city-panels{
    grid-template-columns:1fr;
    grid-auto-rows:auto;
    padding:1rem;
  }
  .page-ciudad .city-panel{ padding:2rem 1.7rem; }
  .page-ciudad .city-panel h2{ font-size:1.7rem; }
}

/* TERRITORIO */
.page-grid{
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:2.5rem;
}
.page-text{
  background:#fff;
  padding:2.2rem;
  border-radius:18px;
  box-shadow:0 12px 30px rgba(0,0,0,.06);
}
.page-text h2{
  margin-top:2rem;
  font-size:1.4rem;
  color:#0f766e;
}
.page-text h2:first-child{ margin-top:0; }
.page-text p{ line-height:1.7; margin-bottom:1rem; }

.page-summary{
  margin-top:2rem;
  padding-left:1rem;
  border-left:4px solid #0f766e;
  color:#334155;
  font-style:italic;
}
.map-card{
  background:linear-gradient(180deg,#0f766e,#0d9488);
  color:#fff;
  padding:1.8rem;
  border-radius:18px;
  box-shadow:0 16px 35px rgba(0,0,0,.18);
}
.map-card__frame{
  margin-top:1rem;
  border-radius:12px;
  overflow:hidden;
}
@media(max-width:900px){
  .page-grid{ grid-template-columns:1fr; }
}

/* =========================================================
   5) SÍMBOLOS
========================================================= */
.simbolos-mini{
  margin-top:1.8rem;
  display:flex;
  gap:1.2rem;
  flex-wrap:wrap;
}

.mini-item{
  display:flex;
  align-items:center;
  gap:.6rem;
  padding:.55rem 1rem;
  background:#ffffff;
  border-radius:999px;
  border:1px solid #E5E7EB;
  font-size:.9rem;
  font-weight:600;
  color:#334155;
  box-shadow:0 6px 16px rgba(0,0,0,.06);
}

.mini-item img{ width:28px; height:auto; display:block; }

.uso-institucional-full{  
  margin-top:3.5rem;
  background:#ffffff;
  padding:2.6rem 3rem;
  border-radius:22px;
  box-shadow:0 18px 45px rgba(0,0,0,.08);
}

.uso-institucional-full h2{ font-size:1.9rem; margin-bottom:.8rem; color:#0f172a; }
.uso-institucional-full p{ font-size:1.05rem; color:#475569; max-width:920px; }

.uso-lista{ margin-top:1.4rem; padding-left:1.2rem; }
.uso-lista li{ margin-bottom:.6rem; font-size:.98rem; color:#334155; line-height:1.6; }

.simbolo-bloque{ margin-top:4rem; }

.simbolo-grid{
  display:grid;
  grid-template-columns: 1.2fr .9fr;
  gap:2.8rem;
  align-items:center;
}

.simbolo-texto h2{ font-size:2rem; margin-bottom:.6rem; color:#0f172a; }
.simbolo-texto p{ font-size:1.05rem; color:#475569; line-height:1.65; margin-bottom:.9rem; }

.simbolo-imagen img{
  width:100%;
  max-height:420px;
  object-fit:contain;
  background:#ffffff;
  padding:1.4rem;
  border-radius:18px;
  box-shadow:0 18px 40px rgba(0,0,0,.15);
}

.himno-box{
  margin-top:1.4rem;
  background:#ffffff;
  padding:2.2rem 2.4rem;
  border-radius:20px;
  box-shadow:0 16px 40px rgba(0,0,0,.08);
}

.himno-box pre{
  font-family:"Inter", sans-serif;
  font-size:.95rem;
  line-height:1.65;
  color:#334155;
  white-space:pre-wrap;
}

@media (max-width: 900px){
  .uso-institucional-full{ padding:2rem 1.8rem; }
  .simbolo-grid{ grid-template-columns:1fr; }
  .simbolo-imagen{ order:-1; }
  .simbolo-texto h2{ font-size:1.7rem; }
}

/* =========================================================
   6) HISTORIA
========================================================= */
.historia-page{ padding-top:.5rem; }

.hist-hero{
  display:grid;
  grid-template-columns: 1.35fr .85fr;
  gap:2rem;
  align-items:start;
  margin-top:.5rem;
  margin-bottom:2.2rem;
}

.hist-hero h1{
  font-size:2.6rem;
  font-weight:800;
  letter-spacing:-.02em;
  color:#0f172a;
  margin-bottom:.35rem;
}

.hist-hero__note{
  margin-top:1rem;
  padding:.9rem 1rem;
  border-radius:14px;
  border:1px solid rgba(0,0,0,.06);
  background: rgba(255,255,255,.55);
  color:#475569;
  font-size:.95rem;
}

.hist-chips{
  display:flex;
  flex-wrap:wrap;
  gap:.6rem;
  margin-top:1rem;
}

.hist-chip{
  appearance:none;
  border:1px solid rgba(0,0,0,.12);
  background: rgba(255,255,255,.75);
  padding:.55rem .9rem;
  border-radius:999px;
  font-weight:700;
  font-size:.9rem;
  color:#0f172a;
  cursor:pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.hist-chip:hover{
  transform: translateY(-1px);
  box-shadow:0 10px 20px rgba(0,0,0,.08);
}

.hist-chip.is-active{
  background: rgba(62,166,204,.18);
  border-color: rgba(62,166,204,.45);
}

.hist-hero__card{
  background: rgba(255,255,255,.75);
  border:1px solid rgba(0,0,0,.06);
  border-radius:18px;
  padding:1.3rem 1.3rem 1.1rem;
  box-shadow:0 18px 45px rgba(0,0,0,.08);
}

.hist-hero__card h3{ margin:0 0 .5rem; font-size:1.15rem; color:#0f172a; }
.hist-hero__card p{ color:#475569; font-size:.98rem; line-height:1.65; margin-bottom:1rem; }

.hist-stats{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:.9rem;
  margin-top:.7rem;
}

.hist-stat{
  border-radius:14px;
  padding:.9rem;
  background: rgba(62,166,204,.14);
  border:1px solid rgba(62,166,204,.25);
}

.hist-stat__k{ display:block; font-weight:900; font-size:1.25rem; color:#0f172a; line-height:1.1; }
.hist-stat__l{ display:block; font-weight:700; font-size:.85rem; color:#334155; margin-top:.2rem; }

.hist-feature-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:1.5rem;
  margin:1.8rem 0 2.2rem;
}

.hist-feature{
  background:#ffffff;
  border-radius:18px;
  padding:1.6rem 1.6rem 1.4rem;
  border:1px solid rgba(0,0,0,.06);
  box-shadow:0 18px 45px rgba(0,0,0,.06);
}

.hist-feature--soft{
  background: rgba(247,200,67,.14);
  border-color: rgba(247,200,67,.25);
}

.hist-feature h2{ font-size:1.35rem; margin-bottom:.7rem; color:#0f172a; }
.hist-feature p{ color:#475569; line-height:1.7; margin-bottom:.9rem; }
.hist-feature p:last-child{ margin-bottom:0; }

.hist-section{ margin-top:2rem; }
.hist-section__head{ margin-bottom:1.2rem; }
.hist-section__head h2{ font-size:1.6rem; color:#0f172a; margin-bottom:.25rem; }

/* Timeline */
.hist-timeline{
  position:relative;
  padding:1.2rem 0 2.4rem;
}

.hist-timeline::before{
  content:"";
  position:absolute;
  left:50%;
  top:0;
  bottom:2.2rem;
  width:4px;
  transform:translateX(-50%);
  background: rgba(62,166,204,.35);
  border-radius:999px;
}

.hist-timeline::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:1.25rem;
  transform:translateX(-50%);
  width:16px;
  height:16px;
  border-radius:999px;
  background:#3EA6CC;
  border:3px solid #fff;
  box-shadow:0 12px 26px rgba(0,0,0,.18);
}

.hist-item{
  position:relative;
  width:50%;
  padding:.9rem 1.4rem;
  margin:.2rem 0 1.1rem;
}

.hist-item.is-left{ left:0; }
.hist-item.is-right{ left:50%; }

.hist-item::before{
  content:"";
  position:absolute;
  top:1.35rem;
  width:16px;
  height:16px;
  border-radius:999px;
  background:#3EA6CC;
  border:3px solid #ffffff;
  box-shadow:0 10px 25px rgba(0,0,0,.18);
}

.hist-item.is-left::before{ right:-8px; }
.hist-item.is-right::before{ left:-8px; }

.hist-item__card{
  background:#ffffff;
  border-radius:18px;
  border:1px solid rgba(0,0,0,.06);
  box-shadow:0 18px 45px rgba(0,0,0,.08);
  padding:1.25rem 1.25rem 1.1rem;
}

.hist-item__meta{
  display:flex;
  gap:.6rem;
  align-items:center;
  margin-bottom:.6rem;
}

.hist-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:.25rem .6rem;
  border-radius:999px;
  background: rgba(62,166,204,.16);
  border:1px solid rgba(62,166,204,.30);
  font-weight:900;
  font-size:.85rem;
  color:#0f172a;
}

.hist-dotlabel{ color:#64748b; font-weight:700; font-size:.9rem; }

.hist-item__card h3{ margin:0 0 .35rem; font-size:1.2rem; color:#0f172a; }
.hist-item__card p{ margin:0 0 .9rem; color:#475569; line-height:1.65; }

.hist-item__img{
  width:100%;
  max-height:220px;
  object-fit:cover;
  border-radius:14px;
  border:1px solid rgba(0,0,0,.06);
}

.hist-end{
  width:100%;
  margin-top:1.2rem;
  padding:1.2rem;
  border-radius:18px;
  background: rgba(62,166,204,.12);
  border:1px solid rgba(62,166,204,.22);
  box-shadow:0 18px 45px rgba(0,0,0,.06);
  text-align:center;
}

.hist-end__tag{
  display:inline-block;
  font-weight:900;
  padding:.35rem .75rem;
  border-radius:999px;
  background: rgba(247,200,67,.20);
  border:1px solid rgba(247,200,67,.35);
  color:#0f172a;
  margin-bottom:.45rem;
}

.hist-end p{ margin:0; color:#334155; font-weight:600; }

@media (max-width: 980px){
  .hist-hero{ grid-template-columns:1fr; }
  .hist-feature-grid{ grid-template-columns:1fr; }
}

@media (max-width: 900px){
  .hist-timeline::before{
    left:14px;
    transform:none;
    bottom:2.2rem;
  }
  .hist-timeline::after{
    left:14px;
    transform:none;
  }

  .hist-item{
    width:100%;
    left:0 !important;
    padding-left:2.3rem;
    padding-right:0;
  }

  .hist-item::before{
    left:6px !important;
    right:auto !important;
  }
}

/* =========================================================
   7) POBLACIÓN
========================================================= */
.poblacion-page{ padding-bottom:3rem; }

.pob-hero{
  display:grid;
  grid-template-columns: 1.3fr .7fr;
  gap:2rem;
  margin-bottom:2.5rem;
}

.pob-hero h1{
  font-size:2.4rem;
  font-weight:800;
  color:#0f172a;
}

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

.pob-kpi{
  background: rgba(255,255,255,.7);
  border-radius:18px;
  padding:1.2rem;
  text-align:center;
  border:1px solid rgba(0,0,0,.06);
  box-shadow:0 14px 30px rgba(0,0,0,.08);
}

.kpi-number{ display:block; font-size:1.6rem; font-weight:800; }
.kpi-label{ font-size:.85rem; color:#475569; }

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

.pob-card{
  background:#fff;
  border-radius:20px;
  padding:1.6rem;
  border:1px solid rgba(0,0,0,.06);
  box-shadow:0 18px 40px rgba(0,0,0,.08);
  overflow: hidden;
}

.pob-card h2{ 
  font-size:1.4rem; 
  margin-bottom:.3rem;
  display:flex;
  align-items:center;
  gap:.55rem;
}

.pob-card h2::before{
  content:"";
  width:10px;
  height:10px;
  border-radius:999px;
  background:#26A7CD;
  box-shadow:0 8px 18px rgba(38,167,205,.35);
}

.pob-card-sub{ font-size:.9rem; color:#64748b; margin-bottom:1rem; }

.pob-card canvas{
  width: 100% !important;
  height: 320px !important;
}

@media (max-width: 600px){
  .pob-card canvas{
    height: 260px !important;
  }
}

.pob-map iframe{
  width:100%;
  height:320px;
  border:0;
  border-radius:14px;
}

.pob-source{
  margin-top:2rem;
  padding:1rem;
  text-align:center;
  font-size:.85rem;
  color:#475569;
  background: rgba(62,166,204,.1);
  border-radius:14px;
}

@media(max-width:900px){
  .pob-hero{ grid-template-columns:1fr; }
  .pob-kpis{ grid-template-columns:1fr; }
  .pob-grid{ grid-template-columns:1fr; }
}

/* =========================================================
   8) GABINETE
========================================================= */
.gabinete-page{ padding-top: .5rem; }

.gab-hero{
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  align-items: start;
  margin-top: .6rem;
  margin-bottom: 1.4rem;
}

.gab-hero h1{
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: #0f172a;
  margin-bottom: .35rem;
}

.mun-org-btn{
  display:block;
  width:100%;
  max-width:720px;
  text-align:center;
  margin-top:1.1rem;
  padding:.95rem 1.1rem;
  border-radius:999px;
  background: rgba(62,166,204,.18);
  border:1px solid rgba(62,166,204,.35);
  color:#0f172a;
  font-weight:800;
  text-decoration:none;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.mun-org-btn:hover{
  transform: translateY(-2px);
  box-shadow:0 18px 45px rgba(0,0,0,.10);
  filter:brightness(1.03);
}

.gab-feature{ margin: .6rem 0 1.2rem; }

.gab-feature__card{
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 22px;
  padding: 1rem;
  box-shadow: 0 18px 45px rgba(0,0,0,.08);
}

.gab-section{ margin-top: 1.2rem; }
.gab-h2{
  margin: 0 0 .8rem;
  font-size: 1.55rem;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -.01em;
}

.gab-block{ margin-top: 1.1rem; }

.gabinete-page .mun-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.gabinete-page .gab-secretarias .mun-card{
  background: rgba(66,152,181,.14);
  border: 1px solid rgba(66,152,181,.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.gabinete-page .mun-card{
  background: rgba(255,255,255,.82);
  border:1px solid rgba(0,0,0,.06);
  border-radius:20px;
  box-shadow:0 18px 45px rgba(0,0,0,.06);
  overflow:hidden;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  display:flex;
  gap:1rem;
  padding:1.1rem;
  align-items:center;
}

.gabinete-page .mun-card:hover{
  transform: translateY(-3px);
  box-shadow:0 26px 60px rgba(0,0,0,.10);
  filter:brightness(1.01);
}

.gabinete-page .mun-photo{
  flex:0 0 auto;
  width:96px;
  height:96px;
  border-radius:50%;
  overflow:hidden;
  background:#fff;
  box-shadow:0 12px 30px rgba(0,0,0,.15);
  position: relative;
}

.gabinete-page .mun-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.gabinete-page .mun-photo__fallback{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  font-weight: 900;
  color:#0f172a;
}

.gabinete-page .mun-card__body{ min-width:0; }

.gabinete-page .mun-card h3{
  margin:0;
  font-size:1.05rem;
  color:#0f172a;
  line-height:1.2;
}

.gabinete-page .mun-role{
  margin:.15rem 0 0;
  color:#334155;
  font-weight:700;
  font-size:.95rem;
}

/* Accordion */
.gabinete-page .gab-accordion{
  max-width: 820px;
  margin: .6rem auto 0;
  display: grid;
  gap: .8rem;
}

.gabinete-page .gab-acc-item{
  border-radius: 18px;
  border: 1px solid rgba(247,200,67,.35);
  background: rgba(247,200,67,.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 45px rgba(0,0,0,.06);
  overflow: hidden;
}

.gabinete-page .gab-acc-item summary::-webkit-details-marker{ display:none; }
.gabinete-page .gab-acc-item summary{ list-style:none; }

.gabinete-page .gab-acc-summary{
  cursor: pointer;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: .8rem;
  padding: 1rem 1.1rem;
  font-weight: 900;
  color:#0f172a;
  background: rgba(255,255,255,.45);
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.gabinete-page .gab-acc-title{
  font-size: 1.1rem;
  line-height: 1.2;
}

.gabinete-page .gab-acc-icon{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.65);
  display:grid;
  place-items:center;
  flex: 0 0 auto;
}
.gabinete-page .gab-acc-icon::before{
  content:"";
  width: 10px;
  height: 10px;
  border-right: 3px solid rgba(15,23,42,.85);
  border-bottom: 3px solid rgba(15,23,42,.85);
  transform: rotate(45deg);
  transition: transform .18s ease;
}

.gabinete-page .gab-acc-item[open] .gab-acc-icon::before{
  transform: rotate(-135deg);
}

.gabinete-page .gab-acc-panel{
  padding: .9rem;
}

.gabinete-page .gab-acc-panel .mun-card{
  box-shadow: none;
  border: 1px solid rgba(0,0,0,.06);
  background: rgba(255,255,255,.78);
}

@media (max-width: 980px){
  .gabinete-page .mun-grid{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px){
  .gabinete-page .mun-org-btn{
    margin-left:auto;
    margin-right:auto;
    text-align:center;
  }

  .gabinete-page .mun-grid{ grid-template-columns: 1fr; }

  .gabinete-page .mun-card{
    flex-direction:column;
    text-align:center;
    align-items:center;
  }

  .gabinete-page .mun-photo{ width:110px; height:110px; }

  .gabinete-page .gab-acc-summary{
    padding: 1rem;
  }

  .gabinete-page .gab-acc-content{
    padding: 0 1rem 1rem;
  }

  .gabinete-page .gab-accordion{
    max-width: 100%;
  }
}

@media (max-width: 640px){
  .gabinete-page .gab-acc-item > summary{
    padding: 1rem 1.1rem;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,.10);
    box-shadow: 0 10px 28px rgba(0,0,0,.08);
    font-size: 1.05rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    cursor: pointer;
  }

  .gabinete-page .gab-acc-item > summary::after{
    content: "▾";
    font-size: 1.4rem;
    font-weight: 900;
    transition: transform .25s ease;
  }

  .gabinete-page .gab-acc-item[open] > summary{
    background: rgba(66,152,181,.12);
    border-color: rgba(66,152,181,.35);
  }

  .gabinete-page .gab-acc-item[open] > summary::after{
    transform: rotate(180deg);
  }

  .gabinete-page .gab-acc-panel{
    margin-top: .8rem;
    padding: 1rem;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,.08);
    box-shadow: 0 12px 30px rgba(0,0,0,.06);
  }
}

/* =========================================================
   9) TRÁMITES
========================================================= */
.tramites-page{
  padding-top:.5rem;
  padding-bottom:3rem;
}

.tram-hero{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:2rem;
  align-items:start;
  margin-top:.6rem;
  margin-bottom:1.7rem;
}

.tram-hero h1{
  font-size:2.6rem;
  font-weight:800;
  letter-spacing:-.02em;
  color:#0f172a;
  margin-bottom:.35rem;
}

.tram-controls{
  margin-top:1rem;
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:.8rem;
}

.tram-controls input,
.tram-controls select{
  width:100%;
  padding:.8rem 1rem;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.10);
  background:rgba(255,255,255,.82);
  outline:none;
}

.tram-controls input:focus,
.tram-controls select:focus{
  border-color: rgba(62,166,204,.55);
  box-shadow: 0 0 0 4px rgba(62,166,204,.14);
}

.tram-note{
  margin-top:.9rem;
  padding:.9rem 1rem;
  border-radius:14px;
  border:1px solid rgba(0,0,0,.06);
  background: rgba(255,255,255,.65);
  color:#475569;
}

.tram-sidecard{
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 18px;
  padding: 1.25rem 1.25rem 1.15rem;
  box-shadow: 0 18px 45px rgba(0,0,0,.08);
}

.tram-sidecard h3{
  margin:0 0 .6rem;
  font-size:1.2rem;
  color:#0f172a;
}

.tram-sidecard ul{
  margin:0;
  padding-left:1.1rem;
  color:#334155;
}

.tram-sidehint{ margin:.9rem 0 0; color:#64748b; }

.tram-contact{
  margin: .2rem 0 1.4rem;
  padding: 1.15rem 1.2rem;
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,.06);
  background: rgba(255,255,255,.78);
  box-shadow: 0 18px 45px rgba(0,0,0,.08);
  position: relative;
  overflow: hidden;
}

.tram-contact::before{
  content:"";
  position:absolute;
  inset:-60px -70px auto auto;
  width:200px;
  height:200px;
  background: radial-gradient(circle, rgba(247,200,67,.22), rgba(62,166,204,.10), transparent 62%);
  filter: blur(2px);
  transform: rotate(12deg);
}

.tram-contact__title{
  margin: 0 0 .55rem;
  font-size: 1.2rem;
  font-weight: 900;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: .55rem;
  position: relative;
}

.tram-contact__title .dot{
  display:inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #26A7CD;
  box-shadow: 0 8px 18px rgba(38,167,205,.35);
  flex: 0 0 auto;
}

.tram-contact__text{
  margin: 0 0 .9rem;
  color: #475569;
  line-height: 1.65;
  position: relative;
}

.tram-contact__meta{
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-bottom: .95rem;
  position: relative;
}

.tram-pill{
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem .75rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: .92rem;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.85);
  color: #0f172a;
  text-decoration: none;
}

.tram-pill--wa{
  background: rgba(34,197,94,.12);
  border-color: rgba(34,197,94,.28);
}

.tram-pill--time{
  background: rgba(247,200,67,.16);
  border-color: rgba(247,200,67,.30);
}

.tram-contact__actions{
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  position: relative;
}

.tram-btn--wa{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .75rem 1rem;
  border-radius: 999px;
  background: #22c55e;
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 14px 35px rgba(0,0,0,.10);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.tram-btn--wa:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 45px rgba(0,0,0,.14);
  filter: brightness(1.02);
}

.tram-btn--ghost{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .75rem 1rem;
  border-radius: 999px;
  background: rgba(62,166,204,.14);
  border: 1px solid rgba(62,166,204,.28);
  color: #0f172a;
  font-weight: 900;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.tram-btn--ghost:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 45px rgba(0,0,0,.10);
  filter: brightness(1.03);
}

.tram-group{ margin-top:1.8rem; }

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

.tram-group__head h2{
  margin:0;
  font-size:1.55rem;
  color:#0f172a;
}

.tram-badge{
  display:inline-flex;
  align-items:center;
  padding:.35rem .75rem;
  border-radius:999px;
  background: rgba(62,166,204,.14);
  border: 1px solid rgba(62,166,204,.25);
  font-weight:800;
  color:#0f172a;
  font-size:.9rem;
}

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

.tram-card{
  background: rgba(255,255,255,.85);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(0,0,0,.06);
  padding: 1.15rem 1.15rem 1rem;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  position:relative;
  overflow:hidden;
}

.tram-card::before{
  content:"";
  position:absolute;
  inset:-40px -60px auto auto;
  width:160px;
  height:160px;
  background: radial-gradient(circle, rgba(62,166,204,.20), rgba(247,200,67,.10), transparent 60%);
  filter: blur(2px);
  transform: rotate(18deg);
}

.tram-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 26px 60px rgba(0,0,0,.10);
  filter: brightness(1.01);
}

.tram-card__top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:1rem;
  position:relative;
}

.tram-card h3{
  margin:0;
  font-size:1.15rem;
  color:#0f172a;
  line-height:1.25;
}

.tram-cost{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:.25rem .6rem;
  border-radius:999px;
  background: rgba(247,200,67,.18);
  border: 1px solid rgba(247,200,67,.30);
  font-weight:900;
  font-size:.85rem;
  color:#0f172a;
  position:relative;
}

.tram-block{ margin-top:.9rem; position:relative; }

.tram-block h4{
  margin:0 0 .45rem;
  font-size:.95rem;
  color:#0f172a;
}

.tram-block ul{
  margin:0;
  padding-left:1.1rem;
  color:#475569;
  line-height:1.6;
}

.tram-actions{ 
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(0,0,0,.08);
  position:relative; 
}

.tram-actions__title{
  font-weight: 700;
  font-size: .95rem;
  margin-bottom: 10px;
  color: rgba(0,0,0,.75);
}

.tram-actions__grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 760px){
  .tram-actions__grid{
    grid-template-columns: 1fr 1fr;
  }
}

.tram-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  padding:.75rem 1rem;
  border-radius:999px;
  background: var(--color-primario);
  color:#fff;
  font-weight:800;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.tram-btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 45px rgba(0,0,0,.14);
  filter: brightness(1.03);
}

.tram-btn--pdf{
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.tram-btn__icon{
  flex: 0 0 auto;
  font-size: 1.1rem;
  line-height: 1;
}

.tram-btn__text{
  flex: 1 1 auto;
}

.tram-empty{
  margin-top:1.6rem;
  padding:1rem 1.1rem;
  border-radius:14px;
  border:1px solid rgba(0,0,0,.06);
  background: rgba(255,255,255,.70);
  color:#475569;
}

@media (max-width: 980px){
  .tram-hero{ grid-template-columns:1fr; }
  .tram-grid{ grid-template-columns:1fr; }
}

@media (max-width: 900px){
  .tram-controls{ grid-template-columns:1fr; }
  .tram-group__head{
    flex-direction:column;
    align-items:flex-start;
  }
  .tram-badge{ align-self:flex-start; }
}

@media (max-width: 600px){
  .tram-contact{ padding: 1rem; }
  .tram-contact__actions a{ width: 100%; }
}

/* =========================================================
   10) TRANSPARENCIA
========================================================= */
.coming-card{
  background: rgba(255,255,255,.85);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 20px;
  box-shadow: 0 18px 45px rgba(0,0,0,.08);
  padding: 1.8rem;
  max-width: 820px;
}

.coming-card h2{
  margin:0 0 .5rem;
  color:#0f172a;
  font-size:1.6rem;
}

.coming-card p{
  margin:0;
  color:#475569;
  line-height:1.7;
}

.coming-pill{
  display:inline-flex;
  margin-top:1rem;
  padding:.35rem .8rem;
  border-radius:999px;
  background: rgba(247,200,67,.18);
  border:1px solid rgba(247,200,67,.30);
  font-weight:900;
  color:#0f172a;
}

/* =========================================================
   11) FOOTER PRO
========================================================= */
.footer--pro{
  background:#0B1723;
  color:#fff;
  padding:2.6rem 1rem 1.4rem;
  margin-top:3rem;
}

.footer-pro{
  max-width:1200px;
  margin:0 auto;
  display:grid;
  grid-template-columns: 1.1fr .9fr 1.1fr;
  gap:2rem;
  align-items:center;
}

.footer-pro__logos{
  display:flex;
  align-items:center;
  gap:1.2rem;
}

.footer-pro__escudo{
  width:70px;
  height:auto;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,.25));
}

.footer-pro__imagotipo{
  width:230px;
  max-width:100%;
  height:auto;
}

.footer-pro__social{
  text-align:center;
}

.footer-pro__title{
  margin:0 0 .7rem;
  font-weight:800;
  letter-spacing:-.01em;
  opacity:.95;
}

.footer-pro__icons{
  display:flex;
  justify-content:center;
  gap:.9rem;
}

.footer-pro__icon{
  width:44px;
  height:44px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.35);
  display:flex;
  align-items:center;
  justify-content:center;
  transition: transform .15s ease, background .15s ease;
  background: rgba(255,255,255,.06);
}

.footer-pro__icon:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,.12);
}

.footer-pro__icon img{
  width:22px;
  height:22px;
  display:block;
  filter: invert(1);
}

.footer-pro__data{
  text-align:right;
  color:#cbd5e1;
}

.footer-pro__muni{
  color:#fff;
  font-weight:900;
  margin:0 0 .3rem;
}

.footer-pro__data p{ margin:.15rem 0; }

.footer-pro__mail{
  color:#fff;
  font-weight:800;
  text-decoration:none;
}
.footer-pro__mail:hover{ text-decoration:underline; text-underline-offset:3px; }

@media (max-width: 900px){
  .footer-pro{
    grid-template-columns:1fr;
    text-align:center;
  }
  .footer-pro__logos{
    justify-content:center;
  }
  .footer-pro__data{
    text-align:center;
  }
}

/* =========================================================
   12) NOTICIAS
========================================================= */

/* Listado */
.news-card--link{
  display:block;
  color:inherit;
  text-decoration:none;
}
.news-card--link:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 45px rgba(0,0,0,.10);
}
.news-card-link{
  text-decoration:none;
  color:inherit;
  display:block;
}
.news-card-link:hover .news-card{
  transform: translateY(-2px);
  box-shadow:0 18px 45px rgba(0,0,0,.10);
}
.news-card{
  transition: transform .15s ease, box-shadow .15s ease;
}

/* Portada: NO recortar */
.news-thumb{
  width:100%;
  background:#f1f5f9;
  border-bottom:1px solid rgba(0,0,0,.08);
}

.news-thumb img{
  width:100%;
  height:auto;
  display:block;
  max-height: 360px;
  object-fit: contain;
  background:#f1f5f9;
}

@media (max-width: 640px){
  .news-thumb img{ max-height: 260px; }
}

/* Detalle */
.news-h1{
  font-size: clamp(2rem, 6.2vw, 3.2rem);
  line-height: 1.06;
}

.news-hero{
  margin: 0 0 1.2rem;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.08);
  background: #f1f5f9;
  aspect-ratio: 16 / 9;
  max-height: 520px;
}

.news-hero img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 640px){
  .news-hero{
    aspect-ratio: 4 / 3;
    max-height: 70vh;
  }
  .news-hero img{
    object-fit: contain;
    background: #f1f5f9;
  }
}

.news-article{
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  border-radius:16px;
  padding:1.2rem;
  box-shadow:0 14px 35px rgba(0,0,0,.06);
  line-height:1.7;
  color:#0f172a;
}

.news-article img{
  max-width:100%;
  height:auto;
  display:block;
  margin:1rem auto;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.08);
}

.news-resumen{
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.news-cover{
  background:#f1f5f9;
  border:1px solid rgba(0,0,0,.08);
  border-radius:16px;
  overflow:hidden;
  margin:0 0 1.2rem;
}
.news-cover__img{
  width:100%;
  height:auto;
  max-height:520px;
  object-fit:contain;
  display:block;
  margin:0 auto;
}
@media (max-width: 640px){
  .news-cover__img{ max-height:300px; }
}

/* Share bar */
.sharebar{
  display:flex;
  flex-wrap:wrap;
  gap:.55rem;
  align-items:center;
  margin:0 0 1rem;
}

.sharebar__label{
  font-weight:900;
  color:#0f172a;
  margin-right:.2rem;
}

.sharebtn{
  display:inline-flex;
  align-items:center;
  gap:.55rem;
  padding:.65rem .9rem;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.12);
  background:#fff;
  color:#0f172a;
  text-decoration:none;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 10px 24px rgba(0,0,0,.06);
  transition:transform .12s ease, box-shadow .12s ease;
}

.sharebtn:hover{
  transform:translateY(-1px);
  box-shadow:0 14px 30px rgba(0,0,0,.10);
}

.sharebtn:active{ transform:translateY(0); }

.sharebtn--wa{
  background:rgba(34,197,94,.12);
  border-color:rgba(34,197,94,.28);
}

.sharebtn--fb{
  background:rgba(59,130,246,.12);
  border-color:rgba(59,130,246,.28);
}

.sharebtn--copy{
  background:rgba(38,167,205,.12);
  border-color:rgba(38,167,205,.30);
}

.sharebtn--native{
  background:rgba(15,118,110,.12);
  border-color:rgba(15,118,110,.28);
}

.sharebtn__icon{
  width:18px;
  height:18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:18px;
  line-height:1;
}

.sharemsg{
  font-weight:800;
  color:#475569;
  display:none;
  padding:.55rem .8rem;
  border-radius:999px;
  background:rgba(0,0,0,.05);
  border:1px solid rgba(0,0,0,.10);
}

@media (max-width: 640px){
  .sharebar{ justify-content:center; }
  .sharebar__label{ width:100%; text-align:center; margin-bottom:.25rem; }
  .sharebtn{ flex:1; justify-content:center; min-width: 140px; }
  .sharemsg{ width:100%; text-align:center; }
}

/* =========================================================
   13) TURISMO
========================================================= */
.turismo-page{
  padding-top:.6rem;
  padding-bottom:3rem;
  font-family: "Quicksand", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.tur-hero{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:1.5rem;
  align-items:start;
  margin:.8rem 0 1.6rem;
}

.tur-hero h1{
  font-family:"Montserrat", sans-serif;
  font-size:2.4rem;
  font-weight:800;
  letter-spacing:-.02em;
  color:#172B48;
  margin-bottom:.35rem;
}

.tur-hero__pill{
  display:inline-flex;
  margin-top:.8rem;
  padding:.45rem .75rem;
  border-radius:999px;
  background: rgba(38,167,205,.14);
  border:1px solid rgba(38,167,205,.30);
  color:#172B48;
  font-weight:700;
}

.tur-hero__card{
  background:#fff;
  border:1px solid rgba(0,0,0,.06);
  border-radius:18px;
  padding:1.2rem;
  box-shadow:0 18px 45px rgba(0,0,0,.07);
}

.tur-hero__card h3{
  font-family:"Montserrat", sans-serif;
  margin:0 0 .4rem;
  font-size:1.1rem;
  color:#172B48;
}

.tur-hero__card p{
  margin:0 0 .7rem;
  color:#475569;
  line-height:1.65;
}

.tur-hero__tags{
  display:flex;
  flex-wrap:wrap;
  gap:.45rem;
}
.tur-hero__tags span{
  font-weight:700;
  font-size:.95rem;
  padding:.35rem .55rem;
  border-radius:999px;
  background: rgba(246,200,64,.18);
  border:1px solid rgba(246,200,64,.30);
  color:#172B48;
}

.tur-section{ margin-top:1.4rem; }
.tur-section__head{ margin-bottom:.9rem; }
.tur-section__head h2{
  font-family:"Montserrat", sans-serif;
  font-size:1.7rem;
  font-weight:800;
  color:#172B48;
  margin-bottom:.25rem;
}

.tur-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:1rem;
}

.tur-card{
  background:#fff;
  border:1px solid rgba(0,0,0,.06);
  border-radius:18px;
  padding:1.15rem 1.15rem 1rem;
  box-shadow:0 18px 45px rgba(0,0,0,.06);
}

.tur-card__title{
  display:flex;
  align-items:center;
  gap:.6rem;
  margin-bottom:.6rem;
}
.tur-icon{ font-size:1.3rem; }
.tur-card h3{
  font-family:"Montserrat", sans-serif;
  margin:0;
  color:#172B48;
  font-size:1.15rem;
}

.tur-list{
  margin:.2rem 0 0;
  padding-left:1.1rem;
  color:#334155;
}
.tur-list li{
  margin:.35rem 0;
  line-height:1.55;
}
.tur-list a{
  color:#26A7CD;
  font-weight:800;
  text-decoration:none;
}
.tur-list a:hover{ text-decoration:underline; }

.tur-hint{
  font-size:.95rem;
  color:#64748b;
  margin-bottom:.45rem;
}

.tur-actions{
  display:flex;
  flex-direction:column;
  gap:.35rem;
  margin-top:.9rem;
}
.tur-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.4rem;
  padding:.75rem 1rem;
  border-radius:14px;
  background:#712712;
  color:#fff;
  text-decoration:none;
  font-weight:900;
  font-family:"Montserrat", sans-serif;
}
.tur-actions__hint{ color:#64748b; font-size:.9rem; }

.tur-card--cool{
  border-color: rgba(38,167,205,.28);
  background: rgba(38,167,205,.07);
}
.tur-card--warm{
  border-color: rgba(255,122,60,.26);
  background: rgba(255,122,60,.08);
}
.tur-card--food{
  border-color: rgba(246,200,64,.30);
  background: rgba(246,200,64,.12);
}
.tur-card--stay{
  grid-column: 1 / -1;
}

/* Camping */
.tur-section--camping .tur-section__head h2{
  color:#1D1D1B;
}

.camp-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:1rem;
}

.camp-card{
  background:#fff;
  border:1px solid rgba(0,0,0,.06);
  border-radius:18px;
  padding:1.15rem 1.15rem 1rem;
  box-shadow:0 18px 45px rgba(0,0,0,.06);
  position:relative;
}

.camp-card h3{
  font-family:"Montserrat", sans-serif;
  margin:0 0 .55rem;
  font-size:1.1rem;
  color:#1D1D1B;
}

.camp-prices{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:.8rem;
  margin-top:.2rem;
}
.camp-price{
  border-radius:14px;
  padding:.85rem .9rem;
  background: rgba(58,166,193,.12);
  border:1px solid rgba(58,166,193,.25);
}
.camp-price span{ display:block; color:#334155; font-weight:700; }
.camp-price strong{ display:block; font-size:1.25rem; font-weight:900; color:#1D1D1B; }

.camp-list{
  margin:.2rem 0 0;
  padding-left:1.1rem;
  color:#334155;
}
.camp-list li{ margin:.35rem 0; line-height:1.55; }

.camp-card--wide{ grid-column: 1 / -1; }

.camp-veh{
  border-radius:16px;
  overflow:hidden;
  border:1px solid rgba(0,0,0,.06);
}
.camp-veh__row{
  display:flex;
  justify-content:space-between;
  gap:1rem;
  padding:.75rem .9rem;
  background: rgba(110,220,95,.10);
  border-bottom:1px solid rgba(0,0,0,.06);
}
.camp-veh__row:nth-child(even){
  background: rgba(255,102,0,.08);
}
.camp-veh__row strong{
  font-weight:900;
  color:#1D1D1B;
}

.camp-alert{
  margin-top:.85rem;
  padding:.85rem 1rem;
  border-radius:16px;
  background: rgba(211,25,0,.08);
  border:1px solid rgba(211,25,0,.18);
  color:#1D1D1B;
  line-height:1.55;
  font-weight:700;
}

.camp-hours{
  display:grid;
  grid-template-columns:1fr;
  gap:.6rem;
}
.camp-hour{
  border-radius:16px;
  padding:.85rem 1rem;
  background: rgba(58,166,193,.10);
  border:1px solid rgba(58,166,193,.20);
}
.camp-tag{
  display:inline-flex;
  padding:.25rem .6rem;
  border-radius:999px;
  background: rgba(255,102,0,.15);
  border:1px solid rgba(255,102,0,.25);
  font-weight:900;
  font-size:.85rem;
  margin-bottom:.35rem;
  color:#1D1D1B;
}
.camp-hour p{ margin:0; color:#334155; line-height:1.55; font-weight:700; }

.camp-note{ margin-top:.65rem; color:#64748b; font-weight:700; }

/* Soon */
.tur-soon{
  margin-top:1.6rem;
}
.tur-soon__card{
  border-radius:20px;
  padding:1.4rem;
  background: linear-gradient(135deg, rgba(38,167,205,.12), rgba(246,200,64,.16));
  border:1px solid rgba(0,0,0,.06);
  box-shadow:0 18px 45px rgba(0,0,0,.06);
}
.tur-soon__card h2{
  font-family:"Montserrat", sans-serif;
  margin:0 0 .4rem;
  color:#172B48;
  font-weight:900;
}
.tur-soon__card p{
  margin:0 0 .8rem;
  color:#334155;
  line-height:1.7;
  font-weight:650;
}
.tur-soon__bullets{
  display:flex;
  flex-wrap:wrap;
  gap:.5rem;
}
.tur-soon__bullets span{
  padding:.35rem .6rem;
  border-radius:999px;
  background:#fff;
  border:1px solid rgba(0,0,0,.06);
  font-weight:800;
  color:#172B48;
}

/* =========================================================
   🔥 TURISMO – FIX MOBILE DATOS ÚTILES
   (última prioridad para que gane sobre todo)
========================================================= */
@media (max-width: 720px) {
  /* Forzar todo a 1 columna en mobile */
  .turismo-page .tur-row {
    grid-template-columns: 1fr !important;
    gap: .6rem;
  }
  
  .turismo-page .tur-row__actions {
    flex-direction: column !important;
    width: 100%;
    gap: .5rem;
  }
  
  .turismo-page .tur-btn {
    width: 100% !important;
    justify-content: center;
  }
  
  /* Por si acaso hay grids en turismo */
  .turismo-page .tur-grid,
  .turismo-page .camp-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 980px){
  .turismo-page .tur-hero{ grid-template-columns:1fr; }
  .turismo-page .tur-grid{ grid-template-columns:1fr; }
  .turismo-page .camp-grid{ grid-template-columns:1fr; }
}
/* =========================================================
   BANNER BICENTENARIO (index.php)
========================================================= */
.bic-banner {
  margin: 1.4rem 0 1.6rem;
}

.bic-banner__link {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background: linear-gradient(135deg, rgba(248,218,122,.22), rgba(201,151,58,.10));
  border: 1px solid rgba(201,151,58,.35);
  border-radius: 22px;
  padding: 1.2rem 1.6rem;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 18px 45px rgba(0,0,0,.07);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.bic-banner__link:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 60px rgba(0,0,0,.11);
  filter: brightness(1.02);
}

.bic-banner__logo {
  width: 90px;
  height: 90px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.12));
}

.bic-banner__body {
  flex: 1;
  min-width: 0;
}

.bic-banner__kicker {
  font-size: .82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #7a4f10;
  margin-bottom: .25rem;
}

.bic-banner__title {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: 1.45rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.15;
  margin-bottom: .2rem;
}

.bic-banner__sub {
  font-size: .9rem;
  font-weight: 700;
  color: #64748b;
}

.bic-banner__cta {
  flex: 0 0 auto;
  background: linear-gradient(135deg, #c9973a, #b87d1a);
  color: #fff;
  font-weight: 900;
  font-size: .9rem;
  padding: .7rem 1.2rem;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(0,0,0,.15);
}

@media (max-width: 600px) {
  .bic-banner__link {
    flex-wrap: wrap;
    gap: .8rem;
    padding: 1rem 1.1rem;
  }
  .bic-banner__logo { width: 70px; height: 70px; }
  .bic-banner__cta { width: 100%; text-align: center; }
}