/* ===== Refinamiento visual (solo vista previa): mismo contenido, misma estructura ===== */
:root {
  --navy: #0B132B;
  --navy-2: #18244A;
  --navy-3: #22305E;
  --gold: #D4AF37;
  --gold-soft: #E3C978;
  --line: rgba(212, 175, 55, .26);
  --line-hi: rgba(212, 175, 55, .45);
  --txt: #E7ECF5;
  --txt-2: #A8B3C7;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

/* ---------- Encabezado: menú en texto, sin cajitas ---------- */
header.sticky { border-bottom: 1px solid rgba(212, 175, 55, .55) !important; box-shadow: 0 1px 0 rgba(11, 19, 43, .04), 0 8px 24px -16px rgba(11, 19, 43, .35) !important; }
header .nav-btn {
  background: transparent !important; border: 0 !important; box-shadow: none !important;
  font-size: .8125rem !important; font-weight: 600 !important; color: #334155 !important;
  padding: .5rem .75rem !important; border-radius: 0 !important; position: relative;
}
header .nav-btn i { display: none !important; }
header .nav-btn::after {
  content: ""; position: absolute; left: .75rem; right: .75rem; bottom: .2rem; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
header .nav-btn:hover { color: var(--navy) !important; }
header .nav-btn:hover::after, header .nav-btn.nav-btn-active::after { transform: scaleX(1); }
header .nav-btn.nav-btn-active { background: transparent !important; color: var(--navy) !important; }
/* Páginas interiores sin botón URGENCIA (2026-11-25): el último enlace del menú queda pegado al borde derecho */
header nav .nav-btn:last-child { padding-right: 0 !important; }
header nav .nav-btn:last-child::after { right: 0; }
/* Urgencia: rojo sobrio con un pulso suave cada pocos segundos (llama la atención sin parpadear) */
header a[href*="URGENCIA"] {
  animation: urgencia-pulso 3.2s ease-out infinite !important; background: #C62828 !important; border-color: #C62828 !important;
  border-radius: .55rem !important; letter-spacing: .02em; box-shadow: 0 6px 16px -8px rgba(198, 40, 40, .7);
}
header a[href*="URGENCIA"]:hover { background: #A61F1F !important; transform: none !important; animation-play-state: paused !important; }
@keyframes urgencia-pulso {
  0%, 55%, 100% { box-shadow: 0 6px 16px -8px rgba(198, 40, 40, .7), 0 0 0 0 rgba(198, 40, 40, 0); }
  8% { box-shadow: 0 6px 16px -8px rgba(198, 40, 40, .7), 0 0 0 0 rgba(198, 40, 40, .55); }
  40% { box-shadow: 0 6px 16px -8px rgba(198, 40, 40, .7), 0 0 0 10px rgba(198, 40, 40, 0); }
}

/* ---------- Portada ---------- */
.hp-entra { animation-duration: .6s !important; transform: translateY(8px); }
.hp-entra.d1 { animation-delay: .05s !important; } .hp-entra.d2 { animation-delay: .15s !important; }
.hp-entra.d3 { animation-delay: .25s !important; } .hp-entra.d4 { animation-delay: .35s !important; }
.hp-titulo { font-weight: 700 !important; letter-spacing: -.03em !important; line-height: 1.05 !important; }
.hp-titulo span { background: linear-gradient(180deg, #F1D98A 0%, #D4AF37 100%) !important; -webkit-background-clip: text !important; background-clip: text !important; }
.hp-insignia { font-weight: 700 !important; letter-spacing: .12em !important; border-color: rgba(212, 175, 55, .35) !important; background: rgba(11, 19, 43, .35) !important; backdrop-filter: blur(6px); }
.hp-bajada { color: #B9C3D6 !important; }
.hp-cotizar { border-radius: .6rem !important; font-weight: 700 !important; box-shadow: 0 8px 24px -10px rgba(212, 175, 55, .7) !important; }
.hp-urgencia { border-radius: .6rem !important; border-color: rgba(255, 255, 255, .22) !important; }

/* ---------- Contenido: más aire, misma estructura ---------- */
#contenido { padding-top: 2rem !important; padding-bottom: 4rem !important; }
#contenido #page-inicio > * + * { margin-top: 3.5rem !important; }
#contenido #pantalla-1 > * + * { margin-top: 1rem !important; }
#contenido #ejes > * + * { margin-top: 3.5rem !important; }

/* Títulos de sección */
#contenido section > .text-center { margin-bottom: 1.75rem !important; }
#contenido section > .text-center > h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem) !important; font-weight: 700 !important; letter-spacing: -.025em !important;
  color: #FFFFFF !important;
}
#contenido section > .text-center > h2::after {
  content: ""; display: block; width: 2.5rem; height: 2px; margin: .85rem auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
#contenido section > .text-center > p { font-size: .95rem !important; color: var(--txt-2) !important; margin-top: .75rem !important; }

/* ---------- Tarjetas: oscuras, borde fino dorado, sin brillos ---------- */
#contenido .vip-card {
  background: linear-gradient(180deg, var(--navy-3) 0%, var(--navy-2) 100%) !important;
  border: 1px solid var(--line) !important; border-radius: 14px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 10px 30px -18px rgba(0, 0, 0, .6) !important;
  padding: 1.5rem !important;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease) !important;
}
#contenido #pantalla-1 .vip-card { padding: 1.15rem 1.25rem !important; }
#contenido .vip-card::before, #contenido .vip-card::after { display: none !important; animation: none !important; }
#contenido .vip-card:hover {
  background: linear-gradient(180deg, var(--navy-3) 0%, var(--navy-2) 100%) !important;
  border-color: var(--line-hi) !important; transform: translateY(-5px) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 26px 48px -18px rgba(0, 0, 0, .85), 0 0 0 1px rgba(212, 175, 55, .12) !important;
}
#contenido .vip-card h3, #contenido .vip-card:hover h3 { color: #FFFFFF !important; font-weight: 650 !important; letter-spacing: -.01em; font-size: 1.05rem !important; }
#contenido #pantalla-1 .vip-card h3 { font-size: .95rem !important; }
#contenido .vip-card p, #contenido .vip-card:hover p { color: var(--txt-2) !important; font-size: .875rem !important; line-height: 1.65 !important; }
#contenido .vip-card .uppercase, #contenido .vip-card:hover .uppercase:not([class*="bg-"]) {
  color: var(--gold) !important; font-size: .68rem !important; font-weight: 700 !important; letter-spacing: .14em !important; margin-bottom: .4rem !important;
}
/* Ícono */
#contenido .vip-card .w-10.h-10, #contenido .vip-card:hover .w-10.h-10 {
  background: rgba(212, 175, 55, .08) !important; border: 1px solid rgba(212, 175, 55, .3) !important;
  color: var(--gold) !important; border-radius: 10px !important; width: 2.75rem !important; height: 2.75rem !important; font-size: 1.05rem !important; margin-bottom: 1.1rem !important;
}
#contenido .vip-card .w-10.h-10 i, #contenido .vip-card:hover .w-10.h-10 i { color: var(--gold) !important; }
/* Etiqueta inferior */
#contenido .vip-card .rounded-full.inline-block, #contenido .vip-card:hover .rounded-full.inline-block {
  background: transparent !important; border: 1px solid rgba(212, 175, 55, .3) !important; color: var(--gold-soft) !important;
  font-size: .7rem !important; font-weight: 600 !important; padding: .3rem .7rem !important;
}
/* Pasos: un solo color para los tres números */
#contenido .paso-num, #contenido .vip-card:hover .paso-num {
  background: transparent !important; border: 1px solid var(--gold) !important; color: var(--gold) !important;
  font-weight: 700 !important; width: 2.25rem !important; height: 2.25rem !important;
}
#contenido .flecha-paso { animation: none !important; background: var(--navy) !important; border-width: 1px !important; width: 2rem !important; height: 2rem !important; box-shadow: none !important; }

/* ---------- Bloque "Respaldo técnico" con mapa: el respiro claro de la página ---------- */
#contenido section.clean-card {
  background: linear-gradient(180deg, #FBFAF6 0%, #F4F1E8 100%) !important;
  border: 1px solid rgba(212, 175, 55, .35) !important; border-radius: 18px !important; padding: 2rem !important;
  box-shadow: 0 24px 60px -32px rgba(0, 0, 0, .85) !important;
}
#contenido section.clean-card p { color: #475569 !important; font-size: .95rem !important; line-height: 1.75 !important; }
#contenido section.clean-card p .text-slate-900 { color: var(--navy) !important; }
#contenido section.clean-card .rounded-full.bg-amber-100\/80 {
  background: transparent !important; border-color: rgba(154, 118, 18, .35) !important; color: #8A6A12 !important; letter-spacing: .14em !important;
}
#contenido section.clean-card .rounded-full.bg-amber-100\/80 i { color: #9A7612 !important; }
#contenido section.clean-card .bg-slate-900 {
  background: var(--navy) !important; box-shadow: none !important; border-left: 2px solid var(--gold) !important;
  border-radius: 0 10px 10px 0 !important; font-size: .95rem !important; color: #D6DDEA !important; padding: 1rem 1.25rem !important;
}
#contenido #mapa-box { border: 1px solid rgba(212, 175, 55, .45) !important; border-radius: 14px !important; box-shadow: 0 12px 30px -20px rgba(11, 19, 43, .45) !important; }
#contenido #mapa-box + p { color: #64748B !important; font-size: .75rem !important; }
#contenido #mapa-box + p .text-slate-900 { color: var(--navy) !important; }
#contenido #mapa-box + p i { color: #9A7612 !important; }

/* "Conozca más" de la segunda pantalla: igual que "Conocer más" de la portada (misma letra, color y lugar, al pie de la pantalla).
   El alto exacto de la pantalla lo fija ruta.js según la ventana de quien la abre. */
@media (min-width: 768px) {
  #contenido #pantalla-1 { display: flex !important; flex-direction: column !important; }
  /* El bloque del mapa se estira para ocupar el alto que sobra (sin huecos vacíos antes de "Conozca más"):
     el texto queda centrado a la izquierda y el mapa crece a la derecha */
  #contenido #pantalla-1 > section.clean-card { flex: 1 1 auto; display: flex !important; flex-direction: column; justify-content: center; }
  #contenido #pantalla-1 > section.clean-card > .grid { flex: 1 1 auto; align-items: stretch !important; }
  /* El recuadro del mapa crece con el bloque, pero con tope: en monitores grandes no le gana al texto,
     y el espacio que sobra queda como aire alrededor (el recuadro se centra en su columna) */
  #contenido #pantalla-1 #mapa-box { max-height: 420px; }
  /* El mapa ocupa todo su recuadro, sin imponer un alto propio */
  #contenido #pantalla-1 #mapa-img {
    position: absolute; inset: .75rem; width: calc(100% - 1.5rem) !important; height: calc(100% - 1.5rem) !important;
    max-height: none !important; object-fit: contain;
  }
  #contenido #pantalla-1 > a[href="#ejes"] {
    margin-top: auto !important; padding: 1rem 0 1rem !important; gap: .3rem !important;
    font-size: .7rem !important; font-weight: 400 !important; letter-spacing: .1em !important;
    color: rgba(255, 255, 255, .7) !important;
  }
  #contenido #pantalla-1 > a[href="#ejes"]:hover { color: #FFFFFF !important; }
  #contenido #pantalla-1 > a[href="#ejes"] i { font-size: .7rem !important; color: #D4AF37 !important; animation: hp-rebote 2.6s ease-in-out infinite !important; }
}
@media (prefers-reduced-motion: reduce) { #contenido #pantalla-1 > a[href="#ejes"] i { animation: none !important; } }

/* Indicadores de "seguir bajando": sin rebote continuo */
#contenido a[href="#ejes"] i, .hp-bajar i { animation-duration: 2.6s !important; }

/* Botón flotante de WhatsApp: sombra más prolija */
a[aria-label="Contacto directo por WhatsApp"] { box-shadow: 0 10px 24px -8px rgba(16, 185, 129, .6) !important; }

/* ---------- Cómo Trabajamos como "hoja de ruta": un camión recorre los tres pasos al bajar ---------- */
#contenido .ruta { --p: 0; gap: 2rem !important; padding-top: .5rem; }
#contenido .ruta .flecha-paso { display: none !important; }
/* La ruta: banda oscura con línea central discontinua, y el tramo recorrido en dorado */
#contenido .ruta::before, #contenido .ruta .ruta-hecha {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  left: 0; right: 0; top: calc(.5rem + 1.375rem - 7px); height: 14px; border-radius: 999px;
}
#contenido .ruta::before {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .35) 0 14px, transparent 14px 28px) center / 100% 2px no-repeat,
    #0E1735;
  box-shadow: inset 0 0 0 1px rgba(212, 175, 55, .18);
}
#contenido .ruta .ruta-hecha {
  right: auto; width: calc(var(--p) * 100%);
  background: linear-gradient(90deg, rgba(212, 175, 55, .15), rgba(212, 175, 55, .55));
  box-shadow: 0 0 18px rgba(212, 175, 55, .35);
}
#contenido .ruta::after {
  content: "\f48b"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 1.15rem; color: var(--gold);
  position: absolute; z-index: 3; top: calc(.5rem + 1.375rem); left: calc(var(--p) * 100%);
  transform: translate(-50%, -135%); filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .6));
}
/* Cuando vuelve hacia un paso anterior, el camión gira y mira hacia donde va */
#contenido .ruta.reversa::after { transform: translate(-50%, -135%) scaleX(-1); }
#contenido .ruta .paso-card { cursor: pointer; }
/* Pasos: sin cajas, centrados sobre su hito de la ruta */
#contenido .ruta .paso-card, #contenido .ruta .paso-card:hover {
  background: transparent !important; border: 0 !important; box-shadow: none !important; transform: none !important;
  padding: 0 .5rem !important; text-align: center; opacity: .7; transition: opacity .5s var(--ease) !important;
  overflow: visible !important; /* las tarjetas originales recortan: sin esto se corta el círculo del número y su brillo */
}
#contenido .ruta .paso-card > .flex { flex-direction: column; gap: 1rem !important; margin-bottom: .6rem !important; }
#contenido .ruta .paso-card .paso-num {
  position: relative; z-index: 2; width: 2.75rem !important; height: 2.75rem !important; font-size: 1rem !important;
  background: var(--navy) !important; color: var(--txt-2) !important; border: 1px solid rgba(255, 255, 255, .25) !important;
  transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
#contenido .ruta .paso-card p { max-width: 19rem; margin: 0 auto; }
#contenido .ruta .paso-card.llego { opacity: 1; }
#contenido .ruta .paso-card.llego .paso-num {
  background: var(--gold) !important; color: var(--navy) !important; border-color: var(--gold) !important;
  box-shadow: 0 0 0 6px rgba(212, 175, 55, .14), 0 0 24px rgba(212, 175, 55, .45);
}
/* En el celular la ruta va en vertical, a la izquierda */
@media (max-width: 767px) {
  #contenido .ruta { gap: 2.25rem !important; padding-top: 0; }
  #contenido .ruta::before, #contenido .ruta .ruta-hecha { left: calc(1.375rem - 7px); right: auto; top: 0; width: 14px; height: 100%; }
  #contenido .ruta::before { background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .35) 0 14px, transparent 14px 28px) center / 2px 100% no-repeat, #0E1735; }
  #contenido .ruta .ruta-hecha { width: 14px; height: calc(var(--p) * 100%); background: linear-gradient(180deg, rgba(212, 175, 55, .15), rgba(212, 175, 55, .55)); }
  /* El camión se ve siempre horizontal, aunque la ruta vaya en vertical */
  #contenido .ruta::after { left: 1.375rem; top: calc(var(--p) * 100%); transform: translate(-50%, -50%); }
  #contenido .ruta.reversa::after { transform: translate(-50%, -50%) scaleX(-1); }
  #contenido .ruta .paso-card, #contenido .ruta .paso-card:hover { text-align: left; padding: 0 0 0 4rem !important; }
  #contenido .ruta .paso-card > .flex { flex-direction: row; gap: .75rem !important; }
  #contenido .ruta .paso-card .paso-num { position: absolute; left: 0; top: -.55rem; }
  #contenido .ruta .paso-card p { margin: 0; }
}

/* ---------- En computadora, cada pantalla del inicio entra completa (como en la web original) ----------
   Pantalla 2: los tres cuadros + el bloque del mapa. Pantalla 3: Ejes Estratégicos + Cómo Trabajamos.
   En pantallas bajas (notebooks, Windows con zoom al 125%) se compactan espacios y textos. */
@media (min-width: 768px) and (max-height: 820px) {
  #contenido { padding-top: .75rem !important; }
  #contenido #pantalla-1 > * + * { margin-top: .6rem !important; }
  #contenido #pantalla-1 .vip-card { padding: .8rem 1.1rem !important; }
  #contenido #pantalla-1 .vip-card h3 { font-size: .9rem !important; }
  #contenido #pantalla-1 .vip-card p { font-size: .82rem !important; line-height: 1.5 !important; }
  #contenido #pantalla-1 .vip-card .uppercase { margin-bottom: .2rem !important; }
  #contenido section.clean-card { padding: 1.1rem 1.5rem !important; }
  #contenido section.clean-card p { font-size: .88rem !important; line-height: 1.6 !important; }
  #contenido section.clean-card .bg-slate-900 { font-size: .85rem !important; padding: .6rem .9rem !important; }
  #contenido #mapa-box { min-height: 170px !important; }
  #contenido #mapa-img { max-height: 210px !important; }
  #contenido #pantalla-1 > a { padding-top: .25rem !important; padding-bottom: 0 !important; }

  #contenido #ejes > * + * { margin-top: 1.25rem !important; }
  #contenido #ejes > section { padding-top: 0 !important; }
  #contenido #ejes section > .text-center { margin-bottom: .9rem !important; }
  #contenido #ejes section > .text-center > h2 { font-size: 1.4rem !important; }
  #contenido #ejes section > .text-center > h2::after { margin-top: .45rem; }
  #contenido #ejes section > .text-center > p { font-size: .85rem !important; margin-top: .35rem !important; }
  #contenido #ejes .vip-card:not(.paso-card) { padding: .95rem 1.2rem !important; }
  #contenido #ejes .vip-card .w-10.h-10 { width: 2.25rem !important; height: 2.25rem !important; font-size: .9rem !important; margin-bottom: .55rem !important; }
  #contenido #ejes .vip-card h3 { font-size: .95rem !important; margin-bottom: .3rem !important; }
  #contenido #ejes .vip-card p { font-size: .82rem !important; line-height: 1.5 !important; margin-bottom: .5rem !important; }
  #contenido #ejes .ruta { gap: 1.25rem !important; }
  #contenido #ejes .ruta .paso-card > .flex { gap: .6rem !important; margin-bottom: .35rem !important; }
}
/* Pantallas muy bajas (por ejemplo, Windows con zoom al 150%) */
@media (min-width: 768px) and (max-height: 660px) {
  #contenido #pantalla-1 .vip-card { padding: .65rem 1rem !important; }
  #contenido section.clean-card { padding: .9rem 1.25rem !important; }
  #contenido section.clean-card p { font-size: .84rem !important; line-height: 1.5 !important; }
  #contenido #mapa-box { min-height: 150px !important; }
  #contenido #mapa-img { max-height: 180px !important; }

  #contenido #ejes > * + * { margin-top: .9rem !important; }
  #contenido #ejes section > .text-center { margin-bottom: .6rem !important; }
  #contenido #ejes section > .text-center > h2 { font-size: 1.25rem !important; }
  #contenido #ejes section > .text-center > h2::after { margin-top: .3rem; }
  #contenido #ejes section > .text-center > p { font-size: .8rem !important; margin-top: .2rem !important; }
  #contenido #ejes .vip-card:not(.paso-card) { padding: .75rem 1rem !important; }
  #contenido #ejes .vip-card .w-10.h-10 { width: 2rem !important; height: 2rem !important; margin-bottom: .4rem !important; }
  #contenido #ejes .vip-card p { font-size: .78rem !important; line-height: 1.45 !important; margin-bottom: .4rem !important; }
  #contenido #ejes .ruta .paso-card .paso-num { width: 2.25rem !important; height: 2.25rem !important; font-size: .9rem !important; }
  #contenido #ejes .ruta::before, #contenido #ejes .ruta .ruta-hecha { top: calc(.5rem + 1.125rem - 7px); }
  #contenido #ejes .ruta::after { top: calc(.5rem + 1.125rem); }
}

@media (prefers-reduced-motion: reduce) {
  #contenido .vip-card, #contenido .vip-card:hover { transform: none !important; transition: none !important; }
  header a[href*="URGENCIA"] { animation: none !important; }
}
