/* ==========================================================================
   Sitio público: cabecera y portada. Prefijo "s-" para no interferir con el CSS antiguo.
   Usa la misma paleta que la tienda (tienda.css).
   ========================================================================== */

:root {
  --s-navy: #0f1b3d;
  --s-navy-2: #16244d;
  --s-indigo: #4b44a3;
  --s-indigo-50: #f1f0fb;
  --s-indigo-100: #e3e1f7;
  --s-green: #0e9f58;
  --s-green-600: #0b8a4c;
  --s-green-50: #e8f7ef;
  --s-ink: #111a33;
  --s-ink-2: #3a4560;
  --s-muted: #6b7489;
  --s-line: #e6e8f0;
  --s-bg: #f5f6fa;
  --s-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --s-header-alto: 76px;
}

/* El JS antiguo ocultaba/movía el menú: anulamos la barra de Bootstrap heredada si quedara */
body { font-family: var(--s-font); }

/* ---------- Cabecera ---------- */
.s-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1040;
  height: var(--s-header-alto);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background-color .25s ease, box-shadow .25s ease, height .25s ease;
  font-family: var(--s-font);
}
.s-header.is-scrolled {
  background: rgba(15, 27, 61, .97);
  box-shadow: 0 6px 24px rgba(10, 18, 40, .18);
  --s-header-alto: 64px;
  backdrop-filter: saturate(140%) blur(8px);
}
.s-header-fila { display: flex; align-items: center; gap: 24px; width: 100%; }
.s-logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.s-logo img { height: 38px; width: auto; display: block; }
.s-header.is-scrolled .s-logo img { height: 32px; }

.s-nav { flex: 1; display: flex; align-items: center; }
.s-nav-cabecera, .s-nav-cuenta { display: none; }
.s-nav-lista { list-style: none; display: flex; gap: 4px; margin: 0 0 0 auto; padding: 0; }
.s-nav-lista a {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  color: rgba(255, 255, 255, .86);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .15s, color .15s;
}
.s-nav-lista a:hover { color: #fff; background: rgba(255, 255, 255, .12); }
.s-nav-lista a.is-activo { color: #fff; background: rgba(255, 255, 255, .16); }

.s-acciones { display: flex; align-items: center; gap: 10px; margin-left: 8px; }
.s-link-ingresar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .45);
  color: #fff !important;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .15s, border-color .15s;
}
.s-link-ingresar:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }

.s-cuenta { position: relative; }
.s-cuenta-boton {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 10px 0 4px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .35);
  background: transparent;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.s-cuenta-boton:hover { background: rgba(255, 255, 255, .12); }
.s-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  color: var(--s-indigo);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
}
.s-cuenta-nombre { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 220px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(10, 18, 40, .18);
  padding: 8px;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity .15s, transform .15s;
}
.s-cuenta.is-abierto .s-dropdown { opacity: 1; transform: none; pointer-events: auto; }
.s-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--s-ink) !important;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.s-dropdown a:hover { background: var(--s-indigo-50); color: var(--s-indigo) !important; }
.s-dropdown a i { color: var(--s-muted); font-size: 16px; }
.s-dropdown hr { margin: 6px 4px; border-color: var(--s-line); opacity: 1; }

.s-carrito {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  font-size: 21px;
  transition: background-color .15s;
}
.s-carrito:hover { background: rgba(255, 255, 255, .12); }
.s-carrito-badge {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--s-green);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--s-navy);
}
.s-carrito-badge[hidden] { display: none; }
.s-menu-boton {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 0;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 24px;
  align-items: center;
  justify-content: center;
}
.s-nav-fondo { position: fixed; inset: 0; background: rgba(10, 18, 40, .55); z-index: 1035; } /* debajo de la cabecera (1040), que contiene el panel */
.s-nav-fondo[hidden] { display: none; }

/* Panel móvil */
@media (max-width: 991.98px) {
  .s-header { --s-header-alto: 64px; }
  .s-logo img { height: 32px; }
  .s-menu-boton { display: inline-flex; }
  .s-cuenta-nombre, .s-link-ingresar span, .s-cuenta-boton .bi-chevron-down { display: none; }
  .s-link-ingresar { width: 42px; padding: 0; justify-content: center; border-radius: 12px; }
  .s-cuenta-boton { padding: 0 5px; }
  .s-cuenta { display: none; }
  .s-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 86vw);
    z-index: 1050;
    flex-direction: column;
    align-items: stretch;
    background: var(--s-navy);
    padding: 18px 18px calc(18px + env(safe-area-inset-bottom));
    transform: translateX(100%);
    transition: transform .25s ease;
    overflow-y: auto;
  }
  .s-nav.is-abierto { transform: none; box-shadow: -10px 0 40px rgba(0, 0, 0, .3); }
  .s-nav-cabecera { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
  .s-nav-cabecera img { height: 30px; width: auto; }
  .s-nav-cerrar { width: 40px; height: 40px; border-radius: 10px; border: 0; background: rgba(255, 255, 255, .1); color: #fff; font-size: 18px; }
  .s-nav-lista { flex-direction: column; margin: 0; gap: 2px; }
  .s-nav-lista a { height: 48px; width: 100%; font-size: 16px; }
  .s-nav-cuenta { display: flex; flex-direction: column; gap: 2px; margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); }
  .s-nav-cuenta a { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border-radius: 10px; color: rgba(255, 255, 255, .86); text-decoration: none; font-weight: 500; }
  .s-nav-cuenta a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
  .s-nav-titulo { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: rgba(255, 255, 255, .5); padding: 0 14px 6px; }
}
body.s-menu-abierto { overflow: hidden; }

/* ---------- Botones ---------- */
.s-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 50px;
  padding: 0 24px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-family: var(--s-font);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none !important;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s, transform .05s;
}
.s-btn:active { transform: translateY(1px); }
.s-btn-verde { background: var(--s-green); color: #fff !important; box-shadow: 0 8px 20px rgba(14, 159, 88, .3); }
.s-btn-verde:hover { background: var(--s-green-600); }
.s-btn-blanco { background: #fff; color: var(--s-indigo) !important; }
.s-btn-blanco:hover { background: var(--s-indigo-50); }
.s-btn-contorno { border-color: rgba(255, 255, 255, .55); color: #fff !important; }
.s-btn-contorno:hover { background: rgba(255, 255, 255, .12); }
.s-btn-indigo { background: var(--s-indigo); color: #fff !important; }
.s-btn-indigo:hover { background: #3f3891; }

/* ---------- Portada: estructura ---------- */
.s-home { font-family: var(--s-font); color: var(--s-ink); background: #fff; }
.s-home h1, .s-home h2, .s-home h3, .s-home h4 { font-family: var(--s-font); color: var(--s-ink); letter-spacing: -0.02em; }
.s-home p { color: var(--s-ink-2); }
.s-seccion { padding: 88px 0; }
.s-seccion.is-gris { background: var(--s-bg); }
.s-seccion-cabecera { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.s-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--s-indigo);
  margin-bottom: 10px;
}
.s-seccion-cabecera h2 { font-size: 38px; font-weight: 800; margin: 0 0 12px; }
.s-seccion-cabecera p { font-size: 17px; color: var(--s-muted); margin: 0; }

/* ---------- Hero ---------- */
.s-hero {
  position: relative;
  padding: calc(var(--s-header-alto) + 72px) 0 120px;
  background:
    linear-gradient(115deg, rgba(14, 160, 89, .94) 0%, rgba(43, 72, 132, .92) 55%, rgba(84, 78, 154, .95) 100%),
    url('../images/banner-principal.jpg') center / cover no-repeat;
  color: #fff;
  overflow: hidden;
}
.s-hero::after {
  /* curva inferior */
  content: "";
  position: absolute;
  left: -5%;
  right: -5%;
  bottom: -60px;
  height: 120px;
  background: #fff;
  border-radius: 50% 50% 0 0;
}
.s-hero .container { position: relative; z-index: 1; }
.s-hero-insignia {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .28);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 22px;
}
.s-hero h1 { color: #fff; font-size: 52px; line-height: 1.08; font-weight: 800; max-width: 820px; margin: 0 auto 18px; }
.s-hero-sub { color: rgba(255, 255, 255, .9) !important; font-size: 19px; max-width: 640px; margin: 0 auto 34px; }
.s-buscador {
  display: flex;
  gap: 8px;
  max-width: 720px;
  margin: 0 auto;
  padding: 8px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(10, 18, 40, .25);
}
.s-buscador-campo { position: relative; flex: 1; }
.s-buscador-campo i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--s-muted); font-size: 19px; }
.s-buscador-campo input {
  width: 100%;
  height: 56px;
  border: 0;
  outline: 0;
  padding: 0 14px 0 48px;
  font-size: 17px;
  font-family: var(--s-font);
  color: var(--s-ink);
  background: transparent;
}
.s-buscador .s-btn { height: 56px; }
.s-extensiones { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.s-extension { font-size: 14px; color: rgba(255, 255, 255, .92); }
.s-extension b { color: #fff; }
.s-extension + .s-extension::before { content: "·"; margin-right: 10px; opacity: .6; }
.s-promo-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .95);
  color: var(--s-green-600);
  font-size: 14px;
  font-weight: 700;
}
.s-hero-confianza { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; margin-top: 36px; font-size: 15px; color: rgba(255, 255, 255, .92); }
.s-hero-confianza span { display: inline-flex; align-items: center; gap: 8px; }
.s-hero-confianza i { font-size: 18px; color: #b8f5d2; }

/* ---------- Planes ---------- */
.s-controles { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 36px; }
.s-segmentado { display: inline-flex; padding: 4px; background: #eceef5; border-radius: 12px; gap: 4px; }
.s-segmentado input { position: absolute; opacity: 0; pointer-events: none; }
.s-segmentado label { margin: 0; padding: 10px 18px; border-radius: 9px; font-size: 15px; font-weight: 600; color: var(--s-ink-2); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.s-segmentado input:checked + label { background: #fff; color: var(--s-ink); box-shadow: 0 1px 3px rgba(17, 26, 51, .12); }
.s-segmentado input:focus-visible + label { outline: 2px solid var(--s-indigo); outline-offset: 2px; }
.s-ahorro { font-size: 11px; font-weight: 800; background: var(--s-green-50); color: var(--s-green-600); padding: 3px 8px; border-radius: 999px; }

.s-planes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; align-items: stretch; }
.s-planes[hidden] { display: none; }
/* Columnas según la cantidad de planes, para no dejar uno suelto */
@media (min-width: 992px) {
  .s-planes.cols-3, .s-planes.cols-6, .s-planes.cols-5 { grid-template-columns: repeat(3, 1fr); }
  .s-planes.cols-4, .s-planes.cols-8, .s-planes.cols-7 { grid-template-columns: repeat(4, 1fr); }
  .s-planes.cols-2 { grid-template-columns: repeat(2, minmax(0, 340px)); justify-content: center; }
}
.s-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--s-line);
  box-shadow: 0 1px 2px rgba(17, 26, 51, .04), 0 6px 20px rgba(17, 26, 51, .05);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.s-plan:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(17, 26, 51, .12); }
.s-plan.is-recomendado { border: 2px solid var(--s-indigo); box-shadow: 0 18px 44px rgba(75, 68, 163, .18); }
.s-plan-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--s-indigo);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.s-plan h3 { font-size: 21px; font-weight: 800; margin: 0 0 4px; }
.s-plan-desc { font-size: 14px; color: var(--s-muted); min-height: 42px; margin: 0 0 18px; }
.s-plan-precio { display: flex; align-items: baseline; gap: 4px; }
.s-plan-precio .moneda { font-size: 17px; font-weight: 700; color: var(--s-ink-2); }
.s-plan-precio .monto { font-size: 42px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.s-plan-precio .periodo { font-size: 15px; color: var(--s-muted); }
.s-plan-nota { font-size: 13px; color: var(--s-muted); margin: 6px 0 20px; min-height: 20px; }
.s-plan-nota b { color: var(--s-green-600); }
.s-plan .s-btn { width: 100%; justify-content: center; height: 48px; font-size: 15px; }
.s-plan-features { list-style: none; padding: 20px 0 0; margin: 20px 0 0; border-top: 1px dashed var(--s-line); }
.s-plan-features li { display: flex; gap: 10px; font-size: 14px; color: var(--s-ink-2); padding: 5px 0; }
.s-plan-features li i { color: var(--s-green); font-size: 16px; line-height: 1.3; }
.s-planes-nota { text-align: center; font-size: 14px; color: var(--s-muted); margin-top: 26px; }

/* ---------- Beneficios ---------- */
.s-beneficios { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.s-beneficio { padding: 28px; border-radius: 18px; background: #fff; border: 1px solid var(--s-line); }
.s-beneficio-icono {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: var(--s-indigo-50);
  color: var(--s-indigo);
  margin-bottom: 18px;
}
.s-beneficio:nth-child(3n+2) .s-beneficio-icono { background: var(--s-green-50); color: var(--s-green); }
.s-beneficio h3 { font-size: 18px; font-weight: 700; margin: 0 0 8px; }
.s-beneficio p { font-size: 15px; margin: 0; color: var(--s-muted); }

/* ---------- Pasos ---------- */
.s-pasos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: paso; }
.s-paso { position: relative; text-align: center; padding: 0 12px; }
.s-paso-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--s-green), var(--s-indigo));
  box-shadow: 0 10px 24px rgba(75, 68, 163, .25);
  margin-bottom: 18px;
}
.s-paso h3 { font-size: 19px; font-weight: 700; margin: 0 0 8px; }
.s-paso p { font-size: 15px; color: var(--s-muted); margin: 0; }

/* ---------- Clientes y tecnologías ---------- */
.s-clientes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; align-items: center; }
.s-cliente {
  height: 92px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--s-line);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}
.s-cliente img { max-height: 60px; max-width: 100%; width: auto; height: auto; filter: grayscale(100%); opacity: .75; transition: filter .2s, opacity .2s; }
.s-cliente:hover img { filter: none; opacity: 1; }
.s-tecnologias { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px 44px; margin-top: 48px; }
.s-tecnologias img { height: 30px; width: auto; opacity: .65; filter: grayscale(100%); }

/* ---------- Preguntas frecuentes ---------- */
.s-faq { max-width: 820px; margin: 0 auto; }
.s-faq details { border: 1px solid var(--s-line); border-radius: 14px; background: #fff; margin-bottom: 12px; overflow: hidden; }
.s-faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 56px 20px 22px;
  font-size: 17px;
  font-weight: 700;
  color: var(--s-ink);
  position: relative;
}
.s-faq summary::-webkit-details-marker { display: none; }
.s-faq summary::after {
  content: "\F282"; /* bi-chevron-down */
  font-family: bootstrap-icons;
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  transition: transform .2s;
  color: var(--s-muted);
}
.s-faq details[open] summary::after { transform: translateY(-50%) rotate(180deg); }
.s-faq details p { padding: 0 22px 20px; margin: 0; font-size: 15px; color: var(--s-ink-2); }

/* ---------- Llamado final ---------- */
.s-cta {
  border-radius: 24px;
  padding: 56px;
  text-align: center;
  color: #fff;
  background: linear-gradient(120deg, #0e9f58 0%, #2b4884 55%, #544e9a 100%);
  box-shadow: 0 24px 60px rgba(43, 72, 132, .25);
}
.s-cta h2 { color: #fff; font-size: 36px; font-weight: 800; margin: 0 0 10px; }
.s-cta p { color: rgba(255, 255, 255, .9); font-size: 17px; margin: 0 0 28px; }
.s-cta-botones { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .s-hero h1 { font-size: 40px; }
  .s-beneficios { grid-template-columns: repeat(2, 1fr); }
  .s-seccion { padding: 68px 0; }
}
@media (max-width: 767.98px) {
  .s-hero { padding: calc(var(--s-header-alto) + 40px) 0 96px; }
  .s-hero h1 { font-size: 32px; }
  .s-hero-sub { font-size: 16px; }
  .s-buscador { flex-direction: column; border-radius: 16px; }
  .s-buscador-campo input { height: 52px; }
  .s-buscador .s-btn { width: 100%; justify-content: center; height: 50px; }
  .s-hero-confianza { gap: 10px 18px; font-size: 14px; }
  .s-seccion { padding: 56px 0; }
  .s-seccion-cabecera h2 { font-size: 28px; }
  .s-seccion-cabecera p { font-size: 15px; }
  .s-beneficios, .s-pasos { grid-template-columns: 1fr; }
  .s-cta { padding: 36px 22px; border-radius: 18px; }
  .s-cta h2 { font-size: 26px; }
  .s-plan-precio .monto { font-size: 36px; }
}
