:root {
  --primary: #0f4c81;
  --secondary: #0d8f8f;
  --accent: #f0b429;
  --bg: #f4f8fc;
  --text: #233647;
  --card: #ffffff;
  --border: #dce7f3;
  --shadow: 0 10px 30px rgba(15, 76, 129, 0.12);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  background: linear-gradient(180deg, #f7fbff 0%, var(--bg) 100%);
  color: var(--text);
  line-height: 1.7;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: none; opacity: 0.95; }
img { max-width: 100%; display: block; }

.site-header {
  background: linear-gradient(90deg, var(--primary), #1f77c8 70%, #2c97df);
  color: #fff;
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.brand img { height: 72px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.site-nav a {
  color: #fff;
  font-weight: 600;
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  transition: background 0.2s ease;
}
.site-nav a:hover { background: rgba(255,255,255,0.15); }
.menu-toggle { display: none; background: transparent; border: 0; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 3px; background: #fff; margin: 4px 0; border-radius: 3px; }
.nav-admin-link { display: none; }

/* Oculto por defecto (desktop) */
.mobile-only {
    display: none;
}

/* Visible solo en móviles */
@media (max-width: 768px) {
    .mobile-only {
        display: inline-block;
    }
}

.page-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.2rem;
  display: grid;
  grid-template-columns: 2.2fr 0.8fr;
  gap: 1rem;
}
.page-grid.single-page { grid-template-columns: 2fr 0.8fr; }
.main-content { display: flex; flex-direction: column; gap: 1rem; }
.card, .sidebar-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
}
.card-header { display: flex; align-items: center; gap: 0.65rem; margin-bottom: 0.6rem; }
.card-header img { height: 24px; width: 24px; }
.card h2, .card h1 { margin: 0; font-size: 1.1rem; color: var(--primary); }
.hero-section {
  background: linear-gradient(135deg, #eef7ff 0%, #f9fcff 100%);
  border-radius: 18px;
  padding: 1rem;
  box-shadow: var(--shadow);
}
.hero-static {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
  align-items: center;
}
.hero-copy h1 {
  margin: 0 0 0.5rem;
  color: var(--primary);
  font-size: clamp(1.4rem, 2.3vw, 2rem);
}
.hero-copy p {
  margin: 0 0 0.8rem;
  color: #45606f;
}
.hero-static img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 14px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}
.feature-card {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 0.95rem;
  background: linear-gradient(90deg, #ffffff, #f2f7fc);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--primary);
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(15, 76, 129, 0.08);
}
.feature-card img { height: 28px; width: 28px; }
.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(15, 76, 129, 0.12);
  text-decoration: none;
}
.button {
  display: inline-block;
  background: linear-gradient(90deg, var(--secondary), #14a3a3);
  color: #fff;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-weight: 600;
}
.button:hover { opacity: 0.96; text-decoration: none; }
.list-stack { padding-left: 1rem; }
.list-stack li { margin-bottom: 0.45rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.85rem; margin: 0.85rem 0; }
.gallery-grid img { border-radius: 12px; height: 160px; object-fit: cover; }
.contact-form { display: flex; flex-direction: column; gap: 0.8rem; }
.contact-form label { display: flex; flex-direction: column; gap: 0.35rem; font-weight: 600; }
.contact-form input,
.contact-form textarea {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.7rem;
  font: inherit;
  background: #fbfdff;
}
.sidebar { display: flex; flex-direction: column; gap: 1rem; }
.sidebar-card ul { padding-left: 1rem; }
.sidebar-card iframe { width: 100%; min-height: 220px; border: 0; border-radius: 12px; }
.facebook-embed-card h3 { margin-top: 0; }
.facebook-embed { overflow: hidden; border-radius: 12px; }
.facebook-embed iframe { min-height: 500px; }
.facebook-embed-link {
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
  text-align: center;
}
.sidebar-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.sidebar-visual img {
  max-height: 120px;
  width: auto;
  margin: 0 auto;
}
.logo-stack {
  flex-direction: column;
  gap: 1rem;
}
.qr-box img {
  max-height: 180px;
  width: auto;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.4rem;
  font-weight: 700;
}
.social-link img { height: 24px; width: 24px; }

/* ===========================
   FOOTER INSTITUCIONAL
   =========================== */

.site-footer {
background: linear-gradient(
  180deg,
  #f4f7fa 0%,
  #e9eef3 100%
);

border-top: 1px solid rgba(0, 0, 0, 0.08);
text-align: center;
padding: 2rem 1.25rem 1.25rem;
color: #526273;
font-size: 0.95rem;
}

.site-footer .footer-content {
max-width: 960px;
margin: 0 auto;
}
  
/* Información institucional */
.site-footer .footer-info {
  margin-bottom: 1.25rem;
}
    
.site-footer .footer-title {
  color: var(--primary);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.site-footer p {
  margin: 0.35rem 0;
  line-height: 1.5;
}

/* Links */
.site-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.2rem 0;
}

.site-footer .footer-links a {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.65);
  border: 1px solid rgba(0,0,0,0.08);
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  transition:
    background .25s ease,
    color .25s ease,
    transform .25s ease;
}

.site-footer .footer-links a:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

/* Copyright */
.site-footer .footer-copy {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0,0,0,0.08);
  font-size: 0.85rem;
  color: #718096;
}

/* Responsive */
@media (max-width: 600px) {
  .site-footer {
    padding: 1.5rem 1rem 1rem;
  }

  .site-footer .footer-links {
    flex-direction: column;
    align-items: center;
  }

  .site-footer .footer-links a {
    width: min(100%, 280px);
    justify-content: center;
  }
}

@media (max-width: 900px) {
  .page-grid { grid-template-columns: 1fr; }
  .hero-slider img { height: 260px; }
}
/* Findal Footer */


@media (max-width: 700px) {
  .site-header { flex-wrap: wrap; padding: 0.9rem 1rem; }
  .menu-toggle { display: inline-block; }
  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    padding-top: 0.5rem;
  }
  .site-nav.open { display: flex; }
  .nav-admin-link {
    display: inline-block;
    margin-top: 0.6rem;
    text-align: center;
  }
  .page-grid, .page-grid.single-page { grid-template-columns: 1fr; }
  .hero-static { grid-template-columns: 1fr; }
  .hero-static img { height: 210px; }
  .feature-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
}
