/* ============================================================
   Landing Page premium APPH · header, hero, secciones, footer
   ============================================================ */

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--apph-border);
}
.utility-bar {
  color: rgb(255 255 255 / 90%);
  background: linear-gradient(90deg, #222b6c, var(--apph-blue-900) 58%, #26327d);
  border-bottom: 1px solid rgb(255 255 255 / 14%);
}
.utility-bar__inner {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: .78rem;
  letter-spacing: .01em;
}
.utility-bar__time,
.utility-bar__links,
.utility-bar__links a {
  display: flex;
  align-items: center;
}
.utility-bar__time { gap: 8px; white-space: nowrap; }
.utility-bar__links { gap: 22px; }
.utility-bar__links a {
  min-height: 34px;
  gap: 8px;
  color: inherit;
  text-decoration: none;
}
.utility-bar__links a:hover,
.utility-bar__links a:focus-visible { color: var(--apph-yellow); }
.utility-bar__links i,
.utility-bar__time i { color: var(--apph-yellow); }
.utility-bar__flag { font-size: 1rem; line-height: 1; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand__logo {
  width: 174px;
  max-height: 78px;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
}
.brand__text strong {
  display: block;
  font-family: var(--font-title);
  color: var(--apph-blue-900);
  line-height: 1.1;
  font-size: 1rem;
}
.brand__text small {
  color: var(--apph-orange);
  font-weight: 600;
  font-size: 0.72rem;
}
.site-nav {
  display: none;
  align-items: center;
  gap: 4px;
}
.site-nav a {
  padding: 9px 13px;
  border-radius: var(--apph-radius-sm);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--apph-ink);
}
.site-nav a:hover,
.site-nav a.is-active {
  color: var(--apph-blue-900);
  background: var(--apph-surface-blue);
  text-decoration: none;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.header-cta { white-space: nowrap; }
.header-cta--join { min-width: 116px; }
.header-cta--members { min-width: 132px; }
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--apph-border);
  border-radius: var(--apph-radius-sm);
  background: #fff;
  color: var(--apph-blue-900);
  font-size: 1.2rem;
  cursor: pointer;
}

@media (min-width: 1440px) {
  .site-nav { display: flex; }
  .menu-toggle { display: none; }
  .brand__logo { width: 240px; max-height: 92px; }
}

@media (min-width: 768px) and (max-width: 1439px) {
  .site-header__inner { gap: 16px; }
  .brand__logo { width: 205px; max-height: 84px; }
  .header-actions .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
}

@media (max-width: 767px) {
  .utility-bar__inner { min-height: 32px; }
  .utility-bar__links { gap: 0; }
  .utility-bar__links a:first-child { display: none; }
  .utility-bar__links a { font-size: .72rem; }
  .utility-bar__links a span:not(.utility-bar__flag):not(.sr-only) { display: none; }
  .site-header__inner { padding: 8px 0; }
  .brand__logo { width: 170px; max-height: 72px; }
  .header-actions .header-cta { display: none; }
}

@media (max-width: 374px) {
  .utility-bar__time { font-size: .7rem; }
  .brand__logo { width: 152px; }
}

/* Menú móvil */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: #fff;
  display: none;
  flex-direction: column;
  padding: 24px;
  overflow-y: auto;
}
.mobile-menu.is-open { display: flex; }
body.menu-is-open { overflow: hidden; }
.mobile-menu__actions { display: grid; gap: 10px; margin-top: auto; padding-top: 24px; }
.mobile-menu__actions .button { width: 100%; min-height: 50px; }
.mobile-menu__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.mobile-menu a.mobile-menu__link {
  padding: 14px 8px;
  border-bottom: 1px solid var(--apph-border);
  font-weight: 600;
  color: var(--apph-ink);
}
.mobile-menu a.mobile-menu__link.is-active { color: var(--apph-blue-900); }

/* ---------- Hero slider (16:9) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--apph-blue-900);
}
.hero__slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  touch-action: pan-y;
}
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.05s cubic-bezier(0.4, 0, 0.2, 1), visibility 1.05s linear;
  display: flex;
  align-items: center;
}
.hero__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}
.hero__slide.is-active .hero__content{animation:heroContentIn .8s ease both}.hero__arrow,.hero__dots button{transition:transform .2s ease,background .2s ease,opacity .2s ease}.hero__arrow:hover,.hero__dots button:hover{transform:scale(1.08)}
@keyframes heroContentIn{from{opacity:0}to{opacity:1}}
@media (prefers-reduced-motion: reduce){.hero__slide.is-active .hero__content{animation:none}}
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(45, 56, 140, 0.92) 0%, rgba(50, 110, 179, 0.78) 45%, rgba(45, 56, 140, 0.25) 100%),
    radial-gradient(circle at 85% 20%, rgb(54 162 223 / 28%), transparent 45%);
}
.hero__content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--apph-content-max);
  margin: 0 auto;
  padding: 48px 20px;
  color: #fff;
}
.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgb(229 148 24);
  color: var(--apph-ink);
  padding: 5px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 18px;
}
.hero__title {
  font-size: var(--font-size-display);
  color: #fff;
  max-width: 720px;
  margin-bottom: 16px;
  text-wrap: balance;
}
.hero__text {
  font-size: var(--font-size-lead);
  color: rgb(255 255 255 / 92%);
  max-width: 620px;
  margin-bottom: 28px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero__brand-center {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  background: rgb(255 255 255 / 10%);
  border: 1px solid rgb(255 255 255 / 25%);
  padding: 10px 16px;
  border-radius: var(--apph-radius-md);
  width: fit-content;
}
.hero__brand-center img {
  height: 46px;
  border-radius: 6px;
  background: #fff;
  padding: 2px;
}
.hero__brand-center small {
  color: #fff;
  font-weight: 600;
  line-height: 1.2;
}

/* Controles del slider */
.hero__nav {
  position: absolute;
  z-index: 5;
  bottom: 22px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  max-width: var(--apph-content-max);
  margin: 0 auto;
  padding: 0 20px;
}
.hero__arrows {
  display: flex;
  gap: 8px;
}
.hero__arrows button {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgb(255 255 255 / 50%);
  background: rgb(255 255 255 / 12%);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s ease;
}
.hero__arrows button:hover {
  background: rgb(255 255 255 / 28%);
}
.hero__dots {
  display: flex;
  gap: 2px;
  align-items: center;
}
.hero__dots button {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}
.hero__dots button::before {
  content: '';
  position: absolute;
  inset: 12px;
  border-radius: 999px;
  background: rgb(255 255 255 / 55%);
  transition: inset .2s ease, background .2s ease;
}
.hero__dots button.is-active::before {
  inset: 12px 5px;
  background: var(--apph-yellow);
}

/* Cinta de acentos del logotipo */
.brand-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: 6px;
}
.brand-strip span:nth-child(1) { background: var(--apph-blue-900); }
.brand-strip span:nth-child(2) { background: var(--apph-orange); }
.brand-strip span:nth-child(3) { background: var(--apph-yellow); }
.brand-strip span:nth-child(4) { background: var(--apph-green); }
.brand-strip span:nth-child(5) { background: var(--apph-magenta); }

/* Accesos de tarea: convierte la portada en un punto de servicio. */
.task-nav {
  position: relative;
  z-index: 6;
  padding: 18px 0;
  background: #fff;
  border-bottom: 1px solid var(--apph-border);
  box-shadow: 0 12px 30px rgb(34 47 62 / 7%);
}
.task-nav__grid { display: grid; gap: 10px; }
.task-nav a {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: var(--apph-radius-md);
  color: var(--apph-ink);
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.task-nav a:hover,
.task-nav a:focus-visible {
  border-color: var(--apph-border);
  background: var(--apph-surface-blue);
  text-decoration: none;
  transform: translateY(-2px);
}
.task-nav__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  color: #fff;
  background: var(--apph-blue-900);
}
.task-nav__icon--orange { color: var(--apph-ink); background: var(--apph-orange); }
.task-nav__icon--green { background: #347d2f; }
.task-nav__icon--magenta { background: var(--apph-magenta); }
.task-nav strong,
.task-nav small { display: block; }
.task-nav strong { color: var(--apph-blue-900); font-family: var(--font-title); font-size: .9rem; line-height: 1.25; }
.task-nav small { margin-top: 2px; color: var(--apph-muted); font-size: .78rem; line-height: 1.25; }
.task-nav__arrow { color: var(--apph-blue-600); transition: transform .2s ease; }
.task-nav a:hover .task-nav__arrow { transform: translateX(3px); }
@media (min-width: 600px) { .task-nav__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .task-nav__grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Tarjetas de valor ---------- */
.value-card {
  position: relative;
  overflow: hidden;
}
.value-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--apph-blue-900), var(--apph-orange), var(--apph-green));
}

/* ---------- Misión / Visión ---------- */
.identity-grid .identity-card {
  border-left: 5px solid var(--apph-blue-900);
}
.identity-grid .identity-card--vision {
  border-left-color: var(--apph-orange);
}
.identity-grid .identity-card--values {
  border-left-color: var(--apph-green);
}
.identidad-valor i {
  color: var(--apph-orange);
  font-size: 22px;
}

/* ---------- Stats interactivas ---------- */
.stats-section {
  background:
    radial-gradient(circle at 15% 20%, rgb(229 148 24 / 22%), transparent 40%),
    linear-gradient(135deg, var(--apph-blue-900), var(--apph-blue-600));
}
.stats-section h2 { color: #fff; }
.stats-section .stat-block__value {
  color: #fff;
  background: none;
  -webkit-text-fill-color: currentColor;
}
.stats-section .stat-block__label {
  color: rgb(255 255 255 / 85%);
}
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (min-width: 768px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}
.stat-block {
  background: rgb(255 255 255 / 8%);
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: var(--apph-radius-lg);
}

/* ---------- Noticias ---------- */
.news-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.news-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.news-card__date {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

/* ---------- Afiliación / formulario ---------- */
.affiliation-cta {
  background:
    radial-gradient(circle at 90% 10%, rgb(245 207 23 / 18%), transparent 45%),
    linear-gradient(135deg, var(--apph-blue-900), var(--apph-blue-600));
  border-radius: var(--apph-radius-lg);
  color: #fff;
  padding: 48px 28px;
}
.affiliation-cta h2 { color: #fff; }
.form-card {
  background: #fff;
  border-radius: var(--apph-radius-lg);
  box-shadow: var(--apph-shadow-lg);
  padding: 28px;
}

/* ---------- Verificador ---------- */
.verifier-box {
  background:
    linear-gradient(135deg, var(--apph-surface-blue), #fff),
    #fff;
  border: 1px solid var(--apph-border);
  border-radius: var(--apph-radius-lg);
  padding: 28px;
  box-shadow: var(--apph-shadow-card);
}
.verify-result {
  margin-top: 20px;
  border: 2px solid var(--apph-green);
  border-radius: var(--apph-radius-md);
  background: #f1f8e9;
  padding: 18px;
}
.verify-result.is-error {
  border-color: #c0392b;
  background: #fdecea;
}

/* ---------- Burbuja WhatsApp ---------- */
.whatsapp-bubble {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 800;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 8px 24px rgb(37 211 102 / 45%);
  transition: transform 0.2s ease;
}
.whatsapp-bubble:hover {
  transform: scale(1.08);
  color: #fff;
  text-decoration: none;
}
.whatsapp-bubble__pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25d366;
  opacity: 0.4;
  animation: whatsappPulse 2.2s ease-out infinite;
  z-index: -1;
}
@keyframes whatsappPulse {
  0% { transform: scale(1); opacity: 0.5; }
  70% { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ---------- Chatbot flotante ---------- */
.chatbot {
  position: fixed;
  right: 22px;
  bottom: 92px;
  z-index: 850;
  width: min(370px, calc(100vw - 32px));
  background: #fff;
  border-radius: var(--apph-radius-lg);
  box-shadow: 0 20px 50px rgb(0 0 0 / 25%);
  overflow: hidden;
  display: none;
  flex-direction: column;
  border: 1px solid var(--apph-border);
}
.chatbot.is-open { display: flex; }
.chatbot__head {
  background: linear-gradient(135deg, var(--apph-blue-900), var(--apph-blue-600));
  color: #fff;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.chatbot__head .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--apph-orange);
  color: var(--apph-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.chatbot__head strong { display: block; font-size: 0.95rem; }
.chatbot__head small { opacity: 0.85; font-size: 0.78rem; }
.chatbot__close {
  margin-left: auto;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}
.chatbot__messages {
  height: 300px;
  overflow-y: auto;
  padding: 16px;
  background: var(--apph-surface-gray);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chatbot__message {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.45;
  white-space: pre-line;
}
.chatbot__message--bot {
  background: #fff;
  border: 1px solid var(--apph-border);
  border-top-left-radius: 4px;
  align-self: flex-start;
}
.chatbot__message--user {
  background: var(--apph-blue-900);
  color: #fff;
  border-top-right-radius: 4px;
  align-self: flex-end;
}
.chatbot__quick {
  padding: 0 12px 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  background: var(--apph-surface-gray);
}
.chatbot__quick button {
  font-size: 0.78rem;
  padding: 6px 10px;
  border: 1px solid var(--apph-blue-600);
  border-radius: 999px;
  background: #fff;
  color: var(--apph-blue-900);
  cursor: pointer;
}
.chatbot__inputbar {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--apph-border);
}
.chatbot__inputbar input {
  flex: 1;
  border: 1.5px solid var(--apph-border);
  border-radius: 999px;
  padding: 10px 14px;
  font: 400 0.92rem/1.4 var(--font-body);
}
.chatbot__inputbar button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: var(--apph-blue-900);
  color: #fff;
  cursor: pointer;
  font-size: 0.95rem;
}
.chatbot-toggle {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 860;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 0;
  background: var(--apph-blue-900);
  color: #fff;
  font-size: 26px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgb(45 56 140 / 45%);
  display: none;
}
.chatbot-toggle { bottom: 92px !important; }
.chatbot.is-open + .chatbot-toggle { display:none; }
.chatbot-toggle.is-visible { display: flex; align-items: center; justify-content: center; }
.chatbot-toggle.is-visible { bottom: 92px; }
@media (max-width: 600px) { .chatbot-toggle.is-visible { right: 16px; bottom: 88px; } }

.back-to-top {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 850;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 45%);
  border-radius: 50%;
  background: linear-gradient(145deg, var(--apph-blue-600), var(--apph-blue-900));
  color: #fff;
  box-shadow: 0 10px 28px rgb(34 47 62 / 28%);
  font-size: 1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease, box-shadow .2s ease;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover { box-shadow: 0 12px 32px rgb(45 56 140 / 38%); }
.back-to-top:focus-visible { outline: 3px solid var(--apph-yellow); outline-offset: 3px; }
@media (max-width: 600px) {
  .back-to-top { left: 16px; bottom: 16px; width: 48px; height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .back-to-top { transform: none; transition: none; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: linear-gradient(160deg, var(--apph-blue-900), #1f2a63);
  color: rgb(255 255 255 / 88%);
  padding: 56px 0 0;
}
@media (max-width: 600px) {
  .whatsapp-bubble { right: 16px; bottom: 16px; }
  .chatbot-toggle { right: 16px; bottom: 88px !important; }
  .chatbot { right: 16px; bottom: 88px; width: calc(100vw - 32px); }
  .site-footer { padding-top: 40px; }
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 40px;
  row-gap: 36px;
  padding-bottom: 44px;
}
@media (min-width: 768px) {
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .site-footer__grid { grid-template-columns: 1.35fr 1fr 1fr 1.35fr; }
}
.site-footer h4 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 16px;
}
.site-footer a {
  color: rgb(255 255 255 / 82%);
  display: block;
  padding: 5px 0;
  font-size: 0.9375rem;
  line-height: 1.35;
}
.site-footer a:hover {
  color: var(--apph-yellow);
  text-decoration: none;
}
.site-footer__logo img {
  width: 210px;
  height: auto;
  object-fit: contain;
  margin-bottom: 14px;
}
@media (max-width: 600px) {
  .site-footer__logo img { width: 190px; }
}
.site-footer__slogan {
  color: var(--apph-orange);
  font-weight: 600;
  margin-top: -6px;
}
.site-footer__actions{display:grid;grid-template-columns:repeat(2,max-content);gap:12px;align-items:center;margin-top:20px;max-width:100%}.site-footer__actions .button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:46px;padding:11px 16px;white-space:nowrap;text-align:center;text-decoration:none}.site-footer__actions .button--highlight,.site-footer__actions .button--highlight:hover{background:linear-gradient(135deg,var(--apph-orange),var(--apph-yellow));color:#1a1f2b !important;border:1px solid var(--apph-yellow)}.site-footer__actions .button--ghost,.site-footer__actions .button--ghost:hover{color:#fff !important;border:1px solid rgb(255 255 255 / 65%);background:rgb(255 255 255 / 8%)}.site-footer__actions .button i{color:inherit;flex:0 0 auto}.site-footer__actions .button:hover{transform:translateY(-1px);text-decoration:none;filter:brightness(1.06)}
@media(max-width:600px){.site-footer__actions{grid-template-columns:1fr;max-width:100%}.site-footer__actions .button{width:100%;min-height:48px}}
.site-footer__bottom {
  border-top: 1px solid rgb(255 255 255 / 18%);
  display: flex;
  flex-wrap: wrap;
  gap: 20px 32px;
  justify-content: space-between;
  align-items: center;
  font-size: var(--font-size-sm);
  color: rgb(255 255 255 / 70%);
}
.site-footer .site-footer__bottom { padding-block: 22px; }
.site-footer__copyright { line-height: 1.5; }
.site-footer__bottom .legal { display: flex; align-items: center; gap: 0; }
.site-footer__bottom .legal a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: var(--apph-radius-sm);
  line-height: 1.35;
}
.site-footer__bottom .legal a + a { border-left: 1px solid rgb(255 255 255 / 16%); border-radius: 0 var(--apph-radius-sm) var(--apph-radius-sm) 0; }
.site-footer__bottom .legal a:hover { background: rgb(255 255 255 / 7%); }
.site-footer__credits {
  background: rgb(13 22 37 / 24%);
  padding: 16px 0;
  text-align: center;
  color: rgb(255 255 255 / 68%);
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
}
.site-footer__credits p { margin: 0; }
.site-footer__credits strong { color: rgb(255 255 255 / 88%); font-weight: 600; }
@media (max-width: 600px) {
  .site-footer__bottom { align-items: flex-start; gap: 16px; }
  .site-footer .site-footer__bottom { padding-block: 24px; }
  .site-footer__copyright { max-width: 32ch; }
  .site-footer__bottom .legal { display: grid; grid-template-columns: 1fr; width: 100%; }
  .site-footer__bottom .legal a { width: 100%; padding: 11px 0; border-top: 1px solid rgb(255 255 255 / 12%); border-radius: 0; }
  .site-footer__bottom .legal a + a { border-left: 0; border-radius: 0; }
  .site-footer__credits { padding: 16px 0; line-height: 1.5; }
}

/* ---------- Páginas internas (hero simple) ---------- */
.page-hero {
  background:
    radial-gradient(circle at 85% 15%, rgb(245 207 23 / 20%), transparent 45%),
    linear-gradient(135deg, var(--apph-blue-900), var(--apph-blue-600));
  color: #fff;
  padding: 56px 0;
}
.page-hero h1 { color: #fff; margin-bottom: 8px; }
.page-hero p { color: rgb(255 255 255 / 88%); margin: 0; max-width: 700px; }

/* Carta / documento imprimible */
.document-sheet {
  max-width: 820px;
  margin: 32px auto;
  background: #fff;
  color: var(--apph-ink);
  border: 1px solid var(--apph-border);
  border-radius: var(--apph-radius-md);
  padding: 40px 48px;
  font-size: 0.95rem;
  box-shadow: var(--apph-shadow-card);
}
.document-sheet__letterhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-bottom: 3px solid var(--apph-blue-900);
  padding-bottom: 18px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}
.document-sheet__letterhead img {
  width: 150px;
  border-radius: 6px;
}
.document-sheet__letterhead .ref {
  text-align: right;
  font-size: 0.82rem;
  color: var(--apph-muted);
}
.document-sheet .verifier-stamp {
  margin-top: 26px;
  border: 1.5px dashed var(--apph-orange);
  background: var(--apph-surface-orange);
  border-radius: var(--apph-radius-md);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.85rem;
}
.verifier-stamp b {
  font-family: var(--font-title);
  color: var(--apph-blue-900);
  letter-spacing: 0.05em;
}

.print-toolbar {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 18px 0;
}

/* ------------------------------------------------------------
   Consulta de estado de postulación
   ------------------------------------------------------------ */
.post-status {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.post-status--info { background: #e6f1fb; color: #1d5c9e; }
.post-status--warn { background: #fef1dd; color: #a05b00; }
.post-status--ok { background: #e8f6ec; color: #1d7a3d; }
.post-status--bad { background: #fdeaea; color: #a61b1b; }
.post-status--muted { background: #eef1f4; color: #64748b; }

.post-result {
  padding: 28px;
  background: linear-gradient(180deg, #fff, var(--apph-surface-blue));
  border-color: var(--apph-border);
}
.post-result__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 6px;
  color: var(--apph-blue-900);
  font-size: 1.15rem;
}
.post-result__title i { color: var(--apph-blue-600); }
.post-result__intro {
  margin: 0 0 22px;
  color: var(--apph-muted);
  font-size: 0.9rem;
}

.post-timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  position: relative;
}
.post-timeline::before {
  content: '';
  position: absolute;
  left: 21px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--apph-border);
}
.post-timeline__step {
  position: relative;
  display: flex;
  gap: 18px;
  padding: 0 0 26px;
}
.post-timeline__step:last-child { padding-bottom: 0; }
.post-timeline__dot {
  position: relative;
  z-index: 1;
  flex: 0 0 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid var(--apph-border);
  background: #fff;
  color: var(--apph-muted);
  font-weight: 800;
  font-size: 0.9rem;
}
.post-timeline__content { flex: 1; padding-top: 2px; }
.post-timeline__content strong {
  display: block;
  color: var(--apph-ink);
  font-size: 0.98rem;
}
.post-timeline__content p {
  margin: 4px 0 0;
  color: var(--apph-muted);
  font-size: 0.86rem;
}
.post-timeline__date {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #eef1f4;
  color: var(--apph-muted);
  font-size: 0.74rem;
  font-weight: 700;
}
.post-timeline__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
}
.post-timeline__badge--ok { background: #e8f6ec; color: #1d7a3d; }
.post-timeline__badge--bad { background: #fdeaea; color: #a61b1b; }
.post-timeline__badge--muted { background: #eef1f4; color: #64748b; }

.post-timeline__step--done .post-timeline__dot {
  border-color: var(--apph-green);
  background: var(--apph-green);
  color: #fff;
}
.post-timeline__step--current .post-timeline__dot {
  border-color: var(--apph-blue-600);
  background: var(--apph-blue-600);
  color: #fff;
  box-shadow: 0 0 0 5px rgb(50 110 179 / 16%);
}
.post-timeline__step--done .post-timeline__content strong { color: var(--apph-green); }
.post-timeline__step--current .post-timeline__content strong { color: var(--apph-blue-900); }

@media (max-width: 480px) {
  .post-result { padding: 20px 16px; }
  .post-timeline::before { left: 17px; }
  .post-timeline__dot { flex-basis: 34px; height: 34px; font-size: 0.78rem; }
  .post-timeline__step { gap: 14px; }
}

@media print {
  .site-header,
  .site-footer,
  .whatsapp-bubble,
  .chatbot,
  .chatbot-toggle,
  .print-toolbar,
  .page-hero {
    display: none !important;
  }
  body { background: #fff !important; }
  .document-sheet {
    border: 0;
    box-shadow: none;
    margin: 0;
    padding: 24px 8px;
    max-width: 100%;
  }
}

/* ---------- Interacciones progresivas de la portada ---------- */
.landing-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: 4px;
  pointer-events: none;
  transform: scaleX(var(--landing-progress, 0));
  transform-origin: left;
  background: linear-gradient(90deg, var(--apph-orange), var(--apph-yellow), var(--apph-green));
}

.landing-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .24s ease calc(var(--reveal-order, 0) * 40ms),
    transform .24s cubic-bezier(.22, .8, .35, 1) calc(var(--reveal-order, 0) * 40ms);
}
.landing-reveal.is-revealed { opacity: 1; transform: none; }

.landing-rail {
  position: fixed;
  z-index: 480;
  top: 50%;
  right: 14px;
  display: none;
  flex-direction: column;
  gap: 9px;
  transform: translateY(-50%);
}
.landing-rail a {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: transparent;
  transition: transform .2s ease, background .2s ease;
}
.landing-rail a::after {
  content: '';
  position: absolute;
  inset: 16px;
  border: 2px solid var(--apph-blue-600);
  border-radius: 50%;
  background: #fff;
}
.landing-rail a span {
  position: absolute;
  top: 50%;
  right: 20px;
  width: max-content;
  max-width: 220px;
  padding: 5px 9px;
  border-radius: 7px;
  color: #fff;
  background: var(--apph-ink);
  font-size: .76rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transform: translate(6px, -50%);
  transition: opacity .2s ease, transform .2s ease;
}
.landing-rail a:hover span,
.landing-rail a:focus-visible span { opacity: 1; transform: translate(0, -50%); }
.landing-rail a.is-active::after { background: var(--apph-orange); transform: scale(1.35); }

.has-landing-interactions .card--hover,
.has-landing-interactions .news-card { isolation: isolate; }
.has-landing-interactions .card--hover::after,
.has-landing-interactions .news-card::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(220px circle at var(--card-x, 50%) var(--card-y, 50%), rgb(54 162 223 / 12%), transparent 70%);
  transition: opacity .25s ease;
}
.has-landing-interactions .card--hover:hover::after,
.has-landing-interactions .news-card:hover::after { opacity: 1; }

#contenido > section[id] { scroll-margin-top: 100px; }
.accordion[id] { scroll-margin-top: 110px; }

@media (max-width: 767px) {
  .hero { min-height: 0; }
  .hero__slider { aspect-ratio: auto; min-height: 650px; }
  .hero__content { padding: 32px 20px 112px; }
  .hero__title { font-size: clamp(1.9rem, 8vw, 2.35rem); }
  .hero__text { font-size: 1rem; line-height: 1.5; }
  .hero__brand-center { display: none; }
  .hero__nav { bottom: 18px; align-items: center; }
  .hero__actions { gap: 10px; }
  .hero__actions .button { width: 100%; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .hero__slider { aspect-ratio: auto; min-height: 680px; }
  .hero__content { padding-bottom: 110px; }
}

@media (min-width: 1280px) and (min-height: 650px) {
  .landing-rail { display: flex; }
}
@media (prefers-reduced-motion: reduce) {
  .landing-reveal { opacity: 1; transform: none; transition: none; }
  .landing-progress { transition: none; }
}
@media print {
  .landing-progress, .landing-rail { display: none !important; }
}
