:root {
  /* Guía de instrucciones DARUMEDICA */
  --navy: #0a1a4a;
  --blue: #2f6bff;
  --blue-dark: #0a1a4a;
  --blue-soft: #e8efff;
  --cyan: #5fe0d0;
  --red: #e30613;
  --red-dark: #b80510;
  --ink: #0a1a4a;
  --ink-muted: #5a667a;
  --bg: #f3f6fc;
  --bg-alt: #e8eef8;
  --white: #ffffff;
  --line: #d5deea;
  --whatsapp: #25d366;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px rgba(10, 26, 74, 0.08);
  --shadow-lg: 0 18px 50px rgba(10, 26, 74, 0.12);
  --font: "Manrope", system-ui, sans-serif;
  --display: "Manrope", system-ui, sans-serif;
  --container: 1120px;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.is-visible { opacity: 1 !important; transform: none !important; transition: none !important; }
}

html, body { overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; border-radius: var(--radius); }
a { color: var(--blue); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--blue-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(26, 107, 181, 0.35);
  outline-offset: 2px;
}

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--blue); color: #fff; padding: .75rem 1rem; z-index: 1000; border-radius: var(--radius-sm);
}
.skip-link:focus { left: 1rem; top: 1rem; }

.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }

/* Header */
.site-header {
  position: relative; z-index: 100;
  background: #fff;
  border-bottom: 0;
  box-shadow: 0 1px 0 rgba(10,26,74,.06);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h); gap: 1rem;
}
.brand img { width: auto; height: 40px; border-radius: 0; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 10px;
}
.nav-toggle span {
  display: block; height: 2px; background: var(--ink); margin: 6px 0; border-radius: 2px; transition: .25s var(--ease);
}
.site-nav { display: flex; align-items: center; gap: 1.25rem; }
.site-nav ul { display: flex; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.nav-link {
  display: inline-block; padding: .55rem .85rem; color: var(--ink-muted); font-weight: 500; font-size: .95rem; border-radius: 999px;
}
.nav-link:hover, .nav-link.is-active { color: var(--blue-dark); background: var(--blue-soft); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .85rem 1.35rem; border-radius: 999px; font-weight: 600; font-size: .95rem;
  border: 2px solid transparent; cursor: pointer; transition: .2s var(--ease); text-align: center;
}
.btn-primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.btn-secondary { background: transparent; color: var(--blue-dark); border-color: var(--blue); }
.btn-secondary:hover { background: var(--blue-soft); color: var(--blue-dark); }
.btn-accent { background: var(--red); color: #fff; border-color: var(--red); }
.btn-accent:hover { background: var(--red-dark); color: #fff; }
.btn-accent.wa-cta,
.wa-cta {
  background: #25d366; border-color: #25d366; color: #fff;
}
.btn-accent.wa-cta:hover,
.wa-cta:hover {
  background: #1da851; border-color: #1da851; color: #fff;
}
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { background: #fff; color: var(--blue-dark); }
.hero-btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.hero-btn-light:hover { background: var(--cyan); border-color: var(--cyan); color: var(--navy); }
.btn .icon { flex-shrink: 0; }
button.btn { font: inherit; }
.btn.header-cta,
.btn-primary.header-cta {
  padding: .65rem 1.1rem; font-size: .9rem;
  background: var(--blue); border-color: var(--blue); color: #fff;
}
.btn.header-cta:hover,
.btn-primary.header-cta:hover {
  background: var(--navy); border-color: var(--navy); color: #fff;
}

/* Hero */
.hero {
  position: relative; min-height: clamp(520px, 88vh, 720px);
  display: grid; align-items: end;
  color: #fff; overflow: hidden;
  background:
    linear-gradient(115deg, rgba(10,26,74,.92) 0%, rgba(10,26,74,.78) 38%, rgba(47,107,255,.45) 100%),
    url("../img/hero/hero-doctor.jpg") center 20%/cover no-repeat;
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 120px;
  background: linear-gradient(transparent, var(--white));
}
.hero-inner { position: relative; z-index: 1; padding: 7rem 0 5rem; }
@media (min-width: 781px) {
  .hero {
    align-items: center;
    min-height: clamp(460px, 72vh, 620px);
  }
  .hero-inner { padding: 5.5rem 0 3.25rem; }
}
.hero-brand {
  font-family: var(--display); font-size: clamp(2.6rem, 7vw, 4.4rem); font-weight: 800;
  letter-spacing: -0.03em; line-height: 1.05; margin: 0 0 .75rem;
}
.hero-brand .accent { color: var(--cyan); }
.hero-brand span { display: inline-block; }
.hero-brand .medica { opacity: .92; }
.hero h1, .hero .hero-lead {
  max-width: 34ch; margin: 0 0 1.5rem; font-size: clamp(1.05rem, 2.2vw, 1.25rem); font-weight: 400; color: rgba(255,255,255,.92);
}
.hero-eyebrow {
  display: inline-block; margin-bottom: 1rem; padding: .35rem .8rem;
  border: 1px solid rgba(255,255,255,.35); border-radius: 999px;
  font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; color: rgba(255,255,255,.9);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.page-hero {
  position: relative;
  padding: 5rem 0 3.25rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 0%, rgba(227,6,19,.12), transparent 35%),
    radial-gradient(circle at 88% 8%, rgba(47,107,255,.28), transparent 42%),
    linear-gradient(180deg, #d7e4ff 0%, #e8efff 28%, var(--bg) 62%, #fff 100%);
  border-bottom: 1px solid rgba(47,107,255,.12);
}
.page-hero--blue {
  color: #fff;
  background:
    radial-gradient(ellipse 70% 80% at 85% -10%, rgba(95,224,208,.28), transparent 50%),
    radial-gradient(ellipse 55% 60% at 0% 100%, rgba(227,6,19,.18), transparent 55%),
    linear-gradient(145deg, #061233 0%, #0a1a4a 38%, #1a4fd6 78%, #2f6bff 100%);
  border-bottom: 0;
}
.page-hero--blue::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 72px; pointer-events: none;
  background: linear-gradient(transparent, rgba(243,246,252,.35));
}
.page-hero::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: var(--blue);
}
.page-hero--blue::before {
  height: 5px;
  background: linear-gradient(90deg, var(--red), var(--cyan), var(--blue));
}
.page-hero h1 {
  font-family: var(--display); font-size: clamp(2rem, 4.5vw, 3rem); margin: 0 0 .75rem; letter-spacing: -.02em; color: var(--navy);
}
.page-hero--blue h1 { color: #fff; }
.page-hero p { margin: 0; max-width: 52ch; color: var(--ink-muted); font-size: 1.08rem; }
.page-hero--blue p { color: rgba(255,255,255,.88); }
.page-hero--blue .eyebrow { color: var(--cyan); display: inline-flex; align-items: center; gap: .4rem; }
.page-hero--blue .red-rule { background: var(--red); box-shadow: 0 0 0 3px rgba(227,6,19,.2); }
.page-hero--blue .btn-secondary {
  background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.35);
}
.page-hero--blue .btn-secondary:hover { background: #fff; color: var(--navy); }
.eyebrow .icon { vertical-align: -3px; }
.breadcrumb {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: .35rem;
  margin-bottom: 1.1rem; padding: .4rem .85rem;
  background: var(--blue); color: rgba(255,255,255,.85);
  border-radius: 999px; font-size: .82rem; font-weight: 600;
  box-shadow: 0 8px 18px rgba(47,107,255,.22);
}
.breadcrumb a { color: #fff; }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb span { opacity: .7; }

/* Sections */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--bg); }
.section-head { max-width: 40rem; margin: 0 auto 2.5rem; text-align: center; }
.section-head h2 {
  font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 .6rem; letter-spacing: -.02em;
}
.section-head p { margin: 0; color: var(--ink-muted); }
.eyebrow {
  display: inline-block; margin-bottom: .6rem; color: var(--blue); font-weight: 600; font-size: .82rem;
  letter-spacing: .06em; text-transform: uppercase;
}

/* Marcas — distribuidores autorizados */
.brands-section { background: linear-gradient(180deg, #f3f7ff 0%, var(--white) 100%); }
.brands-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 280px));
  gap: 1.5rem;
  justify-content: center;
  align-items: stretch;
}
.brand-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .85rem; min-height: 200px; padding: 1.75rem 1.5rem 1.4rem;
  background: var(--white); border: 1px solid rgba(10,26,74,.08);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
  text-decoration: none; color: var(--ink);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.brand-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-lg);
  border-color: rgba(47,107,255,.35); color: var(--ink);
}
.brand-card img {
  width: auto; max-width: 100%; max-height: 88px; height: auto;
  object-fit: contain; display: block;
}
.brand-card-magnamed img {
  max-height: 110px; border-radius: 10px;
}
.brand-card span {
  font-size: .78rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--blue);
}

/* Line cards — navy base so white text always readable */
.lines-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
}
.line-card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 320px; padding: 1.35rem 1.4rem 1.5rem; border-radius: var(--radius-lg); overflow: hidden;
  color: #fff; background: var(--navy);
  box-shadow: var(--shadow); transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  border: 1px solid rgba(255,255,255,.08);
}
.line-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: #fff; }
.line-card::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(10,26,74,.15) 35%, rgba(10,26,74,.92) 72%, rgba(10,26,74,.98) 100%);
}
.line-card > *:not(picture):not(img) { position: relative; z-index: 2; }
.line-card picture,
.line-card > img {
  position: absolute; inset: 0 0 28% 0; width: 100%; height: auto; z-index: 0; display: block;
}
.line-card picture img,
.line-card > img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 30%;
  border-radius: 0; position: absolute; inset: 0;
}
.line-card h3 {
  font-family: var(--display); margin: 0 0 .35rem; font-size: 1.4rem;
  color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.35);
}
.line-card p {
  margin: 0; color: rgba(255,255,255,.9); font-size: .92rem;
  text-shadow: 0 1px 2px rgba(0,0,0,.3);
}
.line-card .chip {
  align-self: flex-start; margin-bottom: auto; padding: .3rem .7rem; border-radius: 999px;
  background: var(--red); color: #fff; font-size: .72rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
}

/* Features / trust — iconos + acento rojo */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.trust-item {
  position: relative;
  background: var(--white);
  border: 1px solid rgba(227,6,19,.18);
  border-radius: var(--radius-lg);
  padding: 1.65rem 1.5rem 1.7rem;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.trust-item::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
  background: linear-gradient(180deg, var(--red), #ff5a63);
}
.trust-item::after {
  content: ""; position: absolute; right: -24px; top: -24px; width: 88px; height: 88px;
  border-radius: 50%; background: rgba(227,6,19,.07); pointer-events: none;
}
.trust-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.trust-icon {
  width: 54px; height: 54px; border-radius: 14px; margin-bottom: 1.05rem;
  display: grid; place-items: center;
  background: linear-gradient(145deg, rgba(227,6,19,.14), rgba(227,6,19,.04));
  color: var(--red); border: 1px solid rgba(227,6,19,.2);
}
.trust-item h3 { margin: 0 0 .45rem; font-family: var(--display); font-size: 1.18rem; color: var(--navy); }
.trust-item p { margin: 0; color: var(--ink-muted); font-size: .95rem; }

/* Product grid / fichas — en desktop se centran filas incompletas */
.product-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 781px) {
  .product-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
  }
  .product-grid > .product-card {
    flex: 0 1 calc((100% - 2.5rem) / 3);
    width: calc((100% - 2.5rem) / 3);
    max-width: 360px;
    min-width: min(100%, 260px);
  }
}
.product-card {
  position: relative;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.product-card::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--red), var(--blue));
  opacity: .85;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-card .media {
  aspect-ratio: 4/3;
  background:
    radial-gradient(circle at 70% 20%, rgba(47,107,255,.10), transparent 45%),
    linear-gradient(180deg, #eef3fb 0%, #f3f6fc 100%);
  display: grid; place-items: center; padding: 1.1rem;
  border-bottom: 1px solid rgba(47,107,255,.08);
}
.product-card .media img {
  max-height: 200px; width: auto; max-width: 92%; object-fit: contain;
  border-radius: 0; background: transparent !important;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 10px 18px rgba(10,26,74,.14));
  transition: transform .3s var(--ease);
}
.product-card .media--large {
  aspect-ratio: 1 / 1;
  padding: .45rem;
}
.product-card .media img.is-large {
  max-height: 280px;
  max-width: 100%;
  mix-blend-mode: normal;
}
.product-card .media img.is-nobg {
  mix-blend-mode: normal;
}
.product-card:hover .media img { transform: scale(1.04); }
.product-card .body { padding: 1.25rem 1.35rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.product-card .cat {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--red); margin-bottom: .4rem;
}
.product-card h3 { margin: 0 0 .5rem; font-family: var(--display); font-size: 1.15rem; color: var(--navy); }
.product-card p { margin: 0 0 1.1rem; color: var(--ink-muted); font-size: .92rem; flex: 1; }
.product-card .actions { display: flex; flex-wrap: wrap; gap: .5rem; }

/* Split */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 2.5rem; align-items: center; }
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
.split-copy h2 { font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 .8rem; }
.split-copy p { color: var(--ink-muted); margin: 0 0 1rem; }
.split-copy ul { margin: 0 0 1.25rem; padding-left: 1.1rem; color: var(--ink-muted); }
.split-copy li { margin-bottom: .4rem; }
.split-media img {
  width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  background: transparent !important;
  mix-blend-mode: multiply;
}

/* CTA band */
.cta-band {
  background: linear-gradient(115deg, var(--navy), #142868 55%, var(--blue));
  color: #fff; border-radius: var(--radius-lg); padding: 2.5rem; text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { font-family: var(--display); margin: 0 0 .5rem; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.cta-band p { margin: 0 0 1.25rem; color: rgba(255,255,255,.9); }
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: .75rem; }

/* Contact */
.contact-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 2rem; }
.contact-panel {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.75rem; box-shadow: var(--shadow);
}
.contact-panel h2 { font-family: var(--display); margin: 0 0 .75rem; font-size: 1.35rem; }
.contact-panel p { color: var(--ink-muted); margin: 0 0 1rem; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { margin-bottom: .85rem; }
.contact-list a { font-weight: 600; }
.pending-note { color: var(--ink-muted); font-size: .9rem; font-style: italic; }

.form-grid { display: grid; gap: 1rem; }
.form-row { display: grid; gap: .4rem; }
.form-row.two { grid-template-columns: 1fr 1fr; gap: 1rem; }
label { font-weight: 600; font-size: .9rem; }
input, select, textarea {
  width: 100%; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; background: var(--bg); color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26,107,181,.15); outline: none; background: #fff; }
textarea { min-height: 140px; resize: vertical; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.alert {
  padding: 1rem 1.15rem; border-radius: var(--radius-sm); margin-bottom: 1rem; font-weight: 500;
}
.alert-success { background: #e8f7ef; color: #0f6b3c; border: 1px solid #b7e4c7; }
.alert-error { background: #fdecec; color: #9b1c1c; border: 1px solid #f5c2c2; }

/* Blog / legal */
.prose { max-width: 720px; }
.prose h2 { font-family: var(--display); margin: 2rem 0 .75rem; }
.prose p, .prose li { color: var(--ink-muted); }
.blog-list { display: grid; gap: 1rem; }
.blog-item {
  display: grid; grid-template-columns: 160px 1fr; gap: 1.25rem; align-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow);
}
.blog-item img { width: 100%; height: 110px; object-fit: cover; }
.blog-item h3 { margin: 0 0 .35rem; font-family: var(--display); font-size: 1.1rem; }
.blog-item p { margin: 0; color: var(--ink-muted); font-size: .92rem; }

/* Footer */
.site-footer {
  margin-top: 3rem;
  background: #0a1a4a;
  color: rgba(255,255,255,.85); padding-top: 3rem;
}
.page-hero.contact-hero {
  min-height: 340px;
  background:
    linear-gradient(115deg, rgba(10,26,74,.86) 0%, rgba(10,26,74,.55) 55%, rgba(227,6,19,.28) 100%),
    url("../img/hero/contacto-equipo.jpg") center 18%/cover no-repeat;
  color: #fff;
  border-bottom: 0;
}
.page-hero.contact-hero .breadcrumb {
  background: rgba(255,255,255,.16);
  box-shadow: none;
}
.page-hero.contact-hero .breadcrumb,
.page-hero.contact-hero .breadcrumb a,
.page-hero.contact-hero p { color: rgba(255,255,255,.85); }
.page-hero.contact-hero h1 { color: #fff; }
.page-hero.contact-hero .eyebrow { color: var(--cyan); }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; padding-bottom: 2.5rem;
}
.footer-wordmark {
  display: inline-block;
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: clamp(1.55rem, 2.4vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.05;
  color: #fff;
  text-decoration: none;
}
.footer-wordmark:hover { color: #fff; }
.footer-wordmark .accent { color: var(--cyan); }
.footer-brand p { margin: 0 0 .75rem; font-size: .95rem; }
.footer-brands {
  display: inline-flex; align-items: center; gap: .4rem; flex-wrap: wrap;
  color: rgba(255,255,255,.65); font-size: .88rem;
}
.footer-brands .icon { color: var(--cyan); }
.footer-col h2 {
  margin: 0 0 1rem; font-family: var(--display); font-size: .95rem; color: #fff;
  letter-spacing: .05em; text-transform: uppercase; font-weight: 700;
  display: inline-flex; align-items: center; gap: .45rem;
}
.footer-col h2 .icon { color: var(--red); }
.footer-col ul, .footer-contact { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: .55rem; }
.footer-col a {
  color: rgba(255,255,255,.78);
  display: inline-flex; align-items: center; gap: .45rem;
}
.footer-col a .icon { color: rgba(255,255,255,.45); flex-shrink: 0; }
.footer-col a:hover { color: #fff; }
.footer-col a:hover .icon { color: var(--cyan); }
.social-links { display: flex; gap: .55rem; margin-top: .85rem; }
.social-links a {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(255,255,255,.08); color: #fff;
}
.social-links a:hover { background: var(--blue); color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 1.15rem 0; font-size: .88rem; color: rgba(255,255,255,.55);
}

.whatsapp-float {
  position: fixed; right: 1.15rem; bottom: 1.15rem; z-index: 90;
  display: inline-flex; align-items: center; gap: .55rem;
  min-height: 52px; padding: 0 1.05rem 0 .7rem;
  border-radius: 999px;
  background: #25d366; color: #fff;
  font-weight: 700; font-size: .9rem;
  box-shadow: 0 12px 28px rgba(37,211,102,.38);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.whatsapp-float:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 16px 32px rgba(37,211,102,.45); }
.whatsapp-float .wa-icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.2); display: grid; place-items: center; flex-shrink: 0;
}
.whatsapp-float .wa-label { padding-right: .15rem; }
@media (max-width: 600px) {
  .whatsapp-float .wa-label { display: none; }
  .whatsapp-float { padding: 0; width: 52px; height: 52px; justify-content: center; border-radius: 50%; }
  .whatsapp-float .wa-icon { background: transparent; }
}

.scroll-top {
  position: fixed; left: 1.1rem; bottom: 1.1rem; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--navy); color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 24px rgba(10,26,74,.28);
  opacity: 0; pointer-events: none; transform: translateY(12px);
  transition: .25s var(--ease);
}
.scroll-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.scroll-top:hover { background: var(--red); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal.from-left { transform: translateX(-28px); }
.reveal.from-right { transform: translateX(28px); }
.reveal.from-left.is-visible,
.reveal.from-right.is-visible { transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

.icon-row { display: inline-flex; align-items: center; gap: .45rem; }
.icon-row svg { flex-shrink: 0; color: var(--red); }
.text-block { max-width: 68ch; color: var(--ink-muted); }
.text-block p { margin: 0 0 1rem; }
.red-rule {
  width: 56px; height: 4px; border-radius: 999px; background: var(--red); margin: .75rem 0 1.25rem;
}
.section-head .red-rule { margin-inline: auto; }

/* Specs list */
.spec-list { display: grid; gap: .65rem; margin: 1rem 0 1.5rem; padding: 0; list-style: none; }
.spec-list li {
  display: flex; gap: .65rem; align-items: flex-start;
  padding: .75rem 1rem; background: var(--bg); border-radius: var(--radius-sm); border: 1px solid var(--line);
}
.spec-list li::before {
  content: ""; width: 8px; height: 8px; margin-top: .45rem; border-radius: 50%; background: var(--red); flex-shrink: 0;
}

.download-row {
  display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem;
}

/* Catálogo — libros */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}
.catalog-book {
  appearance: none; border: 0; cursor: pointer; text-align: left;
  background: transparent; padding: 0; position: relative;
  font: inherit; color: inherit;
  transition: transform .28s var(--ease);
}
.catalog-book:hover { transform: translateY(-6px) rotate(-1deg); }
.catalog-book__spine {
  position: absolute; left: 0; top: 8px; bottom: 8px; width: 10px; z-index: 2;
  border-radius: 4px 0 0 4px;
  background: linear-gradient(180deg, #071230, #142868);
  box-shadow: inset -2px 0 0 rgba(255,255,255,.12);
}
.catalog-book__cover {
  position: relative; display: flex; flex-direction: column;
  min-height: 280px; margin-left: 8px; padding: 1.25rem 1.2rem 1.35rem;
  border-radius: 0 16px 16px 4px;
  background:
    radial-gradient(circle at 85% 12%, rgba(95,224,208,.22), transparent 40%),
    linear-gradient(160deg, #0a1a4a 0%, #16307a 55%, #2f6bff 120%);
  color: #fff;
  box-shadow:
    8px 12px 28px rgba(10,26,74,.22),
    inset 0 1px 0 rgba(255,255,255,.12);
  overflow: hidden;
}
.catalog-book__cover::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 14px;
  background: linear-gradient(90deg, rgba(0,0,0,.25), transparent);
}
.catalog-book__badge {
  align-self: flex-start; margin-bottom: .85rem;
  padding: .28rem .65rem; border-radius: 999px;
  background: var(--red); font-size: .68rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
}
.catalog-book__icon { color: var(--cyan); margin: .35rem 0 .85rem; }
.catalog-book__title {
  font-family: var(--display); font-weight: 800; font-size: 1.2rem;
  letter-spacing: -.02em; margin-bottom: .35rem; line-height: 1.2;
}
.catalog-book__sub { font-size: .88rem; color: rgba(255,255,255,.78); flex: 1; }
.catalog-book__meta {
  display: inline-flex; align-items: center; gap: .35rem;
  margin-top: 1rem; font-size: .78rem; font-weight: 600; color: rgba(255,255,255,.7);
}

/* Catálogo seleccionado */
.catalog-book.is-selected { transform: translateY(-6px); }
.catalog-book.is-selected .catalog-book__cover {
  box-shadow:
    0 0 0 3px rgba(227,6,19,.55),
    8px 16px 32px rgba(10,26,74,.3);
}

/* Libro embebido en la misma página */
.book-stage[hidden] { display: none !important; }
.book-stage {
  margin-top: 2.5rem;
  scroll-margin-top: calc(var(--header-h) + 1rem);
}
.book-stage__inner {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(47,107,255,.22), transparent 55%),
    linear-gradient(180deg, #0a1a4a 0%, #0a1228 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: var(--shadow-lg);
}
.book-stage__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 1.1rem 1.35rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.book-stage__eyebrow {
  display: inline-flex; align-items: center; gap: .35rem;
  color: var(--cyan); font-size: .75rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
}
.book-stage__heading h2 {
  margin: .2rem 0 0; color: #fff; font-size: 1.25rem; font-family: var(--display);
}
.book-stage__tools { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; }
.book-stage__tools .btn-secondary {
  background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.28);
}
.book-stage__tools .btn-secondary:hover { background: #fff; color: var(--navy); }
.book-stage__body {
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: .65rem;
  padding: 1.25rem .85rem 1rem;
}
.book-zoom {
  display: inline-flex; align-items: center; gap: .25rem;
  padding: .2rem;
  background: rgba(255,255,255,.08);
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
}
.book-zoom__btn {
  width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: transparent; color: #fff; cursor: pointer;
  display: grid; place-items: center;
}
.book-zoom__btn:hover { background: rgba(255,255,255,.14); }
.book-zoom__btn:disabled { opacity: .35; cursor: default; }
.book-zoom__label {
  min-width: 3.2rem; text-align: center;
  color: #fff; font-size: .82rem; font-weight: 700;
}
.book-viewport {
  overflow: auto;
  max-height: min(78vh, 820px);
  width: 100%;
  border-radius: 12px;
  -webkit-overflow-scrolling: touch;
}
.book-viewport.is-zoomed {
  background: rgba(0,0,0,.2);
  padding: .5rem;
}
.book-spread {
  position: relative;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  min-height: min(68vh, 700px);
  width: 100%;
  margin: 0 auto;
}
.book-viewport.is-zoomed .book-spread {
  width: max-content;
  min-width: 100%;
  justify-content: flex-start;
}
.book-page {
  background: #f7f8fb;
  border-radius: 4px;
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
  overflow: hidden;
  display: block;
  flex: 1 1 0;
  min-width: 0;
  min-height: 300px;
  line-height: 0;
}
.book-viewport.is-zoomed .book-page {
  flex: 0 0 auto;
  width: auto;
  min-width: auto;
}
.book-page--left { border-radius: 10px 2px 2px 10px; }
.book-page--right { border-radius: 2px 10px 10px 2px; }
.book-page canvas {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: min(72vh, 780px);
}
.book-viewport.is-zoomed .book-page canvas {
  width: auto;
  max-width: none;
  max-height: none;
}
.book-gutter {
  flex: 0 0 12px;
  width: 12px;
  align-self: stretch;
  min-height: 300px;
  background: linear-gradient(90deg, #1a1f2e, #0d111c 40%, #1a1f2e);
  box-shadow: inset 0 0 12px rgba(0,0,0,.55);
  border-radius: 2px;
}
.book-loading {
  position: absolute; inset: 0; z-index: 3;
  display: grid; place-items: center; gap: .65rem; justify-items: center;
  background: rgba(10,18,40,.55); color: #fff; font-weight: 600;
}
.book-loading[hidden] { display: none !important; }
.book-spinner {
  width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.25); border-top-color: var(--cyan);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.book-nav {
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center;
  transition: .2s var(--ease);
}
.book-nav:hover { background: var(--blue); }
.book-nav:disabled { opacity: .35; cursor: default; }
.book-stage__footer {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: .95rem 1.35rem 1.15rem;
  border-top: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.78); font-size: .92rem; font-weight: 600;
}
.book-stage__hint { margin: 0; font-weight: 500; color: rgba(255,255,255,.55); font-size: .85rem; }

@media (max-width: 820px) {
  .book-spread { width: 100%; }
  .book-gutter, .book-page--right { display: none !important; }
  .book-page--left { border-radius: 10px; flex: 1 1 auto; }
  .book-stage__body { grid-template-columns: 1fr; justify-items: center; }
  .book-nav { width: 44px; height: 44px; }
  .book-stage__tools { width: 100%; justify-content: flex-start; }
}

/* Modal WhatsApp — compacto */
.wa-modal[hidden] { display: none !important; }
.wa-modal {
  position: fixed; inset: 0; z-index: 220;
  display: grid; place-items: center; padding: 1rem;
}
.wa-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(6,18,51,.62); backdrop-filter: blur(6px);
}
.wa-modal__panel {
  position: relative; z-index: 1;
  width: min(360px, 100%);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(10,26,74,.28);
  overflow: hidden;
  border: 1px solid var(--line);
}
.wa-modal__head {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .85rem 1rem;
  background: linear-gradient(135deg, #0a1a4a, #1a4fd6);
  color: #fff;
}
.wa-modal__head h2 {
  margin: 0; font-family: var(--display); font-size: 1.05rem; color: #fff;
  display: inline-flex; align-items: center; gap: .4rem;
}
.wa-modal__close {
  width: 34px; height: 34px; border: 0; border-radius: 9px;
  background: rgba(255,255,255,.12); color: #fff; cursor: pointer;
  display: grid; place-items: center; flex-shrink: 0;
}
.wa-modal__close:hover { background: var(--red); }
.wa-modal__form { padding: 1rem; display: grid; gap: .65rem; }
.wa-modal__form .form-row { gap: .28rem; }
.wa-modal__form label { font-size: .82rem; }
.wa-modal__form label .opt { font-weight: 500; color: var(--ink-muted); text-transform: none; letter-spacing: 0; }
.wa-modal__form input,
.wa-modal__form select,
.wa-modal__form textarea {
  padding: .7rem .85rem; font-size: .95rem;
}
.wa-modal__form textarea { min-height: 64px; resize: vertical; }
.wa-modal__product {
  padding: .55rem .75rem; border-radius: 10px;
  background: rgba(47,107,255,.08);
  border: 1px solid rgba(47,107,255,.16);
}
.wa-modal__product strong { color: var(--navy); font-size: .9rem; }
.wa-modal__note {
  margin: 0; text-align: center;
  color: var(--ink-muted); font-size: .75rem;
}
.wa-modal__submit {
  width: 100%; background: #25d366; border-color: #25d366; margin-top: .15rem;
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
}
.wa-modal__submit:hover { background: #1da851; border-color: #1da851; color: #fff; }
.wa-modal__submit.is-mail {
  background: var(--blue); border-color: var(--blue);
}
.wa-modal__submit.is-mail:hover {
  background: #1a4fd6; border-color: #1a4fd6; color: #fff;
}
.wa-modal__icon { display: inline-flex; align-items: center; }
.wa-modal__icon--mail { display: none; }
.wa-modal[data-mode="mail"] .wa-modal__icon--wa { display: none; }
.wa-modal[data-mode="mail"] .wa-modal__icon--mail { display: inline-flex; }
.wa-modal[data-mode="mail"] .wa-modal__head {
  background: linear-gradient(135deg, #0a1a4a, #2f6bff);
}
.wa-modal__note.is-ok { color: #0f7a3f; }
.wa-modal__note.is-error { color: var(--red); }
body.wa-open { overflow: hidden; }
.whatsapp-float { border: 0; cursor: pointer; font: inherit; }

/* Responsive */
@media (max-width: 960px) {
  .lines-grid, .trust-grid, .split, .contact-layout, .footer-grid { grid-template-columns: 1fr 1fr; }
  .brands-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 520px; margin-inline: auto; }
  .split.reverse { direction: ltr; }
  .footer-brand { grid-column: 1 / -1; }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 780px) {
  :root { --header-h: 64px; }
  .nav-toggle { display: block; }
  .site-header { box-shadow: 0 1px 0 rgba(10,26,74,.08); }
  .header-inner { min-height: var(--header-h); gap: .5rem; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%; background: #fff;
    flex-direction: column; align-items: stretch; padding: .85rem 1rem 1.25rem;
    border-bottom: 1px solid var(--line); transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: .3s var(--ease); box-shadow: var(--shadow);
    max-height: min(70dvh, 420px); overflow-y: auto;
  }
  .site-nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .site-nav ul { flex-direction: column; width: 100%; gap: 0; }
  .nav-link { display: block; padding: .8rem .9rem; border-radius: 10px; }
  .header-cta { width: 100%; margin-top: .35rem; }
  .lines-grid,
  .trust-grid,
  .brands-grid,
  .contact-layout,
  .footer-grid,
  .form-row.two,
  .blog-item,
  .product-grid,
  .catalog-grid,
  .split { grid-template-columns: 1fr; }
  .brand-card { min-height: 170px; }
  .hero {
    min-height: auto;
    background-position: center 15%;
  }
  .hero-inner { padding: 4.5rem 0 3.25rem; }
  .hero-brand { font-size: clamp(2.1rem, 11vw, 2.8rem); }
  .hero-lead { font-size: 1rem; max-width: none; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: .55rem; }
  .hero-actions .btn { width: 100%; }
  .page-hero { padding: 3.5rem 0 2.1rem; }
  .page-hero h1 { font-size: clamp(1.55rem, 7.5vw, 2rem); line-height: 1.15; }
  .page-hero p { font-size: .98rem; }
  .breadcrumb { font-size: .78rem; padding: .35rem .7rem; margin-bottom: .85rem; }
  .section { padding: 2.75rem 0; }
  .section-head { margin-bottom: 1.6rem; }
  .section-head h2 { font-size: clamp(1.35rem, 5.5vw, 1.75rem); }
  .split { gap: 1.35rem; }
  .split.reverse { direction: ltr; }
  .line-card { min-height: 280px; }
  .product-card .media { aspect-ratio: 1 / 1; padding: .9rem; }
  .product-card .media img { max-height: 180px; }
  .product-card .media img.is-large { max-height: 220px; }
  .product-card .body { padding: 1.05rem 1.1rem 1.2rem; }
  .product-card .actions { flex-direction: column; }
  .product-card .actions .btn { width: 100%; }
  .download-row { flex-direction: column; }
  .download-row .btn { width: 100%; }
  .cta-band { padding: 1.5rem 1.1rem; border-radius: 16px; }
  .cta-band h2 { font-size: 1.25rem; }
  .cta-actions { flex-direction: column; }
  .cta-actions .btn { width: 100%; }
  .trust-item { padding: 1.25rem 1.15rem; }
  .catalog-book__cover { min-height: 240px; }
  .book-stage { margin-top: 1.5rem; }
  .book-stage__bar { flex-direction: column; align-items: stretch; gap: .75rem; padding: .9rem 1rem; }
  .book-stage__tools { width: 100%; flex-wrap: wrap; }
  .book-stage__tools .btn { flex: 1 1 auto; justify-content: center; min-width: 0; font-size: .85rem; padding: .65rem .8rem; }
  .book-zoom { order: -1; width: 100%; justify-content: center; }
  .book-stage__body { padding: .75rem .35rem; gap: .35rem; }
  .book-nav { width: 40px; height: 40px; }
  .book-viewport { max-height: min(70dvh, 560px); }
  .wa-modal {
    padding: 1rem;
    place-items: center;
    align-items: center;
  }
  .wa-modal__panel {
    width: min(360px, 100%);
    border-radius: 16px;
    max-height: min(86dvh, 560px);
    overflow: auto;
  }
  .site-footer { text-align: center; margin-top: 2rem; padding-top: 2.25rem; }
  .footer-grid { justify-items: center; gap: 1.5rem; padding-bottom: 2rem; }
  .footer-col { width: 100%; }
  .footer-col ul, .footer-contact { display: flex; flex-direction: column; align-items: center; }
  .footer-col a { justify-content: center; }
  .footer-wordmark { display: block; text-align: center; }
  .social-links { justify-content: center; }
  .brand img { height: 34px; }
  .scroll-top { left: .7rem; bottom: 5rem; width: 42px; height: 42px; }
  .whatsapp-float { right: .75rem; bottom: .75rem; }
  .container { width: min(100% - 1.2rem, var(--container)); }
  .contact-panel { padding: 1.25rem; }
  .btn { padding: .8rem 1.15rem; }
}

@media (max-width: 420px) {
  .hero-brand { letter-spacing: -.04em; }
  .line-card { min-height: 250px; padding: 1.1rem; }
  .line-card h3 { font-size: 1.2rem; }
  .catalog-grid { grid-template-columns: 1fr; }
  .book-stage__footer { flex-direction: column; align-items: flex-start; gap: .35rem; }
}
