/* =========================================================
   UNIVERSIDAD HUELLAS DE VIDA — Páginas internas (bloques comunes)
   ========================================================= */

/* ---------- Banner de página ---------- */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: calc(var(--topbar-h) + var(--header-h) + clamp(3.5rem, 2rem + 6vw, 7rem));
  padding-bottom: clamp(3.5rem, 2rem + 5vw, 6.5rem);
  background: var(--c-navy-950);
  color: rgba(255, 255, 255, 0.82);
}
.page-hero__bg {
  position: absolute; inset: 0;
  z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  animation: hero-zoom 14s var(--ease-out) both;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(12, 36, 19, 0.94) 0%, rgba(12, 36, 19, 0.78) 45%, rgba(12, 36, 19, 0.35) 100%),
    linear-gradient(0deg, rgba(12, 36, 19, 0.6), transparent 50%);
}
.page-hero__roots {
  position: absolute;
  right: 4%; bottom: -30px;
  width: min(360px, 34vw);
  color: rgba(188, 154, 82, 0.35);
  z-index: -1;
  pointer-events: none;
}
.page-hero__inner { max-width: calc(var(--container)); }
.page-hero__title {
  margin-top: var(--sp-4);
  max-width: 17ch;
  font-size: clamp(2.3rem, 1.5rem + 3.6vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: #fff;
}
.page-hero__title .serif-accent { color: #E2C47F; }
.page-hero__lead { margin-top: var(--sp-5); max-width: 40rem; font-size: var(--fs-lg); line-height: 1.6; }

@keyframes hero-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }

.js .hero-in {
  opacity: 0;
  transform: translateY(22px);
  animation: hero-in 0.9s var(--ease-out) forwards;
  animation-delay: var(--d, 0ms);
}
@keyframes hero-in { to { opacity: 1; transform: none; } }

/* ---------- Migas de pan ---------- */
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; font-size: 0.82rem; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 0.4rem; color: rgba(255, 255, 255, 0.65); }
.breadcrumb li + li::before { content: "/"; color: rgba(255, 255, 255, 0.35); }
.breadcrumb a { color: rgba(255, 255, 255, 0.85); transition: color var(--t-fast); }
.breadcrumb a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb [aria-current] { color: #fff; font-weight: 600; }

/* ---------- Bloque imagen + texto ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 1.5rem + 5vw, 6rem);
  align-items: center;
}
.split--reverse .split__media { order: 2; }
.split__media {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 9 / 10;
  background: var(--c-gray-100);
  box-shadow: var(--sh-lg);
}
.split__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.split__media:hover img { transform: scale(1.04); }
.split__badge {
  position: absolute;
  left: 16px; bottom: 16px;
  padding: 0.3rem 0.7rem;
  border-radius: var(--r-pill);
  background: rgba(12, 36, 19, 0.6);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
}
.split__title { margin-top: var(--sp-4); font-size: var(--fs-h2); line-height: var(--lh-tight); }
.split__lead { margin-top: var(--sp-4); font-size: var(--fs-lg); color: var(--text-muted); line-height: 1.6; }
.split .btn { margin-top: var(--sp-6); }

.prose { margin-top: var(--sp-5); display: grid; gap: var(--sp-4); color: var(--text-muted); font-size: 1.05rem; line-height: 1.75; }

.mini-title { margin-top: var(--sp-6); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-gray-600); }

/* ---------- Lista con check ---------- */
.checklist { margin-top: var(--sp-5); display: grid; gap: 0.85rem; }
.checklist li { display: grid; grid-template-columns: 26px 1fr; gap: 0.75rem; align-items: start; line-height: 1.55; }
.checklist svg {
  width: 26px; height: 26px;
  padding: 5px;
  border-radius: 50%;
  background: var(--c-green-50);
  color: var(--c-green);
}
.checklist strong { color: var(--c-heading); }

/* ---------- Nota informativa ---------- */
.note {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: var(--sp-6);
  padding: 0.9rem 1.1rem;
  border-radius: var(--r-md);
  background: var(--c-purple-50);
  color: var(--c-purple);
  font-size: 0.88rem;
  line-height: 1.55;
}
.note svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.note--center { max-width: 760px; margin-inline: auto; }

/* ---------- Banner de contenido demostrativo ---------- */
.demo-banner { background: var(--c-purple-50); color: var(--c-purple); border-bottom: 1px solid rgba(93, 136, 65, 0.12); }
.demo-banner .container { display: flex; align-items: center; gap: 0.7rem; padding-block: 0.9rem; font-size: 0.9rem; }
.demo-banner svg { width: 20px; height: 20px; flex: none; }
.tag-demo {
  position: absolute;
  top: 14px; left: 14px;
  padding: 0.25rem 0.65rem;
  border-radius: var(--r-pill);
  background: var(--c-purple);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tag-demo--inline { position: static; display: inline-block; margin-bottom: 0.4rem; }

/* ---------- Nosotros ---------- */
.philosophy { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-5); }
.philosophy__item {
  padding: 2rem;
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid var(--border);
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.philosophy__item:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.philosophy__num { font-family: var(--f-serif); font-style: italic; font-size: 2.4rem; color: var(--c-red); line-height: 1; }
.philosophy__item h3 { margin-top: 1rem; font-size: 1.3rem; }
.philosophy__item p { margin-top: 0.6rem; color: var(--text-muted); line-height: 1.65; }
.philosophy__item:nth-child(2) .philosophy__num { color: var(--c-navy); }
.philosophy__item:nth-child(3) .philosophy__num { color: var(--c-purple); }

.mv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5); }
.mv__card {
  padding: clamp(1.8rem, 1.2rem + 2vw, 3rem);
  border-radius: var(--r-xl);
  background: var(--c-gray-50);
  border: 1px solid var(--border);
}
.mv__card--navy { background: var(--c-navy); border-color: var(--c-navy); color: rgba(255, 255, 255, 0.88); }
.mv__label {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--c-red);
}
.mv__card--navy .mv__label { color: #E2C47F; }
.mv__label svg { width: 22px; height: 22px; }
.mv__card p { margin-top: var(--sp-5); font-family: var(--f-serif); font-size: clamp(1.2rem, 1rem + 0.8vw, 1.6rem); line-height: 1.45; }

.motto-section { background: var(--c-navy-950); color: rgba(255, 255, 255, 0.75); overflow: hidden; }
.motto-section__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2.5rem, 2rem + 4vw, 6rem); align-items: center; }
.motto-section h2 { margin-top: var(--sp-4); font-size: var(--fs-h2); line-height: var(--lh-tight); color: #fff; }
.motto-section h2 + p { margin-top: var(--sp-5); font-size: var(--fs-lg); line-height: 1.6; }
.motto-big { display: grid; gap: 0; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.motto-big li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.25rem;
  align-items: center;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.motto-big li > span { font-family: var(--f-serif); font-size: 2.6rem; font-weight: 600; line-height: 1; text-align: center; }
.motto-big li:nth-child(odd) > span { color: #D9B66A; }
.motto-big li:nth-child(even) > span { color: #fff; }
.motto-big strong { font-size: 0.85rem; letter-spacing: 0.18em; text-transform: uppercase; color: #fff; }
.motto-big p { margin-top: 0.3rem; line-height: 1.55; }

.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-5); }
.value { padding: 1.8rem; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--border); transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease); }
.value:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.value:hover .pillar__icon { background: var(--c-navy); color: #fff; }
.value h3 { margin-top: 1.1rem; font-size: 1.15rem; }
.value p { margin-top: 0.5rem; color: var(--text-muted); font-size: 0.94rem; line-height: 1.6; }

/* ---------- Texto legal ---------- */
.legal { max-width: 820px; }
.legal h2 { margin-top: var(--sp-7); font-size: 1.35rem; }
.legal p, .legal ul { margin-top: var(--sp-4); color: var(--text-muted); line-height: 1.75; }
.legal ul { padding-left: 1.2rem; list-style: disc; }
.legal li + li { margin-top: 0.4rem; }
.legal .note { margin-top: 0; }
.legal .link-arrow { margin-top: var(--sp-7); }
[data-pending] { font-style: italic; color: var(--c-gray-400); }
.legal .pending, .channel .pending { color: var(--c-gray-400); }

@media (max-width: 1024px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .split__media { aspect-ratio: 4 / 3; max-height: 520px; }
  .philosophy, .values { grid-template-columns: 1fr 1fr; }
  .motto-section__grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .philosophy, .values, .mv { grid-template-columns: 1fr; }
  .motto-big li { grid-template-columns: 56px 1fr; }
  .motto-big li > span { font-size: 2.6rem; }
  .page-hero__title { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .page-hero__bg { animation: none; }
  .js .hero-in { opacity: 1; transform: none; animation: none; }
}
