/* ============================================================
   I.E. Parroquial "Santísima Cruz" - Chulucanas
   Main Stylesheet - Premium Design
   Paleta: Azul marino #0A2463, Azul vivo #1E4DB7, Acento #F0A500
   Fuentes: Playfair Display + Lato
   ============================================================ */

/* ============================================================
   VARIABLES CSS
   ============================================================ */
:root {
  /* Azules principales */
  --red-deep:    #061840;
  --red-primary: #0A2463;
  --red-mid:     #1338BE;
  --red-bright:  #1E4DB7;

  /* Acento dorado-naranja */
  --gold:        #F0A500;
  --gold-light:  #FFB830;
  --gold-dark:   #C98A00;

  /* Neutros */
  --white:       #FFFFFF;
  --off-white:   #F4F7FC;
  --gray-light:  #EDF2FA;
  --gray:        #8898AA;
  --gray-dark:   #3D4966;
  --black:       #0D1B2A;
  --text:        #1A2B45;
  --text-light:  #5A6A82;

  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-body:    'Lato', 'Helvetica Neue', sans-serif;
  --font-accent:  'Cinzel', 'Times New Roman', serif;

  --shadow-sm:  0 2px 8px rgba(10,36,99,0.08);
  --shadow-md:  0 6px 24px rgba(10,36,99,0.14);
  --shadow-lg:  0 16px 48px rgba(10,36,99,0.20);
  --shadow-red: 0 8px 32px rgba(10,36,99,0.28);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: inherit; text-decoration: none; transition: var(--transition); }
ul { list-style: none; }

/* ============================================================
   TIPOGRAFÍA
   ============================================================ */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--black);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; }
p  { margin-bottom: 1rem; }

/* ============================================================
   CONTENEDOR
   ============================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================================
   BOTONES
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 2rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}
.btn-primary {
  background: var(--red-primary);
  color: var(--white);
  border-color: var(--red-primary);
}
.btn-primary:hover {
  background: var(--red-bright);
  border-color: var(--red-bright);
  transform: translateY(-2px);
  box-shadow: var(--shadow-red);
}
.btn-gold {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
}
.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212,175,55,.4);
}
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline-white:hover {
  background: var(--white);
  color: var(--red-primary);
}
.btn-outline-red {
  background: transparent;
  color: var(--red-primary);
  border-color: var(--red-primary);
}
.btn-outline-red:hover {
  background: var(--red-primary);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-full { width: 100%; justify-content: center; }
.btn-text {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--red-primary);
  font-weight: 700;
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.btn-text:hover { color: var(--red-bright); gap: .7rem; }

/* ============================================================
   SECCIONES
   ============================================================ */
.section { padding: 5rem 0; }
.bg-gray  { background: var(--gray-light); }
.bg-dark-red { background: var(--red-primary); }

.section-header { margin-bottom: 3rem; }
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(10,36,99,.1);
  color: var(--red-primary);
  border: 1px solid rgba(10,36,99,.2);
  padding: .35rem 1rem;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 1rem;
}
.section-badge.light {
  background: rgba(240,165,0,.18);
  color: var(--gold);
  border-color: rgba(240,165,0,.35);
}
.section-title { color: var(--black); margin-bottom: .75rem; }
.section-title.light { color: var(--white); }
.section-title span.text-gold { color: var(--gold); }
.section-sub { color: var(--text-light); max-width: 600px; margin: 0 auto; }

.title-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--red-primary), var(--red-bright));
  margin: 1rem auto;
  border-radius: 2px;
}
.title-divider.gold {
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

.text-gold { color: var(--gold); }
.text-center { text-align: center; }
.mt-3 { margin-top: 2.5rem; }

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
  background: var(--red-deep);
  color: rgba(255,255,255,.8);
  font-size: .8rem;
  padding: .4rem 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.topbar-left { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.topbar-left span { display: flex; align-items: center; gap: .4rem; }
.topbar-left i { color: var(--gold); font-size: .75rem; }
.topbar-right { display: flex; gap: .75rem; }
.topbar-right a {
  color: rgba(255,255,255,.7);
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  font-size: .75rem;
  transition: var(--transition);
}
.topbar-right a:hover { background: var(--gold); color: var(--black); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 3px solid var(--gold);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-lg); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: .75rem;
  padding-bottom: .75rem;
  gap: 1.5rem;
}

.brand { display: flex; align-items: center; gap: 1rem; }
.brand-logo {
  height: 64px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; }
.brand-name {
  font-family: var(--font-accent);
  font-size: 1rem;
  font-weight: 600;
  color: var(--red-primary);
  line-height: 1.2;
}
.brand-sub {
  font-size: .75rem;
  color: var(--gold-dark);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
}
.hamburger span {
  display: block;
  width: 26px; height: 2px;
  background: var(--red-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.main-nav ul { display: flex; align-items: center; gap: .25rem; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  display: flex;
  align-items: center;
  gap: .3rem;
  padding: .5rem .75rem;
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--gray-dark);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li > a.active {
  color: var(--red-primary);
  background: rgba(10,36,99,.07);
}
.main-nav a.btn-nav {
  background: var(--red-primary);
  color: var(--white) !important;
  border-radius: var(--radius-sm);
  padding: .5rem 1.2rem !important;
}
.main-nav a.btn-nav:hover { background: var(--red-bright); }

/* Dropdown */
.has-dropdown .dropdown {
  position: absolute;
  top: calc(100% + .5rem);
  left: 0;
  min-width: 180px;
  background: var(--white);
  border: 1px solid rgba(10,36,99,.1);
  border-top: 3px solid var(--red-primary);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: var(--transition);
  z-index: 100;
}
.has-dropdown:hover .dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.dropdown li a {
  display: block;
  padding: .6rem 1rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--gray-dark);
  border-bottom: 1px solid rgba(0,0,0,.04);
}
.dropdown li a:hover { background: rgba(10,36,99,.07); color: var(--red-primary); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; }
.hero-swiper { width: 100%; }

.hero-slide {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(6,24,64,.94) 0%, rgba(10,36,99,.85) 50%, rgba(30,77,183,.70) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 3rem 2rem 3rem;
  margin-left: 8%;
}
.hero-cross {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 1rem;
  animation: float 3s ease-in-out infinite;
}
@keyframes float { 0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)} }

.hero-eyebrow {
  font-family: var(--font-accent);
  font-size: .85rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .75rem;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1rem;
}
.hero-title em { font-style: normal; color: var(--gold); }
.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,.85);
  margin-bottom: 2rem;
  font-weight: 300;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Swiper overrides */
.swiper-button-next, .swiper-button-prev {
  color: var(--gold) !important;
  background: rgba(0,0,0,.3);
  width: 44px !important; height: 44px !important;
  border-radius: 50%;
}
.swiper-button-next::after, .swiper-button-prev::after { font-size: 1rem !important; }
.swiper-pagination-bullet { background: var(--white) !important; }
.swiper-pagination-bullet-active { background: var(--gold) !important; }

/* Quick Access */
.quick-access {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  background: var(--white);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  z-index: 10;
}
.qa-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  padding: 1rem 2rem;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gray-dark);
  border-right: 1px solid var(--gray-light);
  transition: var(--transition);
}
.qa-item:last-child { border-right: none; }
.qa-item i { font-size: 1.3rem; color: var(--red-primary); }
.qa-item:hover { background: var(--red-primary); color: var(--white); }
.qa-item:hover i { color: var(--gold); }

/* ============================================================
   BIENVENIDA
   ============================================================ */
.bienvenida-section { padding-top: 6rem; }
.bienvenida-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.bienvenida-lead {
  font-size: 1.1rem;
  color: var(--text-light);
  margin: 1.5rem 0;
}
.stats-row {
  display: flex;
  gap: 2rem;
  margin: 2rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid var(--gray-light);
  border-bottom: 1px solid var(--gray-light);
}
.stat-item { text-align: center; }
.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--red-primary);
}
.stat-label {
  display: block;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-light);
}
.image-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(10,36,99,.07) 0%, transparent 70%);
  border-radius: var(--radius-xl);
}
.bienvenida-logo {
  max-height: 360px;
  object-fit: contain;
  filter: drop-shadow(0 8px 32px rgba(10,36,99,.2));
  animation: pulse 4s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{transform:scale(1)}50%{transform:scale(1.02)} }
.frame-cross {
  position: absolute;
  top: -1rem;
  right: -1rem;
  width: 50px; height: 50px;
  background: var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
  box-shadow: var(--shadow-md);
}

/* ============================================================
   NOSOTROS
   ============================================================ */
.nosotros-section { color: var(--white); }
.mv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}
.mv-card {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}
.mv-card:hover {
  background: rgba(255,255,255,.12);
  transform: translateY(-4px);
}
.mv-icon {
  width: 60px; height: 60px;
  background: var(--gold);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--black);
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
}
.mv-card h3 {
  color: var(--gold);
  font-size: 1.3rem;
  margin-bottom: .75rem;
}
.mv-card p { color: rgba(255,255,255,.85); font-size: .95rem; }
.values-list { padding: 0; }
.values-list li {
  display: flex; align-items: center; gap: .5rem;
  color: rgba(255,255,255,.85);
  margin-bottom: .5rem;
  font-size: .95rem;
}
.values-list i { color: var(--gold); font-size: .75rem; }

.historia-block {
  background: rgba(255,255,255,.08);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 2rem;
  margin-bottom: 2rem;
}
.historia-block h3 {
  color: var(--gold);
  margin-bottom: 1rem;
  display: flex; align-items: center; gap: .7rem;
}
.historia-content { color: rgba(255,255,255,.85); }

.director-block {
  background: rgba(212,175,55,.1);
  border: 1px solid rgba(212,175,55,.25);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
}
.quote-icon { font-size: 3rem; color: var(--gold); opacity: .5; margin-bottom: .5rem; }
.director-block blockquote {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  color: rgba(255,255,255,.9);
  margin-bottom: 1rem;
  line-height: 1.6;
}
.director-block cite { color: var(--gold); font-size: .9rem; font-weight: 700; }

/* ============================================================
   NIVELES
   ============================================================ */
.niveles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.nivel-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}
.nivel-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.nivel-header {
  padding: 2rem;
  text-align: center;
  color: var(--white);
}
.nivel-icon {
  width: 70px; height: 70px;
  background: rgba(255,255,255,.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 1rem;
}
.nivel-header h3 { color: var(--white); font-size: 1.4rem; }
.nivel-body {
  padding: 1.5rem;
  background: var(--white);
}
.nivel-body p { color: var(--text-light); font-size: .95rem; margin-bottom: 1rem; }
.nivel-objetivos h4 {
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--red-primary);
  margin-bottom: .5rem;
}
.nivel-objetivos p { color: var(--text-light); font-size: .88rem; }

/* ============================================================
   LOGROS
   ============================================================ */
.logros-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.logro-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  position: relative;
}
.logro-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.logro-img img {
  width: 100%; height: 200px;
  object-fit: cover;
}
.logro-body { padding: 1.5rem; }
.logro-date {
  font-size: .8rem;
  color: var(--red-primary);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: .5rem;
}
.logro-body h3 { margin-bottom: .75rem; font-size: 1.1rem; }
.logro-body p { color: var(--text-light); font-size: .9rem; }
.logro-badge {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 40px; height: 40px;
  background: var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--black);
  font-size: .9rem;
  box-shadow: var(--shadow-sm);
}

/* ============================================================
   PERSONAL
   ============================================================ */
.personal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.personal-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,.06);
  transition: var(--transition);
}
.personal-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.personal-foto {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: var(--gray-light);
}
.personal-foto img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}
.personal-card:hover .personal-foto img { transform: scale(1.06); }
.foto-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--red-primary), var(--red-mid));
  color: rgba(255,255,255,.4);
  font-size: 3.5rem;
}
.personal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,36,99,.85);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: var(--transition);
  text-align: center;
  font-size: .9rem;
}
.personal-card:hover .personal-overlay { opacity: 1; }
.personal-info { padding: 1.25rem; }
.personal-info h4 { font-size: 1rem; margin-bottom: .25rem; }
.personal-cargo {
  display: block;
  font-size: .82rem;
  color: var(--red-primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: .25rem;
}
.personal-nivel {
  display: inline-block;
  background: rgba(10,36,99,.08);
  color: var(--red-primary);
  border-radius: 50px;
  font-size: .72rem;
  font-weight: 700;
  padding: .2rem .7rem;
  text-transform: uppercase;
}

/* ============================================================
   GALERÍA
   ============================================================ */
.galeria-section { background: var(--red-primary); }
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.galeria-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  aspect-ratio: 4/3;
  cursor: pointer;
}
.galeria-item img, .galeria-placeholder {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}
.galeria-placeholder {
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.4);
  font-size: 2.5rem;
}
.galeria-item:hover img { transform: scale(1.08); }
.galeria-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(6,24,64,.9) 100%);
  display: flex; align-items: flex-end;
  padding: 1.25rem;
  opacity: 0;
  transition: var(--transition);
}
.galeria-item:hover .galeria-overlay { opacity: 1; }
.galeria-info h4 { color: var(--white); font-size: .95rem; margin-bottom: .2rem; }
.galeria-info span { color: var(--gold); font-size: .8rem; }

.empty-state {
  text-align: center;
  padding: 3rem;
  color: rgba(255,255,255,.6);
}
.empty-state.light p { color: rgba(255,255,255,.7); margin-top: 1rem; }

/* ============================================================
   NOTICIAS
   ============================================================ */
.noticias-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.noticia-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,.06);
  transition: var(--transition);
}
.noticia-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.noticia-card.featured {
  box-shadow: var(--shadow-red);
  border-color: rgba(10,36,99,.2);
}
.noticia-img img {
  width: 100%; height: 200px;
  object-fit: cover;
}
.noticia-body { padding: 1.5rem; }
.noticia-meta {
  display: flex; gap: 1rem; flex-wrap: wrap;
  font-size: .78rem;
  color: var(--text-light);
  margin-bottom: .75rem;
}
.noticia-date { color: var(--red-primary); font-weight: 700; }
.noticia-body h3 { margin-bottom: .75rem; font-size: 1.05rem; line-height: 1.4; }
.noticia-body h3 a:hover { color: var(--red-primary); }
.noticia-body p { color: var(--text-light); font-size: .9rem; margin-bottom: 1rem; }

/* ============================================================
   DOCUMENTOS
   ============================================================ */
.documentos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.doc-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,.06);
  transition: var(--transition);
}
.doc-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: rgba(10,36,99,.2); }
.doc-icon {
  flex-shrink: 0;
  width: 50px; height: 50px;
  background: rgba(30,77,183,.1);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--red-bright);
  font-size: 1.5rem;
}
.doc-info { flex: 1; min-width: 0; }
.doc-cat {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--red-primary);
  margin-bottom: .2rem;
}
.doc-info h4 { font-size: .95rem; margin-bottom: .2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-info p { font-size: .82rem; color: var(--text-light); margin-bottom: .25rem; }
.doc-date { font-size: .75rem; color: var(--text-light); }
.btn-doc {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
  padding: .6rem;
  background: var(--red-primary);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-size: .72rem;
  font-weight: 700;
  text-align: center;
  transition: var(--transition);
}
.btn-doc:hover { background: var(--red-bright); }
.btn-doc i { font-size: 1rem; }

/* ============================================================
   CONTACTO
   ============================================================ */
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}
.contact-item {
  display: flex; gap: 1rem; align-items: flex-start;
  margin-bottom: 1.75rem;
}
.contact-icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  background: rgba(10,36,99,.08);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--red-primary);
  font-size: 1.1rem;
}
.contact-item h4 { font-size: .95rem; margin-bottom: .25rem; color: var(--red-primary); }
.contact-item p { font-size: .9rem; color: var(--text-light); margin: 0; }
.contact-social h4 { font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .75rem; color: var(--gray-dark); }
.social-links { display: flex; gap: .6rem; }
.social-btn {
  width: 40px; height: 40px;
  background: var(--red-primary);
  color: var(--white);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
}
.social-btn:hover { background: var(--red-bright); transform: translateY(-2px); }

/* Formulario */
.contacto-form {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.form-group { margin-bottom: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--gray-dark);
  margin-bottom: .4rem;
}
.form-group input, .form-group textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid rgba(0,0,0,.1);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--text);
  background: var(--white);
  transition: var(--transition);
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--red-primary);
  box-shadow: 0 0 0 3px rgba(10,36,99,.12);
}
.form-group textarea { resize: vertical; }
.form-alert {
  padding: .75rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: .9rem;
  font-weight: 600;
}
.form-alert.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.form-alert.error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--black); }
.footer-top { padding: 3.5rem 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 2.5rem;
}
.footer-logo {
  height: 70px;
  object-fit: contain;
  margin-bottom: 1rem;
  filter: brightness(1.1);
}
.footer-brand p {
  color: rgba(255,255,255,.7);
  font-size: .9rem;
  margin-bottom: .25rem;
}
.footer-brand small {
  display: block;
  color: rgba(255,255,255,.4);
  font-size: .78rem;
  margin-bottom: .15rem;
}
.footer-links h4, .footer-contact h4, .footer-lema h4 {
  color: var(--gold);
  font-size: 1rem;
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid rgba(212,175,55,.3);
}
.footer-links ul li a {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: rgba(255,255,255,.6);
  font-size: .88rem;
  padding: .3rem 0;
  transition: var(--transition);
}
.footer-links ul li a:hover { color: var(--gold); padding-left: .3rem; }
.footer-links ul li a i { color: var(--red-bright); font-size: .65rem; }
.footer-contact p {
  color: rgba(255,255,255,.65);
  font-size: .88rem;
  display: flex; align-items: flex-start; gap: .6rem;
  margin-bottom: .5rem;
}
.footer-contact p i { color: var(--gold); margin-top: .2rem; }
.footer-social { display: flex; gap: .6rem; margin-top: 1rem; }
.footer-social a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.6);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--gold); color: var(--black); }
.footer-cross { font-size: 2rem; color: var(--gold); opacity: .7; margin-bottom: 1rem; }
.footer-lema blockquote {
  font-family: var(--font-display);
  font-style: italic;
  color: rgba(255,255,255,.8);
  font-size: 1.1rem;
  margin-bottom: .75rem;
  line-height: 1.5;
}
.footer-lema p { color: rgba(255,255,255,.5); font-size: .85rem; }

.footer-bottom {
  background: rgba(0,0,0,.4);
  padding: 1.2rem 0;
  text-align: center;
}
.footer-bottom p {
  color: rgba(255,255,255,.4);
  font-size: .8rem;
  margin: 0;
  margin-bottom: .2rem;
}
.footer-bottom .text-gold { color: var(--gold); }

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 46px; height: 46px;
  background: var(--red-primary);
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: var(--transition);
  box-shadow: var(--shadow-red);
  z-index: 999;
}
.back-to-top.visible { opacity: 1; pointer-events: all; transform: translateY(0); }
.back-to-top:hover { background: var(--red-bright); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .mv-grid, .niveles-grid, .logros-grid, .personal-grid, .noticias-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .galeria-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .bienvenida-grid { gap: 2.5rem; }
}

@media (max-width: 768px) {
  .topbar .container { flex-direction: column; gap: .4rem; text-align: center; }
  .topbar-left { justify-content: center; gap: .75rem; }

  .hamburger { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    border-top: 3px solid var(--red-primary);
    box-shadow: var(--shadow-lg);
    padding: 1rem;
    z-index: 999;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav > ul > li > a { padding: .75rem 1rem; border-bottom: 1px solid var(--gray-light); }
  .has-dropdown .dropdown { position: static; opacity: 1; pointer-events: all; transform: none; box-shadow: none; border: none; padding-left: 1.5rem; }

  .hero-content { margin-left: 0; padding: 2rem 1.5rem; }
  .hero-title { font-size: 2rem; }
  .hero-slide { min-height: 70vh; }
  .quick-access { flex-wrap: wrap; border-radius: 0; position: static; transform: none; }
  .qa-item { flex: 1; min-width: 120px; padding: .75rem 1rem; }

  .bienvenida-grid { grid-template-columns: 1fr; }
  .bienvenida-image { display: none; }
  .stats-row { flex-wrap: wrap; gap: 1.5rem; }

  .mv-grid, .niveles-grid, .logros-grid, .personal-grid, .noticias-grid {
    grid-template-columns: 1fr;
  }
  .documentos-grid { grid-template-columns: 1fr; }
  .galeria-grid { grid-template-columns: repeat(2, 1fr); }
  .contacto-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .btn { text-align: center; justify-content: center; }
  .galeria-grid { grid-template-columns: 1fr; }
  .brand-name { font-size: .88rem; }
}

/* ============================================================
   TOPBAR - BOTÓN ADMIN
   ============================================================ */
.topbar-admin-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--gold) !important;
  color: var(--black) !important;
  border-radius: 50%;
  font-size: .78rem;
  margin-left: .3rem;
  transition: var(--transition);
  position: relative;
}
.topbar-admin-btn:hover {
  background: var(--gold-light) !important;
  transform: scale(1.15);
  box-shadow: 0 0 0 3px rgba(240,165,0,.35);
}
.topbar-admin-btn::after {
  content: 'Admin';
  position: absolute;
  bottom: -26px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--black);
  color: var(--white);
  font-size: .65rem;
  font-weight: 700;
  padding: .15rem .45rem;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
  letter-spacing: .04em;
}
.topbar-admin-btn:hover::after {
  opacity: 1;
}
