/* Hospada — estilos propios sobre Bootstrap 6 (alpha).
   Bootstrap aporta el sistema (utilidades, botones, tarjetas, acordeón); aquí va la identidad
   de marca (marino #0B2545 y verde azulado #0E7C86, Space Grotesk + Inter) y el maquetado de la landing. */

@font-face {
  font-family: "Space Grotesk HP";
  src: url("../fonts/space-grotesk-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter HP";
  src: url("../fonts/inter-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter HP";
  src: url("../fonts/inter-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter HP";
  src: url("../fonts/inter-latin-600-normal.woff2") format("woff2");
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}

:root,
[data-bs-theme] {
  color-scheme: light; /* sitio solo claro: evita tablas o tarjetas oscuras si el sistema está en modo oscuro */
  --bs-bg-body: #ffffff;
  --bs-fg-body: #0b2545;
  --bs-bg-1: #f4f7f9;
  --bs-bg-2: #edf1f5;
  --bs-border-color: #e3e9ee;
  --hp-navy: #0b2545;
  --hp-navy-2: #13315c;
  --hp-teal: #0e7c86;
  --hp-teal-deep: #0b6a73;
  --hp-teal-soft: #e3f3f4;
  --hp-teal-light: #3fc1c9;
  --hp-slate: #4a5d70;
  --hp-heading: "Space Grotesk HP", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --hp-body: "Inter HP", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --hp-section-y: clamp(3.5rem, 2rem + 5vw, 6rem);
}

/* Tema de marca para los componentes de Bootstrap 6 (.theme-*): verde azulado con texto blanco */
.theme-hospada {
  --bs-theme-base: #0e7c86;
  --bs-theme-fg: #0b6a73;
  --bs-theme-fg-emphasis: #084f56;
  --bs-theme-bg: #0e7c86;
  --bs-theme-bg-subtle: #e3f3f4;
  --bs-theme-bg-muted: #c4e6e8;
  --bs-theme-border: #8fcfd4;
  --bs-theme-focus-ring: rgb(14 124 134 / 0.45);
  --bs-theme-contrast: #ffffff;
}

body {
  font-family: var(--hp-body);
  color: var(--hp-navy);
  background: #fff;
}

h1,
h2,
h3,
.hp-heading {
  font-family: var(--hp-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--hp-navy);
}
h3.h6 {
  font-family: var(--hp-body);
  font-weight: 600;
  letter-spacing: 0;
  font-size: 1rem;
}

.hp-muted {
  color: var(--hp-slate);
}
.hp-mono {
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.hp-section {
  padding-block: var(--hp-section-y);
}
.hp-section-alt {
  background: var(--bs-bg-1);
}
.hp-section-title {
  font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.4rem);
  line-height: 1.15;
  margin-bottom: 0.75rem;
}
.hp-eyebrow {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hp-teal-deep);
}
.hp-lead {
  max-width: 42rem;
  font-size: 1.125rem;
  color: var(--hp-slate);
}

/* Iconos de trazo (los <symbol> del sprite heredan estos estilos) */
.hp-icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Accesibilidad ---------- */
.hp-skip {
  position: absolute;
  inset-inline-start: 1rem;
  top: -4rem;
  z-index: 1000;
  padding: 0.6rem 1rem;
  border-radius: 0.5rem;
  background: var(--hp-teal);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.hp-skip:focus {
  top: 1rem;
}

/* ---------- Cabecera ---------- */
.hp-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgb(255 255 255 / 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--bs-border-color);
}
.hp-header-inner {
  min-height: 4.25rem;
}
.hp-brand {
  flex-shrink: 0;
}
.hp-logo {
  display: block;
  height: 2.35rem;
  width: auto;
}
.hp-navlink {
  color: var(--hp-slate);
  font-weight: 500;
  text-decoration: none;
}
.hp-navlink:hover,
.hp-navlink:focus-visible {
  color: var(--hp-navy);
}
.hp-lang {
  display: flex;
  gap: 0.15rem;
  padding: 0.15rem;
  border: 1px solid var(--bs-border-color);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
}
.hp-lang a {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  color: var(--hp-slate);
  text-decoration: none;
}
.hp-lang a:hover,
.hp-lang a:focus-visible {
  color: var(--hp-navy);
}
.hp-lang a[aria-current="true"] {
  color: #fff;
  background: var(--hp-navy);
}
@media (max-width: 575.98px) {
  .hp-header-inner,
  .hp-header-inner > div:last-child {
    gap: 0.5rem !important;
  }
  .hp-logo {
    height: 1.7rem;
  }
  .hp-header-cta {
    display: none;
  }
}

/* ---------- Hero ---------- */
.hp-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60rem 28rem at 85% -10%, rgb(14 124 134 / 0.12), transparent 60%),
    radial-gradient(40rem 24rem at -10% 110%, rgb(11 37 69 / 0.08), transparent 60%),
    linear-gradient(160deg, #ffffff 0%, #f4f7f9 100%);
  border-bottom: 1px solid var(--bs-border-color);
  padding-block: clamp(3rem, 1.5rem + 5vw, 6rem);
}
.hp-hero-title {
  font-size: clamp(2.1rem, 1.4rem + 3.2vw, 3.6rem);
  line-height: 1.08;
  margin-bottom: 1.25rem;
}
.hp-hero-title em {
  font-style: normal;
  color: var(--hp-teal);
}
.hp-hero .hp-lead {
  color: #33475b;
}
.hp-hero-note {
  margin-top: 1rem;
  font-size: 0.9375rem;
  color: var(--hp-slate);
}
.hp-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  background: #fff;
  border: 1px solid #d5dee6;
}
.hp-pill::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--hp-teal);
  box-shadow: 0 0 0 3px rgb(14 124 134 / 0.18);
}

/* Maqueta ilustrativa de la aplicación */
.hp-mock {
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 30px 60px -24px rgb(11 37 69 / 0.45), 0 0 0 1px rgb(11 37 69 / 0.08);
  overflow: hidden;
  font-size: 0.8125rem;
}
.hp-mock-top {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.7rem 1rem;
  background: var(--hp-navy);
  color: rgb(255 255 255 / 0.7);
}
.hp-mock-top img {
  height: 1.2rem;
  width: auto;
  margin-inline-end: 0.4rem;
}
.hp-mock-tab {
  padding: 0.2rem 0.55rem;
  border-radius: 0.4rem;
  font-weight: 500;
}
.hp-mock-tab.is-active {
  color: #fff;
  background: rgb(255 255 255 / 0.12);
}
.hp-mock-avatar {
  display: grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  margin-inline-start: auto;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 600;
  color: #fff;
  background: var(--hp-teal);
}
.hp-mock-body {
  padding: 1rem 1.1rem 1.2rem;
  background: var(--bs-bg-1);
}
.hp-mock-h {
  font-family: var(--hp-heading);
  font-size: 1.05rem;
}
.hp-mock-search {
  flex: 0 1 12rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid #d5dee6;
  border-radius: 0.5rem;
  background: #fff;
  color: #8a9bab;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hp-mock-table {
  border: 1px solid var(--bs-border-color);
  border-radius: 0.75rem;
  background: #fff;
  overflow: hidden;
}
.hp-mock-row {
  display: grid;
  grid-template-columns: 5.5rem 1fr 3.5rem 6.5rem;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.9rem;
  border-top: 1px solid var(--bs-border-color);
}
@media (max-width: 575.98px) {
  .hp-mock-row {
    grid-template-columns: 5rem 1fr 3.5rem;
  }
}
.hp-mock-row > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hp-mock-row.is-head {
  border-top: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--hp-slate);
  background: #fafbfc;
}
.hp-sk {
  display: block;
  height: 0.55rem;
  border-radius: 999px;
  background: #e1e8ee;
}
.hp-chip {
  display: inline-block;
  padding: 0 0.6rem;
  border-radius: 999px;
  font-style: normal;
  font-size: 0.7rem;
  color: var(--hp-teal);
  background: var(--hp-teal-soft);
}
.hp-chip.is-alt {
  color: #5b6cc4;
  background: #eceefb;
}
.hp-mock-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 0.9rem;
}
.hp-mock-kpis > div {
  display: grid;
  gap: 0.4rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--bs-border-color);
  border-radius: 0.75rem;
  background: #fff;
}
.hp-mock-kpis b {
  font-family: var(--hp-heading);
  font-size: 1.2rem;
}
.hp-mock-caption {
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--hp-slate);
}

/* ---------- Banda "para quién" ---------- */
.hp-band {
  padding-block: 2rem;
  border-bottom: 1px solid var(--bs-border-color);
}
.hp-for {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
}
.hp-for svg {
  flex: 0 0 2.4rem;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0.5rem;
  border-radius: 0.65rem;
  color: var(--hp-teal);
  background: var(--hp-teal-soft);
}

/* ---------- Módulos ---------- */
.card {
  border-color: var(--bs-border-color);
  background: #fff;
}
.hp-feature-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1rem;
  border-radius: 0.75rem;
  color: #fff;
  background: var(--hp-teal);
}
.hp-feature-icon svg {
  width: 1.4rem;
  height: 1.4rem;
}

/* ---------- Multicentro ---------- */
.hp-checks {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hp-checks li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}
.hp-checks svg {
  flex: 0 0 1.2rem;
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.15rem;
  color: var(--hp-teal);
}
.hp-tree {
  display: grid;
  gap: 1.5rem;
  padding: clamp(1.25rem, 1rem + 1vw, 2rem);
  border: 1px solid var(--bs-border-color);
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 24px 48px -32px rgb(11 37 69 / 0.4);
}
.hp-tree small {
  display: block;
  font-size: 0.8rem;
  color: var(--hp-slate);
}
.hp-tree-org {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  justify-self: center;
  padding: 0.8rem 1.2rem;
  border-radius: 0.9rem;
  color: #fff;
  background: var(--hp-navy);
}
.hp-tree-org small {
  color: rgb(255 255 255 / 0.7);
}
.hp-tree-org svg {
  width: 1.6rem;
  height: 1.6rem;
  color: var(--hp-teal-light);
}
.hp-tree-centers {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.hp-tree-centers::before {
  content: "";
  position: absolute;
  inset: -1.5rem 16.6% auto;
  height: 1rem;
  border: 2px solid #c8d4de;
  border-bottom: 0;
  border-radius: 0.6rem 0.6rem 0 0;
}
.hp-tree-center {
  display: grid;
  justify-items: center;
  gap: 0.3rem;
  padding: 0.9rem 0.6rem;
  border: 1px solid var(--bs-border-color);
  border-radius: 0.9rem;
  text-align: center;
  background: var(--bs-bg-1);
  font-size: 0.9rem;
}
.hp-tree-center svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--hp-teal);
}
.hp-tree-record {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.7rem 1rem;
  border: 1.5px dashed var(--hp-teal);
  border-radius: 0.9rem;
  font-weight: 600;
  color: var(--hp-teal-deep);
  background: var(--hp-teal-soft);
}
.hp-tree-record svg {
  width: 1.3rem;
  height: 1.3rem;
}

/* ---------- Seguridad ---------- */
.hp-sec {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  border: 1px solid var(--bs-border-color);
  border-radius: 1rem;
  background: #fff;
}
.hp-sec > svg {
  flex: 0 0 2.4rem;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0.5rem;
  border-radius: 0.65rem;
  color: var(--hp-navy);
  background: var(--bs-bg-2);
}

/* ---------- Cloud / On-Premise ---------- */
.hp-dep .card-body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  height: 100%;
  padding: clamp(1.25rem, 1rem + 1vw, 2rem);
}
.hp-dep .hp-checks {
  flex: 1;
  align-content: start;
}
.hp-feature-icon-navy {
  background: var(--hp-navy);
}

/* ---------- Pasos ---------- */
.hp-step-num {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.9rem;
  border-radius: 50%;
  font-family: var(--hp-heading);
  color: #fff;
  background: var(--hp-navy);
}

/* ---------- FAQ ---------- */
.accordion-item {
  background: #fff;
}

/* ---------- Banda CTA final y pie ---------- */
.hp-cta {
  text-align: center;
  color: #fff;
  background:
    radial-gradient(40rem 18rem at 50% 120%, rgb(63 193 201 / 0.25), transparent 65%),
    linear-gradient(160deg, var(--hp-navy), var(--hp-navy-2));
}
.hp-cta .hp-section-title {
  color: #fff;
}
.hp-cta .hp-lead {
  margin-inline: auto;
  color: rgb(255 255 255 / 0.78);
}
.hp-btn-ghost {
  --bs-btn-color: #fff;
  --bs-btn-bg: transparent;
  --bs-btn-border-color: rgb(255 255 255 / 0.55);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: rgb(255 255 255 / 0.1);
  --bs-btn-hover-border-color: #fff;
  color: #fff;
  border: 1px solid rgb(255 255 255 / 0.55);
}
.hp-btn-ghost:hover,
.hp-btn-ghost:focus-visible {
  color: #fff;
  background: rgb(255 255 255 / 0.1);
  border-color: #fff;
}
.hp-footer {
  padding-block: 2.5rem;
  color: var(--hp-slate);
  background: var(--bs-bg-1);
  border-top: 1px solid var(--bs-border-color);
}
.hp-footer a {
  color: var(--hp-navy);
  text-decoration: none;
}
.hp-footer a:hover,
.hp-footer a:focus-visible {
  color: var(--hp-teal);
  text-decoration: underline;
}
.hp-footer-logo {
  display: block;
  height: 3.4rem;
  width: auto;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Botón flotante de WhatsApp */
.hp-whatsapp {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  background: #1fa855;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 6px 20px rgb(0 0 0 / 0.25);
}
.hp-whatsapp:hover,
.hp-whatsapp:focus-visible {
  background: #178f46;
  color: #fff;
}
.hp-whatsapp svg {
  width: 1.4rem;
  height: 1.4rem;
  fill: currentColor;
}
@media (max-width: 575.98px) {
  .hp-whatsapp span {
    display: none;
  }
  .hp-whatsapp {
    padding: 0.85rem;
  }
}
