/* =============================================
   PACATS — Hoja de estilos compartida
   ============================================= */
:root {
  --verde:     #1b5e20;
  --verde-med: #2e7d32;
  --verde-clr: #388e3c;
  --oro:       #f9a825;
  --oro-clr:   #fbc02d;
  --blanco:    #f8f5ee;
  --gris-osc:  #1a1a1a;
  --gris-med:  #2d2d2d;
  --gris-txt:  #444;
  --cb:        #1565c0;
  --ci:        #e65100;
  --ia:        #2e7d32;
  --cs:        #6a1b9a;
  --cc:        #546e7a;
  --r:         0.75rem;
  --shadow:    0 4px 24px rgba(0,0,0,.12);
  --trans:     .3s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Lora', Georgia, serif;
  background: var(--blanco);
  color: var(--gris-txt);
  line-height: 1.7;
  overflow-x: hidden;
}
h1,h2,h3,h4,h5,.nav-logo,.btn,.stat-num,.badge-label,.section-label,.section-title {
  font-family: 'Montserrat', sans-serif;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* =============================================
   NAVBAR
   ============================================= */
#navbar {
  position: fixed;
  top:0; left:0; right:0;
  z-index: 1000;
  padding: .9rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--trans), box-shadow var(--trans);
}
#navbar.scrolled, #navbar.solid {
  background: var(--gris-osc);
  box-shadow: 0 2px 20px rgba(0,0,0,.4);
}
.nav-logo {
  display: flex; align-items: center; gap: .75rem;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase;
}
.nav-logo-badge {
  width: 40px; height: 40px;
  background: var(--oro); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .6rem; font-weight: 900; color: var(--verde);
  flex-shrink: 0; border: 2px solid rgba(255,255,255,.3);
}
/* Logotipo imagen en navbar */
.nav-logo-img {
  height: 38px; width: auto;
  flex-shrink: 0; display: block;
  object-fit: contain;
  transition: opacity var(--trans);
}
.nav-logo:hover .nav-logo-img { opacity: .85; }
.nav-links { display: flex; gap: .25rem; align-items: center; }
.nav-links a {
  color: rgba(255,255,255,.85);
  font-family: 'Montserrat', sans-serif;
  font-size: .78rem; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase;
  padding: .45rem .8rem; border-radius: 4px;
  transition: color var(--trans), background var(--trans);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--oro); background: rgba(255,255,255,.07);
}
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: .4rem;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: #fff; border-radius: 2px; transition: var(--trans);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================
   PAGE HERO (subpáginas)
   ============================================= */
.page-hero {
  background: var(--gris-osc);
  padding: 7rem 2rem 3.5rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 20% 50%, rgba(27,94,32,.5) 0%, transparent 70%),
    linear-gradient(160deg, #0d1f0e 0%, #1a1a1a 100%);
}
.page-hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(249,168,37,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(249,168,37,.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.page-hero-inner {
  position: relative; z-index: 2;
  max-width: 1140px; margin: 0 auto;
}
.breadcrumb {
  font-family: 'Montserrat', sans-serif;
  font-size: .7rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: .75rem;
  display: flex; align-items: center; gap: .5rem;
}
.breadcrumb a { color: rgba(255,255,255,.4); transition: color var(--trans); }
.breadcrumb a:hover { color: var(--oro); }
.breadcrumb-sep { color: rgba(255,255,255,.2); }
.page-hero-label {
  font-family: 'Montserrat', sans-serif;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--oro);
  margin-bottom: .75rem;
  display: flex; align-items: center; gap: .75rem;
}
.page-hero-label::before {
  content: ''; width: 32px; height: 2px;
  background: var(--oro); flex-shrink: 0;
}
.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800; color: #fff;
  line-height: 1.15; letter-spacing: -.02em;
}
.page-hero p {
  font-family: 'Lora', serif;
  font-size: 1.05rem; color: rgba(255,255,255,.55);
  margin-top: .75rem; max-width: 600px;
}

/* =============================================
   SECTION SHARED
   ============================================= */
.section { padding: 5rem 2rem; }
.section-inner { max-width: 1140px; margin: 0 auto; }

.section-label {
  font-family: 'Montserrat', sans-serif;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--verde); margin-bottom: .75rem;
  display: flex; align-items: center; gap: .75rem;
}
.section-label::before {
  content: ''; width: 32px; height: 2px;
  background: var(--oro); flex-shrink: 0;
}
.section-title {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 800; color: var(--gris-osc);
  line-height: 1.15; margin-bottom: 1rem; letter-spacing: -.02em;
}
.section-subtitle {
  font-size: 1.02rem; color: #666;
  max-width: 640px; margin-bottom: 3rem;
}

.fade-in {
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visible { opacity: 1; transform: none; }

/* =============================================
   BOTONES
   ============================================= */
.btn {
  padding: .85rem 2rem; border-radius: 3px;
  font-family: 'Montserrat', sans-serif;
  font-size: .82rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  cursor: pointer; border: none;
  transition: all var(--trans); display: inline-block;
}
.btn-primary { background: var(--oro); color: var(--verde); }
.btn-primary:hover { background: var(--oro-clr); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(249,168,37,.35); }
.btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.4); }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.08); transform: translateY(-2px); }
.btn-verde { background: var(--verde); color: #fff; }
.btn-verde:hover { background: var(--verde-med); transform: translateY(-2px); }

.download-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: 'Montserrat', sans-serif;
  font-size: .78rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--verde); background: rgba(27,94,32,.07);
  border: 1.5px solid rgba(27,94,32,.3);
  padding: .6rem 1.2rem; border-radius: 4px;
  text-decoration: none; transition: all var(--trans);
}
.download-btn:hover { background: var(--verde); color: #fff; border-color: var(--verde); }
.download-btns { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }

.pdf-link {
  display: inline-flex; align-items: center; gap: .3rem;
  font-family: 'Montserrat', sans-serif;
  font-size: .65rem; font-weight: 700; letter-spacing: .05em;
  color: #c62828; background: rgba(198,40,40,.08);
  border: 1px solid rgba(198,40,40,.25);
  padding: .18rem .45rem; border-radius: 3px;
  text-decoration: none; transition: background var(--trans), color var(--trans);
  white-space: nowrap;
}
.pdf-link:hover { background: #c62828; color: #fff; }
.pdf-link svg { flex-shrink: 0; }

/* =============================================
   CHECK LIST
   ============================================= */
.check-list li {
  display: flex; gap: .75rem; align-items: flex-start;
  padding: .55rem 0; font-size: .92rem; color: #555;
  border-bottom: 1px solid #f0f0f0; line-height: 1.55;
}
.check-list li:last-child { border-bottom: none; }
.check-list li::before {
  content: '✦'; color: var(--oro);
  font-size: .75rem; flex-shrink: 0; margin-top: .2rem;
}

/* =============================================
   LOGOS INSTITUCIONES
   ============================================= */
.logos-band {
  background: #fff;
  border-top: 1px solid #e8e8e8;
  border-bottom: 1px solid #e8e8e8;
  padding: 2.75rem 2rem;
}
.logos-band-label {
  font-family: 'Montserrat', sans-serif;
  font-size: .65rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: #aaa; text-align: center;
  margin-bottom: 2rem;
}
.logos-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3.5rem;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
}
.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  transition: transform var(--trans), opacity var(--trans);
}
.logo-item:hover { transform: scale(1.06); opacity: .85; }
.logo-item img {
  max-height: 80px;
  max-width: 160px;
  width: auto;
  object-fit: contain;
  display: block;
}
/* Placeholder cuando no hay imagen */
.logo-placeholder {
  height: 72px; min-width: 130px; padding: 0 1.25rem;
  border: 1.5px dashed #ccc; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-size: .7rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: #bbb; text-align: center; line-height: 1.35;
}
@media (max-width: 768px) {
  .logos-grid { gap: 2rem; }
  .logo-item img { max-height: 60px; max-width: 130px; }
  .logo-placeholder { height: 58px; min-width: 110px; font-size: .65rem; }
}
@media (max-width: 480px) {
  .logos-grid { gap: 1.5rem; }
}

/* =============================================
   FOOTER
   ============================================= */
footer {
  background: #0d0d0d;
  color: rgba(255,255,255,.55);
  padding: 3.5rem 2rem 2rem;
}
.footer-inner { max-width: 1140px; margin: 0 auto; }
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem; padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 2rem;
}
.footer-emblem { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.footer-badge {
  width: 44px; height: 44px; background: var(--oro); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-size: .6rem; font-weight: 900; color: var(--verde);
}
.footer-brand-name {
  font-family: 'Montserrat', sans-serif;
  font-size: .82rem; font-weight: 700; color: #fff; line-height: 1.4;
}
.footer-desc { font-size: .85rem; line-height: 1.75; max-width: 340px; }
.footer-nav-title {
  font-family: 'Montserrat', sans-serif;
  font-size: .68rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.35); margin-bottom: 1rem;
}
.footer-nav a {
  display: block; font-size: .85rem;
  color: rgba(255,255,255,.55); padding: .3rem 0;
  transition: color var(--trans);
}
.footer-nav a:hover { color: var(--oro); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .78rem; flex-wrap: wrap; gap: .5rem;
}
.footer-bottom span { color: rgba(255,255,255,.3); }
.footer-oro { color: var(--oro); }

/* =============================================
   IMAGEN ZONES
   ============================================= */
.acerca-foto {
  width: 100%; height: 240px;
  border-radius: var(--r); overflow: hidden; margin-top: 1.75rem;
}
.acerca-foto img { width:100%; height:100%; object-fit:cover; display:block; border-radius:var(--r); }
.acerca-foto-placeholder {
  width:100%; height:100%;
  background: linear-gradient(135deg,#e8e8e8,#d0d0d0);
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:.5rem; border-radius:var(--r); border:2px dashed #bbb;
}
.acerca-foto-placeholder span {
  font-family:'Montserrat',sans-serif; font-size:.72rem; font-weight:600;
  color:#999; letter-spacing:.06em; text-transform:uppercase;
}
.galeria-strip { padding:0; margin:0; }
.galeria-grid { display:grid; grid-template-columns:1.4fr 1fr 1fr; height:340px; }
.galeria-item { position:relative; overflow:hidden; cursor:pointer; }
.galeria-item img { width:100%; height:100%; object-fit:cover; display:block; transition:transform .6s ease; }
.galeria-item:hover img { transform:scale(1.06); }
.galeria-item-placeholder {
  width:100%; height:100%; display:flex; flex-direction:column;
  align-items:center; justify-content:center; gap:.6rem;
}
.galeria-item:nth-child(1) .galeria-item-placeholder { background:#2a3a2a; }
.galeria-item:nth-child(2) .galeria-item-placeholder { background:#1e2e1e; }
.galeria-item:nth-child(3) .galeria-item-placeholder { background:#263326; }
.galeria-item-placeholder svg { opacity:.3; }
.galeria-item-placeholder span {
  font-family:'Montserrat',sans-serif; font-size:.7rem; font-weight:600;
  color:rgba(255,255,255,.4); letter-spacing:.1em; text-transform:uppercase;
  text-align:center; padding:0 1rem;
}
.galeria-overlay { position:absolute; inset:0; background:linear-gradient(to top,rgba(0,0,0,.55) 0%,transparent 60%); pointer-events:none; }
.galeria-caption { position:absolute; bottom:1rem; left:1rem; font-family:'Montserrat',sans-serif; font-size:.72rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:rgba(255,255,255,.85); }
.admisiones-foto { width:100%; height:220px; border-radius:var(--r); overflow:hidden; margin-bottom:1.5rem; }
.admisiones-foto img { width:100%; height:100%; object-fit:cover; object-position:center top; display:block; }
.admisiones-foto-placeholder {
  width:100%; height:100%;
  background:linear-gradient(135deg,#e8f5e9,#c8e6c9);
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:.5rem; border-radius:var(--r); border:2px dashed #a5d6a7;
}
.admisiones-foto-placeholder span {
  font-family:'Montserrat',sans-serif; font-size:.72rem; font-weight:600;
  color:#81c784; letter-spacing:.06em; text-transform:uppercase;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display:none; flex-direction:column; position:absolute; top:100%; left:0; right:0; background:var(--gris-osc); padding:1rem; gap:0; }
  .nav-links.open { display:flex; }
  .nav-links a { padding:.75rem 1.5rem; border-radius:0; }
  .hamburger { display:flex; }
  .section { padding:4rem 1.25rem; }
  .footer-top { grid-template-columns:1fr; gap:2rem; }
  .footer-bottom { flex-direction:column; text-align:center; }
  .galeria-grid { grid-template-columns:1fr; height:auto; }
  .galeria-item { height:200px; }
  .acerca-foto { height:200px; }
}
@media (max-width: 480px) {
  .download-btns { flex-direction:column; }
}
