/* ════════════════════════════════════════════════════════════════
   HOME 2.0 — secciones limpias, comerciales y minimalistas.
   Paleta oficial únicamente. Máx. 2 colores dominantes por sección.
   ════════════════════════════════════════════════════════════════ */

/* Reveal sobrio compartido (fade-up). Base oculta sólo con .h2-rv (JS la añade). */
.h2-rv { opacity: 0; transform: translateY(28px); }
.h2-rv.is-in {
  opacity: 1; transform: none;
  transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1);
}
@media (prefers-reduced-motion: reduce) {
  .h2-rv { opacity: 1 !important; transform: none !important; }
}

.h2-shell { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { .h2-shell { padding: 0 20px; } }

.h2-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--c-celeste);
}
.h2-eyebrow .d { width: 6px; height: 6px; border-radius: 50%; background: var(--c-celeste); }

/* ── 3 · FRANJA CTA — flotante y limpia ──────────────────────────── */
.fcot {
  background: #EEF0F5;
  padding: 0 32px 64px;
  position: relative; z-index: 4;
}
@media (max-width: 720px) { .fcot { padding: 0 16px 48px; } }
.fcot-car { display: none; }
.fcot-inner {
  max-width: 1100px; margin: 0 auto;
  margin-top: -40px;
  padding: 40px 52px;
  display: flex; flex-direction: row; align-items: center;
  justify-content: space-between; gap: 48px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 16px 48px -20px rgba(23,52,97,.16), 0 4px 10px rgba(23,52,97,.06);
  border: 1px solid #DBDFE5;
}
@media (max-width: 860px) { .fcot-inner { flex-direction: column; align-items: flex-start; gap: 24px; padding: 36px 32px; margin-top: -20px; } }
.fcot-text { flex: 1; }
.fcot h2 {
  margin: 0 0 8px; color: #173461;
  font-size: clamp(22px, 2.6vw, 32px); font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.12; text-wrap: balance;
}
.fcot h2 .accent { color: var(--c-celeste); }
.fcot p {
  margin: 0; color: #5B6B86;
  font-size: clamp(15px, 1.3vw, 17px); max-width: 52ch; line-height: 1.55;
}
.fcot .fcot-cta { flex-shrink: 0; }

/* ── Brand carousel — respaldo comercial ─────────────────────────── */
.bcar { background: var(--c-gris-claro); padding: 40px 0; overflow: hidden; }
.bcar-head {
  text-align: center; margin-bottom: 26px;
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-400); font-weight: 600;
}
.bcar-track-wrap { position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.bcar-track { display: flex; gap: 64px; width: max-content; animation: bcarScroll 38s linear infinite; }
.bcar:hover .bcar-track { animation-play-state: paused; }
.bcar-item {
  font-size: 24px; font-weight: 700; letter-spacing: 0.02em;
  color: #9AA3B2; opacity: 0.55; white-space: nowrap;
  transition: opacity .3s ease, color .3s ease;
}
.bcar-item:hover { opacity: 1; color: var(--c-navy); }
@keyframes bcarScroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .bcar-track { animation: none; } }

/* ── 6 · GALERÍA EMOCIONAL — No se trata solo de crédito ─────────── */
.gem {
  background: radial-gradient(circle at 50% 65%, #123C78 0%, #071A38 55%, #041024 100%);
  padding: 88px 0 72px; overflow: hidden;
  position: relative;
}
.gem::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 0%, rgba(54,181,255,.08) 0%, transparent 60%);
}
.gem-head {
  text-align: center;
  max-width: 900px; margin: 0 auto 48px; padding: 0 32px;
}
@media (max-width: 720px) { .gem-head { padding: 0 20px; margin-bottom: 32px; } }
.gem-head h2 {
  margin: 0 0 16px; color: #fff;
  font-size: clamp(24px, 3.8vw, 50px); font-weight: 700;
  letter-spacing: -0.025em; line-height: 1.1; text-wrap: balance;
}
.gem-grad {
  background: linear-gradient(90deg, #4FC3FF 0%, #1F7BFF 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.gem-head p {
  margin: 0 auto; color: rgba(255,255,255,.72);
  font-size: clamp(15px, 1.4vw, 18px); line-height: 1.6; max-width: 60ch;
}
/* Static gallery — all photos visible simultaneously, aligned at bottom */
.gem-gallery {
  display: flex; align-items: flex-end; justify-content: center;
  gap: 12px; padding: 0 20px 40px;
  overflow-x: auto; overflow-y: visible;
  scrollbar-width: none;
}
.gem-gallery::-webkit-scrollbar { display: none; }
@media (max-width: 1100px) { .gem-gallery { justify-content: flex-start; } }
.gem-pv2 {
  flex: 0 0 auto; border-radius: 32px; overflow: hidden;
  background: #071A38;
  border: 1px solid rgba(54,181,255,.16);
  box-shadow: 0 24px 56px -24px rgba(4,16,36,.75);
  /* reveal */
  opacity: 0; transform: translateY(40px) scale(.96);
}
.gem-pv2.is-in {
  opacity: 1; transform: none;
  transition: opacity .9s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1);
  will-change: transform;
}
.gem-pv2:hover { box-shadow: 0 28px 64px -28px rgba(4,16,36,.85), 0 0 0 2px rgba(54,181,255,.3); filter: brightness(1.06); }
.gem-pv2 img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Float animations */
@keyframes gemF1 { 0%,100%{transform:translateY(-6px)} 50%{transform:translateY(6px)} }
@keyframes gemF2 { 0%,100%{transform:translateY(5px)} 50%{transform:translateY(-5px)} }
@keyframes gemF3 { 0%,100%{transform:translateY(-4px)} 50%{transform:translateY(4px)} }
@keyframes gemF4 { 0%,100%{transform:translateY(6px)} 50%{transform:translateY(-6px)} }
@keyframes gemF5 { 0%,100%{transform:translateY(-5px)} 50%{transform:translateY(5px)} }
.gem-pv2.is-in.gem-float-1 { animation: gemF1 6s ease-in-out infinite 0s; }
.gem-pv2.is-in.gem-float-2 { animation: gemF2 7s ease-in-out infinite .5s; }
.gem-pv2.is-in.gem-float-3 { animation: gemF3 5.5s ease-in-out infinite 1s; }
.gem-pv2.is-in.gem-float-4 { animation: gemF4 6.5s ease-in-out infinite .3s; }
.gem-pv2.is-in.gem-float-5 { animation: gemF5 7.5s ease-in-out infinite .8s; }
@media (prefers-reduced-motion: reduce) {
  .gem-pv2 { opacity: 1 !important; transform: none !important; }
  .gem-pv2.is-in { animation: none !important; }
}
@media (max-width: 720px) { .gem-pv2 { border-radius: 20px; } }

/* ── 8 · ALIADOS — ¿Tienes una agencia? (split limpio, estilo Nexu) ── */
.asx { background: var(--bg); padding: 100px 0; }
.asx-block {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  border-radius: 28px; overflow: hidden;
  box-shadow: 0 30px 70px -40px rgba(23,52,97,.4);
}
@media (max-width: 860px) { .asx-block { grid-template-columns: 1fr; margin: 0 20px; } }
.asx-tx {
  background: var(--c-navy); color: #fff;
  padding: 64px 56px; display: flex; flex-direction: column; gap: 18px;
  justify-content: center;
}
@media (max-width: 720px) { .asx-tx { padding: 44px 30px; } }
.asx-tx h2 {
  margin: 6px 0; font-size: clamp(26px, 2.8vw, 38px); font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.1; text-wrap: balance;
}
.asx-tx h2 .accent { color: var(--c-celeste); }
.asx-tx p { margin: 0; color: rgba(255,255,255,0.74); font-size: 16px; line-height: 1.6; max-width: 42ch; }
.asx-tx .asx-cta { margin-top: 14px; align-self: flex-start; }
.asx-media { position: relative; min-height: 380px; background: var(--c-gris-medio); }
.asx-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center center; }
.asx-media::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to right, #173461 0%, rgba(23,52,97,.55) 18%, rgba(23,52,97,0) 48%);
  z-index: 1;
}

/* ── 10 · NUESTROS VALORES — cards navy con personalidad ─────────── */
.vh { background: #EEF0F5; padding: 104px 0; }
.vh-head { max-width: 1100px; margin: 0 auto 48px; padding: 0 32px; }
.vh-head h2 { margin: 12px 0 12px; font-size: clamp(28px, 3.4vw, 44px); font-weight: 700; letter-spacing: -0.025em; color: var(--c-navy); }
.vh-head p { margin: 0; color: var(--ink-500); font-size: 17px; line-height: 1.55; max-width: 56ch; }
/* Grid: card azul navy premium */
.vh-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1100px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 800px) { .vh-grid { grid-template-columns: 1fr; gap: 16px; max-width: 480px; } }
.vh-card {
  background: #173461; border-radius: 22px;
  padding: 40px 36px; display: flex; flex-direction: column; gap: 16px;
  min-height: 300px; position: relative; overflow: hidden;
  transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s ease;
}
.vh-card:hover { transform: translateY(-5px); box-shadow: 0 28px 64px -26px rgba(23,52,97,.55); }
.vh-card::before {
  content: ''; position: absolute; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(54,181,255,.16), transparent 70%);
  top: -60px; right: -60px; pointer-events: none;
}
.vh-card::after {
  content: ''; position: absolute;
  bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #36B5FF 0%, #224A8E 100%);
  border-radius: 0 0 22px 22px;
}
.vh-card-num {
  font-size: 11px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: rgba(255,255,255,.4); font-family: var(--mono);
}
.vh-card-rule { width: 36px; height: 3px; border-radius: 2px; background: #36B5FF; }
.vh-card h3 { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; color: #fff; }
.vh-card p { margin: 0; color: rgba(255,255,255,.72); font-size: 16px; line-height: 1.65; max-width: 32ch; }
/* Reveal cards */
.vh-card.h2-rv { opacity: 0; transform: translateY(28px); }
.vh-card.h2-rv.is-in { opacity: 1; transform: none; transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1); }
.vh-card.h2-rv.is-in:nth-child(2) { transition-delay: .08s !important; }
.vh-card.h2-rv.is-in:nth-child(3) { transition-delay: .16s !important; }
@media (prefers-reduced-motion: reduce) { .vh-card.h2-rv { opacity: 1 !important; transform: none !important; } }

/* ── 11 · PORTAL HOME — resumen ligero ───────────────────────────── */
.ph { background: var(--c-gris-claro); padding: 104px 0; }
.ph-grid { max-width: 1180px; margin: 0 auto; padding: 0 32px; display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
@media (max-width: 900px) { .ph-grid { grid-template-columns: 1fr; gap: 44px; padding: 0 20px; } }
.ph-tx h2 { margin: 14px 0 16px; font-size: clamp(28px, 3.2vw, 42px); font-weight: 700; letter-spacing: -0.025em; color: var(--c-navy); line-height: 1.08; }
.ph-tx > p { margin: 0 0 24px; color: var(--ink-500); font-size: 17px; line-height: 1.6; max-width: 46ch; }
.ph-bullets { list-style: none; margin: 0 0 30px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ph-bullets li { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 500; color: var(--c-navy); }
.ph-bullets li .ic { width: 26px; height: 26px; border-radius: 8px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; color: var(--c-azul); flex-shrink: 0; }

/* Laptop mockup del portal */
.ph-laptop {
  background: #1A2E4A; border-radius: 14px 14px 0 0;
  padding: 8px 8px 0;
  box-shadow: 0 40px 80px -40px rgba(23,52,97,.6), 0 0 0 1px rgba(255,255,255,.07);
  position: relative;
}
.ph-laptop::before {
  content: ''; position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.18);
}
.ph-laptop-screen { background: #fff; border-radius: 8px 8px 0 0; overflow: hidden; }
.ph-laptop-base {
  background: #152436; height: 24px;
  border-radius: 0 0 10px 10px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 20px 40px -20px rgba(23,52,97,.5);
}
.ph-laptop-base::after {
  content: ''; width: 90px; height: 4px;
  background: rgba(255,255,255,.1); border-radius: 4px;
}
/* Portal dashboard content */
.ph-dash-topbar {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; background: #173461;
  font-size: 13px; font-weight: 600; color: #fff;
}
.ph-dash-topbar .brand { display: flex; align-items: center; gap: 8px; }
.ph-dash-topbar .brand img { height: 22px; width: auto; filter: brightness(10); }
.ph-dash-topbar .url-pill {
  flex: 1; text-align: center; font-family: var(--mono);
  font-size: 11px; color: rgba(255,255,255,.6);
}
.ph-dash-body { display: grid; grid-template-columns: 180px 1fr; }
.ph-dash-side { background: #F7F9FC; border-right: 1px solid var(--line); padding: 18px 14px; }
.ph-dash-nav { display: flex; flex-direction: column; gap: 2px; margin-top: 12px; }
.ph-dash-nav a {
  font-size: 12px; font-weight: 500; color: var(--ink-500);
  padding: 8px 10px; border-radius: 8px; display: block;
}
.ph-dash-nav a.active { background: #EEF0F5; color: #173461; font-weight: 700; }
.ph-dash-main { padding: 20px 22px; }
.ph-dash-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.ph-dash-head .t { font-size: 14px; font-weight: 700; color: var(--c-navy); }
.ph-dash-head .meta { font-size: 11px; font-family: var(--mono); color: var(--ink-400); }
.ph-status { margin: 0 0 16px; padding: 12px 14px; background: #EEF0F5; border-radius: 10px; display: flex; align-items: center; gap: 12px; }
.ph-status .pulse { width: 9px; height: 9px; border-radius: 50%; background: #224A8E; box-shadow: 0 0 0 0 rgba(34,74,142,.4); animation: phPulse 1.9s ease-out infinite; flex-shrink: 0; }
@keyframes phPulse { 0% { box-shadow: 0 0 0 0 rgba(34,74,142,.4); } 70% { box-shadow: 0 0 0 9px rgba(34,74,142,0); } 100% { box-shadow: 0 0 0 0 rgba(34,74,142,0); } }
.ph-status .label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-400); font-weight: 600; }
.ph-status .val { font-size: 13px; font-weight: 700; color: var(--c-navy); }
.ph-docs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.ph-docs li { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 12px; }
.ph-docs .nm { flex: 1; font-weight: 600; color: var(--c-navy); }
.ph-pill { font-size: 10px; padding: 3px 9px; border-radius: 999px; font-weight: 700; }
.ph-pill.ok { background: #E4F6EC; color: #1A7F3F; }
.ph-pill.rev { background: #E9F4FF; color: #224A8E; }
/* Progress stages */
.ph-stages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-bottom: 14px; }
.ph-stage { font-size: 10px; text-align: center; padding-top: 12px; color: var(--ink-400); font-weight: 500; position: relative; }
.ph-stage::before { content: ''; position: absolute; top: 4px; left: 0; right: 0; height: 2px; background: var(--line); border-radius: 1px; }
.ph-stage.done { color: var(--c-azul); font-weight: 700; }
.ph-stage.done::before { background: var(--c-azul); }
.ph-stage.active::before { background: linear-gradient(90deg, var(--c-azul) 50%, var(--line) 50%); }

/* ── 13 · CONTACTO FINAL — navy, simple ──────────────────────────── */
.cfin { background: var(--c-navy); padding: 104px 0; }
.cfin-inner { max-width: 820px; margin: 0 auto; padding: 0 32px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
@media (max-width: 720px) { .cfin-inner { padding: 0 20px; } }
.cfin h2 { margin: 0; color: #fff; font-size: clamp(32px, 4.4vw, 56px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.02; }
.cfin p { margin: 0; color: rgba(255,255,255,0.74); font-size: clamp(17px, 1.7vw, 20px); line-height: 1.55; max-width: 46ch; }
.cfin-cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }
.cfin-contact { display: flex; gap: 28px; flex-wrap: wrap; justify-content: center; margin-top: 26px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,0.12); width: 100%; }
.cfin-contact a { display: inline-flex; align-items: center; gap: 9px; color: rgba(255,255,255,0.78); font-size: 14px; font-weight: 500; transition: color .2s ease; }
.cfin-contact a:hover { color: #fff; }

/* Botón celeste sólido para CTAs sobre fondo navy/azul (paleta oficial) */
.btn-celeste { background: var(--c-celeste); color: #08233F; box-shadow: 0 10px 24px -10px rgba(54,181,255,.6); }
.btn-celeste:hover { background: #4ABEFF; }
.btn-line { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.34); }
.btn-line:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.6); }
