/* ============================================================
   Instituto Tierra Nueva — Styles
   ============================================================ */

/* ----- Variables ----- */
:root {
  --navy:      #0D1B2A;
  --navy-mid:  #1A3A5C;
  --gold:      #C4B078;
  --gold-lt:   #D4C896;
  --white:     #F4F6F8;
  --gray-blue: #E8EDF2;
  --text-dark: #1C2B3A;
  --text-mid:  #4A5568;
  --text-lt:   #718096;
  --ease:      0.3s ease;
  --sh:        0 4px 24px rgba(13,27,42,0.10);
  --sh-lg:     0 10px 48px rgba(13,27,42,0.18);
  --r:         4px;
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: 'Lato', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.75;
  overflow-x: hidden;
}

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

/* ----- Typography ----- */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
  color: var(--navy);
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy-mid);
  margin-bottom: 0.75rem;
}

.section-tag::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--gold);
  flex-shrink: 0;
}

/* En secciones oscuras el tag vuelve a ser dorado */
.oferta .section-tag,
.contacto-index .section-tag,
.page-hero .section-tag,
.page-hero-content .section-tag {
  color: var(--gold);
}
.oferta .section-tag::before,
.contacto-index .section-tag::before,
.page-hero .section-tag::before,
.page-hero-content .section-tag::before {
  background: rgba(196,176,120,0.5);
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 620px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

.section-header { text-align: center; }

/* ----- Layout ----- */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

section { padding: 5.5rem 0; }

/* ----- Buttons ----- */
.btn {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  border-radius: var(--r);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: var(--ease);
  cursor: pointer;
  border: none;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
}
.btn-gold:hover {
  background: var(--gold-lt);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(196,176,120,0.35);
}

.btn-outline-white {
  border: 2px solid rgba(255,255,255,0.55);
  color: #fff;
}
.btn-outline-white:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-navy {
  background: var(--navy);
  color: #fff;
}
.btn-navy:hover {
  background: var(--navy-mid);
  transform: translateY(-2px);
}

/* ----- Scroll animations ----- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 2.5rem;
  transition: background var(--ease), padding var(--ease), box-shadow var(--ease);
}

.navbar.scrolled {
  background: var(--navy);
  padding: 0.9rem 2.5rem;
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
  border-bottom: 1px solid rgba(196,176,120,0.18);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  z-index: 1001;
}

.nav-logo img {
  height: 96px;
  width: auto;
  border-radius: 6px;
  transition: height var(--ease);
}

.navbar.scrolled .nav-logo img { height: 80px; }

.nav-logo-text {
  font-family: 'Playfair Display', serif;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.25;
}

.nav-links {
  display: flex;
  gap: 2.2rem;
}

.nav-links a {
  color: rgba(255,255,255,0.9);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 3px;
  transition: color var(--ease);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width var(--ease);
}

.nav-links a:hover,
.nav-links a.active { color: var(--gold); }

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: #fff;
  transition: var(--ease);
  transform-origin: center;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--navy);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/hero-banner.jpg');
  background-size: cover;
  background-position: center 35%;
  opacity: 0.3;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle, rgba(196,176,120,0.055) 1px, transparent 1px),
    linear-gradient(160deg, rgba(13,27,42,0.65) 0%, rgba(26,58,92,0.45) 100%);
  background-size: 28px 28px, auto;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  padding: 10rem 2rem 6rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid rgba(196,176,120,0.5);
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.45rem 1.3rem;
  border-radius: 2px;
  margin-bottom: 1.8rem;
}

.hero-badge::before,
.hero-badge::after {
  content: '';
  width: 20px; height: 1px;
  background: var(--gold);
  opacity: 0.6;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.6rem, 6.5vw, 4.8rem);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 24px rgba(0,0,0,0.3);
}

.hero h1 em {
  font-style: normal;
  color: var(--gold);
}

.hero-sub {
  color: rgba(255,255,255,0.8);
  font-size: clamp(1rem, 2vw, 1.18rem);
  max-width: 580px;
  margin: 0 auto 2.8rem;
  line-height: 1.8;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.45);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: scrollHint 2.2s ease-in-out infinite;
}

.hero-scroll-hint span { display: block; }

.hero-scroll-hint::after {
  content: '';
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, var(--gold), transparent);
}

@keyframes scrollHint {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.45; }
  50%       { transform: translateX(-50%) translateY(6px); opacity: 0.7; }
}

/* ============================================================
   MISIÓN / VISIÓN / VALORES
   ============================================================ */
.mvv { background: var(--gray-blue); }

.mvv .section-header { margin-bottom: 3.5rem; }

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

.mvv-card {
  background: #fff;
  padding: 2.8rem 2rem 2.5rem;
  border-radius: var(--r);
  position: relative;
  overflow: hidden;
  text-align: center;
  box-shadow: var(--sh);
  border-top: 3px solid var(--gold);
  transition: transform var(--ease), box-shadow var(--ease);
}

.mvv-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-lg);
}

.mvv-icon {
  width: 72px; height: 72px;
  object-fit: contain;
  margin: 0 auto 1.6rem;
}

.mvv-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.9rem;
  color: var(--navy);
}

.mvv-card p {
  color: var(--text-mid);
  font-size: 0.95rem;
  line-height: 1.75;
}

/* ============================================================
   QUIÉNES SOMOS
   ============================================================ */
.quienes { background: var(--white); position: relative; overflow: hidden; }
.quienes .container { position: relative; z-index: 1; }

.quienes-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.quienes-text h2 { margin-bottom: 1.5rem; }

.quienes-text p {
  color: var(--text-mid);
  font-size: 1.02rem;
  margin-bottom: 1.2rem;
}

.quienes-divider {
  width: 48px; height: 3px;
  background: var(--gold);
  margin: 2rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-top: 0.5rem;
}

.stat-card {
  background: var(--gray-blue);
  border-left: 3px solid var(--gold);
  padding: 1.5rem 1.2rem;
  border-radius: 0 var(--r) var(--r) 0;
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-mid);
  margin-top: 0.3rem;
  line-height: 1.3;
}

.quienes-aside {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.quienes-highlight {
  background: var(--navy);
  color: #fff;
  padding: 2.5rem;
  border-radius: var(--r);
  position: relative;
  overflow: hidden;
}

.quienes-highlight::before {
  content: '"';
  font-family: 'Playfair Display', serif;
  font-size: 8rem;
  line-height: 1;
  color: var(--gold);
  opacity: 0.15;
  position: absolute;
  top: -1rem;
  left: 1rem;
}

.quienes-highlight blockquote {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  line-height: 1.7;
  font-style: italic;
  color: rgba(255,255,255,0.88);
  position: relative;
}

.quienes-highlight cite {
  display: block;
  font-style: normal;
  font-size: 0.78rem;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 1.2rem;
}

.quienes-accreditation {
  background: var(--gray-blue);
  padding: 1.5rem;
  border-radius: var(--r);
  font-size: 0.88rem;
  color: var(--text-mid);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.quienes-accreditation .badge-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.quienes-accreditation strong { color: var(--navy); display: block; margin-bottom: 0.2rem; }

/* ============================================================
   OFERTA EDUCATIVA
   ============================================================ */
.oferta { background: var(--navy); }

.oferta .section-title { color: #fff; }
.oferta .section-subtitle { color: rgba(255,255,255,0.65); }

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

.oferta-card {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  aspect-ratio: 4/5;
  display: block;
}

.oferta-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.oferta-card:hover img { transform: scale(1.08); }

.oferta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(13,27,42,1)    0%,
    rgba(13,27,42,0.92) 35%,
    rgba(13,27,42,0.4)  65%,
    transparent         100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem 1.5rem;
  transition: var(--ease);
}

.oferta-card:hover .oferta-overlay {
  background: linear-gradient(to top,
    rgba(13,27,42,1)    0%,
    rgba(13,27,42,0.95) 50%,
    rgba(13,27,42,0.3)  80%,
    transparent         100%);
}

.oferta-cct {
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.3s ease;
}

.oferta-card:hover .oferta-cct { opacity: 1; transform: translateY(0); }

.oferta-overlay h3 {
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.oferta-desc {
  color: rgba(255,255,255,0.72);
  font-size: 0.82rem;
  line-height: 1.55;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.3s ease 0.05s;
  margin-bottom: 0.8rem;
}

.oferta-card:hover .oferta-desc { opacity: 1; transform: translateY(0); }

.oferta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.3s ease 0.1s;
}

.oferta-card:hover .oferta-link { opacity: 1; transform: translateY(0); }

/* ============================================================
   POR QUÉ ELEGIRNOS
   ============================================================ */
.porque { background: var(--gray-blue); }

.porque-intro {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 700px;
  margin: 0 auto 3.5rem;
  text-align: center;
  line-height: 1.8;
}

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

.porque-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: #fff;
  padding: 2rem;
  border-radius: var(--r);
  box-shadow: var(--sh);
  transition: transform var(--ease), box-shadow var(--ease);
}

.porque-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-lg);
}

.porque-icon-svg {
  width: 64px; height: 64px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.porque-icon-svg svg { width: 100%; height: 100%; }

.porque-icon {
  width: 64px; height: 64px;
  flex-shrink: 0;
  object-fit: contain;
}

.porque-text h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
  color: var(--navy);
}

.porque-text p {
  color: var(--text-mid);
  font-size: 0.93rem;
  line-height: 1.7;
}

/* ============================================================
   TESTIMONIOS
   ============================================================ */
.testimonios { background: var(--white); }

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

.testimonio-card {
  background: var(--gray-blue);
  padding: 2.2rem;
  border-radius: var(--r);
  position: relative;
  display: flex;
  flex-direction: column;
  border-top: 2px solid transparent;
  transition: border-color var(--ease), transform var(--ease), box-shadow var(--ease);
}

.testimonio-card:hover {
  border-top-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: var(--sh-lg);
}

.testimonio-card::before {
  content: '\201C';
  font-family: 'Playfair Display', serif;
  font-size: 5rem;
  line-height: 0.8;
  color: var(--gold);
  opacity: 0.35;
  position: absolute;
  top: 1rem;
  left: 1.4rem;
}

.testimonio-text {
  color: var(--text-mid);
  font-size: 0.9rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
  padding-top: 1.8rem;
  flex: 1;
}

.testimonio-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  border-top: 1px solid rgba(13,27,42,0.08);
  padding-top: 1.2rem;
}

.testimonio-author img {
  width: 46px; height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  flex-shrink: 0;
}

.testimonio-author-name {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--navy);
}

.testimonio-author-role {
  font-size: 0.76rem;
  color: var(--text-lt);
  margin-top: 0.1rem;
}

/* ============================================================
   CONTACTO (sección en index)
   ============================================================ */
.contacto-index { background: var(--navy); }

.contacto-index .section-title { color: #fff; }

.contacto-index-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.contacto-item {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 2rem;
  align-items: flex-start;
}

.contacto-icon-wrap {
  width: 42px; height: 42px;
  border: 1px solid rgba(196,176,120,0.35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  background: rgba(196,176,120,0.08);
}

.contacto-item-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.3rem;
}

.contacto-item p,
.contacto-item a {
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
  line-height: 1.6;
}

.contacto-item a:hover { color: var(--gold); }

.contacto-links-section {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.contacto-links-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: block;
}

.contacto-ext-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  transition: color var(--ease);
}

.contacto-ext-link:hover { color: var(--gold); }

/* Contact card (CTA) */
.contacto-cta-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r);
  padding: 2.8rem;
}

.contacto-cta-card h3 {
  color: #fff;
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
}

.contacto-cta-card p {
  color: rgba(255,255,255,0.65);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.contacto-cta-card .btn { display: block; text-align: center; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: #060e17;
  color: rgba(255,255,255,0.4);
  text-align: center;
  padding: 2rem;
  font-size: 0.82rem;
}

footer a { color: var(--gold); }
footer a:hover { opacity: 0.8; }

/* ============================================================
   PAGE HERO (subpages)
   ============================================================ */
.page-hero {
  background: var(--navy);
  padding: 10rem 2rem 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/hero-banner.jpg');
  background-size: cover;
  background-position: center 35%;
  opacity: 0.12;
}

.page-hero-content { position: relative; z-index: 1; }

.breadcrumb {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 1.2rem;
  letter-spacing: 0.05em;
}

.breadcrumb a { color: var(--gold); }
.breadcrumb-sep { opacity: 0.4; }

.page-hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  margin-bottom: 1rem;
}

.page-hero-sub {
  color: rgba(255,255,255,0.65);
  font-size: 1.08rem;
  max-width: 580px;
  margin: 0 auto;
}

.page-hero-cct {
  display: inline-block;
  border: 1px solid rgba(196,176,120,0.4);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 2px;
  margin-bottom: 1.2rem;
}

/* ============================================================
   LEVEL PAGES (preescolar, primaria, secundaria)
   ============================================================ */
.level-intro {
  background: var(--white);
}

.level-intro-inner {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 4rem;
  align-items: start;
}

.level-intro-image {
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--sh-lg);
}

.level-intro-image img {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
}

.level-intro-text h2 { margin-bottom: 1.2rem; }
.level-intro-text p {
  color: var(--text-mid);
  margin-bottom: 1.1rem;
  font-size: 1.02rem;
}

.level-features {
  background: var(--gray-blue);
}

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

.feature-card {
  background: #fff;
  padding: 2rem 1.5rem;
  border-radius: var(--r);
  box-shadow: var(--sh);
  text-align: center;
}

.feature-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.feature-card h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.65;
}

/* Talleres — cards */
.talleres-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

/* Talleres — galería de fotos */
.talleres-fotos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.talleres-foto-item {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.talleres-foto-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.talleres-foto-item:hover img { transform: scale(1.06); }

.talleres-foto-item span {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(13,27,42,0.85), transparent);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 1rem 1rem 0.8rem;
}

.taller-card {
  background: var(--white);
  border-radius: var(--r);
  padding: 2.2rem 1.8rem;
  box-shadow: var(--sh);
  text-align: center;
  border-bottom: 3px solid var(--gold);
  transition: transform var(--ease), box-shadow var(--ease);
}

.taller-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh-lg);
}

.taller-icon { font-size: 2.8rem; margin-bottom: 1rem; }

.taller-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.taller-card p {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.7;
}

/* ============================================================
   GALLERY (instalaciones)
   ============================================================ */
.gallery-section { background: var(--white); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.6rem;
}

.gallery-item {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--r);
  cursor: pointer;
}

.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img { transform: scale(1.1); }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.94);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.open { display: flex; }

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 2px;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  color: rgba(255,255,255,0.7);
  font-size: 2.2rem;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  transition: color var(--ease);
}

.lightbox-close:hover { color: var(--gold); }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-page { background: var(--white); }

.contact-page-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4rem;
  align-items: start;
}

.contact-info-block h2 { margin-bottom: 1rem; }
.contact-info-block > p {
  color: var(--text-mid);
  margin-bottom: 2.5rem;
  font-size: 1.02rem;
}

.contact-detail {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.8rem;
  align-items: flex-start;
}

.contact-detail-icon {
  width: 40px; height: 40px;
  background: var(--gray-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  border: 1px solid rgba(13,27,42,0.08);
}

.contact-detail h4 {
  font-size: 0.75rem;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.3rem;
}

.contact-detail p,
.contact-detail a {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.6;
}

.contact-detail a:hover { color: var(--navy); }

.contact-form-card {
  background: var(--navy);
  border-radius: var(--r);
  padding: 3rem;
}

.contact-form-card h3 {
  color: #fff;
  font-size: 1.6rem;
  margin-bottom: 0.6rem;
}

.contact-form-card > p {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

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

.form-group { margin-bottom: 1.1rem; }

.form-group label {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 3px;
  padding: 0.75rem 1rem;
  color: #fff;
  font-family: 'Lato', sans-serif;
  font-size: 0.93rem;
  transition: border-color var(--ease), background var(--ease);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.28); }

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255,255,255,0.1);
}

.form-group textarea { resize: vertical; min-height: 130px; }

.form-group select option { background: var(--navy); color: #fff; }

.form-submit { margin-top: 0.5rem; }
.form-submit .btn { width: 100%; text-align: center; padding: 1rem; }

/* Map embed */
.map-section { background: var(--gray-blue); padding: 0; }

.map-section iframe {
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
}

/* ============================================================
   CALL FLOAT
   ============================================================ */
.call-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px; height: 56px;
  background: var(--navy-mid);
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--sh-lg);
  z-index: 900;
  transition: transform var(--ease), background var(--ease);
}

.call-float:hover {
  transform: scale(1.1);
  background: var(--navy);
}

.call-float svg { width: 26px; height: 26px; }

/* ============================================================
   MVV ICON SVG
   ============================================================ */
.mvv-icon-svg {
  width: 80px; height: 80px;
  margin: 0 auto 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mvv-icon-svg svg { width: 100%; height: 100%; }

/* ============================================================
   REFINEMENTS — diseño distintivo
   ============================================================ */

/* ============================================================
   HERO SPLIT — nueva estructura
   ============================================================ */
.hero-split {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 55% 45%;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.hero-split-left {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 9rem 4rem 3.5rem 5rem;
  background: var(--navy);
}

/* Cuadrícula de puntos dorados */
.hero-split-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(196,176,120,0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.hero-split-content {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  flex: 1;
  justify-content: center;
}

/* Línea + eyebrow */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero-eyebrow-line {
  display: block;
  width: 36px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

/* Wordmark */
.hero-wordmark { display: flex; flex-direction: column; gap: 0; }

.hero-wordmark-small {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1rem, 1.8vw, 1.5rem);
  font-weight: 400;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 0.3em;
}

.hero-wordmark-big {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3.8rem, 6.5vw, 6.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 0.93;
  letter-spacing: -0.01em;
}

/* "Formando Generaciones" */
.hero-formando {
  font-size: clamp(0.62rem, 1vw, 0.82rem);
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  padding-left: 2.8rem;
  position: relative;
}

.hero-formando::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 1.8rem; height: 1px;
  background: var(--gold);
}

.hero-sub {
  color: rgba(255,255,255,0.65);
  font-size: clamp(0.9rem, 1.4vw, 1rem);
  line-height: 1.8;
  max-width: 420px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-ghost {
  border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.8);
  padding: 0.85rem 2.2rem;
  border-radius: var(--r);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: var(--ease);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* Scroll indicator */
.hero-scroll-indicator {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-scroll-line {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

.hero-scroll-text {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  writing-mode: vertical-rl;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 0.9; transform: scaleY(1.1); }
}

/* Panel derecho — foto */
.hero-split-right {
  position: relative;
  overflow: hidden;
}

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

/* Fade del lado izquierdo sobre la foto */
.hero-photo-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--navy) 0%, rgba(13,27,42,0.5) 35%, rgba(13,27,42,0.1) 70%, transparent 100%);
}

/* ============================================================
   STATS BAND
   ============================================================ */
.stats-band {
  background: var(--gold);
  position: relative;
  overflow: hidden;
}

.stats-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(13,27,42,0.07) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}

.stats-band-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
}

.stats-band-item {
  padding: 2.8rem 2rem;
  text-align: center;
  border-right: 1px solid rgba(13,27,42,0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.stats-band-item:last-child { border-right: none; }

.stats-band-num {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 5.5vw, 5rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  display: block;
}

.stats-band-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(13,27,42,0.6);
  line-height: 1.4;
  display: block;
}

/* ============================================================
   MVV — EDITORIAL NUMBERED
   ============================================================ */
.mvv-section { background: var(--white); padding: 5.5rem 0; }

.mvv-section-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: end;
  margin-bottom: 3.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(13,27,42,0.08);
}

.mvv-section-header-left .section-title { margin-bottom: 0; }

.mvv-section-header-desc {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.75;
}

.mvv-rows { display: flex; flex-direction: column; }

.mvv-row {
  display: grid;
  grid-template-columns: 72px 64px 1fr;
  gap: 2.5rem;
  padding: 2.2rem 0;
  border-bottom: 1px solid rgba(13,27,42,0.07);
  align-items: center;
  transition: background var(--ease);
}

.mvv-row:hover { background: rgba(196,176,120,0.04); }

.mvv-row-num {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--navy);
  opacity: 0.07;
  line-height: 1;
  text-align: right;
  user-select: none;
}

.mvv-row-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

.mvv-row-icon svg { width: 100%; height: 100%; }

.mvv-row-body h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--navy);
}

.mvv-row-body p {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.7;
}

/* ============================================================
   QUIÉNES SOMOS — nueva estructura
   ============================================================ */
.quienes-section {
  background: var(--navy);
  padding: 5.5rem 0;
  position: relative;
  overflow: hidden;
}

/* "ITN" como watermark en la sección oscura */
.quienes-section::before {
  content: 'ITN';
  position: absolute;
  font-family: 'Playfair Display', serif;
  font-size: clamp(12rem, 25vw, 22rem);
  font-weight: 700;
  color: rgba(255,255,255,0.03);
  bottom: -4rem;
  right: -2rem;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.quienes-section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
  position: relative;
  z-index: 1;
}

.quienes-section .section-tag { /* override for dark bg */
  color: var(--gold);
}

.quienes-section .section-tag::before { background: rgba(196,176,120,0.5); }

.quienes-section .section-title { color: #fff; }

.quienes-lead {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

.quienes-section-text p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.75;
}

.quienes-afil {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
}

.quienes-afil-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 28px;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  border-radius: 2px;
  flex-shrink: 0;
}

/* Pull quote side */
.quienes-big-quote {
  background: rgba(255,255,255,0.04);
  border-left: 3px solid var(--gold);
  padding: 2rem 2rem 2rem 2.5rem;
  border-radius: 0 var(--r) var(--r) 0;
  margin-bottom: 2.5rem;
}

.quienes-big-quote p {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-style: italic;
  color: rgba(255,255,255,0.85);
  line-height: 1.65;
}

.quienes-big-quote em {
  font-style: normal;
  color: var(--gold);
}

.quienes-section-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--r);
  overflow: hidden;
}

.qs-stat {
  background: rgba(255,255,255,0.04);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.qs-stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.qs-stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.3;
}

/* ============================================================
   OFERTA EDUCATIVA — nueva grid
   ============================================================ */
.oferta-header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3rem;
  align-items: end;
  margin-bottom: 2.5rem;
}

.oferta-header-left .section-title { margin-bottom: 0; }

.oferta-header-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.75;
  max-width: 480px;
}

/* Grid editorial 3 columnas:
   [ Preescolar grande ] [ Primaria   ] [ Secundaria ]
   [ Preescolar grande ] [    Talleres (2 cols)      ] */
.oferta-grid-new {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  grid-template-rows: 230px 200px;
  gap: 1rem;
}

.oferta-grid-new .oferta-card {
  aspect-ratio: unset;
  height: 100%;
}

.oferta-card--featured { grid-row: span 2; }
.oferta-card--bottom   { grid-column: span 2; }

/* ============================================================
   TESTIMONIOS — testimonio destacado
   ============================================================ */
.testi-featured {
  background: rgba(196,176,120,0.06);
  border: 1px solid rgba(196,176,120,0.15);
  border-radius: var(--r);
  padding: 3.5rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.testi-featured-inner { max-width: 800px; margin: 0 auto; text-align: center; }

.testi-featured-quote-mark {
  font-family: 'Playfair Display', serif;
  font-size: 8rem;
  line-height: 0.6;
  color: var(--gold);
  opacity: 0.2;
  display: block;
  margin-bottom: 0.5rem;
  user-select: none;
}

.testi-featured-text {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-style: italic;
  color: var(--text-dark);
  line-height: 1.65;
  margin-bottom: 2rem;
}

.testi-featured-author {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.testi-featured-author img {
  width: 52px; height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
}

.testi-featured-author strong {
  display: block;
  font-size: 0.9rem;
  color: var(--navy);
}

.testi-featured-author span {
  font-size: 0.78rem;
  color: var(--text-lt);
}

/* Responsive para los testimonios: 4 col en desktop ahora */
.testimonios-grid {
  grid-template-columns: repeat(4, 1fr);
}

/* ============================================================
   MATERIAS — tags para mapa curricular
   ============================================================ */
.materias-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.materia-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  border: 1px solid rgba(13,27,42,0.1);
  border-radius: 2rem;
  padding: 0.55rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  box-shadow: var(--sh);
  transition: transform var(--ease), box-shadow var(--ease);
}

.materia-tag:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-lg);
}

.materia-tag--gold {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--gold);
}

/* Lista de habilidades secundaria */
.level-habilidades {
  list-style: none;
  margin: 1rem 0 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.level-habilidades li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.5;
}

.level-habilidades li::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  margin-top: 0.5em;
}

/* ============================================================
   TALLER DETALLE — layout alternado foto / texto
   ============================================================ */
.taller-detalle-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.taller-detalle--reverse .taller-detalle-inner {
  direction: rtl;
}

.taller-detalle--reverse .taller-detalle-inner > * {
  direction: ltr;
}

.taller-detalle-img {
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--sh-lg);
}

.taller-detalle-img img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.taller-detalle-img:hover img { transform: scale(1.04); }

.taller-detalle-text h3 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0.5rem 0 1rem;
  color: var(--navy);
}

.taller-detalle-text p {
  color: var(--text-mid);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

/* Level detail box (horario) */
.level-detail-box {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: var(--gray-blue);
  border-left: 3px solid var(--gold);
  padding: 0.85rem 1.5rem;
  border-radius: 0 var(--r) var(--r) 0;
  margin-top: 1.5rem;
}

.level-detail-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mid);
}

.level-detail-value {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
}

/* ============================================================
   RESPONSIVE — nuevas secciones
   ============================================================ */

/* "ITN" como marca de agua en la sección Quiénes somos */
.quienes::after {
  content: 'ITN';
  position: absolute;
  font-family: 'Playfair Display', serif;
  font-size: clamp(10rem, 22vw, 20rem);
  font-weight: 700;
  color: var(--navy);
  opacity: 0.028;
  bottom: -1.5rem;
  right: -1rem;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  letter-spacing: -0.02em;
}

/* Shimmer dorado en hover de tarjetas MVV */
.mvv-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(196,176,120,0.1) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.mvv-card:hover::after { opacity: 1; }

/* Subrayado dorado en el énfasis del hero h1 */
.hero h1 em {
  position: relative;
}
.hero h1 em::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: 2px;
  height: 2px;
  background: var(--gold);
  opacity: 0.55;
  border-radius: 2px;
}

/* Borde izquierdo dorado en items ¿por qué elegirnos? al hover */
.porque-item {
  border-left: 3px solid transparent;
  padding-left: calc(2rem - 3px);
  transition: border-color var(--ease), transform var(--ease), box-shadow var(--ease);
}
.porque-item:hover { border-left-color: var(--gold); }

/* Marco dorado en oferta educativa al hover */
.oferta-card {
  outline: 2px solid transparent;
  outline-offset: -2px;
  transition: outline-color var(--ease);
}
.oferta-card:hover { outline-color: rgba(196,176,120,0.5); }

/* Línea decorativa bajo los section-title de secciones oscuras */
.oferta .section-title::after,
.contacto-index .section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: 1rem auto 0;
  opacity: 0.6;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
  .oferta-grid          { grid-template-columns: repeat(2, 1fr); }
  .mvv-grid             { grid-template-columns: repeat(3, 1fr); }
  .testimonios-grid     { grid-template-columns: repeat(2, 1fr); }
  .mvv-section-header   { grid-template-columns: 1fr; gap: 1rem; }
  .oferta-header        { grid-template-columns: 1fr; gap: 1rem; }
}

@media (max-width: 968px) {
  /* Hero split → stacked */
  .hero-split           { grid-template-columns: 1fr; }
  .hero-split-left      { padding: 8rem 2rem 3rem; min-height: 80vh; }
  .hero-split-right     { height: 50vw; max-height: 380px; }
  .hero-photo-fade      { background: linear-gradient(to top, var(--navy) 0%, rgba(13,27,42,0.2) 60%, transparent 100%); }

  /* Stats band 2x2 */
  .stats-band-grid      { grid-template-columns: repeat(2, 1fr); }
  .stats-band-item:nth-child(2) { border-right: none; }

  /* MVV row compacto */
  .mvv-row              { grid-template-columns: 48px 48px 1fr; gap: 1.5rem; }
  .mvv-row-num          { font-size: 2.5rem; }
  .mvv-row-icon         { width: 44px; height: 44px; }

  /* Quiénes somos */
  .quienes-section-grid { grid-template-columns: 1fr; gap: 3rem; }

  /* Oferta: colapsa a 2 columnas en tablet */
  .oferta-grid-new { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 220px 200px; }
  .oferta-card--featured { grid-row: span 2; }
  .oferta-card--bottom { grid-column: span 2; }

  /* Porque */
  .porque-grid          { grid-template-columns: 1fr; }

  /* Resto */
  .contacto-index-grid  { grid-template-columns: 1fr; gap: 3rem; }
  .contact-page-grid    { grid-template-columns: 1fr; }
  .level-intro-inner    { grid-template-columns: 1fr; }
  .features-grid        { grid-template-columns: repeat(2, 1fr); }
  .talleres-grid        { grid-template-columns: repeat(2, 1fr); }
  .talleres-fotos-grid  { grid-template-columns: repeat(2, 1fr); }
  .form-row             { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .navbar         { padding: 1rem 1.5rem; }
  .navbar.scrolled{ padding: 0.75rem 1.5rem; }

  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--navy);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    z-index: 1000;
  }

  .nav-links.open { display: flex; }
  .nav-links a    { font-size: 1.1rem; }
  .hamburger      { display: flex; }

  section { padding: 4rem 0; }

  .hero-split-left { padding: 7rem 1.5rem 2.5rem; }

  .stats-band-grid  { grid-template-columns: repeat(2, 1fr); }
  .stats-band-num   { font-size: 3rem; }

  .mvv-row          { grid-template-columns: 1fr; gap: 1rem; }
  .mvv-row-num      { display: none; }

  .oferta-grid-new { grid-template-columns: 1fr; grid-template-rows: unset; }
  .oferta-grid-new .oferta-card { height: 220px; }
  .oferta-card--featured { grid-row: span 1; }
  .oferta-card--bottom { grid-column: span 1; }

  .testimonios-grid { grid-template-columns: 1fr; }
  .testi-featured   { padding: 2rem 1.5rem; }

  .features-grid    { grid-template-columns: 1fr; }
  .talleres-grid        { grid-template-columns: 1fr; }
  .talleres-fotos-grid  { grid-template-columns: 1fr; }
  .quienes-section-stats { grid-template-columns: 1fr 1fr; }

  .porque-item { flex-direction: column; gap: 1rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .stats-band-grid    { grid-template-columns: 1fr 1fr; }
  .oferta-grid        { grid-template-columns: 1fr; }
  .mvv-grid           { grid-template-columns: 1fr; }
  .quienes-section-stats { grid-template-columns: 1fr; }
}
