﻿/* ================================================================
   EP de México – Campus Puebla | home.css
   Diseño combinado: EP Mérida + EP Monterrey + EP Guadalajara
   ================================================================ */

/* ─── TIPOGRAFÍA ── */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,600&display=swap');

body {
  font-family: 'Montserrat', Arial, sans-serif;
}

/* ─── SCROLL REVEAL ──────────────────────────────────────────── */
.rv {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.rv.rv-visible { opacity: 1; transform: none; }
.rv-d1 { transition-delay: 0.08s; }
.rv-d2 { transition-delay: 0.16s; }
.rv-d3 { transition-delay: 0.24s; }
.rv-d4 { transition-delay: 0.32s; }

/* ─── EYEBROW PILL ───────────────────────────────────────────── */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: #1558A0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  padding: 0;
  border-radius: 0;
  margin-bottom: 14px;
}
.section-eyebrow--dark {
  color: #5ab4ff;
}

/* ─── SECTION HEADER MEJORADO (.shi) ────────────────────────── */
.shi {
  text-align: center;
  margin-bottom: 40px;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}
.shi h2 {
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 800;
  color: #0A1628;
  margin: 0 0 8px;
  letter-spacing: -0.5px;
  line-height: 1.1;
}
.shi h2 em {
  color: #1558A0;
  font-style: normal;
}
.shi p {
  font-size: 12px;
  color: #64748B;
  margin: 0 auto;
  max-width: 560px;
  line-height: 1.75;
}
.shi--dark h2 { color: #fff; }
.shi--dark h2 em { color: #5ab4ff; }
.shi--dark p  { color: rgba(255,255,255,0.72); }

/* ─── DIFERENCIADORES ────────────────────────────────────────── */
.diff-section {
  background: rgba(9,22,41,0.55);
  padding: 30px 0;
  position: relative;
  overflow: hidden;
}
.diff-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 10% 50%, rgba(21,88,160,.24) 0%, transparent 70%),
    radial-gradient(ellipse 500px 350px at 90% 50%, rgba(46,134,222,.17) 0%, transparent 70%);
  pointer-events: none;
}
.diff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 900px) { .diff-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .diff-grid { grid-template-columns: 1fr; } }

/* Cuando hay 5 tarjetas, la última fila se centra */
.diff-grid--5 {
  grid-template-columns: repeat(4, 1fr);
}
.diff-grid--5 > *:last-child:nth-child(4n+1) {
  grid-column: 2 / span 2;
}

.diff-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 44px 28px 38px;
  text-align: center;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
  position: relative;
  overflow: hidden;
  width: 100%;
}
.diff-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #2E86DE, transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.diff-card:hover {
  background: rgba(46,134,222,0.1);
  border-color: rgba(46,134,222,0.28);
  transform: translateY(-6px);
}
.diff-card:hover::after { opacity: 1; }

.diff-icon {
  width: 76px;
  height: 76px;
  background: rgba(46,134,222,0.14);
  border: 1px solid rgba(90,180,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
  font-size: 30px;
  color: #5ab4ff;
}
.diff-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 10px;
  line-height: 1.3;
}
.diff-card p {
  font-size: 13.5px;
  color: rgba(255,255,255,0.52);
  margin: 0;
  line-height: 1.8;
}

/* ─── PROGRAMAS DE CALIDAD ───────────────────────────────────── */
.prog-cards-section {
  background: #eef3fb;
  padding: 80px 0;
}
/* Ocultar el h2 viejo, reemplazado por .shi */
.prog-cards-section > .container > .section-title { display: none !important; }

/* ─── PRÓXIMOS INICIOS 2.0 ───────────────────────────────────── */
.proximos-section { background: rgba(246,248,252,0.55); }

/* Eyebrow rosa tipo "INSCRIPCIONES ABIERTAS" */
.pi2-eyebrow {
  background: #fce4ec !important;
  color: #d81b60 !important;
  border: none !important;
}

/* Grid de tarjetas — 5 columnas × 3 filas (Diplomados · Especialidades · Maestrías · Doc/Curso/Cert · Congresos) */
.pi2-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  max-width: 1400px;
  margin: 0 auto;
}
@media (max-width: 1280px) {
  .pi2-grid { grid-template-columns: repeat(3, 1fr); max-width: 980px; }
}
@media (max-width: 900px) {
  .pi2-grid { grid-template-columns: repeat(2, 1fr); max-width: 720px; }
}
@media (max-width: 640px) {
  .pi2-grid { grid-template-columns: 1fr; max-width: 480px; }
}

/* Tarjeta individual */
.pi2-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1.5px solid #e8edf5;
  border-radius: 12px;
  padding: 14px 18px;
  text-decoration: none !important;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.18s;
  text-align: left;
}
.pi2-card:hover {
  border-color: #2E86DE;
  box-shadow: 0 4px 16px rgba(46,134,222,0.1);
  transform: translateY(-2px);
  color: inherit;
}

/* Badge de fecha */
.pi2-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  width: 52px;
  height: 52px;
  border-radius: 10px;
  flex-shrink: 0;
}
.pi2-badge--diplomado    { background: #046d8b; }
.pi2-badge--curso        { background: #046d8b; }
.pi2-badge--certificado  { background: #046d8b; }
.pi2-badge--especialidad { background: #309292; }
.pi2-badge--maestria     { background: #2fb8ac; }
.pi2-badge--doctorado    { background: #93a42a; }
.pi2-badge--congreso     { background: #ecbe13; }

.pi2-badge-day {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.pi2-badge--congreso .pi2-badge-day {
  font-size: 14px;
  letter-spacing: -0.5px;
}
.pi2-badge-month {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,0.88);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.4;
}

/* Info del programa */
.pi2-info { flex: 1; min-width: 0; }
.pi2-info-type {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 3px;
}
.pi2-info-type--diplomado    { color: #046d8b; }
.pi2-info-type--curso        { color: #046d8b; }
.pi2-info-type--certificado  { color: #046d8b; }
.pi2-info-type--especialidad { color: #309292; }
.pi2-info-type--maestria     { color: #2fb8ac; }
.pi2-info-type--doctorado    { color: #93a42a; }
.pi2-info-type--congreso     { color: #b08a00; }

.pi2-info-name {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.3;
}

/* Botón "Ver N programas más" */
.pi2-footer {
  justify-content: center;
  margin-top: 14px;
}
.pi2-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #fff;
  border: 1.5px solid #dde4ef;
  color: #555;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 24px;
  border-radius: 20px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  font-family: 'Montserrat', sans-serif;
}
.pi2-toggle:hover { border-color: #2E86DE; color: #2E86DE; }

/* ─── FORMULARIO (shell oscuro) ──────────────────────────────── */
.form-dark-shell {
  background: linear-gradient(135deg, #091629 0%, #0d2540 60%, #122f55 100%);
  position: relative;
  overflow: hidden;
}
.form-dark-shell::before {
  content: '';
  position: absolute;
  top: -150px; right: -150px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(46,134,222,0.14) 0%, transparent 65%);
  pointer-events: none;
}
.form-dark-shell::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(21,88,160,0.18) 0%, transparent 65%);
  pointer-events: none;
}
.form-dark-shell .form-section { background: transparent; }
.form-dark-shell .form-title   { color: #fff; }
.form-dark-shell label         { color: rgba(255,255,255,0.55) !important; }
.form-dark-shell .form-control,
.form-dark-shell .form-select {
  background: rgba(255,255,255,0.07) !important;
  border-color: rgba(255,255,255,0.15) !important;
  color: #fff !important;
}
.form-dark-shell .form-control::placeholder { color: rgba(255,255,255,0.32) !important; }
.form-dark-shell .form-control:focus,
.form-dark-shell .form-select:focus {
  background: rgba(255,255,255,0.1) !important;
  border-color: #2E86DE !important;
  box-shadow: 0 0 0 3px rgba(46,134,222,0.22) !important;
  color: #fff !important;
  outline: none;
}
.form-dark-shell .form-select option { background: #0d2540; color: #fff; }
.form-dark-shell .form-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ─── CAMPUS SECTION ─────────────────────────────────────────── */
.campus-section { background: rgba(238,243,251,0.55); padding: 30px 0; }

/* ─── TESTIMONIOS ────────────────────────────────────────────── */
.testimonios-section { padding: 30px 0; }

/* ─── HORARIO DE ATENCIÓN ────────────────────────────────────── */
.horario-section {
  background: rgba(255,255,255,0.55);
  padding: 30px 0;
}
.horario-cards-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.ha-card {
  flex: 0 0 240px;
  max-width: 260px;
  border-radius: 22px;
  padding: 32px 20px 28px;
  text-align: center;
  border: none;
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg,#005bc5,#60a5fa);
  box-shadow: 0 12px 32px rgba(0,91,197,.42);
  transition: transform .28s cubic-bezier(.34,1.4,.64,1), box-shadow .28s;
}
@media (max-width: 700px) { .ha-card { flex: 0 0 calc(50% - 10px); max-width: calc(50% - 10px); } }
@media (max-width: 420px) { .ha-card { flex: 0 0 100%; max-width: 100%; } }

/* Círculo decorativo en cada ha-card */
.ha-card::before {
  content: '';
  position: absolute;
  top: -20px; right: -20px;
  width: 90px; height: 90px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  pointer-events: none;
}
.ha-card:hover { transform: translateY(-8px) scale(1.03); }
.ha-icon {
  width: 60px; height: 60px;
  background: rgba(255,255,255,0.22);
  border: 2px solid rgba(255,255,255,0.35);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-size: 26px;
  color: #fff;
  transition: transform .25s cubic-bezier(.34,1.6,.64,1);
}
.ha-card:hover .ha-icon { transform: scale(1.15) rotate(-8deg); }
.ha-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.4px;
  color: rgba(255,255,255,0.95);
  text-transform: uppercase;
  margin: 0 0 12px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.ha-text {
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  line-height: 1.6;
  margin: 0;
}
.ha-text span {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
}
.ha-text strong { color: #fff; }

/* ─── FOOTER OSCURO ──────────────────────────────────────────── */
.site-footer {
  background: #091629 !important;
}
.site-footer h4 {
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.3px;
  margin-bottom: 14px;
}
.site-footer p  { color: rgba(255,255,255,0.58); font-size: 13px; line-height: 1.9; }
.site-footer a  { color: rgba(255,255,255,0.55); }
.site-footer a:hover { color: #5ab4ff; text-decoration: none; }
.footer-sep {
  border-top-color: rgba(255,255,255,0.08) !important;
  color: rgba(255,255,255,0.32) !important;
}
.footer-logo img { filter: brightness(0) invert(1); opacity: 0.82; }
.img-gobierno { filter: brightness(0) invert(1); opacity: 0.88; max-width: 220px; }

/* ─── STICKY MÓVIL CTA BAR ───────────────────────────────────── */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1050;
  background: #fff;
  border-top: 1px solid #e0eaf5;
  box-shadow: 0 -4px 22px rgba(0,0,0,0.15);
  padding: 10px 14px 14px;
  gap: 10px;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.sticky-cta.visible { transform: none; }
@media (max-width: 768px) { .sticky-cta { display: flex; } }

.sticky-cta-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 12px 10px;
  border-radius: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
  line-height: 1;
}
.sticky-cta-btn--wa  { background: #25D366; color: #fff !important; }
.sticky-cta-btn--wa:hover { background: #1da851; color: #fff !important; }
.sticky-cta-btn--inf { background: #1558A0; color: #fff !important; }
.sticky-cta-btn--inf:hover { background: #2E86DE; color: #fff !important; }
.sticky-cta-btn i { font-size: 16px; }

/* ── Migrated from inline <style> ── */

    /* Evita el layout shift mientras cargan imágenes */
    img { max-width: 100%; height: auto; }

    /* Flecha dropdown en navbar */
    .nav-arrow {
      font-size: 10px;
      margin-left: 3px;
      transition: transform 0.2s ease;
      vertical-align: middle;
    }
    .dropdown:hover .nav-arrow,
    .dropdown.open .nav-arrow { transform: rotate(180deg); }

    /* Logo INICIO en navbar derecho */
    .nav-inicio-logo {
      display: flex;
      flex-direction: column;
      align-items: center;
      text-decoration: none !important;
      margin-right: -8px;
      padding: 4px 0px 4px 4px;
      gap: 2px;
      flex-shrink: 0;
    }
    .nav-inicio-logo img {
      height: 32px;
      width: auto;
      object-fit: contain;
    }
    .nav-inicio-logo span {
      font-size: 9px;
      font-weight: 700;
      letter-spacing: 1px;
      color: #1558A0;
      text-transform: uppercase;
      line-height: 1;
    }
    .nav-inicio-logo:hover span { color: #2E86DE; }

    /* Botones redes sociales en navbar */
    .nav-socials {
      display: flex;
      align-items: center;
      gap: 5px;
      list-style: none;
      padding: 0;
      margin: 0;
    }
    .nav-social-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 30px;
      height: 30px;
      border-radius: 50%;
      font-size: 13px;
      text-decoration: none !important;
      transition: transform 0.18s, opacity 0.18s;
      color: #fff !important;
    }
    .nav-social-btn:hover { transform: scale(1.15); opacity: 0.9; }
    .nav-social-btn--wa { background: #25D366; }
    .nav-social-btn--fb { background: #1877F2; }
    .nav-social-btn--ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
    .nav-social-btn--tt { background: #010101; }
    .nav-social-btn--li { background: #0A66C2; }

    /* ── Logo centrado en video ── */
    .video-center-logo {
      position: absolute;
      top: 30%; left: 36%;
      transform: translate(-50%, -50%);
      z-index: 3;
      pointer-events: none;
      animation: heroFadeUp 1s 0.3s cubic-bezier(0.16,1,0.3,1) both;
    }
    .video-center-logo img {
      max-height: 230px;
      width: auto;
      display: block;
      filter: drop-shadow(0 2px 18px rgba(0,0,0,0.55));
    }

    /* ── Fondo unificado programas + próximos inicios ── */
    .proximos-section { background: rgba(238,242,255,0.55) !important; }

    /* ══ FLIP CARDS — DISEÑO VIBRANTE ══ */
    .diff-flip-wrap {
      perspective: 1200px;
      width: 100%;
      height: 100%;
      overflow: visible;
    }
    .diff-flip-card {
      position: relative;
      width: 100%; height: 100%;
      transform-style: preserve-3d;
      -webkit-transform-style: preserve-3d;
      transition: transform 0.75s cubic-bezier(0.4, 0.2, 0.2, 1);
      border-radius: 28px;
    }
    .diff-flip-wrap:hover .diff-flip-card { transform: rotateY(180deg); }

    .diff-flip-front, .diff-flip-back {
      position: absolute;
      inset: 0;
      backface-visibility: hidden;
      -webkit-backface-visibility: hidden;
      border-radius: 24px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 24px 18px;
      text-align: center;
      overflow: hidden;
    }
    /* Círculos decorativos en el frente */
    .diff-flip-front::before {
      content: '';
      position: absolute;
      top: -22px; right: -22px;
      width: 100px; height: 100px;
      border-radius: 50%;
      background: rgba(255,255,255,0.12);
      pointer-events: none;
    }
    .diff-flip-front::after {
      content: '';
      position: absolute;
      bottom: -34px; left: -26px;
      width: 130px; height: 130px;
      border-radius: 50%;
      background: rgba(255,255,255,0.07);
      pointer-events: none;
    }

    /* ── Color único por tarjeta (azul #005bc5) ── */
    .diff-grid--5 > div .diff-flip-card  { box-shadow: 0 18px 44px rgba(0,91,197,0.45); }
    .diff-grid--5 > div .diff-flip-front,
    .diff-grid--5 > div .diff-flip-back  { background: linear-gradient(140deg, #005bc5 0%, #60a5fa 100%); }

    /* ── Títulos en el frente ── */
    .diff-grid--5 .diff-flip-front h3 {
      color: #fff !important;
      font-size: 15px;
      font-weight: 800;
      margin: 14px 0 0;
      line-height: 1.3;
      text-shadow: 0 1px 6px rgba(0,0,0,0.18);
    }
    /* ── Back ── */
    .diff-flip-back { transform: rotateY(180deg); }
    .diff-flip-back h3 { color: #fff; font-size: 14px; font-weight: 700; margin: 0 0 10px; line-height: 1.3; }
    .diff-flip-back p  { color: rgba(255,255,255,0.92); font-size: 13px; line-height: 1.55; margin: 0; }

    /* ── Ícono sobre fondo de color ── */
    .diff-grid--5 .diff-icon--light,
    .diff-icon--back {
      background: rgba(255,255,255,0.22) !important;
      border-color: rgba(255,255,255,0.38) !important;
      color: #fff !important;
      width: 72px !important;
      height: 72px !important;
    }
    .diff-grid--5 .diff-icon--light i,
    .diff-icon--back i { font-size: 32px; }

    /* ── Diferenciadores modo claro ── */
    .diff-section--light {
      background: rgba(238,243,251,0.45) !important;
      overflow: visible !important;
    }
    .diff-section--light::before { display: none; }
    .diff-grid--5 {
      grid-template-columns: repeat(8, 1fr) !important;
      max-width: 1080px;
      margin-left: auto !important;
      margin-right: auto !important;
      justify-content: center;
    }
    /* Fila 1: 4 tarjetas (cada una ocupa 2 de 8 sub-columnas) */
    .diff-grid--5 > div:nth-child(-n+4) { grid-column: span 2; }
    /* Fila 2: 3 tarjetas centradas — la quinta arranca en col 2 y las siguientes se auto-colocan */
    .diff-grid--5 > div:nth-child(5) { grid-column: 2 / span 2; }
    .diff-grid--5 > div:nth-child(6),
    .diff-grid--5 > div:nth-child(7) { grid-column: span 2; }
    /* Limpia la regla previa de last-child */
    .diff-grid--5 > div:last-child { grid-column: span 2; }
    @media (max-width: 900px)  {
      .diff-grid--5 { grid-template-columns: repeat(2, minmax(150px, 195px)) !important; }
      .diff-grid--5 > div:nth-child(-n+7) { grid-column: auto !important; }
      .diff-grid--5 > div:last-child { grid-column: auto !important; }
    }
    @media (max-width: 480px)  {
      .diff-grid--5 { grid-template-columns: minmax(170px, 240px) !important; }
      .diff-grid--5 > div:nth-child(-n+7) { grid-column: auto !important; }
      .diff-grid--5 > div:last-child { grid-column: auto !important; }
    }

    /* ── Animación pi2 cards ── */
    @keyframes pi2CardIn {
      from { opacity: 0; transform: translateY(24px); }
      to   { opacity: 1; transform: translateY(0); }
    }
    .pi2-card { opacity: 0; }
    .pi2-card.pi2-visible { animation: pi2CardIn 0.5s cubic-bezier(0.16,1,0.3,1) both; opacity: 1; }

    /* Columna flotante redes sociales — pestañas derecha, debajo del
       tab "Próximos Inicios" (que está en top: 50% con min-height 120px) */
    .float-social-col {
      position: fixed;
      right: 0;
      top: calc(50% + 150px);
      bottom: auto;
      display: flex;
      flex-direction: column;
      gap: 5px;
      z-index: 998;
    }
    .float-soc {
      display: flex;
      align-items: center;
      color: #fff !important;
      text-decoration: none !important;
      padding: 11px 14px;
      border-radius: 10px 0 0 10px;
      font-family: 'Montserrat', sans-serif;
      font-size: 13px;
      font-weight: 700;
      white-space: nowrap;
      min-width: 155px;
      box-shadow: -3px 3px 12px rgba(0,0,0,0.28);
      transform: translateX(calc(100% - 46px));
      transition: transform 0.32s cubic-bezier(0.16,1,0.3,1);
    }
    .float-soc i {
      font-size: 20px;
      width: 22px;
      text-align: center;
      flex-shrink: 0;
    }
    .float-soc span {
      margin-left: 12px;
      font-size: 12px;
      letter-spacing: 0.3px;
    }
    .float-soc:hover { transform: translateX(0); }
    @media (max-width: 768px) {
      /* El .float-social-col original se oculta — el JS reubica sus
         hijos directamente como hijos de .sticky-cta. */
      .float-social-col { display: none !important; }

      /* Grid de 3 columnas × 2 filas para los 6 botones (WhatsApp,
         Solicitar Informes, Facebook, Instagram, TikTok, LinkedIn) */
      .sticky-cta {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
      }

      /* Estilo unificado para todos los hijos: mismo padding, radio,
         altura y color de texto. Iconos centrados, sin etiqueta. */
      .sticky-cta > .sticky-cta-btn,
      .sticky-cta > .float-soc {
        flex: none;
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: auto;
        height: auto;
        min-width: 0;
        padding: 12px 6px;
        border-radius: 10px;
        color: #fff !important;
        text-decoration: none !important;
        transform: none;
        box-shadow: none;
        font-size: 0;          /* oculta el texto "WhatsApp" / "Solicitar Informes" */
        line-height: 1;
        transition: filter 0.2s, transform 0.18s;
      }
      .sticky-cta > .sticky-cta-btn i,
      .sticky-cta > .float-soc i {
        font-size: 18px !important;  /* el icono permanece visible */
        width: auto;
        margin: 0;
      }
      .sticky-cta > .float-soc span { display: none; }
      .sticky-cta > .sticky-cta-btn:hover,
      .sticky-cta > .float-soc:hover {
        filter: brightness(1.1);
        transform: translateY(-1px);
      }
    }
    .float-soc--wa { background: #25D366; }
    .float-soc--fb { background: #1877F2; }
    .float-soc--ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
    .float-soc--tt { background: #010101; }
    .float-soc--li { background: #0A66C2; }

    /* Animación fade + blur al cargar video */
    @keyframes heroVideoIn {
      from { opacity: 0; filter: blur(18px) brightness(0.6); }
      to   { opacity: 1; filter: blur(0px)  brightness(1);   }
    }
    .video-hero video { animation: heroVideoIn 1.8s ease both; }

    /* Hero text: fade + blur */
    @keyframes heroFadeUp {
      from { opacity: 0; transform: translateY(20px); filter: blur(8px); }
      to   { opacity: 1; transform: translateY(0);    filter: blur(0);   }
    }
    .vht-tag      { animation: heroFadeUp 0.9s 0.6s cubic-bezier(0.16,1,0.3,1) both; }
    .vht-subtitle { opacity: 0; }

    /* Contador hero */
    @keyframes countFadeIn {
      from { opacity: 0; transform: translateY(14px); }
      to   { opacity: 1; transform: translateY(0); }
    }
    .vs-num.counting { animation: countFadeIn 0.5s ease both; }

    /* ── Float animation on flip cards ── */
    @keyframes float-card {
      0%, 100% { transform: translateY(0px); }
      50%       { transform: translateY(-10px); }
    }
    .diff-float-inner {
      width: 100%;
      max-width: 240px;
      height: 240px;
      margin: 0 auto;
      animation: float-card 3.5s ease-in-out infinite;
    }
    @media (max-width: 900px) {
      .diff-float-inner { max-width: 210px; height: 210px; }
      .diff-grid--5 .diff-icon--light,
      .diff-icon--back { width: 60px !important; height: 60px !important; }
      .diff-grid--5 .diff-icon--light i,
      .diff-icon--back i { font-size: 26px; }
      .diff-flip-front img { width: 110px !important; height: auto !important; }
      .diff-grid--5 .diff-flip-front h3 { font-size: 14px; margin-top: 12px; }
      .diff-flip-back h3 { font-size: 13px; margin-bottom: 8px; }
      .diff-flip-back p  { font-size: 12px; line-height: 1.5; }
      .diff-flip-front, .diff-flip-back { padding: 18px 14px; }
    }
    @media (max-width: 480px) {
      .diff-float-inner { max-width: 200px; height: 200px; }
      .diff-flip-front img { width: 100px !important; }
    }

    /* Cuando diff-grid está dentro de ep-grid, ep-grid debe ser de 1 columna */
    .epc-v2 .ep-grid:has(.diff-grid) {
      display: block !important;
    }

    /* Asegurar que diff-grid tome todo el ancho disponible */
    .ep-grid .diff-grid--5 {
      width: 100%;
    }

    /* ── Section titles uppercase ── */
    .shi h2,
    .epc-h2,
    .campus-title,
    .section-title,
    .proximos-section h2 { text-transform: uppercase; }

    /* ── Imagen campus en video hero ── */
    .video-campus-img {
      position: absolute;
      top: 48%;
      left: 50%;
      transform: translate(-50%, -50%);
      z-index: 3;
      text-align: center;
    }
    .video-campus-img img {
      max-height: 320px;
      width: auto;
      filter:
        brightness(0) saturate(100%)
        invert(48%) sepia(65%) saturate(500%) hue-rotate(190deg) brightness(1.25)
        drop-shadow(0 3px 14px rgba(0,0,0,0.45));
    }

    /* ── Hero responsive: descongestionar el video en móvil ── */
    @media (max-width: 600px) {
      /* Logo EP (logoep.png) oculto en móvil para no saturar; el branding
         se distribuye con Campus Puebla en el centro y Blanco/Escudo en
         los bordes laterales del video. */
      .video-center-logo { display: none !important; }

      /* Campus Puebla centrado horizontal, hacia arriba del video */
      .video-campus-img {
        top: 38% !important;
        left: 50% !important;
        right: auto !important;
        transform: translate(-50%, -50%) !important;
      }
      .video-campus-img img { max-height: 100px; }

      /* Cita rotativa entre el logo central y la banda de stats —
         con suficiente offset para no pisar los stats wrapped (2 filas).
         !important para vencer al <style> inline en index.html que
         declara `.vht-quote-box{height:76px}` (cargado después de este). */
      .video-hero-title { bottom: 170px; }
      .vht-quote-box {
        height: 130px !important;
        overflow: visible !important;
      }
      .vht-quote {
        font-size: 13px !important;
        letter-spacing: 1.5px !important;
        line-height: 1.4 !important;
        padding: 0 18px !important;
      }

      /* Tira de logos #sub-navbar-logos: spread a bordes opuestos del
         video. Blanco.png a la izquierda, ESCUDO-01.png a la derecha. */
      #sub-navbar-logos {
        top: 100px !important;
        left: 14px !important;
        right: 14px !important;
        transform: none !important;
        width: auto !important;
        justify-content: space-between !important;
        gap: 0 !important;
      }
      #sub-navbar-logos img { height: 56px !important; }
      /* Mantener el slide-up al hacer scroll, ahora vertical en lugar
         de translate(-50%, -200%) que asumía centrado horizontal */
      #sub-navbar-logos.nav-hidden {
        opacity: 0 !important;
        transform: translateY(-40px) !important;
      }
      .video-stats {
        flex-wrap: wrap;
        gap: 0;
        padding: 4px 8px;
        background: transparent;
      }
      .vs-item {
        flex: 1 1 33%;
        padding: 8px 6px;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.10);
      }
      .vs-num { font-size: 18px; }
      .vs-label { font-size: 9px; letter-spacing: 0.5px; line-height: 1.15; text-align: center; }
    }
    @media (max-width: 400px) {
      /* Hero compacto y predecible — evita que el video tome 90vh y
         desordene los textos/badges sobre el contenido del video. */
      .video-hero {
        max-height: none;
        height: auto;
        display: flex;
        flex-direction: column;
      }
      .video-hero video {
        width: 100%;
        height: 240px;
        object-fit: cover;
        display: block;
      }

      /* Distribución dentro del recuadro del video (240px):
         Blanco.png (izq) — Campus Puebla (centro) — Escudo (der) */
      .video-center-logo { display: none !important; }
      .video-campus-img {
        display: block !important;
        top: 36% !important;
        left: 50% !important;
        right: auto !important;
        transform: translate(-50%, -50%) !important;
      }
      .video-campus-img img { max-height: 80px !important; }
      #sub-navbar-logos {
        top: 80px !important;
        left: 8px !important;
        right: 8px !important;
        transform: none !important;
        justify-content: space-between !important;
        gap: 0 !important;
      }
      #sub-navbar-logos img { height: 44px !important; }
      .video-hero-title {
        position: absolute;
        bottom: auto;
        top: 50%;
        width: 100%;
        padding: 0 16px;
      }
      .vht-quote-box {
        height: 110px !important;
        overflow: visible !important;
      }
      .vht-quote {
        font-size: 11px !important;
        letter-spacing: 1.2px !important;
        line-height: 1.4 !important;
        padding: 0 14px !important;
      }

      /* Stats con fondo semi-transparente para que el texto blanco
         destaque sin recurrir a una banda sólida negra. */
      .video-stats {
        position: static;
        background: rgba(10, 22, 40, 0.45) !important;
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        padding: 8px 4px;
        gap: 0;
        flex-wrap: wrap;
      }
      .vs-item {
        flex: 1 1 33.33%;
        padding: 6px 4px;
        border-right: 1px solid rgba(255,255,255,0.10);
        border-bottom: 1px solid rgba(255,255,255,0.10);
        background: transparent !important;
      }
      /* hero-wrapper y video-hero transparentes para no dejar la banda
         negra del padre asomar antes/después del bloque de stats. */
      .hero-wrapper { background: transparent !important; }
      .video-hero { background: transparent !important; }
      .vs-item:nth-child(3n) { border-right: none; }
      .vs-item:nth-last-child(-n+2):nth-child(n+4) { border-bottom: none; }
      .vs-num { font-size: 16px; }
      .vs-label { font-size: 8px; line-height: 1.15; }
    }

    /* ── Tabs nav – single tab style ── */
    .tabs-nav {
      display: flex;
      flex-direction: column;
      gap: 0;
    }
    .tab-link {
      background: rgba(255,255,255,0.92);
      border-left: 4px solid #1558A0;
    }

    /* ══════════════════════════════════════════
       EPC — Explorador de Programas de Calidad
       ══════════════════════════════════════════ */

    /* Section wrapper – fondo transparente, burbujas visibles */
    .epc-section {
      position: relative;
      background: transparent;
      padding: 80px 0 100px;
      overflow: visible;
    }

    /* CSS decorative bubbles – más visibles sobre fondo blanco */
    .epc-bubble {
      position: absolute;
      border-radius: 50%;
      pointer-events: none;
    }
    .epc-b1 { width: 540px; height: 540px; background: rgba(124,58,237,.18);  top: -160px; left: -120px;  animation: epc-drift1  7s ease-in-out infinite; }
    .epc-b2 { width: 420px; height: 420px; background: rgba(22,163,74,.15);   bottom: -80px; right: 40px; animation: epc-drift2  9s ease-in-out infinite; }
    .epc-b3 { width: 320px; height: 320px; background: rgba(37,99,235,.14);   top: 30px; right: -60px;    animation: epc-drift3  6s ease-in-out infinite 0.8s; }
    .epc-b4 { width: 220px; height: 220px; background: rgba(192,38,211,.13);  bottom: 40px; left: 18%;   animation: epc-drift4  5.5s ease-in-out infinite 0.4s; }

    @keyframes epc-drift1 {
      0%, 100% { transform: translate(0, 0) scale(1); }
      33%       { transform: translate(28px, -36px) scale(1.06); }
      66%       { transform: translate(-18px, 24px) scale(0.97); }
    }
    @keyframes epc-drift2 {
      0%, 100% { transform: translate(0, 0) scale(1); }
      33%       { transform: translate(-22px, 30px) scale(1.05); }
      66%       { transform: translate(16px, -20px) scale(0.96); }
    }
    @keyframes epc-drift3 {
      0%, 100% { transform: translate(0, 0); }
      50%       { transform: translate(20px, 28px); }
    }
    @keyframes epc-drift4 {
      0%, 100% { transform: translate(0, 0); }
      50%       { transform: translate(-16px, -22px); }
    }

    .epc-wrap {
      position: relative;
      max-width: none;
      margin: 0;
      padding: 0;
    }

    /* Section header */
    .epc-head { text-align: center; margin-bottom: 52px; padding: 0 24px; }
    .epc-eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 2.5px;
      color: #1558A0;
      text-transform: uppercase;
      margin-bottom: 12px;
    }
    .epc-h2 {
      font-size: clamp(1.7rem, 3.2vw, 2.6rem);
      font-weight: 900;
      color: #0a1628;
      margin: 0 0 12px;
      line-height: 1.2;
      text-transform: uppercase;
    }
    .epc-h2 em { color: #1558A0; font-style: normal; }
    .epc-hsub {
      font-size: 15px;
      color: #64748b;
      margin: 0;
    }

    /* Cards grid */
    .epc-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 0;
    }
    @media (max-width: 900px) { .epc-grid { grid-template-columns: repeat(2, 1fr); } }
    @media (max-width: 540px) { .epc-grid { grid-template-columns: 1fr; } }

    /* Individual card */
    .epc-card {
      border-radius: 0;
      background: transparent;
      box-shadow: none;
      cursor: pointer;
      overflow: hidden;
      opacity: 0;
      transition: transform .25s, box-shadow .25s;
    }
    .epc-card:hover {
      transform: translateY(-6px);
      box-shadow: 0 16px 48px rgba(0,0,0,.22);
      z-index: 2;
      position: relative;
    }

    /* Card top – colored gradient, now the full card */
    .epc-card-top {
      padding: 26px 22px 18px;
      position: relative;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      min-height: 290px;
    }
    .epc-card-top::after {
      content: '';
      position: absolute;
      width: 180px; height: 180px;
      border-radius: 50%;
      background: rgba(255,255,255,.07);
      bottom: -60px; right: -50px;
      pointer-events: none;
    }
    .epc-ct-icon {
      width: 42px; height: 42px;
      background: rgba(255,255,255,.22);
      border-radius: 10px;
      display: flex; align-items: center; justify-content: center;
      margin-bottom: 12px;
      flex-shrink: 0;
    }
    .epc-ct-tag {
      display: inline-block;
      background: rgba(255,255,255,.22);
      color: #fff;
      font-size: 10px; font-weight: 700;
      letter-spacing: 1px;
      padding: 3px 10px; border-radius: 20px;
      margin-bottom: 10px;
      align-self: flex-start;
    }
    .epc-ct-title {
      font-size: 15px; font-weight: 900;
      color: #fff;
      text-transform: uppercase;
      letter-spacing: .4px;
      margin: 0 0 8px; line-height: 1.25;
    }
    .epc-ct-desc {
      font-size: 12px;
      color: rgba(255,255,255,.88);
      margin: 0; line-height: 1.6;
      transition: opacity .3s;
    }
    .epc-card:hover .epc-ct-desc { opacity: .6; }

    /* Hover list – hidden by default, slides in on card hover */
    .epc-hover-list {
      display: flex;
      flex-direction: column;
      gap: 6px;
      margin-top: 10px;
      max-height: 0;
      overflow: hidden;
      opacity: 0;
      transition: max-height .35s ease, opacity .3s ease, margin-top .3s ease;
    }
    .epc-card:hover .epc-hover-list {
      max-height: 140px;
      opacity: 1;
    }
    .epc-hl-item {
      font-size: 11.5px;
      color: rgba(255,255,255,.92);
      display: flex;
      align-items: center;
      gap: 7px;
      line-height: 1.3;
    }
    .epc-hl-item i {
      font-size: 10px;
      color: rgba(255,255,255,.60);
      flex-shrink: 0;
    }

    /* CTA row at bottom of the colored card */
    .epc-card-cta-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-top: auto;
      padding-top: 16px;
      border-top: 1px solid rgba(255,255,255,.18);
    }
    .epc-cb-lbl {
      font-size: 10px; font-weight: 800;
      letter-spacing: 1.5px; color: rgba(255,255,255,.92);
      text-transform: uppercase;
    }
    .epc-cb-arr {
      width: 32px; height: 32px; border-radius: 50%;
      background: rgba(255,255,255,.20);
      display: flex; align-items: center; justify-content: center;
      flex-shrink: 0;
      transition: transform .2s, background .2s;
    }
    .epc-card:hover .epc-cb-arr { transform: translateX(4px); background: rgba(255,255,255,.32); }

    @keyframes epc-card-in {
      from { opacity: 0; transform: translateY(28px) scale(.97); }
      to   { opacity: 1; transform: translateY(0)    scale(1);   }
    }

    /* Vertical side tab – TEMA CLARO */
    .epc-side-tab {
      position: absolute;
      right: -56px;
      top: 50%;
      transform: translateY(-50%) rotate(90deg);
      background: #fff;
      border: 2px solid #1558A0;
      color: #1558A0;
      font-size: 10px; font-weight: 800;
      letter-spacing: 3px;
      padding: 8px 20px;
      border-radius: 6px 6px 0 0;
      white-space: nowrap;
      text-decoration: none;
      display: block;
      transition: background .2s, color .2s;
    }
    .epc-side-tab:hover { background: #1558A0; color: #fff; text-decoration: none; }
    @media (max-width: 1280px) { .epc-side-tab { display: none; } }

    /* ── Overlay / Modal ── */
    .epc-overlay {
      position: fixed;
      inset: 0;
      background: rgba(2,6,23,.82);
      backdrop-filter: blur(6px);
      z-index: 9000;
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 0;
      pointer-events: none;
      transition: opacity .3s;
    }
    .epc-overlay.open { opacity: 1; pointer-events: all; }
    .epc-modal {
      background: #0f172a;
      border: 1px solid rgba(255,255,255,.08);
      border-radius: 20px;
      width: min(92vw, 960px);
      max-height: 88vh;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      transform: scale(.96) translateY(16px);
      transition: transform .3s cubic-bezier(.34,1.26,.64,1);
    }
    .epc-overlay.open .epc-modal { transform: scale(1) translateY(0); }

    .epc-modal-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 20px 24px;
      border-bottom: 1px solid rgba(255,255,255,.06);
      flex-shrink: 0;
    }
    .epc-hicon {
      width: 42px;
      height: 42px;
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }
    .epc-modal-title { font-size: 18px; font-weight: 800; color: #f1f5f9; }
    .epc-modal-sub   { font-size: 12px; color: #64748b; margin-top: 2px; }
    .epc-close-btn {
      background: rgba(255,255,255,.06);
      border: none;
      border-radius: 8px;
      width: 34px;
      height: 34px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #94a3b8;
      cursor: pointer;
      transition: background .2s, color .2s;
    }
    .epc-close-btn:hover { background: rgba(255,255,255,.12); color: #f1f5f9; }

    .epc-modal-body {
      display: grid;
      grid-template-columns: 1fr 1fr;
      flex: 1;
      overflow: hidden;
    }
    @media (max-width: 680px) { .epc-modal-body { grid-template-columns: 1fr; } }

    /* List column */
    .epc-list-col {
      border-right: 1px solid rgba(255,255,255,.06);
      display: flex;
      flex-direction: column;
      overflow: hidden;
    }
    .epc-search {
      margin: 16px;
      padding: 9px 14px;
      background: rgba(255,255,255,.06);
      border: 1px solid rgba(255,255,255,.08);
      border-radius: 8px;
      color: #f1f5f9;
      font-size: 13px;
      font-family: 'Montserrat', Arial, sans-serif;
      outline: none;
      flex-shrink: 0;
      transition: border-color .2s;
    }
    .epc-search:focus { border-color: rgba(255,255,255,.2); }
    .epc-search::placeholder { color: #475569; }
    .epc-list {
      overflow-y: auto;
      flex: 1;
      padding: 0 12px 12px;
      display: flex;
      flex-direction: column;
      gap: 8px;
    }
    .epc-list::-webkit-scrollbar { width: 4px; }
    .epc-list::-webkit-scrollbar-track { background: transparent; }
    .epc-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 4px; }

    /* List items (rendered by JS) */
    .epc-item {
      background: rgba(255,255,255,.04);
      border: 1px solid rgba(255,255,255,.06);
      border-radius: 10px;
      padding: 18px 16px;
      position: relative;
      min-height: 90px;
      transition: background .2s, border-color .2s;
    }
    .epc-item:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.12); }
    .epc-item-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
    .epc-item-name { font-size: 12px; font-weight: 700; color: #e2e8f0; line-height: 1.4; }
    .epc-item-badge {
      font-size: 9px;
      font-weight: 700;
      letter-spacing: .8px;
      padding: 2px 7px;
      border-radius: 20px;
      white-space: nowrap;
      flex-shrink: 0;
    }
    .epc-b-presencial { background: rgba(37,99,235,.25); color: #93c5fd; }
    .epc-b-linea      { background: rgba(22,163,74,.25);  color: #86efac; }
    .epc-b-hibrida    { background: rgba(192,38,211,.25); color: #e879f9; }
    .epc-item-meta { display: flex; flex-wrap: wrap; gap: 6px; }
    .epc-meta-chip {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      font-size: 10px;
      color: #64748b;
      background: rgba(255,255,255,.04);
      border-radius: 20px;
      padding: 2px 8px;
    }
    .epc-meta-chip svg { width: 11px; height: 11px; fill: #475569; flex-shrink: 0; }
    .epc-item-arrow {
      position: absolute;
      bottom: 12px;
      right: 14px;
      width: 22px;
      height: 22px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    /* Detail panel */
    .epc-detail {
      display: flex;
      flex-direction: column;
      overflow: hidden;
      transform: translateX(24px);
      opacity: 0;
      pointer-events: none;
      transition: transform .25s, opacity .25s;
    }
    .epc-detail.show { transform: translateX(0); opacity: 1; pointer-events: all; }
    .epc-detail-head {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 14px 20px;
      border-bottom: 1px solid rgba(255,255,255,.06);
      flex-shrink: 0;
    }
    .epc-back-btn {
      display: flex;
      align-items: center;
      gap: 5px;
      background: rgba(255,255,255,.06);
      border: none;
      border-radius: 7px;
      color: #94a3b8;
      font-size: 11px;
      font-family: 'Montserrat', Arial, sans-serif;
      font-weight: 700;
      padding: 5px 10px;
      cursor: pointer;
      white-space: nowrap;
      transition: background .2s;
    }
    .epc-back-btn:hover { background: rgba(255,255,255,.1); color: #f1f5f9; }
    .epc-bread { font-size: 10px; color: #475569; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .epc-dbody { overflow-y: auto; flex: 1; padding: 16px 20px; }
    .epc-dbody::-webkit-scrollbar { width: 4px; }
    .epc-dbody::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 4px; }
    .epc-dfooter {
      padding: 14px 20px;
      border-top: 1px solid rgba(255,255,255,.06);
      display: flex;
      gap: 10px;
      flex-shrink: 0;
      flex-wrap: wrap;
    }

    /* Detail body styles (rendered by JS) */
    .epc-dhero {
      border-radius: 12px;
      padding: 20px;
      margin-bottom: 16px;
    }
    .epc-dhero-name { font-size: 14px; font-weight: 800; color: #fff; margin-bottom: 8px; line-height: 1.4; }
    .epc-dhero-sub  { font-size: 12px; color: rgba(255,255,255,.75); line-height: 1.55; margin-bottom: 12px; }
    .epc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
    .epc-chip {
      font-size: 10px;
      font-weight: 700;
      padding: 3px 10px;
      border-radius: 20px;
      background: rgba(255,255,255,.15);
      color: #fff;
    }
    .epc-dsec { margin-bottom: 16px; }
    .epc-dsec h4 { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; color: #475569; text-transform: uppercase; margin: 0 0 10px; }
    .epc-dgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    .epc-infobox {
      background: rgba(255,255,255,.04);
      border: 1px solid rgba(255,255,255,.06);
      border-radius: 8px;
      padding: 10px 12px;
    }
    .epc-infobox-lbl { font-size: 10px; color: #475569; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 3px; }
    .epc-infobox-val { font-size: 12px; font-weight: 700; color: #e2e8f0; }
    .epc-reqlist { display: flex; flex-direction: column; gap: 7px; }
    .epc-reqitem { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: #94a3b8; line-height: 1.4; }
    .epc-reqdot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; margin-top: 4px; }
    .epc-btn-insc {
      flex: 1;
      padding: 10px 18px;
      border: none;
      border-radius: 8px;
      font-size: 12px;
      font-weight: 800;
      font-family: 'Montserrat', Arial, sans-serif;
      color: #fff;
      cursor: pointer;
      text-align: center;
      transition: filter .2s;
    }
    .epc-btn-insc:hover { filter: brightness(1.12); }
    .epc-btn-wa2 {
      display: flex;
      align-items: center;
      gap: 7px;
      padding: 10px 16px;
      background: #16a34a;
      border: none;
      border-radius: 8px;
      font-size: 12px;
      font-weight: 800;
      font-family: 'Montserrat', Arial, sans-serif;
      color: #fff;
      cursor: pointer;
      transition: filter .2s;
    }
    .epc-btn-wa2:hover { filter: brightness(1.12); }
    .epc-btn-wa2 svg { width: 16px; height: 16px; fill: #fff; flex-shrink: 0; }

    @keyframes card-in {
      from { opacity: 0; transform: translateY(12px); }
      to   { opacity: 1; transform: translateY(0);    }
    }
  