/* =============================================
   INSTITUTO ENRICO FERMI — Estilos Globales
   Tipografías: Clash Display + Satoshi (Fontshare)
   ============================================= */

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

:root {
  --cream:       #F5EFE6;
  --teal:        #1A8A87;
  --teal-dark:   #0D7272;
  --teal-deeper: #0A5E5E;
  --pink:        #E5177B;
  --orange:      #F5A623;
  --white:       #FFFFFF;
  --text-dark:   #1A1A2E;
  --text-muted:  #555870;
  --shadow:      0 8px 32px rgba(0,0,0,0.10);
  --radius-lg:   20px;
  --radius-md:   12px;
  --radius-sm:   8px;
  --transition:  0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Satoshi', 'Nunito', sans-serif;
  font-weight: 700;
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
}

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

/* ---------- Typography ---------- */
.font-clash { font-family: 'Clash Display', 'Poppins', sans-serif; }

h1, h2, h3 { line-height: 1.15; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 50px;
  font-family: 'Satoshi', sans-serif;
  font-weight: 900;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-outline {
  border: 2.5px solid var(--teal);
  color: var(--teal);
  background: transparent;
}
.btn-outline:hover {
  background: var(--teal);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26,138,135,0.3);
}

.btn-primary {
  background: var(--white);
  color: var(--teal-dark);
  border: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.btn-primary:hover {
  background: var(--orange);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245,166,35,0.4);
}

.btn-teal {
  background: var(--teal);
  color: var(--white);
  border: none;
}
.btn-teal:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26,138,135,0.4);
}

.btn-pink {
  background: var(--pink);
  color: var(--white);
  border: none;
}
.btn-pink:hover {
  background: #c0136a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(229,23,123,0.4);
}

.btn-sm { padding: 9px 22px; font-size: 0.8rem; }


/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  transition: all var(--transition);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-logo img { width: 42px; height: 42px; object-fit: contain; }
.nav-logo-text {
  font-family: 'Clash Display', 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--teal-dark);
  line-height: 1.2;
  max-width: 110px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex: 1;
  justify-content: center;
}

.nav-links > li { position: relative; }

.nav-links > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-dark);
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-links > li > a:hover,
.nav-links > li > a.active {
  color: var(--teal);
  background: rgba(26,138,135,0.06);
}
.nav-links .arrow {
  font-size: 0.7rem;
  transition: transform var(--transition);
}
.nav-links > li:hover .arrow { transform: rotate(180deg); }

/* Dropdown */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  min-width: 220px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  pointer-events: none;
  border-top: 3px solid var(--teal);
}
.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.dropdown-menu li a {
  display: block;
  padding: 10px 20px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
  transition: all var(--transition);
}
.dropdown-menu li a:hover {
  background: rgba(26,138,135,0.07);
  color: var(--teal);
  padding-left: 26px;
}

/* Nav Social */
.nav-social {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(26,138,135,0.08);
  transition: all var(--transition);
}
.nav-social a:hover {
  background: var(--teal);
  transform: translateY(-2px);
}
.nav-social img { width: 16px; height: 16px; object-fit: contain; }
.nav-social a:hover img { filter: brightness(0) invert(1); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2.5px;
  background: var(--teal-dark);
  border-radius: 2px;
  transition: all var(--transition);
}

/* CTA inscripciones en navbar */
.nav-cta {
  display: inline-block;
  padding: 8px 18px;
  background: var(--pink);
  color: var(--white);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: all var(--transition);
}
.nav-cta:hover {
  background: #c0136a;
  transform: translateY(-2px);
}


/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 72px;
}

.hero-left {
  background: var(--cream);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 4rem 4rem 6%;
  position: relative;
  overflow: hidden;
}

.hero-logo {
  width: 70px;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: 'Clash Display', 'Poppins', sans-serif;
  font-weight: 700;
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  line-height: 1.05;
  margin-bottom: 1rem;
}
.title-instituto { color: var(--teal-dark); display: block; }
.title-fermi { color: var(--pink); display: block; }

.hero-lema {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 2rem;
  letter-spacing: 0.02em;
}

/* Decorative elements in hero */
.hero-decor-circle {
  position: absolute;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: var(--orange);
  opacity: 0.85;
  top: -30px; right: -30px;
}
.hero-decor-plane {
  position: absolute;
  width: 80px;
  bottom: 15%;
  right: 8%;
  opacity: 0.7;
}

.hero-right {
  position: relative;
  overflow: hidden;
  background: #e0ede8;
}
.hero-right img.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.hero-decor-book {
  position: absolute;
  top: 12%;
  right: 5%;
  width: 90px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.2));
}
.hero-decor-circle-sm {
  position: absolute;
  width: 90px; height: 90px;
  border-radius: 50%;
  background: var(--orange);
  opacity: 0.9;
  top: 5%;
  right: 16%;
}


/* =============================================
   TRAYECTO SECTION (teal bg)
   ============================================= */
.trayecto {
  background: var(--teal-dark);
  padding: 5rem 6%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.trayecto-photos {
  position: relative;
  height: 380px;
  display: flex;
  align-items: flex-end;
}

.photo-frame {
  width: 200px;
  height: 230px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 5px solid transparent;
  position: absolute;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.photo-frame.orange {
  border-color: var(--orange);
  left: 0;
  bottom: 0;
  z-index: 2;
}
.photo-frame.pink {
  border-color: var(--pink);
  left: 120px;
  bottom: 60px;
  z-index: 1;
}

.trayecto-icons {
  position: absolute;
  top: 0;
  left: -20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.trayecto-icons img {
  width: 52px;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.trayecto-content { color: var(--white); }
.trayecto-content h2 {
  font-family: 'Clash Display', 'Poppins', sans-serif;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}
.niveles-tags {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 1.5rem;
}
.niveles-tags p { font-size: 0.95rem; opacity: 0.9; }

.check-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 2rem;
}
.check-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  opacity: 0.92;
}
.check-list li::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  min-width: 22px;
  background: var(--orange);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 900;
  color: var(--white);
}


/* =============================================
   NIVELES SECTION
   ============================================= */
.niveles {
  padding: 5rem 6%;
  background: var(--white);
}
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-header h2 {
  font-family: 'Clash Display', 'Poppins', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--teal-dark);
  margin-bottom: 0.7rem;
}
.section-header p {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
}

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

.nivel-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  border: 2px solid transparent;
}
.nivel-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.14);
  border-color: var(--teal);
}

.nivel-card-img {
  height: 160px;
  overflow: hidden;
  position: relative;
}
.nivel-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.nivel-card:hover .nivel-card-img img { transform: scale(1.05); }

.nivel-card-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--teal);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}
.nivel-card-badge.maternal { background: var(--pink); }
.nivel-card-badge.primario { background: var(--orange); }
.nivel-card-badge.secundario { background: var(--teal-deeper); }

.nivel-card-body {
  padding: 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.nivel-card-body h3 {
  font-family: 'Clash Display', 'Poppins', sans-serif;
  font-size: 1.1rem;
  color: var(--teal-dark);
  margin-bottom: 0.6rem;
}
.nivel-card-body p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1rem;
}
.nivel-card-body .btn-sm { align-self: flex-start; }


/* =============================================
   PILARES SECTION
   ============================================= */
.pilares {
  padding: 5rem 6%;
  background: var(--cream);
}
.pilares .section-header h2 { color: var(--teal-dark); }

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

.pilar-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  border-bottom: 4px solid transparent;
}
.pilar-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.12);
}
.pilar-card:nth-child(1) { border-bottom-color: var(--teal); }
.pilar-card:nth-child(2) { border-bottom-color: var(--pink); }
.pilar-card:nth-child(3) { border-bottom-color: var(--orange); }
.pilar-card:nth-child(4) { border-bottom-color: var(--teal-dark); }

.pilar-icon {
  width: 70px; height: 70px;
  margin: 0 auto 1.2rem;
  background: rgba(26,138,135,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}
.pilar-card:nth-child(2) .pilar-icon { background: rgba(229,23,123,0.08); }
.pilar-card:nth-child(3) .pilar-icon { background: rgba(245,166,35,0.1); }

.pilar-card h3 {
  font-family: 'Clash Display', 'Poppins', sans-serif;
  font-size: 1rem;
  color: var(--teal-dark);
  margin-bottom: 0.7rem;
}
.pilar-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
}


/* =============================================
   STATS SECTION
   ============================================= */
.stats {
  background: var(--teal);
  padding: 3.5rem 6%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat-item { color: var(--white); }
.stat-number {
  font-family: 'Clash Display', 'Poppins', sans-serif;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  display: block;
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-label {
  font-size: 0.9rem;
  opacity: 0.85;
  letter-spacing: 0.03em;
}


/* =============================================
   HISTORIA SECTION (for institucional)
   ============================================= */
.historia {
  padding: 5rem 6%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
}
.historia-content h2 {
  font-family: 'Clash Display', 'Poppins', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--teal-dark);
  margin-bottom: 1.5rem;
}
.historia-content p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.2rem;
}
.historia-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}
.historia-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.historia-img::before {
  content: '';
  position: absolute;
  inset: -6px;
  border: 3px solid var(--orange);
  border-radius: calc(var(--radius-lg) + 6px);
  z-index: -1;
}

/* Page hero (for inner pages) */
.page-hero {
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 100%);
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  top: -80px; right: -80px;
}
.page-hero::after {
  content: '';
  position: absolute;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  bottom: -60px; left: -40px;
}
.page-hero h1 {
  font-family: 'Clash Display', 'Poppins', sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--white);
  margin-bottom: 0.7rem;
  position: relative; z-index: 1;
}
.page-hero .subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  max-width: 600px;
  position: relative; z-index: 1;
}
.page-hero .pink-text { color: var(--orange); }

/* Breadcrumb */
.breadcrumb {
  background: var(--cream);
  padding: 0.8rem 6%;
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.breadcrumb a { color: var(--teal); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: #ccc; }


/* =============================================
   TABS (for propuesta educativa)
   ============================================= */
.tabs-nav {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 3rem 6% 0;
  flex-wrap: wrap;
}
.tab-btn {
  padding: 10px 24px;
  border: none;
  border-radius: 50px;
  background: var(--cream);
  color: var(--text-dark);
  font-family: 'Satoshi', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
}
.tab-btn:hover { background: rgba(26,138,135,0.1); color: var(--teal); }
.tab-btn.active { background: var(--teal); color: var(--white); }

.tab-content { display: none; padding: 3rem 6%; }
.tab-content.active { display: block; }

.nivel-detail {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4rem;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}
.nivel-detail-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.nivel-detail-img img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }

.nivel-detail-content h2 {
  font-family: 'Clash Display', 'Poppins', sans-serif;
  font-size: 2rem;
  color: var(--teal-dark);
  margin-bottom: 0.5rem;
}
.nivel-detail-content .nivel-tag {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  margin-bottom: 1.2rem;
}
.nivel-detail-content p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}
.nivel-detail-content h4 {
  font-family: 'Clash Display', 'Poppins', sans-serif;
  color: var(--teal-dark);
  margin: 1.5rem 0 0.7rem;
  font-size: 1.05rem;
}

.horarios-box {
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.5rem;
  margin: 1.2rem 0;
}
.horarios-box h4 { margin-top: 0; margin-bottom: 0.6rem; }
.horarios-box p {
  font-size: 0.88rem;
  margin-bottom: 0.3rem;
  color: var(--text-dark);
}

.talleres-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-top: 0.7rem;
}
.taller-tag {
  background: rgba(26,138,135,0.08);
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  font-size: 0.82rem;
  color: var(--teal-dark);
  border-left: 3px solid var(--teal);
}


/* =============================================
   ADMISIONES
   ============================================= */
.admisiones-section {
  padding: 4rem 6%;
  max-width: 1100px;
  margin: 0 auto;
}

.proceso-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}
.step-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.step-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--teal);
}
.step-card:nth-child(2)::before { background: var(--pink); }
.step-card:nth-child(3)::before { background: var(--orange); }

.step-number {
  font-family: 'Clash Display', 'Poppins', sans-serif;
  font-size: 3rem;
  color: rgba(26,138,135,0.1);
  position: absolute;
  top: 0.5rem; right: 1rem;
  line-height: 1;
}
.step-card h3 {
  font-family: 'Clash Display', 'Poppins', sans-serif;
  font-size: 1.1rem;
  color: var(--teal-dark);
  margin-bottom: 0.8rem;
}
.step-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.docs-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}
.docs-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
}
.docs-card h4 {
  font-family: 'Clash Display', 'Poppins', sans-serif;
  color: var(--teal-dark);
  margin-bottom: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 2px solid var(--teal);
}
.docs-list li {
  font-size: 0.84rem;
  color: var(--text-muted);
  padding: 5px 0;
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}
.docs-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 900;
}

.cta-inscripciones {
  text-align: center;
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  margin-top: 3rem;
  color: var(--white);
}
.cta-inscripciones h3 {
  font-family: 'Clash Display', 'Poppins', sans-serif;
  font-size: 1.8rem;
  margin-bottom: 0.7rem;
}
.cta-inscripciones p { opacity: 0.85; margin-bottom: 1.5rem; }


/* =============================================
   CONTACTO
   ============================================= */
.contacto-section {
  padding: 4rem 6%;
  max-width: 1100px;
  margin: 0 auto;
}
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}
.contacto-info h2 {
  font-family: 'Clash Display', 'Poppins', sans-serif;
  font-size: 1.8rem;
  color: var(--teal-dark);
  margin-bottom: 1.5rem;
}
.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  transition: background var(--transition);
}
.contact-item:hover { background: var(--cream); }
.contact-icon {
  width: 44px; height: 44px;
  min-width: 44px;
  background: var(--teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.contact-item h4 {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 3px;
  font-weight: 700;
}
.contact-item p, .contact-item a {
  font-size: 0.95rem;
  color: var(--text-dark);
  font-weight: 700;
}
.contact-item a:hover { color: var(--teal); }

.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.map-container iframe {
  width: 100%;
  height: 400px;
  border: none;
}


/* =============================================
   CTA INSCRIPCIONES SECTION (Home)
   ============================================= */
.cta-home {
  background: linear-gradient(135deg, var(--pink), #c0136a);
  padding: 5rem 6%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.cta-home-content h2 {
  font-family: 'Clash Display', 'Poppins', sans-serif;
  font-size: clamp(2rem, 3vw, 3rem);
  color: var(--white);
  margin-bottom: 1rem;
}
.cta-home-content p {
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.cta-home-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.cta-home-image img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }


/* =============================================
   ENRICO FERMI SECTION
   ============================================= */
.fermi-section {
  padding: 5rem 6%;
  background: var(--cream);
}
.fermi-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.fermi-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.fermi-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; object-position: top; }
.fermi-content h2 {
  font-family: 'Clash Display', 'Poppins', sans-serif;
  font-size: 1.8rem;
  color: var(--teal-dark);
  margin-bottom: 0.5rem;
}
.fermi-content .years {
  color: var(--pink);
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
}
.fermi-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 0.9rem;
}


/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--text-dark);
  color: var(--white);
  padding: 4rem 6% 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand img { width: 60px; margin-bottom: 1rem; filter: brightness(0) invert(1); }
.footer-brand h3 {
  font-family: 'Clash Display', 'Poppins', sans-serif;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--white);
}
.footer-brand p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin-bottom: 1.2rem;
}
.footer-social {
  display: flex;
  gap: 10px;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  transition: all var(--transition);
  font-size: 1rem;
}
.footer-social a:hover { background: var(--teal); transform: translateY(-2px); }
.footer-social img { width: 16px; height: 16px; object-fit: contain; filter: brightness(0) invert(1); }

.footer-col h4 {
  font-family: 'Clash Display', 'Poppins', sans-serif;
  font-size: 0.95rem;
  color: var(--orange);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.footer-links li { margin-bottom: 8px; }
.footer-links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--white); }
.footer-info li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 10px;
}
.footer-info .icon { font-size: 1rem; margin-top: 1px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}
.footer-bottom .teal-text { color: var(--teal); }


/* =============================================
   WHATSAPP FLOATING BUTTON
   ============================================= */
.whatsapp-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  background: #25D366;
  color: var(--white);
  border-radius: 50px;
  padding: 12px 20px 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 900;
  box-shadow: 0 6px 24px rgba(37,211,102,0.4);
  transition: all var(--transition);
  animation: pulse-wp 2.5s infinite;
}
.whatsapp-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(37,211,102,0.5);
  animation: none;
}
.whatsapp-btn svg { width: 22px; height: 22px; fill: var(--white); flex-shrink: 0; }

@keyframes pulse-wp {
  0%, 100% { box-shadow: 0 6px 24px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 6px 32px rgba(37,211,102,0.7); }
}


/* =============================================
   ANIMATIONS
   ============================================= */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }


/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .niveles-grid, .pilares-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trayecto { grid-template-columns: 1fr; gap: 2.5rem; }
  .trayecto-photos { height: 300px; }
  .nav-links > li > a { padding: 8px 10px; font-size: 0.82rem; }
}

@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-left { padding: 3rem 1.5rem; min-height: 60vh; }
  .hero-right { height: 50vw; min-height: 280px; }

  .nav-links, .nav-social, .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  /* Mobile nav open state */
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--white);
    padding: 1.5rem;
    gap: 0.3rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    z-index: 999;
  }
  .nav-links.open .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    border-left: 3px solid var(--teal);
    margin-left: 1rem;
    padding: 4px 0;
    pointer-events: auto;
    display: none;
  }
  .nav-links.open .dropdown.open .dropdown-menu { display: block; }

  .niveles-grid, .pilares-grid { grid-template-columns: 1fr; }
  .historia, .nivel-detail, .fermi-inner, .contacto-grid, .cta-home { grid-template-columns: 1fr; }
  .proceso-steps, .docs-tabs { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .nav-container { padding: 0 1.2rem; }

  .trayecto { padding: 3rem 1.5rem; }
  .trayecto-photos { order: 2; }
  .trayecto-content { order: 1; }
  .photo-frame.pink { left: 80px; bottom: 40px; }

  .tabs-nav { padding: 2rem 1.5rem 0; }
  .tab-content { padding: 2rem 1.5rem; }

  section { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
  .admisiones-section, .contacto-section { padding: 2rem 1.5rem; }
}

@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.4rem; }
  .trayecto-photos { height: 260px; }
  .photo-frame { width: 150px; height: 180px; }
  .photo-frame.pink { left: 60px; }
}
