:root {
  --azul-principal: #0b3c7c;
  --azul-secundario: #0f4fa3;
  --azul-claro: #e9f0fb;
  --texto-oscuro: #222;
}
*{box-sizing:border-box;margin:0;padding:0}
body{font-family:Arial,sans-serif;background:#f4f6f8}
.container{max-width:1200px;margin:auto;padding:0 20px}

.header{background:#fff;box-shadow:0 2px 5px rgba(0,0,0,.1);position:sticky;top:0;z-index:1000}
.nav{display:flex;align-items:center;justify-content:space-between;height:70px}

.logo{font-weight:700;color:#0b3a7a}

nav ul{display:flex;list-style:none;gap:20px}
nav a{text-decoration:none;color:#0b3a7a;font-weight:600;position:relative}
nav a::after{content:'';position:absolute;left:0;bottom:-6px;width:0;height:3px;background:#0b3a7a;transition:.3s}
nav a:hover::after{width:100%}

.has-sub {
  position: relative;
}

.submenu {
  display: none;
  position: absolute;
  top: calc(100% + 8px); /* +8px de separación */
  left: 0;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,.15);
  border-radius: 6px;
  min-width: 180px;
  z-index: 1000;
  padding: 10px 0;
}

.submenu li {
  padding: 0;
  white-space: nowrap;
}

.submenu a {
  display: block;
  padding: 10px 20px;
  color: #0b3a7a;
}

.has-sub:hover .submenu {
  display: block;
}

/* Hover de links */
.submenu a:hover {
  background: var(--azul-claro);
  color: var(--azul-principal);
}


.menu-toggle{display:none;background:none;border:none;font-size:22px}

.btn{padding:10px 16px;border-radius:4px;text-decoration:none}
.btn-primary{background:#0b3a7a;color:#fff}

.hero{height:420px;background:#0b3a7a;color:#fff;display:flex;align-items:center;justify-content:center}
.hero-overlay{text-align:center}

.quick-info{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin:40px auto;max-width:1200px}
.card{background:#fff;padding:25px;border-radius:6px;text-align:center;box-shadow:0 5px 15px rgba(0,0,0,.08)}
.card i{font-size:28px;color:#0b3a7a;margin-bottom:10px}
.highlight{background:#0b3a7a;color:#fff}
.highlight i{color:#fff}

.footer{text-align:center;padding:30px;background:#0b3a7a;color:#fff}

@media (max-width: 900px){

  .menu-toggle{
    display:block;
  }

  nav{
    position:absolute;
    top:70px;
    left:0;
    width:100%;
    background:#fff;
    display:none;
    box-shadow: 0 10px 25px rgba(0,0,0,.15);
  }

  nav.open{
    display:block;
  }

  /* UL alineado como container */
  nav ul{
    max-width:1200px;
    margin:0 auto;
    padding:10px 20px;
    display:flex;
    flex-direction:column;
    gap:0;
  }

  nav li{
    width:100%;
    border-bottom:1px solid #eee;
  }

  nav a{
    display:block;
    padding:14px 6px;
    font-size:16px;
  }

  /* Submenu mobile */
  .has-sub:hover .submenu{
    display:none;
  }

  .submenu{
    display:none;
    position:static;
    background:transparent;
    box-shadow:none;
    padding-left:14px;
  }

  .has-sub.open .submenu{
    display:block;
  }

  .submenu a{
    font-size:15px;
    padding:10px 6px;
  }

  /* Quick info ya lo manejás abajo */
}




/* ===== HERO SLIDER MEJORADO ===== */

.hero-slider {
  position: relative;
  width: 100%;
  height: 520px;
  overflow: hidden;
}

.slides {
  position: absolute;
  inset: 0;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out, transform 6s linear;
  transform: scale(1);
}

.slide.active {
  opacity: 1;
  transform: scale(1.08);
}

.hero-overlay {
  position: relative;
  z-index: 2;
  height: 100%;
  background: linear-gradient(
    rgba(11,60,120,.75),
    rgba(11,60,120,.55)
  );
  display: flex;
  align-items: center;
}

.hero-overlay h1 {
  color: #fff;
  font-size: 46px;
  font-weight: 800;
}

.hero-overlay p {
  color: #fff;
  font-size: 20px;
  margin-top: 10px;
}

@media (max-width: 768px) {
  .hero-slider {
    height: 340px;
  }

  .hero-overlay h1 {
    font-size: 28px;
  }

  .hero-overlay p {
    font-size: 16px;
  }
}
/* ===== NOTICIAS ===== */

.news h2 {
  font-size: 32px;
  margin-bottom: 30px;
  color: var(--blue);
}

.news-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,.12);
  transition: transform .3s ease, box-shadow .3s ease;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,.18);
}

.news-card h3 {
  padding: 15px;
  font-size: 18px;
}

.news-card p {
  padding: 0 15px 15px;
  font-size: 15px;
}

.news-card a {
  margin: 0 15px 15px;
  display: inline-block;
  font-weight: bold;
  color: var(--blue);
}
/* ===== ACTIVIDADES ===== */

.activities h2 {
  font-size: 32px;
  margin-bottom: 30px;
  color: var(--blue);
}

.activity-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
  transition: transform .3s ease, box-shadow .3s ease;
}

.activity-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 35px rgba(0,0,0,.18);
}

.activity-card img {
  height: 180px;
}

.activity-card a {
  display: inline-block;
  margin-bottom: 15px;
  font-weight: bold;
  color: var(--blue);
}
/* ===== FOOTER ===== */

.footer {
  background: linear-gradient(#0b3c7d, #07264f);
  color: #fff;
  padding: 60px 0 20px;
}

.footer-grid h4 {
  font-size: 18px;
  margin-bottom: 12px;
}

.footer-grid p,
.footer-grid li {
  font-size: 14px;
  opacity: .9;
}

.footer-grid a {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.2);
  margin-top: 30px;
  padding-top: 15px;
  font-size: 13px;
  opacity: .8;
}

/* =========================
   QUICK INFO
========================= */
.quick-info {
  margin-top: -80px;
  margin-bottom: 80px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  position: relative;
  z-index: 10;
}

.quick-info .card {
  background: #ffffff;
  border-radius: 6px;
  padding: 28px;
  box-shadow: 0 18px 40px rgba(0,0,0,.2);
  transition: transform .35s ease, box-shadow .35s ease;
}

.quick-info .card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 70px rgba(0,0,0,.3);
}

.quick-info .highlight {
  background: linear-gradient(135deg, #0b3c78, #1e5fa3);
  color: #fff;
}

.quick-info .info-icon {
  font-size: 42px;
  color: var(--azul-principal);
  margin-bottom: 18px;
}

.quick-info h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--texto-oscuro);
}

.quick-info p {
  color: #555;
  font-size: 15px;
}

.quick-info .highlight {
  background: linear-gradient(135deg, var(--azul-principal), var(--azul-secundario));
  color: #fff;
}

.quick-info .highlight h3,
.quick-info .highlight p,
.quick-info .highlight .info-icon {
  color: #fff;
}

/* =========================
   NEWS
========================= */
.news {
  padding: 0 0 90px;
}

.news h2 {
  font-size: 28px;
  margin-bottom: 30px;
  color: #0b3c78;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.news-card {
  background: #ffffff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(0,0,0,.18);
  transition: transform .35s ease, box-shadow .35s ease;
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 60px rgba(0,0,0,.3);
}

.news-card a {
  display: inline-block;
  margin: 15px;
  background: #0b3c78;
  color: #fff;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
}

.news-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.news-card h3 {
  padding: 20px 20px 5px;
  font-size: 20px;
  color: var(--texto-oscuro);
}

.news-card p {
  padding: 0 20px 20px;
  color: #555;
  font-size: 15px;
}


/* =========================
   ACTIVITIES
========================= */
.activities {
  background: #ffffff;
  padding: 90px 0;
}

.activities-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}

.activities h2 {
  font-size: 28px;
  margin-bottom: 30px;
  color: #0b3c78;
}


.activity-card {
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
  overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease;
}

.activity-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 55px rgba(0,0,0,.3);
}

.activity-card a {
  display: inline-block;
  margin-bottom: 15px;
  background: #0b3c78;
  color: #fff;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 13px;
}

.activity-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.activity-card h3 {
  margin: 18px 0;
  font-size: 20px;
}


/* =========================
   FOOTER
========================= */
.footer {
  background: linear-gradient(135deg, #072246, #0b3c78);
  color: #fff;
  padding: 70px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 40px;
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  font-size: 14px;
  opacity: .8;
}

.footer-logo {
  width: 90px;
  margin-bottom: 15px;
}

.footer h4 {
  margin-bottom: 15px;
  font-size: 18px;
}

.footer ul {
  list-style: none;
  padding: 0;
}

.footer ul li {
  margin-bottom: 10px;
}

.footer ul li a {
  color: #c7d6ee;
  text-decoration: none;
  font-size: 14px;
}

.footer ul li a:hover {
  color: #fff;
}

.footer p {
  font-size: 14px;
  color: #c7d6ee;
}

/* ===== ESPACIADO ENTRE SECCIONES ===== */

section {
  padding-top: 80px;
  padding-bottom: 80px;
}

.container + section {
  margin-top: 40px;
}
/* ===== TITULARES DE SECCIONES ===== */

h2 {
  font-size: 34px;
  font-weight: 700;
  text-align: center;
  color: var(--azul-principal);
  margin-bottom: 30px;
  line-height: 1.2;
}


/* ===== SEPARADORES ===== */



quick-info {
  margin-top: -60px;      /* sigue “pisando” el hero */
  margin-bottom: 100px;   /* aire antes de noticias */
  position: relative;
  z-index: 5;
}

.news {
  background: #f5f7fa;
  padding: 80px 0;
}
/* ===== NEWS CARDS AJUSTADO ===== */

.news-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,.1);
  transition: transform .35s ease, box-shadow .35s ease;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(0,0,0,.18);
}
/* ===== ACTIVITIES REFINADA ===== */

.activity-card {
  border: 2px solid #e1e4e9;
  transition: transform .3s ease, border-color .3s ease;
}

.activity-card:hover {
  transform: translateY(-6px);
  border-color: var(--azul-principal);
}
/* ===== FOOTER AJUSTES ===== */

.footer-grid > div:not(:last-child) {
  border-right: 1px solid rgba(255,255,255,.2);
  padding-right: 20px;
}

.footer-grid > div:not(:first-child) {
  padding-left: 20px;
}

.footer ul li {
  margin-bottom: 8px;
  font-size: 14px;
}

.footer ul li a:hover {
  text-decoration: underline;
}
a {
  transition: color .25s ease, background .25s ease;
}
@media (max-width: 900px) {
  section {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .news-grid,
  .activities-grid {
    gap: 20px;
  }
  
  .quick-info {
    margin-bottom: 60px;
  }

  .news {
    padding: 60px 0;
  }
}

body {
  background:
    radial-gradient(circle at top, #1e4f8f 0%, #0b2f5f 60%, #072246 100%);
  color: #0b2f5f;
}
.main-wrapper {
  background: #f5f7fa;
  margin: 40px auto;
  border-radius: 6px;
  box-shadow: 0 40px 80px rgba(0,0,0,.35);
  overflow: hidden;
}

/* =========================
   QUICK INFO – RESPONSIVE FIX
========================= */

/* Tablets */
@media (max-width: 1024px) {
  .quick-info {
    grid-template-columns: repeat(2, 1fr);
    margin-top: -60px;
    gap: 24px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .quick-info {
    grid-template-columns: 1fr;
    margin-top: 0;
    margin-bottom: 60px;
    gap: 20px;
  }

  .quick-info .card {
    padding: 22px;
    box-shadow: 0 12px 30px rgba(0,0,0,.18);
  }

  .quick-info .card:hover {
    transform: none;
    box-shadow: 0 12px 30px rgba(0,0,0,.18);
  }

  .quick-info .info-icon {
    font-size: 36px;
    margin-bottom: 14px;
  }

  .quick-info h3 {
    font-size: 18px;
  }

  .quick-info p {
    font-size: 14px;
  }
}
/* =========================
   QUICK INFO – MOBILE ALIGN WITH HERO
========================= */

@media (max-width: 768px) {

  /* Hero ajuste inferior */
  .hero {
    padding-bottom: 40px;
  }

  /* Quick info alineado al hero */
  .quick-info {
    margin-top: -20px;
    padding: 0 16px;
  }

  /* Cards centradas */
  .quick-info .card {
    text-align: center;
  }

  .quick-info .info-icon {
    margin-left: auto;
    margin-right: auto;
  }
}
/* =========================
   HEADER SOCIAL ICONS
========================= */

.header-social {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin-bottom: 6px;
}

.header-social a {
  color: var(--blue);
  font-size: 16px;
  transition: color .3s ease, transform .3s ease;
}

.header-social a:hover {
  color: #1e5fa3;
  transform: translateY(-2px);
}

/* Mobile: ocultar redes */
@media (max-width: 900px) {
  .header-social {
    display: none;
  }
}
/* =========================
   QUICK INFO – BOTONES
========================= */

/* Links laterales (Ver detalles / Ver calendario) */
.quick-info .link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  padding: 8px 18px;
  border: 2px solid var(--azul-principal);
  border-radius: 20px;
  color: var(--azul-principal);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: 
    background .25s ease,
    color .25s ease,
    transform .25s ease,
    box-shadow .25s ease;
}

.quick-info .link:hover {
  background: var(--azul-principal);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(11,60,124,.35);
}

/* Botón principal – Hacete socio */
.quick-info .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  padding: 10px 26px;
  background: #ffffff;
  color: var(--azul-principal);
  border-radius: 22px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(0,0,0,.25);
  transition:
    background .25s ease,
    color .25s ease,
    transform .25s ease,
    box-shadow .25s ease;
}

/* Hover botón socio */
.quick-info .btn-secondary:hover {
  background: var(--azul-claro);
  color: var(--azul-principal);
  transform: translateY(-3px);
  box-shadow: 0 18px 35px rgba(0,0,0,.35);
}


.news {
  background: transparent;   /* IMPORTANTE */
  padding: 0 0 90px;
}


.news {
  position: relative;
  padding: 80px 0 90px;
  background: linear-gradient(
    to bottom,
    #f7f9fc 0%,
    #f4f6fa 100%
  );
}
.activities {
  padding: 90px 0;
  background: #ffffff;
}
.news::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.04),
    transparent
  );
}
@media (max-width: 768px) {
  .news,
  .activities {
    padding: 60px 0;
  }
}

/* Tablets */
@media (max-width: 1200px) {
  .activities-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Mobile */
@media (max-width: 768px) {
  .activities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .activities-grid {
    grid-template-columns: 1fr;
  }
}
.activity-card {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,.12);
  transition: transform .3s ease, box-shadow .3s ease;
}

.activity-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
}

.activity-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

/* =========================
   NEWS – GRID & CARDS
========================= */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.news-card {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(0,0,0,.18);
  display: flex;
  flex-direction: column;
  transition: transform .35s ease, box-shadow .35s ease;
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 60px rgba(0,0,0,.3);
}

.news-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.news-card h3 {
  padding: 20px 20px 10px;
  font-size: 20px;
  color: var(--texto-oscuro);
}

.news-card p {
  padding: 0 20px 20px;
  font-size: 15px;
  color: #555;
  flex-grow: 1;
}

.news-card a {
  display: inline-block;
  margin: 0 20px 20px;
  background: #0b3c78;
  color: #fff;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
  text-align: center;
  transition: background .25s ease, transform .25s ease;
}

.news-card a:hover {
  background: #0f4fa3;
  transform: translateY(-2px);
}

/* =========================
   ACTIVITIES – GRID & CARDS
========================= */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}

/* Ajustes responsive */
@media (max-width: 1200px) {
  .activities-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .activities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .activities-grid {
    grid-template-columns: 1fr;
  }
}

.activity-card {
  background: #ffffff;
  border-radius: 6px;
  overflow: hidden;
  text-align: center;
  border: 2px solid #e1e4e9;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
  display: flex;
  flex-direction: column;
}

.activity-card:hover {
  transform: translateY(-6px);
  border-color: var(--azul-principal);
  box-shadow: 0 25px 55px rgba(0,0,0,.3);
}

.activity-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.activity-card h3 {
  margin: 18px 0;
  font-size: 20px;
  flex-shrink: 0;
}

.activity-card a {
  display: inline-block;
  margin: 10px auto 15px;
  background: #0b3c78;
  color: #fff;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 13px;
  text-align: center;
  flex-shrink: 0;
}

/* =========================
   ACTIVITY DETAIL
========================= */

.activity-hero {
  position: relative;
  height: 420px;
  background-size: cover;
  background-position: center;
}

.activity-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(11,60,124,.85),
    rgba(11,60,124,.55)
  );
  display: flex;
  align-items: flex-end;
}

.activity-hero h1 {
  color: #fff;
  font-size: 42px;
  margin-bottom: 40px;
}

/* CONTENIDO */
.activity-content {
  background: #f4f6f9;
  padding: 80px 0;
}

.activity-text {
  max-width: 800px;
  margin: auto;
  font-size: 17px;
  line-height: 1.7;
  color: #333;
}

.activity-text p {
  margin-bottom: 20px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .activity-hero {
    height: 300px;
  }

  .activity-hero h1 {
    font-size: 30px;
    margin-bottom: 25px;
  }
}
/* =========================
   PAGE HERO (GENÉRICO)
========================= */

.page-hero {
  position: relative;
  height: 360px;
  background-size: cover;
  background-position: center;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(11,60,124,.85),
    rgba(11,60,124,.6)
  );
  display: flex;
  align-items: flex-end;
}

.page-hero h1 {
  color: #fff;
  font-size: 40px;
}

.page-hero p {
  color: #e9f0fb;
  margin-bottom: 40px;
}

/* =========================
   AUTHORITIES
========================= */

.authorities {
  background: #f4f6f9;
  padding: 80px 0;
}

.authorities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.authority-card {
  background: #fff;
  border-radius: 8px;
  text-align: center;
  padding: 30px 20px;
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
  transition: transform .3s ease, box-shadow .3s ease;
}

.authority-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 45px rgba(0,0,0,.18);
}

.authority-card img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 15px;
}

.authority-card h3 {
  font-size: 18px;
  margin-bottom: 6px;
  color: var(--azul-principal);
}

.authority-card span {
  font-size: 14px;
  color: #666;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .authorities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .authorities-grid {
    grid-template-columns: 1fr;
  }

  .page-hero {
    height: 280px;
  }

  .page-hero h1 {
    font-size: 28px;
  }
}
/* AUTORIDADES */
.authorities {
  background: #f4f6f9;
  padding: 80px 0;
}

.authorities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

/* Cada bloque generado por strong */
.authorities-grid strong {
  display: block;
  background: var(--azul-principal);
  color: #fff;
  padding: 14px;
  border-radius: 6px 6px 0 0;
  font-size: 16px;
  letter-spacing: .5px;
  margin-top: 20px;
}

/* Nombres debajo */
.authorities-grid strong + br {
  display: none;
}

/* Nombres */
.authorities-grid {
  font-size: 16px;
  color: #333;
}

/* Card fake */
.authorities-grid strong {
  box-shadow: 0 10px 25px rgba(0,0,0,.12);
}

.authorities-grid strong::after {
  content: "";
  display: block;
  height: 1px;
  background: rgba(255,255,255,.3);
  margin-top: 10px;
}

/* Texto debajo del título */
.authorities-grid strong + br + * {
  display: block;
}

/* Separación visual */
.authorities-grid br + br {
  display: block;
  margin-bottom: 25px;
}
/* =========================
   HISTORIA
========================= */

.history {
  background: #f4f6f9;
  padding: 80px 0;
}

.history-content {
  max-width: 900px;
  margin: auto;
  background: #fff;
  padding: 50px 60px;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0,0,0,.15);
  font-size: 17px;
  line-height: 1.75;
  color: #333;
}

/* Títulos que vengan en strong */
.history-content strong {
  display: block;
  font-size: 24px;
  color: var(--azul-principal);
  margin: 45px 0 15px;
  line-height: 1.3;
}

/* Primer título sin margen arriba */
.history-content strong:first-child {
  margin-top: 0;
}

/* Párrafos */
.history-content br + br {
  display: block;
  margin-bottom: 18px;
}

/* Separador elegante (sin líneas feas) */
.history-content strong::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--azul-principal);
  margin-top: 12px;
  border-radius: 2px;
}

/* Links dentro del texto */
.history-content a {
  color: var(--azul-principal);
  font-weight: 600;
  text-decoration: none;
}

.history-content a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .history-content {
    padding: 30px 25px;
    font-size: 16px;
  }

  .history-content strong {
    font-size: 20px;
  }
}
/* =========================
   NEWS SINGLE PAGE
========================= */

.news-single-page {
  background: #f5f7fa;
}

/* Card principal */
.news-single {
  padding: 80px 0;
}

.news-single-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0,0,0,.18);
  overflow: hidden;
}

/* Meta */
.news-single-meta {
  padding: 20px 30px;
  font-size: 14px;
  color: #6b7280;
  border-bottom: 1px solid #e5e7eb;
}

/* Imagen */
.news-single-image img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

/* Contenido */
.news-single-content {
  padding: 40px 40px 50px;
}

.news-single-content h2 {
  font-size: 32px;
  color: var(--azul-principal);
  margin-bottom: 10px;
}

.news-single-content h3 {
  font-size: 18px;
  font-weight: 400;
  color: #4b5563;
  margin-bottom: 30px;
}

/* Texto */
.news-single-text {
  font-size: 16px;
  line-height: 1.7;
  color: #374151;
}

.news-single-text p {
  margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 768px) {

  .news-single {
    padding: 50px 0;
  }

  .news-single-content {
    padding: 25px;
  }

  .news-single-content h2 {
    font-size: 24px;
  }

  .news-single-content h3 {
    font-size: 16px;
  }

  .news-single-image img {
    max-height: 320px;
  }
}
/* =========================
   CONTACT PAGE
========================= */

.contact-page {
  background: #f5f7fa;
}

/* GRID */
.contact-section {
  padding: 90px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: stretch;
}

/* INFO CARD */
.contact-info-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 45px;
  box-shadow: 0 20px 50px rgba(0,0,0,.18);
}

.contact-info-card h2 {
  font-size: 28px;
  color: var(--azul-principal);
  margin-bottom: 20px;
}

.contact-info-card p {
  font-size: 16px;
  line-height: 1.7;
  color: #374151;
  margin-bottom: 35px;
}

/* DATOS */
.contact-details div {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  font-size: 15px;
  color: #1f2937;
}

.contact-details i {
  font-size: 18px;
  color: var(--azul-principal);
}

/* MAPA */
.contact-map-card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,.18);
}

.contact-map-card iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-info-card {
    padding: 30px;
  }

  .contact-section {
    padding: 60px 0;
  }
}
.contact-page .contact-box {
  background: #fff;
  padding: 35px;
}

.contact-page h2 {
  margin-bottom: 15px;
  color: var(--azul-principal);
}

.contact-page p {
  color: #555;
}

.receipt-row {
  padding: 12px 0;
  border-bottom: 1px solid #e5e5e5;
}
.modern-input {
  margin-bottom: 25px;
}

.modern-input label {
  font-weight: 600;
  margin-bottom: 6px;
  color: #0b3c7c;
}

.modern-input input {
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 15px;
  border: 1px solid #d0d7e2;
  box-shadow: none;
  transition: all .2s ease;
}

.modern-input input:focus {
  border-color: #0b3c7c;
  box-shadow: 0 0 0 2px rgba(11,60,124,.12);
}
.deuda-box {
  margin: 20px 0 30px;
  padding: 18px 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0b3c7c, #0f4fa3);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.deuda-box span {
  font-size: 14px;
  opacity: .85;
}

.deuda-box strong {
  font-size: 22px;
  font-weight: 700;
}
.receipt-card {
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 14px;
  border: 1px solid #e3e7ef;
}

.receipt-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.receipt-header span:first-child {
  font-weight: 600;
  color: #0b3c7c;
}

.receipt-amount {
  font-weight: 700;
  color: #333;
}

.receipt-footer .btn {
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
}
.btn-primary {
  border-radius: 22px;
  padding: 10px 20px;
  font-weight: 600;
}
.register-page {
  background: #f6f8fb;
}

.register-section {
  padding: 80px 0;
}

.register-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.register-info h2 {
  color: var(--azul-principal);
  margin-bottom: 20px;
}

.register-info p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 25px;
}

.register-benefits {
  list-style: none;
  padding: 0;
}

.register-benefits li {
  margin-bottom: 12px;
  font-weight: 500;
}

.register-form-box {
  background: #fff;
  padding: 40px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

.register-form-box h3 {
  margin-bottom: 5px;
}

.form-subtitle {
  color: #666;
  margin-bottom: 25px;
}

.form-group {
  margin-bottom: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

input, textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 15px;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.form-label {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
  color: #555;
}

.thankyou-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 50px 40px;
  box-shadow: 0 15px 40px rgba(0,0,0,.08);
}

.thankyou-icon {
  font-size: 70px;
  margin-bottom: 20px;
}

.thankyou-icon.success {
  color: #0b3c7c;
}

.thankyou-title h2,
.thankyou-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 15px;
}

.thankyou-description {
  font-size: 16px;
  color: #555;
  margin-bottom: 25px;
}

.thankyou-box {
  background: #f4f7fb;
  border-radius: 12px;
  padding: 20px;
  font-weight: 600;
  color: #0b3c7c;
  margin-bottom: 30px;
}

.btn-primary {
  display: inline-block;
  background: #0b3c7c;
  color: #fff;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: all .3s ease;
}

.btn-primary:hover {
  background: #09336a;
  color: #fff;
}
.gallery-page {
  background: #f6f8fc;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 25px;
}

.gallery-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  transition: transform .3s ease, box-shadow .3s ease;
}

.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(0,0,0,.12);
}

.gallery-image {
  position: relative;
  overflow: hidden;
}

.gallery-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform .4s ease;
}

.gallery-card:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,60,124,.75), rgba(11,60,124,.15));
  opacity: 0;
  transition: opacity .3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

.gallery-actions {
  display: flex;
  gap: 15px;
}

.gallery-actions a {
  width: 48px;
  height: 48px;
  background: #fff;
  color: #0b3c7c;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all .3s ease;
}

.gallery-actions a:hover {
  background: #0b3c7c;
  color: #fff;
}

.gallery-info {
  padding: 18px;
  text-align: center;
}

.gallery-info h4 {
  font-size: 16px;
  font-weight: 600;
  color: #222;
  margin: 0;
}
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: #fff;
  width: 90%;
  max-width: 700px;
  max-height: 80vh;
  overflow-y: auto;
  padding: 2rem;
  border-radius: 12px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  border: none;
  background: none;
  cursor: pointer;
}

.agenda-item {
  padding: 1rem 0;
  border-bottom: 1px solid #eee;
}

.agenda-item h4 {
  margin-bottom: .3rem;
}

/* ===============================
   INSCRIPCIÓN A ACTIVIDADES
   Scope: .register-page
================================ */

.register-page .form-section {
  padding: 4rem 0;
  background: #f5f7fb;
}

.register-page .form-card {
  max-width: 860px;
  margin: auto;
  background: #ffffff;
  border-radius: 18px;
  padding: 3rem;
  box-shadow: 0 20px 50px rgba(0,0,0,.08);
}

.register-page .form-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.register-page .form-header h2 {
  font-size: 2rem;
  color: var(--azul-principal);
  margin-bottom: .5rem;
}

.register-page .form-header p {
  color: #666;
  font-size: 1rem;
}

/* Dividers */
.register-page .form-divider {
  margin: 2.5rem 0 1.2rem;
  font-weight: 700;
  color: var(--azul-principal);
  font-size: 1.05rem;
  border-left: 4px solid var(--azul-secundario);
  padding-left: .8rem;
}

/* Grid */
.register-page .form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}

@media (max-width: 768px) {
  .register-page .form-row {
    grid-template-columns: 1fr;
  }
}

/* Fields */
.register-page .form-group {
  margin-bottom: 1.4rem;
}

.register-page .form-group label {
  display: block;
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: .4rem;
  color: #333;
}

.register-page .form-group input,
.register-page .form-group select,
.register-page .form-group textarea {
  width: 100%;
  padding: .9rem 1rem;
  border-radius: 14px;
  border: 1px solid #dce1ec;
  font-size: .95rem;
  background: #fff;
  transition: all .25s ease;
}

.register-page .form-group input:focus,
.register-page .form-group select:focus,
.register-page .form-group textarea:focus {
  outline: none;
  border-color: var(--azul-secundario);
  box-shadow: 0 0 0 3px rgba(15,79,163,.15);
}

/* Radios */
.register-page .radio-group {
  display: grid;
  gap: .8rem;
}

.register-page .radio-group label {
  display: flex;
  align-items: center;
  gap: .6rem;
  background: #f1f4fb;
  padding: .8rem 1rem;
  border-radius: 12px;
  cursor: pointer;
  font-size: .9rem;
}

.register-page .radio-group input {
  accent-color: var(--azul-principal);
}

/* Checkbox */
.register-page .checkbox-group label {
  display: flex;
  gap: .6rem;
  font-size: .9rem;
  background: #f9fafc;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid #e1e5f0;
}

.register-page .checkbox-group input {
  accent-color: var(--azul-principal);
}

/* Button */
.register-page .btn-primary {
  width: 100%;
  margin-top: 2.5rem;
  padding: 1rem;
  border-radius: 16px;
  border: none;
  background: linear-gradient(135deg, var(--azul-principal), var(--azul-secundario));
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .3s ease;
}

.register-page .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(11,60,124,.25);
}

/* Hero override seguro */
.register-page .page-hero {
  min-height: 260px;
}

.register-page .page-hero h1 {
  font-size: 2.2rem;
}

.register-page .page-hero p {
  font-size: 1rem;
  opacity: .9;
}
