/* =========================================================
   CERTUAP HOME — 2026
   Estilos exclusivos del index.php
   Paleta: azul noche + turquesa + naranja
   ========================================================= */

:root {
  --cu-bg: #03111c;
  --cu-bg-2: #061a28;
  --cu-panel: #0a2232;
  --cu-text: #f7fbff;
  --cu-muted: #a8bac8;
  --cu-cyan: #11e5d3;
  --cu-cyan-2: #24cbe8;
  --cu-orange: #ff7a1a;
  --cu-orange-2: #ff9a22;
  --cu-border: rgba(53, 220, 225, .30);
  --cu-shadow: 0 20px 60px rgba(0, 0, 0, .38);
}

.home-page {
  background: #fff;
}

/* ---------- NAV ---------- */
.home-page .certuap-navbar {
  min-height: 78px;
  background: rgba(2, 17, 28, .94);
  border-bottom: 1px solid rgba(57, 205, 218, .20);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  transition: background .25s ease, box-shadow .25s ease, min-height .25s ease;
  z-index: 1040;
}

.home-page .certuap-navbar.scrolled {
  min-height: 68px;
  background: rgba(2, 14, 23, .985);
  box-shadow: 0 10px 35px rgba(0, 0, 0, .30);
}

.certuap-nav-container {
  max-width: 1580px;
  padding-left: clamp(18px, 4vw, 68px);
  padding-right: clamp(18px, 4vw, 68px);
}

.certuap-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-right: clamp(18px, 2vw, 36px);
}

.certuap-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.certuap-brand-name {
  color: #fff;
  font-size: 1.72rem;
  font-weight: 900;
  letter-spacing: .02em;
}

.certuap-search {
  width: min(330px, 25vw);
  height: 46px;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border: 1px solid rgba(166, 199, 215, .36);
  border-radius: 15px;
  color: #c6d2dc;
  background: rgba(255, 255, 255, .025);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.certuap-search:focus-within {
  border-color: rgba(17, 229, 211, .68);
  box-shadow: 0 0 0 3px rgba(17, 229, 211, .08);
}

.certuap-search input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  font-size: .92rem;
}

.certuap-search input::placeholder {
  color: #afbeca;
}

.certuap-nav-links {
  gap: 4px;
}

.home-page .certuap-navbar .nav-link {
  color: rgba(255, 255, 255, .88);
  font-weight: 700;
  font-size: .90rem;
  padding: 12px 10px !important;
  white-space: nowrap;
  transition: color .2s ease;
}

.home-page .certuap-navbar .nav-link:hover,
.home-page .certuap-navbar .nav-link:focus {
  color: var(--cu-cyan);
}

.certuap-nav-ia {
  padding: 11px 16px !important;
  border: 1px solid rgba(255, 122, 26, .36);
  border-radius: 14px;
  background: linear-gradient(135deg, #ff6d27, #ff8a20);
  box-shadow: 0 9px 25px rgba(255, 105, 24, .25);
  color: #fff !important;
}

.certuap-campus-link i {
  color: #b9c9d6;
  margin-right: 5px;
}

.certuap-nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 13px;
  color: #03121d !important;
  background: linear-gradient(135deg, var(--cu-cyan), #5ff6e8);
  border: 0;
  font-weight: 900;
  box-shadow: 0 10px 28px rgba(17, 229, 211, .20);
}

.certuap-nav-cta:hover {
  color: #03121d !important;
  transform: translateY(-1px);
}

.certuap-dropdown {
  padding: 9px;
  min-width: 260px;
  background: #071925;
  border: 1px solid rgba(45, 210, 220, .22);
  border-radius: 15px;
  box-shadow: var(--cu-shadow);
}

.certuap-dropdown .dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #e8f2f8;
  font-size: .90rem;
}

.certuap-dropdown .dropdown-item i {
  width: 20px;
  color: var(--cu-cyan);
  text-align: center;
}

.certuap-dropdown .dropdown-item:hover {
  color: #fff;
  background: rgba(17, 229, 211, .10);
}

.certuap-dropdown .dropdown-divider {
  border-color: rgba(255, 255, 255, .10);
}

/* ---------- HERO ---------- */
.certuap-hero {
  position: relative;
  overflow: hidden;
  padding-top: 78px;
  color: var(--cu-text);
  background:
    radial-gradient(circle at 74% 45%, rgba(0, 211, 221, .12), transparent 30%),
    radial-gradient(circle at 9% 84%, rgba(255, 122, 26, .09), transparent 24%),
    linear-gradient(115deg, #03111d 0%, #041622 50%, #03111d 100%);
}

.certuap-hero::before,
.certuap-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  border: 1px solid rgba(31, 229, 226, .22);
  width: 730px;
  height: 340px;
  transform: rotate(-17deg);
}

.certuap-hero::before {
  left: -430px;
  top: 180px;
}

.certuap-hero::after {
  right: -420px;
  bottom: 120px;
}

.certuap-hero-glow {
  position: absolute;
  width: 420px;
  height: 2px;
  pointer-events: none;
  filter: blur(.3px);
  opacity: .78;
}

.certuap-hero-glow--one {
  left: -70px;
  top: 290px;
  transform: rotate(-35deg);
  background: linear-gradient(90deg, transparent, var(--cu-cyan), transparent);
  box-shadow: 0 0 18px rgba(17, 229, 211, .55);
}

.certuap-hero-glow--two {
  right: -40px;
  top: 210px;
  transform: rotate(-34deg);
  background: linear-gradient(90deg, transparent, var(--cu-orange), transparent);
  box-shadow: 0 0 18px rgba(255, 122, 26, .55);
}

.certuap-hero-container {
  max-width: 1580px;
  padding-left: clamp(24px, 5vw, 88px);
  padding-right: clamp(24px, 5vw, 88px);
}

.certuap-hero .row {
  min-height: 650px;
}

.certuap-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 60px 0 55px;
}

.certuap-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 28px;
  padding: 10px 17px;
  border: 1px solid rgba(17, 229, 211, .72);
  border-radius: 999px;
  color: #eaffff;
  background: rgba(5, 28, 39, .68);
  box-shadow: inset 0 0 22px rgba(17, 229, 211, .05), 0 0 24px rgba(17, 229, 211, .08);
  font-size: .93rem;
  font-weight: 800;
}

.certuap-hero-badge i {
  color: var(--cu-cyan);
}

.certuap-hero-title {
  max-width: 760px;
  margin: 0;
  color: #fff;
  font-family: "Nunito", sans-serif;
  font-size: clamp(3.1rem, 4.45vw, 5.05rem);
  line-height: .99;
  letter-spacing: -.055em;
  font-weight: 900;
}

.certuap-hero-title span {
  display: block;
  margin-top: 8px;
  color: var(--cu-orange);
  background: linear-gradient(90deg, #ff6d27, #ff9524);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.certuap-hero-subtitle {
  max-width: 650px;
  margin: 26px 0 0;
  color: #c1cdd7;
  font-size: clamp(1.08rem, 1.35vw, 1.36rem);
  line-height: 1.52;
}

.certuap-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.certuap-btn {
  min-height: 60px;
  padding: 0 29px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 900;
  font-size: 1rem;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.certuap-btn--primary {
  color: #fff;
  background: linear-gradient(135deg, #ff6928, #ff9320);
  box-shadow: 0 14px 32px rgba(255, 117, 25, .28);
}

.certuap-btn--primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 17px 38px rgba(255, 117, 25, .35);
}

.certuap-btn--secondary {
  color: #fff;
  background: rgba(3, 17, 28, .72);
  border-color: var(--cu-cyan);
}

.certuap-btn--secondary i {
  color: var(--cu-cyan);
}

.certuap-btn--secondary:hover {
  color: #fff;
  background: rgba(17, 229, 211, .08);
  transform: translateY(-2px);
}

.certuap-hero-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 28px;
  margin-top: 34px;
}

.certuap-benefit {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #c4d0d9;
  font-size: .85rem;
  line-height: 1.25;
}

.certuap-benefit-icon {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  flex: 0 0 43px;
  border: 1px solid rgba(17, 229, 211, .58);
  border-radius: 50%;
  color: var(--cu-cyan);
  background: rgba(17, 229, 211, .04);
}

.certuap-hero-visual {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.certuap-image-frame {
  position: relative;
  width: 100%;
  max-width: 865px;
  aspect-ratio: 865 / 695;
  overflow: hidden;
  border-radius: 28px 28px 0 0;
  isolation: isolate;
}

.certuap-image-frame picture {
  display: block;
  width: 100%;
  height: 100%;
}

.certuap-image-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(3, 17, 29, .88) 0%, transparent 15%, transparent 86%, rgba(3, 17, 29, .42) 100%),
    linear-gradient(0deg, rgba(3, 17, 29, .74) 0%, transparent 23%);
}

.certuap-student-img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center center;
  filter: saturate(1.04) contrast(1.03);
}

.certuap-handnote {
  position: absolute;
  z-index: 3;
  right: 2%;
  bottom: 11%;
  color: #22e4e0;
  font-size: 1rem;
  line-height: 1.25;
  font-style: italic;
  transform: rotate(-3deg);
  text-shadow: 0 0 18px rgba(17, 229, 211, .28);
}

.certuap-handnote i {
  display: block;
  margin: 5px 0 0 32px;
  transform: rotate(18deg);
}

.certuap-hero-strip {
  position: relative;
  z-index: 3;
  border-top: 1px solid rgba(40, 203, 213, .30);
  background: rgba(2, 15, 25, .90);
}

.certuap-strip-grid {
  min-height: 128px;
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  align-items: center;
}

.certuap-strip-intro {
  padding-right: 32px;
  color: #aebdca;
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .22em;
}

.certuap-strip-item {
  min-height: 65px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 15px;
  border-left: 1px solid rgba(179, 216, 224, .17);
}

.certuap-strip-item > i {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  border: 1px solid rgba(17, 229, 211, .40);
  border-radius: 50%;
  color: var(--cu-cyan);
  font-size: 1.15rem;
  background: rgba(17, 229, 211, .05);
}

.certuap-strip-item strong,
.certuap-strip-item span {
  display: block;
}

.certuap-strip-item strong {
  color: #eaffff;
  font-size: .98rem;
}

.certuap-strip-item span {
  margin-top: 2px;
  color: #95aabd;
  font-size: .78rem;
}

/* ---------- CIFRA DINÁMICA DEL HERO ---------- */
#homeGraduatesCount {
  display: inline-block;
  color: var(--cu-cyan);
  font-weight: 900;
  transform-origin: center;
  animation: certuapNumberBlink 1.75s ease-in-out infinite;
  text-shadow: 0 0 0 rgba(17, 229, 211, 0);
  will-change: opacity, transform, text-shadow;
}

@keyframes certuapNumberBlink {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    text-shadow: 0 0 0 rgba(17, 229, 211, 0);
  }
  42% {
    opacity: .48;
    transform: scale(1.08);
    text-shadow: 0 0 16px rgba(17, 229, 211, .65);
  }
  58% {
    opacity: 1;
    transform: scale(1.03);
    text-shadow: 0 0 10px rgba(17, 229, 211, .40);
  }
}

@media (prefers-reduced-motion: reduce) {
  #homeGraduatesCount {
    animation: none;
  }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1399.98px) {
  .certuap-search {
    display: none !important;
  }
  .home-page .certuap-navbar .nav-link {
    font-size: .86rem;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
  .certuap-hero-title {
    font-size: clamp(3rem, 4.7vw, 4.4rem);
  }
}

@media (max-width: 1199.98px) {
  .home-page .certuap-navbar {
    min-height: 72px;
  }
  .certuap-nav-container {
    padding-left: 22px;
    padding-right: 22px;
  }
  .home-page .navbar-collapse {
    margin-top: 12px;
    padding: 15px;
    border: 1px solid rgba(17, 229, 211, .18);
    border-radius: 16px;
    background: #061824;
    max-height: calc(100vh - 95px);
    overflow-y: auto;
  }
  .certuap-nav-links {
    align-items: stretch !important;
  }
  .certuap-nav-ia,
  .certuap-nav-cta {
    width: 100%;
    margin-top: 4px;
  }
  .certuap-hero {
    padding-top: 72px;
  }
  .certuap-hero .row {
    min-height: auto;
  }
  .certuap-hero-copy {
    max-width: 850px;
    margin: 0 auto;
    padding: 58px 0 20px;
    text-align: center;
  }
  .certuap-hero-title,
  .certuap-hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .certuap-hero-actions,
  .certuap-hero-benefits {
    justify-content: center;
  }
  .certuap-hero-visual {
    min-height: 0;
    max-width: 920px;
    margin: 0 auto;
  }
  .certuap-image-frame {
    max-width: 820px;
  }
  .certuap-handnote {
    display: none;
  }
  .certuap-strip-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    padding: 18px 0;
  }
  .certuap-strip-intro {
    grid-column: 1 / -1;
    padding: 0 0 14px;
    text-align: center;
  }
  .certuap-strip-item {
    padding: 18px 24px;
  }
}

@media (max-width: 767.98px) {
  .certuap-brand-name {
    font-size: 1.35rem;
  }
  .certuap-logo {
    width: 44px;
    height: 44px;
  }
  .certuap-hero-copy {
    padding-top: 42px;
  }
  .certuap-hero-badge {
    margin-bottom: 20px;
    font-size: .82rem;
  }
  .certuap-hero-title {
    font-size: clamp(2.55rem, 12vw, 4rem);
    line-height: 1.02;
  }
  .certuap-hero-subtitle {
    font-size: 1.02rem;
  }
  .certuap-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .certuap-btn {
    width: 100%;
  }
  .certuap-hero-benefits {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 12px;
  }
  .certuap-benefit {
    justify-content: flex-start;
    text-align: left;
  }
  .certuap-image-frame {
    max-width: 100%;
    border-radius: 22px 22px 0 0;
  }
  .certuap-strip-grid {
    grid-template-columns: 1fr;
  }
  .certuap-strip-item {
    border-left: 0;
    border-top: 1px solid rgba(179, 216, 224, .12);
    padding: 16px 5px;
  }
}

@media (max-width: 430px) {
  .certuap-brand-name {
    display: none;
  }
  .certuap-hero-container {
    padding-left: 18px;
    padding-right: 18px;
  }
  .certuap-hero-title {
    font-size: 2.52rem;
  }
  .certuap-hero-benefits {
    grid-template-columns: 1fr 1fr;
  }
  .certuap-benefit {
    font-size: .78rem;
  }
  .certuap-benefit-icon {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }
  .certuap-image-frame {
    border-radius: 16px 16px 0 0;
  }
}

/* =========================================================
   AGENTE IA — extraído del index para mantener el PHP limpio
   ========================================================= */

:root{
    --czp-naranja:#f97316; --czp-naranja2:#fb923c;
    --czp-bg:#0f1420; --czp-bg2:#0b0f1a; --czp-panel:#1f2937;
    --czp-borde:#2a3344; --czp-texto:#e5e7eb; --czp-link:#38bdf8;
  }
  /* ===== Panel ===== */
  #czpAg-panel{position:fixed;bottom:24px;right:24px;width:380px;max-width:calc(100vw - 32px);
    height:560px;max-height:calc(100vh - 48px);background:var(--czp-bg);
    border:1px solid var(--czp-borde);border-radius:18px;display:none;flex-direction:column;
    overflow:hidden;box-shadow:0 18px 50px rgba(0,0,0,.55);z-index:99999;
    font-family:system-ui,-apple-system,"Segoe UI",sans-serif;animation:czpUp .25s ease}
  @keyframes czpUp{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}

  /* ===== Header ===== */
  #czpAg-header{background:linear-gradient(135deg,var(--czp-naranja),var(--czp-naranja2));
    color:#fff;padding:14px 16px;display:flex;justify-content:space-between;align-items:center}
  .czpAg-head-info{display:flex;align-items:center;gap:10px}
  .czpAg-avatar{font-size:26px;background:rgba(255,255,255,.2);width:42px;height:42px;
    border-radius:50%;display:flex;align-items:center;justify-content:center}
  .czpAg-titulo{font-weight:700;font-size:15px}
  .czpAg-estado{font-size:11px;opacity:.95;display:flex;align-items:center;gap:5px}
  .czpAg-dot{width:8px;height:8px;background:#4ade80;border-radius:50%;
    box-shadow:0 0 0 0 rgba(74,222,128,.7);animation:czpPing 1.8s infinite}
  @keyframes czpPing{0%{box-shadow:0 0 0 0 rgba(74,222,128,.6)}70%{box-shadow:0 0 0 7px rgba(74,222,128,0)}100%{box-shadow:0 0 0 0 rgba(74,222,128,0)}}
  .czpAg-x{background:rgba(255,255,255,.15);border:none;color:#fff;font-size:15px;cursor:pointer;
    width:32px;height:32px;border-radius:50%;transition:.2s}
  .czpAg-x:hover{background:rgba(255,255,255,.3)}

  /* ===== Mensajes ===== */
  #czpAg-mensajes{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;
    gap:12px;background:var(--czp-bg2)}
  #czpAg-mensajes::-webkit-scrollbar{width:6px}
  #czpAg-mensajes::-webkit-scrollbar-thumb{background:#374151;border-radius:3px}
  .czpAg-msg{max-width:84%;padding:11px 14px;border-radius:16px;font-size:14px;
    line-height:1.55;word-wrap:break-word;overflow-wrap:anywhere;animation:czpFade .3s ease}
  @keyframes czpFade{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
  .czpAg-user{align-self:flex-end;background:linear-gradient(135deg,var(--czp-naranja),var(--czp-naranja2));
    color:#fff;border-bottom-right-radius:5px}
  .czpAg-bot{align-self:flex-start;background:var(--czp-panel);color:var(--czp-texto);
    border-bottom-left-radius:5px}
  /* Negrita: naranja. Links: azul + botón. Así se diferencian */
  .czpAg-bot strong{color:var(--czp-naranja2);font-weight:700}
  .czpAg-bot .czpAg-precio{color:#4ade80;font-weight:700;background:rgba(74,222,128,.12);
    padding:1px 7px;border-radius:6px;white-space:nowrap}
  .czpAg-bot .czpAg-num{display:inline-block;color:#fff;background:var(--czp-naranja);
    font-weight:700;min-width:22px;height:22px;line-height:22px;text-align:center;
    border-radius:6px;font-size:13px;margin-right:6px;margin-top:3px}
  .czpAg-bot a.czpAg-link{display:inline-flex;align-items:center;gap:5px;
    background:rgba(56,189,248,.15);color:var(--czp-link);font-weight:600;
    padding:3px 10px;border-radius:8px;text-decoration:none;margin:2px 0;
    border:1px solid rgba(56,189,248,.4);transition:.2s}
  .czpAg-bot a.czpAg-link:hover{background:var(--czp-link);color:#04293a}
  .czpAg-bot ul{margin:6px 0;padding-left:20px}
  .czpAg-accion{align-self:flex-start;font-size:12px;color:#9ca3af;font-style:italic;padding:2px 8px}

  /* ===== Input ===== */
  #czpAg-input-row{display:flex;padding:12px;gap:8px;background:var(--czp-bg);border-top:1px solid var(--czp-borde)}
  #czpAg-input{flex:1;background:var(--czp-panel);border:1px solid #374151;border-radius:24px;
    padding:11px 16px;color:#fff;font-size:14px;outline:none;transition:.2s}
  #czpAg-input:focus{border-color:var(--czp-naranja)}
  .czpAg-send{background:linear-gradient(135deg,var(--czp-naranja),var(--czp-naranja2));border:none;
    color:#fff;width:44px;height:44px;border-radius:50%;cursor:pointer;font-size:16px;
    flex-shrink:0;transition:.2s}
  .czpAg-send:hover{transform:scale(1.06)}

  /* ===== Botón flotante WhatsApp ===== */
  #czpAg-wa{position:fixed;bottom:24px;left:24px;width:58px;height:58px;background:#25d366;
    color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;
    font-size:30px;text-decoration:none;z-index:99998;box-shadow:0 4px 16px rgba(0,0,0,.3);transition:.2s}
  #czpAg-wa:hover{transform:scale(1.08)}

  /* ===== Botón flotante Agente (con texto) ===== */
  #czpAg-fab{position:fixed;bottom:24px;right:24px;display:flex;align-items:center;gap:8px;
    background:linear-gradient(135deg,var(--czp-naranja),var(--czp-naranja2));color:#fff;border:none;
    border-radius:30px;padding:10px 18px 10px 12px;cursor:pointer;z-index:99998;
    box-shadow:0 4px 18px rgba(249,115,22,.55);animation:czpFab 2.2s ease-in-out infinite}
  @keyframes czpFab{0%,100%{box-shadow:0 4px 18px rgba(249,115,22,.5)}50%{box-shadow:0 6px 26px rgba(249,115,22,.9)}}
  #czpAg-fab:hover{transform:scale(1.05)}
  .czpAg-fab-ico{font-size:24px}
  .czpAg-fab-txt{font-weight:700;font-size:14px}

  /* ===== RESPONSIVE: celular ===== */
  @media (max-width:480px){
    #czpAg-panel{width:100vw;max-width:100vw;height:100vh;max-height:100vh;
      bottom:0;right:0;border-radius:0;border:none}
    #czpAg-header{border-radius:0}
    .czpAg-msg{max-width:88%;font-size:15px}
    #czpAg-input{font-size:16px} /* evita zoom en iOS */
    #czpAg-fab{bottom:18px;right:14px;padding:9px 15px 9px 10px}
    .czpAg-fab-txt{font-size:13px}
    #czpAg-wa{bottom:18px;left:14px;width:52px;height:52px;font-size:27px}
  }
  /* Tablet: panel un poco más ancho */
  @media (min-width:481px) and (max-width:820px){
    #czpAg-panel{width:400px;height:580px}
  }

/* ---------- Utilidades heredadas sin estilos inline ---------- */
.text-certuap-orange { color: #ff8c00 !important; }
.card-destacado--naranja { border: 2px solid #ff8c00 !important; }

/* =========================================================
   AJUSTES FINALES HOME — MÉTRICAS + ACCESOS DESTACADOS
   ========================================================= */

/* ---------- CTA DEL NAV SIEMPRE VISIBLE ---------- */
.home-page .certuap-navbar .certuap-nav-cta,
.home-page .certuap-navbar.scrolled .certuap-nav-cta {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px !important;
  border: 1px solid rgba(17, 229, 211, .58) !important;
  border-radius: 13px;
  color: #04131d !important;
  background: linear-gradient(135deg, #19e6d3 0%, #67f5e9 100%) !important;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 8px 26px rgba(17, 229, 211, .24) !important;
  opacity: 1 !important;
  visibility: visible !important;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.home-page .certuap-navbar .certuap-nav-cta:hover,
.home-page .certuap-navbar.scrolled .certuap-nav-cta:hover {
  color: #03121d !important;
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 12px 32px rgba(17, 229, 211, .34) !important;
}

/* ---------- IMAGEN HERO RESPONSIVE ---------- */
.certuap-hero-visual {
  position: relative;
  width: 100%;
  min-width: 0;
}

.certuap-image-frame {
  width: 100%;
  max-width: 865px;
  aspect-ratio: 865 / 695;
  margin-inline: auto;
  overflow: hidden;
}

.certuap-image-frame picture,
.certuap-image-frame img {
  display: block;
  width: 100%;
  height: 100%;
}

.certuap-student-img {
  object-fit: cover;
  object-position: center center;
}

/* ---------- CIFRA DINÁMICA: SIN PUNTO + EFECTO LLAMATIVO ---------- */
.certuap-live-dot {
  display: none !important;
}

#homeGraduatesCount,
[data-home-graduates] {
  display: inline-block;
  position: relative;
  color: #18f1db;
  font-weight: 900;
  letter-spacing: .01em;
  transform-origin: center;
  will-change: transform, color, text-shadow;
  animation: homeGraduatePulse 1.35s ease-in-out infinite;
}

@keyframes homeGraduatePulse {
  0%, 100% {
    color: #18f1db;
    transform: scale(1);
    text-shadow:
      0 0 4px rgba(24, 241, 219, .25),
      0 0 10px rgba(24, 241, 219, .18);
  }
  45% {
    color: #ff8a20;
    transform: scale(1.16);
    text-shadow:
      0 0 8px rgba(255, 138, 32, .95),
      0 0 20px rgba(255, 122, 26, .75),
      0 0 34px rgba(255, 122, 26, .40);
  }
  65% {
    color: #ffffff;
    transform: scale(1.07);
    text-shadow:
      0 0 8px rgba(255, 255, 255, .55),
      0 0 18px rgba(24, 241, 219, .65);
  }
}

/* ---------- ACCESOS DESTACADOS ---------- */
.certuap-accesos {
  position: relative;
  overflow: hidden;
  padding: 34px 0 42px;
  background:
    radial-gradient(circle at 50% -20%, rgba(17, 229, 211, .11), transparent 42%),
    linear-gradient(180deg, #061925 0%, #041522 100%);
  border-bottom: 3px solid rgba(17, 229, 211, .55);
}

.certuap-accesos::before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: -180px;
  top: -210px;
  border: 1px solid rgba(17, 229, 211, .12);
  border-radius: 50%;
  pointer-events: none;
}

.certuap-accesos-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.certuap-acceso-card {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
  min-height: 124px;
  padding: 24px 26px;
  overflow: hidden;
  border: 1px solid rgba(17, 229, 211, .30);
  border-radius: 22px;
  color: #f7fbff;
  text-decoration: none;
  background:
    linear-gradient(135deg, rgba(11, 39, 53, .97), rgba(4, 23, 35, .98));
  box-shadow:
    0 18px 38px rgba(0, 0, 0, .22),
    inset 0 1px 0 rgba(255, 255, 255, .035);
  transition:
    transform .28s ease,
    border-color .28s ease,
    box-shadow .28s ease,
    background .28s ease;
}

.certuap-acceso-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(17, 229, 211, .07) 50%, transparent 80%);
  transform: translateX(-115%);
  transition: transform .55s ease;
}

.certuap-acceso-card::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  top: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(17, 229, 211, .95), transparent);
  opacity: .75;
}

.certuap-acceso-card:hover {
  color: #fff;
  transform: translateY(-6px);
  border-color: rgba(17, 229, 211, .68);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, .30),
    0 0 28px rgba(17, 229, 211, .10);
}

.certuap-acceso-card:hover::before {
  transform: translateX(115%);
}

.certuap-acceso-icon {
  position: relative;
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(17, 229, 211, .40);
  border-radius: 21px;
  color: #19f3df;
  background:
    radial-gradient(circle at 30% 25%, rgba(25, 243, 223, .20), transparent 48%),
    linear-gradient(145deg, rgba(17, 229, 211, .16), rgba(17, 229, 211, .055));
  box-shadow:
    inset 0 0 22px rgba(17, 229, 211, .06),
    0 0 20px rgba(17, 229, 211, .10);
  font-size: 2rem;
  transition: transform .28s ease, box-shadow .28s ease, background .28s ease;
}

.certuap-acceso-icon i {
  font-size: 2rem;
  line-height: 1;
}

.certuap-acceso-card:hover .certuap-acceso-icon {
  transform: scale(1.08) rotate(-3deg);
  box-shadow:
    inset 0 0 24px rgba(17, 229, 211, .10),
    0 0 28px rgba(17, 229, 211, .22);
}

.certuap-acceso-card > div {
  min-width: 0;
  flex: 1 1 auto;
}

.certuap-acceso-card strong {
  display: block;
  margin: 0 0 6px;
  color: #ffffff;
  font-size: clamp(1.02rem, 1.3vw, 1.18rem);
  font-weight: 900;
  line-height: 1.2;
}

.certuap-acceso-card > div > span {
  display: block;
  margin: 0;
  color: #b0c1cf;
  font-size: .93rem;
  line-height: 1.42;
}

.certuap-acceso-arrow {
  flex: 0 0 auto;
  margin-left: auto;
  color: #65e7e4;
  font-size: 1.12rem;
  transition: transform .28s ease, color .28s ease;
}

.certuap-acceso-card:hover .certuap-acceso-arrow {
  color: #ffffff;
  transform: translateX(7px);
}

/* Promociones: tarjeta naranja diferenciada */
.certuap-acceso-card--promo {
  border-color: rgba(255, 122, 26, .48);
  background:
    radial-gradient(circle at 9% 20%, rgba(255, 122, 26, .13), transparent 32%),
    linear-gradient(135deg, rgba(42, 26, 13, .98), rgba(7, 28, 38, .98));
}

.certuap-acceso-card--promo::after {
  background: linear-gradient(90deg, transparent, rgba(255, 138, 32, .98), transparent);
}

.certuap-acceso-card--promo::before {
  background: linear-gradient(110deg, transparent 20%, rgba(255, 138, 32, .09) 50%, transparent 80%);
}

.certuap-acceso-card--promo .certuap-acceso-icon {
  color: #ff8c22;
  border-color: rgba(255, 122, 26, .52);
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 156, 64, .24), transparent 48%),
    linear-gradient(145deg, rgba(255, 122, 26, .21), rgba(255, 122, 26, .065));
  box-shadow:
    inset 0 0 22px rgba(255, 122, 26, .07),
    0 0 22px rgba(255, 122, 26, .13);
}

.certuap-acceso-card--promo .certuap-acceso-arrow {
  color: #ff9b46;
}

.certuap-acceso-card--promo:hover {
  border-color: #ff8422;
  box-shadow:
    0 24px 48px rgba(0, 0, 0, .30),
    0 0 34px rgba(255, 122, 26, .15);
}

.certuap-acceso-card--promo:hover .certuap-acceso-icon {
  box-shadow:
    inset 0 0 24px rgba(255, 122, 26, .10),
    0 0 30px rgba(255, 122, 26, .24);
}

/* ---------- RESPONSIVE EXTRA ---------- */
@media (max-width: 1199.98px) {
  .certuap-image-frame {
    max-width: 760px;
  }

  .certuap-acceso-card {
    padding: 22px 20px;
    gap: 16px;
  }

  .certuap-acceso-icon {
    flex-basis: 64px;
    width: 64px;
    height: 64px;
    font-size: 1.75rem;
  }

  .certuap-acceso-icon i {
    font-size: 1.75rem;
  }
}

@media (max-width: 991.98px) {
  .certuap-accesos {
    padding: 28px 0 34px;
  }

  .certuap-accesos-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .certuap-acceso-card {
    min-height: 104px;
    padding: 18px 20px;
  }

  .certuap-acceso-icon {
    flex-basis: 60px;
    width: 60px;
    height: 60px;
    border-radius: 18px;
  }

  .certuap-image-frame {
    max-width: 720px;
  }
}

@media (max-width: 767.98px) {
  .certuap-image-frame {
    max-width: 100%;
    aspect-ratio: 865 / 695;
  }

  .certuap-handnote {
    right: 4%;
    bottom: 7%;
    font-size: .86rem;
  }

  #homeGraduatesCount,
  [data-home-graduates] {
    animation-duration: 1.55s;
  }
}

@media (max-width: 575.98px) {
  .certuap-accesos {
    padding: 22px 0 28px;
  }

  .certuap-acceso-card {
    gap: 13px;
    min-height: 92px;
    padding: 15px;
    border-radius: 18px;
  }

  .certuap-acceso-icon {
    flex-basis: 52px;
    width: 52px;
    height: 52px;
    border-radius: 15px;
  }

  .certuap-acceso-icon i {
    font-size: 1.42rem;
  }

  .certuap-acceso-card strong {
    font-size: .98rem;
  }

  .certuap-acceso-card > div > span {
    font-size: .80rem;
    line-height: 1.32;
  }

  .certuap-acceso-arrow {
    font-size: .96rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  #homeGraduatesCount,
  [data-home-graduates] {
    animation: none;
    color: #18f1db;
    text-shadow: 0 0 12px rgba(24, 241, 219, .45);
  }

  .certuap-acceso-card,
  .certuap-acceso-icon,
  .certuap-acceso-arrow,
  .certuap-acceso-card::before {
    transition: none !important;
  }
}
