/* ==========================================================================
   H.M.S.S — Hotel Management Software Services
   Hoja de estilos principal. Colores corporativos: blanco, azul claro y azul marino.
   ========================================================================== */

/* ---------- Tipografías (alojadas en el propio sitio, sin llamadas a terceros) ---------- */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Variables de diseño ---------- */
:root {
  --navy: #0b2545;
  --navy-700: #13315c;
  --blue: #004bad;
  --blue-600: #0a5bd0;
  --sky-50: #f4f8fd;
  --sky-100: #e8f1fb;
  --sky-200: #cfe2f7;
  --sky-300: #a8c8f0;
  --text: #33445c;
  --muted: #5b6b82;
  --line: #dce6f2;
  --white: #ffffff;
  --success: #1f7a4d;
  --danger: #b42318;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;

  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(11, 37, 69, 0.06);
  --shadow: 0 1px 2px rgba(11, 37, 69, 0.05), 0 10px 30px rgba(11, 37, 69, 0.08);
  --shadow-lg: 0 2px 6px rgba(11, 37, 69, 0.05), 0 30px 70px rgba(11, 37, 69, 0.16);

  --container: 1160px;
  --gutter: 20px;
  --header-h: 72px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--blue-600);
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  color: var(--navy);
  line-height: 1.15;
}
h1,
h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.01em;
}
h1 {
  font-size: clamp(2.5rem, 5.2vw, 4rem);
  line-height: 1.04;
}
h2 {
  font-size: clamp(2.05rem, 3.8vw, 3rem);
  line-height: 1.08;
}
h3 {
  font-size: 1.125rem;
  font-weight: 650;
  letter-spacing: -0.005em;
}
p {
  margin: 0 0 1em;
}
ul {
  margin: 0;
  padding: 0;
}

:focus-visible {
  outline: 3px solid var(--blue-600);
  outline-offset: 3px;
  border-radius: 6px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  top: 12px;
  color: var(--white);
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 48px;
  padding: 0.75em 1.35em;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: 0.975rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.btn .icon {
  width: 1.1em;
  height: 1.1em;
  transition: transform 0.2s;
}
.btn:hover .icon-arrow {
  transform: translateX(3px);
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(0, 75, 173, 0.25);
}
.btn-primary:hover {
  background: var(--navy);
  color: var(--white);
}
.btn-secondary {
  background: var(--white);
  border-color: var(--sky-200);
  color: var(--navy);
}
.btn-secondary:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.btn-light {
  background: var(--white);
  color: var(--navy);
}
.btn-light:hover {
  background: var(--sky-100);
  color: var(--navy);
}
.btn-ghost-light {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
}
.btn-ghost-light:hover {
  border-color: var(--white);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}
.btn-sm {
  min-height: 40px;
  padding: 0.55em 1.1em;
  font-size: 0.9rem;
}
.btn[disabled] {
  opacity: 0.65;
  cursor: progress;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 600;
  text-decoration: none;
}
.link-arrow .icon {
  width: 1em;
  height: 1em;
  transition: transform 0.2s;
}
.link-arrow:hover .icon {
  transform: translateX(3px);
}

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--navy);
}
.brand img {
  width: auto;
  height: 22px;
}
.brand-tagline {
  padding-left: 14px;
  border-left: 1px solid var(--line);
  font-family: var(--font-serif);
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.1;
  color: var(--navy-700);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.site-nav a:not(.btn) {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}
.site-nav a:not(.btn):hover,
.site-nav a[aria-current="page"] {
  color: var(--blue);
  background: var(--sky-50);
}
.site-nav .btn {
  margin-left: 10px;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
}
.nav-toggle .icon {
  width: 26px;
  height: 26px;
}
.nav-toggle .icon-close {
  display: none;
}
.nav-open .nav-toggle .icon-menu {
  display: none;
}
.nav-open .nav-toggle .icon-close {
  display: block;
}

@media (max-width: 1060px) {
  .brand-tagline {
    display: none;
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px var(--gutter) 24px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px rgba(11, 37, 69, 0.12);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  }
  .nav-open .site-nav {
    transform: none;
    opacity: 1;
    visibility: visible;
  }
  .site-nav a:not(.btn) {
    padding: 14px 12px;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--sky-100);
    border-radius: 0;
  }
  .site-nav .btn {
    margin: 14px 0 0;
  }
}

/* ---------- Secciones ---------- */
.section {
  padding: clamp(72px, 9vw, 120px) 0;
}
.section--sky {
  background: var(--sky-50);
  border-top: 1px solid var(--sky-100);
  border-bottom: 1px solid var(--sky-100);
}
.section--tight {
  padding: clamp(48px, 6vw, 72px) 0;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-head p {
  font-size: 1.1rem;
  color: var(--muted);
}
.lead {
  font-size: clamp(1.075rem, 1.6vw, 1.2rem);
  color: var(--muted);
}

/* ---------- Héroe ---------- */
.hero {
  position: relative;
  padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 104px);
  background:
    radial-gradient(900px 480px at 85% 10%, var(--sky-100) 0%, rgba(232, 241, 251, 0) 70%),
    linear-gradient(180deg, #fff 0%, var(--sky-50) 100%);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 5vw, 64px);
}
.hero h1 {
  margin-bottom: 0.45em;
  font-size: clamp(2.4rem, 4.4vw, 3.5rem);
}
.hero .lead {
  max-width: 560px;
  margin-bottom: 32px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 26px 0 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.92rem;
}
.hero-notes li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-notes .icon {
  width: 18px;
  height: 18px;
  color: var(--blue);
}
.hero-visual {
  position: relative;
}
.hero-visual .shot {
  transform-origin: left center;
}
@media (min-width: 1101px) {
  .hero-visual .shot {
    width: 125%;
  }
}
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * {
    animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .hero-copy > :nth-child(2) {
    animation-delay: 0.06s;
  }
  .hero-copy > :nth-child(3) {
    animation-delay: 0.12s;
  }
  .hero-copy > :nth-child(4) {
    animation-delay: 0.18s;
  }
  .hero-copy > :nth-child(5) {
    animation-delay: 0.24s;
  }
  .hero-visual {
    animation: rise 0.9s 0.15s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Marco tipo navegador para las capturas ---------- */
.shot {
  margin: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.shot-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 14px;
  background: var(--sky-50);
  border-bottom: 1px solid var(--line);
}
.shot-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sky-200);
}
.shot-bar span:first-child {
  background: #f1a39b;
}
.shot-bar span:nth-child(2) {
  background: #f3d083;
}
.shot-bar span:nth-child(3) {
  background: #a4d69b;
}
.shot a {
  display: block;
  cursor: zoom-in;
}
.shot img {
  width: 100%;
}
.shot figcaption {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}

/* ---------- Franja de confianza ---------- */
.trust {
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  list-style: none;
}
.trust-grid li {
  display: flex;
  gap: 14px;
  padding: 30px 26px;
}
.trust-grid li + li {
  border-left: 1px solid var(--line);
}
.trust-grid strong {
  display: block;
  margin-bottom: 2px;
  color: var(--navy);
  font-size: 0.98rem;
}
.trust-grid span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--sky-100);
  color: var(--blue);
}
.icon-badge .icon {
  width: 22px;
  height: 22px;
}

@media (max-width: 1000px) {
  .trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .trust-grid li:nth-child(3) {
    border-left: 0;
  }
  .trust-grid li:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}
@media (max-width: 600px) {
  .trust-grid {
    grid-template-columns: 1fr;
  }
  .trust-grid li {
    padding: 22px 0;
  }
  .trust-grid li + li {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

/* ---------- Tarjetas ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  list-style: none;
}
.card {
  padding: 28px 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  border-color: var(--sky-300);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.card .icon-badge {
  margin-bottom: 22px;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
@media (max-width: 1000px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Producto destacado ---------- */
.product-list {
  display: grid;
  gap: 24px;
  margin: 0;
  list-style: none;
}
.product-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.product-body {
  padding: clamp(32px, 4.5vw, 56px);
}
.product-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--sky-100);
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 600;
}
.product-card h3 {
  margin-bottom: 0.35em;
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 3.6vw, 2.75rem);
  font-weight: 600;
  line-height: 1.05;
}
.product-card p {
  color: var(--muted);
  font-size: 1.05rem;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 32px;
  list-style: none;
}
.chips li {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--sky-50);
  color: var(--navy);
  font-size: 0.86rem;
  font-weight: 500;
}
.product-media {
  position: relative;
  min-height: 360px;
  padding: 40px 0 0 40px;
  background:
    radial-gradient(500px 300px at 80% 0%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 70%),
    linear-gradient(160deg, var(--sky-100), var(--sky-200));
  overflow: hidden;
}
.product-media .shot {
  position: absolute;
  top: 40px;
  left: 40px;
  width: 560px;
  max-width: none;
  border-radius: var(--radius) 0 0 0;
}
@media (max-width: 900px) {
  .product-card {
    grid-template-columns: 1fr;
  }
  .product-media {
    min-height: 0;
    padding: 28px 0 0 28px;
  }
  .product-media .shot {
    position: static;
    width: 100%;
    max-width: none;
    margin-right: -1px;
  }
}

/* ---------- Plataforma conectada (diagrama) ---------- */
.hub {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px minmax(0, 1fr);
  align-items: center;
  gap: 0 56px;
  max-width: 1040px;
  margin: 0 auto;
}
.hub-col {
  display: grid;
  gap: 18px;
  margin: 0;
  list-style: none;
}
.hub-node {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.hub-node strong {
  display: block;
  color: var(--navy);
  font-size: 0.98rem;
  line-height: 1.3;
}
.hub-node div > span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}
.hub-col--left .hub-node::after,
.hub-col--right .hub-node::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 56px;
  border-top: 1.5px dashed var(--sky-300);
}
.hub-col--left .hub-node::after {
  left: 100%;
}
.hub-col--right .hub-node::before {
  right: 100%;
}
.hub-core {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, var(--navy-700), var(--navy));
  color: var(--white);
  text-align: center;
  box-shadow: 0 0 0 14px var(--sky-100), 0 0 0 15px var(--sky-200), var(--shadow-lg);
}
.hub-core small {
  color: var(--sky-300);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hub-core strong {
  margin: 6px 0 4px;
  font-family: var(--font-serif);
  font-size: 2.3rem;
  font-weight: 600;
  line-height: 1;
}
.hub-core span {
  max-width: 180px;
  color: var(--sky-200);
  font-size: 0.88rem;
  line-height: 1.4;
}
@media (max-width: 900px) {
  .hub {
    grid-template-columns: 1fr;
    gap: 18px;
    max-width: 520px;
  }
  .hub-core {
    order: -1;
    width: 220px;
    margin: 0 auto 28px;
  }
  .hub-col--left .hub-node::after,
  .hub-col--right .hub-node::before {
    display: none;
  }
}

.outcomes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: clamp(48px, 6vw, 72px) 0 0;
  list-style: none;
}
.outcomes li {
  padding: 26px 26px 24px;
  border-top: 2px solid var(--blue);
  background: var(--white);
  border-radius: 0 0 var(--radius) var(--radius);
}
.outcomes strong {
  display: block;
  margin-bottom: 6px;
  color: var(--navy);
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.15;
}
.outcomes p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
@media (max-width: 800px) {
  .outcomes {
    grid-template-columns: 1fr;
  }
}

/* ---------- Pasos ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  position: relative;
  padding-top: 64px;
  counter-increment: step;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--sky-300);
  border-radius: 50%;
  background: var(--white);
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 700;
}
.steps li::after {
  content: "";
  position: absolute;
  top: 22px;
  left: 56px;
  right: -8px;
  border-top: 1px solid var(--sky-200);
}
.steps li:last-child::after {
  display: none;
}
.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
@media (max-width: 900px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 24px;
  }
  .steps li::after {
    display: none;
  }
}
@media (max-width: 560px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .steps li {
    padding: 0 0 0 64px;
  }
}

/* ---------- Contacto ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}
.form-card {
  padding: clamp(24px, 4vw, 44px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.field--full {
  grid-column: 1 / -1;
}
.field label {
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 600;
}
.field label .opt {
  color: var(--muted);
  font-weight: 400;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid #c8d6e8;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--navy);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea {
  min-height: 120px;
  resize: vertical;
}
.field select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230b2545' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 75, 173, 0.14);
}
.field input:user-invalid,
.field textarea:user-invalid {
  border-color: var(--danger);
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}
.check input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--blue);
}
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 6px;
}
.form-legal {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}
.form-status {
  display: none;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}
.form-status.is-visible {
  display: block;
}
.form-status.is-success {
  background: #e9f6ef;
  color: var(--success);
  border: 1px solid #bfe3cf;
}
.form-status.is-error {
  background: #fdeeec;
  color: var(--danger);
  border: 1px solid #f5c6c0;
}
.form-status a {
  color: inherit;
  font-weight: 600;
}

.contact-aside {
  display: grid;
  gap: 16px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--navy);
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
a.contact-item:hover {
  border-color: var(--sky-300);
  box-shadow: var(--shadow);
  color: var(--navy);
}
.contact-item small {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}
.contact-item strong {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  word-break: break-word;
}
.contact-item--wa .icon-badge {
  background: #e7f7ee;
  color: #1a9e55;
}
.contact-note {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--sky-200);
  font-size: 0.92rem;
}
.contact-note strong {
  display: block;
  margin-bottom: 4px;
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
}
.contact-note p {
  margin: 0;
}
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Banda CTA ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(44px, 6vw, 72px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(600px 300px at 90% 0%, rgba(168, 200, 240, 0.25), rgba(168, 200, 240, 0) 70%),
    var(--navy);
  color: var(--sky-200);
}
.cta-band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.cta-band h2 {
  margin-bottom: 0.25em;
  color: var(--white);
}
.cta-band p {
  max-width: 560px;
  margin: 0;
  font-size: 1.08rem;
}
.cta-band .btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Página de producto ---------- */
.breadcrumb {
  margin-bottom: 22px;
  font-size: 0.88rem;
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}
.breadcrumb li + li::before {
  content: "/";
  margin-right: 6px;
  color: var(--sky-300);
}
.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}
.breadcrumb a:hover {
  color: var(--blue);
}

.module-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.module-nav ul {
  display: flex;
  gap: 4px;
  margin: 0 calc(var(--gutter) * -1);
  padding: 10px var(--gutter);
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}
.module-nav ul::-webkit-scrollbar {
  display: none;
}
.module-nav a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}
.module-nav a:hover {
  background: var(--sky-50);
  color: var(--blue);
}
.module-nav a.is-active {
  background: var(--navy);
  color: var(--white);
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
  align-items: center;
  gap: clamp(36px, 5vw, 72px);
}
.feature--reverse {
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr);
}
.feature--reverse .feature-copy {
  order: 2;
}
.feature-copy .lead {
  margin-bottom: 24px;
}
.ticks {
  display: grid;
  gap: 12px;
  margin: 0 0 8px;
  list-style: none;
}
.ticks li {
  position: relative;
  padding-left: 32px;
  color: var(--text);
}
.ticks li::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--sky-100)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23004bad' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
    center no-repeat;
}
.ticks strong {
  color: var(--navy);
}
.feature-media {
  min-width: 0;
}
.thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0 0;
  list-style: none;
}
.thumbs a {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  cursor: zoom-in;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.thumbs a:hover {
  border-color: var(--sky-300);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.thumbs img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: left top;
}
.thumbs span {
  display: block;
  padding: 8px 10px;
  border-top: 1px solid var(--line);
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.3;
}
.feature-side {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 16px;
  align-items: start;
}
.menu-shot {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}
@media (max-width: 960px) {
  .feature,
  .feature--reverse {
    grid-template-columns: 1fr;
  }
  .feature--reverse .feature-copy {
    order: 0;
  }
}
@media (max-width: 560px) {
  .thumbs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .feature-side {
    grid-template-columns: 1fr;
  }
  .menu-shot {
    display: none;
  }
}

.module-index {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  list-style: none;
}
.module-index > li {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.module-index h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 1rem;
}
.module-index h3 .icon {
  color: var(--blue);
}
.module-index ul {
  display: grid;
  gap: 6px;
  list-style: none;
  color: var(--muted);
  font-size: 0.9rem;
}
@media (max-width: 1000px) {
  .module-index {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .module-index {
    grid-template-columns: 1fr;
  }
}

/* ---------- Preguntas frecuentes ---------- */
.faq {
  max-width: 820px;
  margin: 0 auto;
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  color: var(--navy);
  font-size: 1.06rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "";
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--sky-100)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23004bad' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E")
    center no-repeat;
  transition: transform 0.2s;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  margin: -6px 0 22px;
  color: var(--muted);
}

/* ---------- Páginas legales ---------- */
.page-head {
  padding: clamp(48px, 7vw, 88px) 0 clamp(28px, 4vw, 40px);
  background: linear-gradient(180deg, #fff 0%, var(--sky-50) 100%);
  border-bottom: 1px solid var(--line);
}
.page-head p {
  margin: 0;
  color: var(--muted);
}
.prose {
  max-width: 780px;
}
.prose h2 {
  margin-top: 1.6em;
  font-size: clamp(1.6rem, 2.6vw, 2rem);
}
.prose ul {
  margin: 0 0 1em;
  padding-left: 1.25em;
}
.prose li {
  margin-bottom: 0.4em;
}
.todo {
  padding: 1px 6px;
  border-radius: 4px;
  background: #fff4d6;
  color: #7a5200;
  font-weight: 600;
}

/* ---------- 404 ---------- */
.not-found {
  display: grid;
  place-items: center;
  min-height: 62vh;
  padding: 80px 0;
  text-align: center;
}
.not-found .code {
  font-family: var(--font-serif);
  font-size: clamp(5rem, 14vw, 9rem);
  font-weight: 600;
  line-height: 1;
  color: var(--sky-200);
}
.not-found .hero-actions {
  justify-content: center;
}

/* ---------- Pie ---------- */
.site-footer {
  padding: clamp(56px, 7vw, 80px) 0 28px;
  background: var(--navy);
  color: var(--sky-200);
  font-size: 0.93rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
}
.footer-brand img {
  width: auto;
  height: 24px;
  margin-bottom: 18px;
}
.footer-brand p {
  max-width: 320px;
  margin: 0;
  color: var(--sky-300);
}
.site-footer h2 {
  margin-bottom: 16px;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.site-footer ul {
  display: grid;
  gap: 10px;
  list-style: none;
}
.site-footer a {
  color: var(--sky-200);
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--white);
  text-decoration: underline;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(207, 226, 247, 0.16);
  color: var(--sky-300);
  font-size: 0.85rem;
}
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Botón flotante de WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 10px 24px rgba(11, 37, 69, 0.25);
  transition: transform 0.2s, box-shadow 0.2s;
}
.wa-float:hover {
  color: #fff;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 14px 30px rgba(11, 37, 69, 0.3);
}
.wa-float svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

/* ---------- Visor de imágenes ---------- */
.lightbox {
  width: min(1400px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.lightbox::backdrop {
  background: rgba(11, 37, 69, 0.78);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.lightbox-inner {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 32px);
}
.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 10px 10px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 600;
}
.lightbox-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: var(--sky-50);
  color: var(--navy);
  cursor: pointer;
}
.lightbox-close:hover {
  background: var(--sky-100);
}
.lightbox-img-wrap {
  overflow: auto;
}
.lightbox img {
  width: 100%;
  height: auto;
}
