/* ══════════════════════════════════════════════
   ESTUDIANTES.CSS — Página exclusiva ULA
   Complementa style.css, no lo reemplaza
══════════════════════════════════════════════ */

/* ── Hero ── */

.est-hero {
  background:
    linear-gradient(135deg, rgba(16, 32, 39, 0.97) 0%, rgba(31, 111, 104, 0.82) 100%),
    url("../img/hero-bg.jpg") center / cover;
  color: var(--white);
  padding: 96px clamp(18px, 7vw, 88px) 80px;
}

.est-hero-inner {
  width: min(860px, 100%);
}

.est-ula-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 7px 14px;
  margin-bottom: 22px;
}

.est-ula-badge i {
  color: var(--gold);
  font-size: 1rem;
}

.est-hero h1 {
  margin: 0 0 16px;
  color: var(--white);
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1;
}

.est-hero > .est-hero-inner > p {
  max-width: 660px;
  margin: 0 0 32px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.12rem;
  line-height: 1.6;
}

.est-hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.est-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
  font-weight: 800;
  padding: 10px 16px;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.est-chip i {
  font-size: 1rem;
}

.est-chip:hover {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
}

.est-chip.is-active {
  border-color: var(--gold);
  background: rgba(196, 134, 60, 0.18);
  color: var(--gold);
}

/* ── Course section ── */

.est-course {
  padding: 72px clamp(18px, 6vw, 76px);
  scroll-margin-top: calc(var(--header) + 18px);
}

.est-course-alt {
  background: var(--paper-2);
}

.est-course-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  width: min(var(--max), 100%);
  margin: 0 auto 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.est-course-badge {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--badge-color) 12%, transparent);
  color: var(--badge-color);
  font-size: 1.6rem;
  flex-shrink: 0;
}

.est-course-header h2 {
  margin: 4px 0 0;
  color: var(--ink);
  font-family: "Newsreader", Georgia, serif;
  font-size: 2rem;
  line-height: 1.05;
}

.est-course-header .eyebrow {
  margin: 0;
}

.est-course-meta {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.est-prog-btn {
  flex-shrink: 0;
  white-space: nowrap;
}

/* ── Overview cards (3 col) ── */

.est-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: min(var(--max), 100%);
  margin: 0 auto 48px;
}

.est-overview-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  padding: 22px;
}

.est-overview-card i {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  background: rgba(31, 111, 104, 0.1);
  color: var(--teal);
  font-size: 1.2rem;
  margin-bottom: 14px;
}

.est-overview-card h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 0.96rem;
}

.est-overview-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* ── Units grid ── */

.est-units {
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.est-units-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  color: var(--ink);
  font-size: 1.1rem;
}

.est-units-title i {
  color: var(--teal);
}

.est-unit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

/* ── Single unit card ── */

.est-unit {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.est-unit:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.est-unit-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}

.est-unit-num {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 800;
}

.est-unit-header h4 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 0.97rem;
  line-height: 1.3;
}

.est-unit-header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

/* ── Material list ── */

.est-materials {
  margin: 0;
  padding: 12px 22px 16px;
  list-style: none;
  display: grid;
  gap: 8px;
}

.est-mat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius);
  font-size: 0.86rem;
  transition: background 160ms ease;
}

/* — Ready: file is available — */
.est-mat-item:not(.est-mat-soon) {
  background: rgba(31, 111, 104, 0.05);
}

.est-mat-item:not(.est-mat-soon):hover {
  background: rgba(31, 111, 104, 0.1);
}

.est-mat-item:not(.est-mat-soon) > i {
  color: var(--teal);
}

.est-mat-item:not(.est-mat-soon) > a {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: var(--radius);
  background: var(--teal);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 5px 10px;
  white-space: nowrap;
  transition: background 160ms ease;
}

.est-mat-item:not(.est-mat-soon) > a:hover {
  background: var(--teal-dark);
}

/* — Soon: placeholder — */
.est-mat-item.est-mat-soon {
  opacity: 0.5;
}

.est-mat-item.est-mat-soon > i {
  color: var(--muted);
}

.est-mat-item > span:first-of-type {
  flex: 1;
  color: var(--ink-2);
  font-weight: 600;
}

.est-tag-soon {
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  text-transform: uppercase;
}

/* ── Contact band ── */

.est-contact {
  background: var(--ink);
  color: var(--white);
  padding: 64px clamp(18px, 6vw, 76px);
}

.est-contact-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.est-contact-inner > i {
  flex-shrink: 0;
  font-size: 2.4rem;
  color: var(--gold);
}

.est-contact-inner > div {
  flex: 1;
}

.est-contact-inner h2 {
  margin: 0 0 6px;
  color: var(--white);
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.6rem;
  line-height: 1.15;
}

.est-contact-inner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
}

.est-contact-inner .button {
  flex-shrink: 0;
  white-space: nowrap;
}

/* ── How to add a material (guide comment in page) ── */
/* To add a real file, replace:
     <li class="est-mat-item est-mat-soon">
       <i class="bi bi-file-earmark-slides"></i>
       <span>Nombre del material</span>
       <span class="est-tag-soon">Próximamente</span>
     </li>
   with:
     <li class="est-mat-item">
       <i class="bi bi-file-earmark-slides"></i>
       <span>Nombre del material</span>
       <a href="ENLACE_O_RUTA.pdf" target="_blank" rel="noopener noreferrer">
         <i class="bi bi-download"></i> Descargar
       </a>
     </li>
*/

/* ── Responsive ── */

@media (max-width: 1100px) {
  .est-course-header {
    grid-template-columns: auto 1fr;
  }

  .est-prog-btn {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 900px) {
  .est-overview,
  .est-unit-grid {
    grid-template-columns: 1fr;
  }

  .est-contact-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .est-hero {
    padding: 80px 18px 62px;
  }

  .est-hero-chips {
    flex-direction: column;
  }

  .est-chip {
    width: 100%;
    justify-content: center;
  }

  .est-course {
    padding: 52px 18px;
  }

  .est-course-header {
    grid-template-columns: 1fr;
  }

  .est-course-badge {
    display: none;
  }

  .est-contact-inner .button {
    width: 100%;
    justify-content: center;
  }
}
