/* ============================================================
   WORLD PETS · Peluquería Canina
   Paleta: #A02C7B (magenta) · #F8CE0E (amarillo) · #011482 (azul)
   Tipografía: Fraunces (títulos) + Plus Jakarta Sans (cuerpo)
   ============================================================ */

:root {
  --magenta: #A02C7B;
  --magenta-light: #e05bb4;
  --yellow: #F8CE0E;
  --blue: #011482;
  --blue-deep: #010a3f;
  --wa: #25D366;
  --text: #f4f6ff;
  --muted: #b9c1ea;
  --card-bg: rgba(255, 255, 255, 0.06);
  --card-border: rgba(255, 255, 255, 0.14);
  --radius: 24px;
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* El atributo hidden debe ganar siempre, incluso sobre display: grid/flex */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: linear-gradient(180deg,
    #010a43 0%,
    #0c0e56 30%,
    #2a0f5e 60%,
    #571361 85%,
    #6e1d63 100%);
  overflow-x: hidden;
}

::selection { background: var(--yellow); color: var(--blue); }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.015em;
  /* Eje óptico de Fraunces: trazos más expresivos en tamaños grandes */
  font-optical-sizing: auto;
}

/* Las palabras destacadas van en cursiva: Fraunces tiene una itálica preciosa */
.hl-pink, .hl-yellow {
  font-style: italic;
  font-weight: 500;
  padding-right: 0.04em;
}

img { max-width: 100%; }

main { position: relative; z-index: 1; }

/* ---------- Fondo 3D y barra de progreso ---------- */

#bg3d {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, var(--yellow), var(--magenta-light));
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 90;
}

/* ---------- Botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.08rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.7em 1.4em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px) scale(1.03); }
.btn:active { transform: scale(0.98); }

.btn-wa {
  background: var(--wa);
  color: #04210e;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
}
.btn-wa:hover { box-shadow: 0 12px 30px rgba(37, 211, 102, 0.5); }

.btn-lg { font-size: 1.1rem; padding: 0.85em 1.7em; }

.btn-ghost {
  color: var(--text);
  border: 2px solid var(--card-border);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { border-color: var(--yellow); color: var(--yellow); }

.ico-wa { width: 1.25em; height: 1.25em; fill: currentColor; flex: none; }

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.7rem clamp(1rem, 4vw, 3rem);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
  background: rgba(1, 9, 63, 0.82);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo img { height: 52px; width: auto; border-radius: 12px; }

.nav-logo-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--yellow);
  letter-spacing: 0.06em;
}
.nav-logo-text em { font-style: normal; color: var(--magenta-light); }

.nav-links {
  display: flex;
  gap: 1.15rem;
  margin-left: auto;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--yellow); }
.nav-links a[aria-current="page"] { color: var(--yellow); }

/* Botón hamburguesa (oculto en escritorio) */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5em;
  height: 44px;
  margin-left: auto;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  cursor: pointer;
  padding: 0 0.85em;
  color: var(--text);
}

/* Las 3 líneas, dentro de un contenedor de ancho fijo (clave para iPad/Safari) */
.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 22px;
  flex: none;
}

.nav-toggle-bars i {
  display: block;
  width: 100%;
  height: 2.5px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle-text {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* En teléfonos muy angostos se oculta la palabra para que no se apriete la barra */
@media (max-width: 380px) {
  .nav-toggle-text { display: none; }
}

/* ---------- Hero ---------- */

.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 5vw, 5rem);
  padding: 7rem clamp(1.2rem, 5vw, 4rem) 4rem;
  position: relative;
  flex-wrap: wrap;
}

.hero-copy { max-width: 620px; }

.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--yellow);
  background: rgba(248, 206, 14, 0.12);
  border: 1px solid rgba(248, 206, 14, 0.35);
  border-radius: 999px;
  padding: 0.4em 1em;
  margin-bottom: 1.2rem;
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  margin-bottom: 1.1rem;
}

.hl-pink {
  background: linear-gradient(120deg, var(--magenta-light), #ff8ed2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hl-yellow { color: var(--yellow); }

.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--muted);
  margin-bottom: 1.8rem;
  max-width: 48ch;
}

.hero-ctas {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-bottom: 2.2rem;
}

.hero-stats {
  display: flex;
  gap: clamp(1.2rem, 3vw, 2.6rem);
  list-style: none;
  flex-wrap: wrap;
}

.hero-stats li { display: flex; flex-direction: column; }

.stat-num {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--yellow);
}

.hero-stats span { color: var(--muted); font-size: 0.9rem; font-weight: 600; }

/* Logo flotante del hero */

.hero-art {
  position: relative;
  width: clamp(260px, 32vw, 460px);
  display: grid;
  place-items: center;
}

.hero-glow {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(160, 44, 123, 0.55), transparent 70%);
  filter: blur(30px);
}

.hero-logo {
  position: relative;
  width: 100%;
  filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.45));
  background: #fff;
  border-radius: 28px;
  padding: 6%;
}

.logo-fallback {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 50%;
  background: var(--blue);
  border: 6px solid var(--yellow);
  display: grid;
  place-items: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.logo-fallback span {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  color: var(--yellow);
  text-align: center;
  letter-spacing: 0.12em;
}

.scroll-cue {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  width: 30px; height: 50px;
  border: 2px solid var(--muted);
  border-radius: 999px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-cue span {
  width: 5px; height: 10px;
  border-radius: 999px;
  background: var(--yellow);
  animation: cue 1.6s ease-in-out infinite;
}

@keyframes cue {
  0%   { transform: translateY(0);    opacity: 1; }
  70%  { transform: translateY(16px); opacity: 0; }
  100% { transform: translateY(0);    opacity: 0; }
}

/* ---------- Secciones genéricas ---------- */

.section {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 7rem) clamp(1.2rem, 5vw, 3rem);
  scroll-margin-top: 80px;
}

.section-head { text-align: center; margin-bottom: 3rem; }

.section-head h2 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  margin-bottom: 0.6rem;
}

.section-head p { color: var(--muted); font-size: 1.1rem; }

.center { text-align: center; margin-top: 2.4rem; }

/* Cabecera de páginas internas (Nosotros · Colección): deja aire bajo la barra fija */
.section--page { padding-top: clamp(7rem, 14vw, 9.5rem); }

.page-hero {
  text-align: center;
  max-width: 820px;
  margin: 0 auto clamp(2.5rem, 6vw, 4rem);
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  margin: 1rem 0 0.9rem;
}

.page-hero > p {
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  max-width: 60ch;
  margin: 0 auto;
  line-height: 1.6;
}

/* ---------- Cards ---------- */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  backdrop-filter: blur(8px);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(248, 206, 14, 0.55);
}

.card-ico {
  width: 46px;
  height: 46px;
  color: var(--yellow);
  margin-bottom: 1rem;
}

.card-ico svg { width: 100%; height: 100%; }

.card h3 { font-size: 1.35rem; margin-bottom: 0.5rem; color: var(--yellow); }

.card p { color: var(--muted); line-height: 1.55; }

/* ---------- Antes y después ---------- */

.ba-frame { max-width: 920px; margin: 0 auto; }

.ba-compare {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: ew-resize;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  border: 1px solid var(--card-border);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  background: var(--blue-deep);
  outline: none;
}

.ba-compare:focus-visible { box-shadow: 0 0 0 4px rgba(248, 206, 14, 0.6); }

.ba-side { position: absolute; inset: 0; margin: 0; }

.ba-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

/* La capa "antes" se recorta con la posición del control */
.ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }

/* En modo demo se "ensucia" la foto del antes para simular el cambio */
.ba-compare.is-demo .ba-before img {
  filter: saturate(0.2) contrast(0.85) brightness(0.62) sepia(0.35);
}

.ba-tag {
  position: absolute;
  top: 1rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  padding: 0.45em 1.1em;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.ba-tag-before { left: 1rem; background: rgba(1, 10, 63, 0.75); color: #fff; }
.ba-tag-after  { right: 1rem; background: var(--yellow); color: var(--blue); }

.ba-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--pos);
  width: 4px;
  transform: translateX(-50%);
  background: var(--yellow);
  box-shadow: 0 0 18px rgba(248, 206, 14, 0.8);
}

.ba-grip {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--blue);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
}

.ba-grip svg { width: 26px; height: 26px; }

.ba-tabs {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 1.4rem;
  flex-wrap: wrap;
}

.ba-tab {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--muted);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 0.55em 1.3em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ba-tab:hover { color: var(--text); }

.ba-tab.active {
  background: var(--magenta);
  border-color: var(--magenta);
  color: #fff;
}

.ba-hint {
  text-align: center;
  color: var(--muted);
  margin-top: 1rem;
  font-weight: 600;
}

/* ---------- Nosotros · Historia + Equipo ---------- */

.story {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  margin-bottom: clamp(3.5rem, 8vw, 6rem);
}

.story-text .eyebrow { margin-bottom: 1.2rem; }

.story-text h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  margin-bottom: 1.4rem;
}

.story-text p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.story-points {
  list-style: none;
  margin-top: 1.6rem;
  display: grid;
  gap: 0.8rem;
}

.story-points li {
  display: flex;
  align-items: center;
  gap: 0.7em;
  color: var(--text);
  font-weight: 600;
}

.story-points svg {
  width: 1.4em;
  height: 1.4em;
  flex: none;
  padding: 0.25em;
  border-radius: 50%;
  background: rgba(248, 206, 14, 0.16);
  color: var(--yellow);
}

.story-art { display: grid; place-items: center; }

.story-badge {
  position: relative;
  width: clamp(180px, 22vw, 240px);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 0.3rem;
  background:
    radial-gradient(circle at 30% 25%, rgba(160, 44, 123, 0.55), transparent 60%),
    linear-gradient(135deg, var(--blue), var(--magenta));
  border: 3px solid var(--yellow);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.story-badge strong {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(2.6rem, 6vw, 3.6rem);
  color: var(--yellow);
  line-height: 1;
}

.story-badge span { color: var(--text); font-weight: 600; font-size: 0.95rem; }

.team-head { margin-top: 1rem; }

.team-card { text-align: center; }

.team-photo {
  width: 96px;
  height: 96px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--magenta), var(--blue));
  border: 2px solid rgba(248, 206, 14, 0.5);
  background-size: cover;
  background-position: center;
}

/* Avatar con iniciales mientras no haya foto real (usa data-initials) */
.team-photo::after {
  content: attr(data-initials);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.9rem;
  color: var(--yellow);
}

/* Si se define una foto de fondo, se ocultan las iniciales */
.team-photo[style*="url"]::after { content: ""; }

.team-card h3 { color: var(--text); }

.team-role {
  color: var(--yellow);
  font-weight: 700;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.7rem;
}

/* Equipo: solo dos integrantes, centrados; la tarjeta abierta ocupa todo el ancho */
.team-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 860px;
  margin: 0 auto;
  align-items: start;
}

.team-card { padding-bottom: 1.5rem; }
.team-card.is-open {
  grid-column: 1 / -1;
  border-color: rgba(248, 206, 14, 0.55);
  background: rgba(255, 255, 255, 0.09);
}
.team-card.is-open:hover { transform: none; }

/* Zona que se puede pulsar para expandir */
.team-card-head { cursor: pointer; border-radius: 16px; outline: none; }
.team-card-head:focus-visible { box-shadow: 0 0 0 3px rgba(248, 206, 14, 0.6); }

.team-short { color: var(--muted); line-height: 1.55; }

.team-toggle-cue {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  margin-top: 1rem;
  color: var(--yellow);
  font-weight: 700;
  font-size: 0.92rem;
}
.team-toggle-cue svg { width: 1.1em; height: 1.1em; transition: transform 0.3s ease; }
.team-card.is-open .team-toggle-cue svg { transform: rotate(180deg); }

/* Detalle que aparece al expandir: foto antigua + texto */
.team-detail {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(1.2rem, 3vw, 2.2rem);
  align-items: center;
  text-align: left;
  margin-top: 1.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--card-border);
  animation: team-fade 0.4s ease both;
}

@keyframes team-fade {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.team-photo-large {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--magenta), var(--blue));
  border: 2px solid rgba(248, 206, 14, 0.5);
  background-size: cover;
  background-position: center;
}
.team-photo-large::after {
  content: attr(data-initials);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 2.6rem;
  color: var(--yellow);
}
.team-photo-large[style*="url"]::after { content: ""; }

.team-detail-text p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 0.9rem;
}
.team-detail-text p:last-child { margin-bottom: 0; }

@media (max-width: 600px) {
  .team-grid { grid-template-columns: 1fr; }
  .team-detail { grid-template-columns: 1fr; text-align: center; }
  .team-photo-large { max-width: 260px; margin: 0 auto; aspect-ratio: 1; }
}

/* ---------- Colección de Razas (ebooks) ---------- */

.manual-hero {
  display: grid;
  gap: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: clamp(2.4rem, 5vw, 4rem);
}

/* --- Destacado: portada + ficha de venta --- */
.manual-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(1.6rem, 4vw, 3.2rem);
  align-items: center;
  background: linear-gradient(135deg, rgba(160, 44, 123, 0.32), rgba(1, 20, 130, 0.42));
  border: 1px solid var(--card-border);
  border-radius: calc(var(--radius) * 1.3);
  padding: clamp(1.6rem, 4vw, 3rem);
  backdrop-filter: blur(10px);
}

/* Portada (con respaldo de "tapa de libro" si falta la foto) */
.manual-cover {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.5);
  isolation: isolate;
}

.manual-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
}

.manual-cover-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  text-align: center;
  padding: 1.4rem;
  background:
    radial-gradient(circle at 50% 22%, rgba(248, 206, 14, 0.18), transparent 60%),
    linear-gradient(160deg, var(--blue), var(--magenta));
  border: 1px solid rgba(248, 206, 14, 0.4);
}

.manual-cover-fallback::before {
  content: "";
  position: absolute;
  left: 9%;
  top: 6%;
  bottom: 6%;
  width: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.18);
}

.mc-kicker {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--yellow);
}

.mc-breed {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  line-height: 1.1;
  color: #fff;
}

.mc-paw { font-size: 1.6rem; opacity: 0.85; }

.manual-feature-body { min-width: 0; }

.manual-badge {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--yellow);
  padding: 0.45em 0.9em;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}

.manual-breed {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--magenta-light);
  margin-bottom: 0.5rem;
}

.manual-title { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 0.6rem; }

.manual-subtitle {
  font-family: var(--font-head);
  font-style: italic;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text);
  margin-bottom: 1rem;
}

.manual-desc { color: var(--muted); line-height: 1.65; margin-bottom: 1rem; }

.manual-ficha {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  opacity: 0.85;
  margin-bottom: 1.4rem;
}

.manual-cta {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.manual-price { display: flex; flex-direction: column; line-height: 1.1; }

.manual-price-num {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  color: var(--yellow);
}

.manual-price-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--magenta-light);
  font-weight: 700;
}

.btn-buy {
  background: var(--magenta);
  color: #fff;
  box-shadow: 0 10px 26px rgba(160, 44, 123, 0.45);
}
.btn-buy:hover { box-shadow: 0 14px 32px rgba(160, 44, 123, 0.6); }
.btn-buy svg { width: 1.1em; height: 1.1em; }

.btn-buy.is-soon {
  background: rgba(255, 255, 255, 0.1);
  color: var(--muted);
  box-shadow: none;
  cursor: not-allowed;
}
.btn-buy.is-soon:hover { transform: none; }

.manual-trust {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* --- Qué encontrarás + Lo que te llevas --- */
.manual-extra {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(1.6rem, 4vw, 3rem);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 4vw, 2.6rem);
}

.manual-extra h4,
.manual-faq h4 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.manual-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.4rem;
}

.manual-tag {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35em 0.85em;
  border-radius: 999px;
  border: 1px solid var(--card-border);
}

.manual-tag.tag-0 { color: var(--blue); background: var(--yellow); border-color: var(--yellow); }
.manual-tag.tag-1 { color: var(--magenta-light); background: rgba(224, 91, 180, 0.12); border-color: rgba(224, 91, 180, 0.4); }
.manual-tag.tag-2 { color: var(--muted); text-decoration: line-through; }

.manual-chapter-list { list-style: none; display: grid; gap: 0.9rem; }

.manual-chapter-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.2rem 0.9rem;
  align-items: baseline;
}

.ch-n {
  grid-row: span 2;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--yellow);
}

.ch-t { font-weight: 700; color: var(--text); }
.ch-d { grid-column: 2; color: var(--muted); font-size: 0.92rem; line-height: 1.5; }

.manual-benefits ul { list-style: none; display: grid; gap: 0.9rem; }

.manual-benefits li {
  display: flex;
  gap: 0.7em;
  color: var(--text);
  line-height: 1.5;
}

.manual-benefits svg {
  width: 1.3em;
  height: 1.3em;
  flex: none;
  padding: 0.22em;
  border-radius: 50%;
  background: rgba(248, 206, 14, 0.16);
  color: var(--yellow);
  margin-top: 0.1em;
}

/* --- FAQ (acordeón nativo) --- */
.manual-faq {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 4vw, 2.6rem);
}

.faq-item {
  border-bottom: 1px solid var(--card-border);
}
.faq-item:last-child { border-bottom: 0; }

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  font-weight: 700;
  color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }

.faq-mark {
  position: relative;
  flex: none;
  width: 18px;
  height: 18px;
}
.faq-mark::before,
.faq-mark::after {
  content: "";
  position: absolute;
  background: var(--yellow);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.faq-mark::before { top: 8px; left: 0; width: 18px; height: 2.5px; }
.faq-mark::after { left: 8px; top: 0; width: 2.5px; height: 18px; }
.faq-item[open] .faq-mark::after { transform: rotate(90deg); opacity: 0; }

.faq-a {
  padding: 0 0 1.1rem;
  color: var(--muted);
  line-height: 1.65;
}

.manual-quote {
  text-align: center;
  font-family: var(--font-head);
  font-style: italic;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  color: var(--magenta-light);
  margin-top: 0.6rem;
}

/* --- Grilla de la colección --- */
.manual-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.6rem;
}

.manual-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.manual-card:hover { transform: translateY(-6px); border-color: rgba(248, 206, 14, 0.55); }

.manual-card .manual-cover {
  border-radius: 0;
  box-shadow: none;
  aspect-ratio: 4 / 3;
}

.manual-card-body {
  padding: 1.4rem 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.manual-card-body h3 { font-size: 1.35rem; margin-bottom: 0.5rem; color: var(--text); }
.manual-card-desc { color: var(--muted); line-height: 1.55; margin-bottom: 1.2rem; flex: 1; }
.manual-card .manual-cta { margin-top: auto; }

/* Tarjeta "más razas en camino" */
.manual-soon {
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.4rem 1.6rem;
  border-style: dashed;
}
.manual-soon-paw { font-size: 2.2rem; margin-bottom: 0.6rem; }
.manual-soon h3 { font-size: 1.3rem; margin-bottom: 0.5rem; color: var(--text); }
.manual-soon p { color: var(--muted); line-height: 1.55; margin-bottom: 1.3rem; }

/* ---------- Opiniones ---------- */

.reviews-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.review .stars {
  color: var(--yellow);
  font-size: 1.2rem;
  letter-spacing: 0.2em;
  margin-bottom: 0.8rem;
}

.review p { color: var(--text); font-style: italic; line-height: 1.6; }

.review footer { margin-top: 1rem; color: var(--magenta-light); font-weight: 700; }

/* ---------- Contacto ---------- */

.contact-card {
  background: linear-gradient(135deg, rgba(160, 44, 123, 0.35), rgba(1, 20, 130, 0.45));
  border: 1px solid var(--card-border);
  border-radius: calc(var(--radius) * 1.4);
  padding: clamp(2rem, 5vw, 3.6rem);
  backdrop-filter: blur(10px);
}

.contact-info h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 1.4rem; }

.contact-line {
  display: flex;
  align-items: center;
  gap: 0.6em;
  color: var(--text);
  font-size: 1.15rem;
  margin-bottom: 0.7rem;
}

.contact-line .ico-line {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  color: var(--yellow);
}

.contact-info .hero-ctas { margin-top: 1.8rem; margin-bottom: 0; }

/* ---------- Footer ---------- */

.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  padding: 2rem 1rem 6.5rem;
}

/* ---------- Botón flotante WhatsApp ---------- */

.wa-fab {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 85;
  width: 62px; height: 62px;
  border-radius: 50%;
  background: var(--wa);
  display: grid;
  place-items: center;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s ease;
}

.wa-fab:hover { transform: scale(1.1); }

.wa-fab svg { width: 32px; height: 32px; fill: #fff; }

.wa-fab::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--wa);
  animation: fab-pulse 2s ease-out infinite;
}

@keyframes fab-pulse {
  0%   { transform: scale(1);   opacity: 0.9; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  /* La barra deja siempre visible logo + WhatsApp; los enlaces van al menú */
  .nav { gap: 0.8rem; }
  .nav-toggle { display: flex; }
  .nav-cta { order: 3; }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100dvh;
    width: min(78vw, 320px);
    flex-direction: column;
    gap: 0.4rem;
    margin: 0;
    padding: 5.5rem 1.6rem 2rem;
    background: rgba(1, 9, 63, 0.96);
    backdrop-filter: blur(14px);
    box-shadow: -16px 0 50px rgba(0, 0, 0, 0.5);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 70;
  }

  .nav-links.open { transform: translateX(0); }

  .nav-links a {
    font-size: 1.25rem;
    font-family: var(--font-head);
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--card-border);
  }

  .hero { padding-top: 6rem; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero-ctas { justify-content: center; }
  .hero-stats { justify-content: center; }
  .ba-compare { aspect-ratio: 4 / 5; }
  .ba-grip { width: 48px; height: 48px; }

  .story { grid-template-columns: 1fr; }
  .story-art { order: -1; }
  .story-points { justify-items: start; }

  .manual-feature { grid-template-columns: 1fr; }
  .manual-feature-cover { max-width: 320px; margin: 0 auto; width: 100%; }
  .manual-extra { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .hero-stats { gap: 1.4rem; }
  .hero-ctas { width: 100%; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .section { padding-left: 1.1rem; padding-right: 1.1rem; }
  .wa-fab { width: 56px; height: 56px; right: 1rem; bottom: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-cue span, .wa-fab::after { animation: none; }
}
