/* IESEG — estilos compartidos */
:root {
  --color-cream:   #F5F0E8;
  --color-cream-2: #FAF7F2;
  --color-navy:    #1E2436;
  --color-navy-2:  #161B2A;
  --color-gold:    #C8A465;
  --color-gold-2:  #B68F4D;
  --color-maroon:  #7A1F2B;
  --color-ink:     #1A1A1A;
}
html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, -apple-system, sans-serif; color: #1A1A1A; background: #fff; }
.font-display { font-family: 'Oswald', 'Inter', sans-serif; letter-spacing: 0.01em; }

.text-gold   { color: var(--color-gold); }
.bg-gold     { background-color: var(--color-gold); }
.bg-navy     { background-color: var(--color-navy); }
.bg-cream    { background-color: var(--color-cream); }
.bg-cream-2  { background-color: var(--color-cream-2); }
.bg-maroon   { background-color: var(--color-maroon); }

/* Hero carousel — slight blur to mask low-res source images */
.hero-slide {
  position: absolute; inset: -20px;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.4s ease-in-out;
  filter: blur(3px) brightness(0.9) saturate(1.05);
  transform: scale(1.04);
}
.hero-slide.active { opacity: 1; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20,22,30,0.82) 0%, rgba(20,22,30,0.55) 55%, rgba(20,22,30,0.35) 100%);
}

/* Inner hero (for non-home pages) */
.inner-hero {
  position: relative; min-height: 60vh;
  background-size: cover; background-position: center;
  display: flex; align-items: center;
}
.inner-hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,22,30,0.55) 0%, rgba(20,22,30,0.75) 100%);
}
.inner-hero > .inner-hero__content { position: relative; z-index: 2; }

/* Why-IESEG reasons */
.reason {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 16px 18px; border-left: 3px solid transparent; border-radius: 8px;
  cursor: pointer; transition: background .2s, border-color .2s;
}
.reason:hover,
.reason:focus-visible,
.reason.active {
  background: #F8E9EC;
  border-left-color: var(--color-maroon);
}
.reason .ico {
  width: 38px; height: 38px; border-radius: 999px;
  background: #F3E2E6; color: var(--color-maroon);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 14px;
}
.reason h4 { font-weight: 700; color: var(--color-navy); letter-spacing: 0.04em; font-size: 14px; }
.reason p  { color: #5b6373; font-size: 13.5px; margin-top: 2px; }

/* Program card */
.program-card {
  background: #fff; border-radius: 18px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 10px 30px rgba(20,22,30,0.06);
  display: flex; flex-direction: column;
}
.program-img { position: relative; height: 220px; background-size: cover; background-position: center; }
.program-badge {
  position: absolute; left: 16px; bottom: 14px;
  background: var(--color-gold); color: #1a1a1a; font-weight: 600;
  padding: 6px 14px; border-radius: 999px; font-size: 13px;
}
.check-li { display: flex; gap: 10px; align-items: flex-start; color: #2c2f3a; font-size: 14.5px; line-height: 1.45; }
.check-li .dot {
  width: 18px; height: 18px; border-radius: 999px; background: var(--color-navy);
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-size: 9px; flex-shrink: 0; margin-top: 3px;
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; transition: transform .15s, background .2s, color .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-navy { background: var(--color-navy); color: #fff; padding: 14px 26px; border-radius: 8px; }
.btn-navy:hover { background: #2a3147; }
.btn-light { background: #FAF7F2; color: var(--color-navy); padding: 14px 26px; border-radius: 8px; }
.btn-gold  { background: var(--color-gold); color: #1a1a1a; padding: 12px 22px; border-radius: 8px; }
.btn-gold:hover { background: var(--color-gold-2); }
.btn-wa    { background: #25D366; color: #fff; padding: 12px 22px; border-radius: 8px; }
.btn-wa:hover { background: #1FB855; }
.btn-outline-light { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.5); padding: 12px 24px; border-radius: 8px; }
.btn-outline-light:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

/* Nav link */
.nav-link { color: #fff; font-weight: 500; font-size: 15px; padding: 6px 0; position: relative; }
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0;
  background: var(--color-gold); transition: width .2s;
}
.nav-link:hover::after { width: 100%; }
.nav-link.is-active::after { width: 100%; }

/* Forms */
.field-label { font-weight: 600; color: #1a1a1a; font-size: 14px; margin-bottom: 6px; display: block; }
.field {
  width: 100%; border: 1px solid #d9d9d9; border-radius: 8px; padding: 12px 14px;
  font-size: 14.5px; background: #fff; color: #1a1a1a;
  outline: none; transition: border-color .2s, box-shadow .2s;
}
.field:focus { border-color: var(--color-gold); box-shadow: 0 0 0 3px rgba(200,164,101,0.18); }
.field::placeholder { color: #aaa; }

/* Pills + eyebrows */
.pill { display: inline-flex; align-items: center; gap: 8px; background: var(--color-cream-2); color: var(--color-navy); border-radius: 999px; padding: 8px 16px; font-weight: 500; font-size: 13.5px; }
.eyebrow {
  display: inline-block; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.18);
  color: #fff; padding: 6px 16px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
}
.eyebrow-dark {
  display: inline-block; background: rgba(30,36,54,0.06); border: 1px solid rgba(30,36,54,0.12);
  color: var(--color-navy); padding: 6px 16px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
}
.eyebrow-maroon {
  display: inline-block; background: var(--color-maroon); color: #fff;
  padding: 8px 22px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
}
.eyebrow-gold {
  display: inline-block; background: var(--color-gold); color: #1a1a1a;
  padding: 7px 22px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
}

/* Hero indicators */
.hero-dot {
  width: 28px; height: 4px; border-radius: 2px; background: rgba(255,255,255,0.35);
  transition: background .2s, width .2s; cursor: pointer; border: 0;
}
.hero-dot.active { background: var(--color-gold); width: 48px; }

/* Stat avatars */
.stat-avatar { width: 36px; height: 36px; border-radius: 999px; background-size: cover; background-position: center; border: 2px solid #fff; }

/* Section heading */
.section-title { font-family: 'Oswald', sans-serif; font-weight: 700; letter-spacing: 0.02em; }

.text-balance { text-wrap: balance; }
.text-pretty  { text-wrap: pretty; }

/* Video container */
.video-wrap {
  position: relative; border-radius: 18px; overflow: hidden;
  box-shadow: 0 30px 60px rgba(20,22,30,0.18);
  background: #000;
  aspect-ratio: 16 / 9;
}
.video-wrap video,
.video-wrap iframe { width: 100%; height: 100%; object-fit: cover; display: block; border: 0; }

/* Nosotros — feature cards */
.feature-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px 26px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 10px 24px rgba(20,22,30,0.06);
  border: 1px solid rgba(20,22,30,0.04);
  height: 100%;
}
.feature-card .icon-circle {
  width: 56px; height: 56px; border-radius: 999px;
  background: var(--color-cream);
  color: var(--color-maroon);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 16px;
}
.feature-card h3 {
  font-family: 'Oswald', sans-serif;
  font-weight: 700; color: var(--color-navy);
  font-size: 22px; margin-bottom: 10px;
}
.feature-card p { color: #5b6373; line-height: 1.55; font-size: 15px; }

/* Mission / vision panel */
.value-card {
  background: #fff; border-radius: 18px;
  padding: 32px 28px;
  box-shadow: 0 12px 30px rgba(20,22,30,0.08);
  border: 1px solid rgba(20,22,30,0.05);
  height: 100%;
}
.value-card h3 {
  font-family: 'Oswald', sans-serif; font-weight: 700;
  color: var(--color-navy);
  font-size: 24px; margin-bottom: 14px;
}
.value-card p { color: #3a4151; line-height: 1.6; font-size: 15.5px; }

/* Oferta — program detail */
.program-detail {
  background: #fff; border-radius: 22px; overflow: hidden;
  box-shadow: 0 20px 40px rgba(20,22,30,0.08);
  border: 1px solid rgba(20,22,30,0.04);
}
.program-detail .pd-img {
  height: 280px; background-size: cover; background-position: center;
  position: relative;
}
.program-detail .pd-img .pd-tag {
  position: absolute; top: 18px; left: 18px;
  background: var(--color-gold); color: #1a1a1a; font-weight: 700;
  padding: 6px 14px; border-radius: 999px; font-size: 12px;
  letter-spacing: 0.06em; text-transform: uppercase;
}

/* Posgrado mini-card */
.posgrado-card {
  background: #fff; border-radius: 18px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 10px 24px rgba(20,22,30,0.06);
  border: 1px solid rgba(20,22,30,0.04);
  display: flex; flex-direction: column;
}
.posgrado-card .pc-img { height: 200px; background-size: cover; background-position: center; position: relative; }
.posgrado-card .pc-img .pc-tag {
  position: absolute; top: 14px; left: 14px;
  background: var(--color-maroon); color: #fff; font-weight: 700;
  padding: 5px 12px; border-radius: 999px; font-size: 11px;
  letter-spacing: 0.06em; text-transform: uppercase;
}

/* Blog cards */
.blog-card {
  background: #fff; border-radius: 18px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 10px 24px rgba(20,22,30,0.06);
  border: 1px solid rgba(20,22,30,0.04);
  display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(20,22,30,0.12); }
.blog-card .bc-img { height: 220px; background-size: cover; background-position: center; }

/* Mobile menu helpers */
@media (max-width: 1023px) {
  .desktop-nav { display: none; }
}
@media (min-width: 1024px) {
  .mobile-menu-btn { display: none; }
}
