/* ==========================================================================
   SANDRO.GOZZ — Landing Page
   Dark Cinematic Personal Brand v2 — ver Identidad_Visual_Sandro_Gozz
   ========================================================================== */

:root {
  --bg: #0c0c0c;
  --bg-alt: #111009;
  --surface: #161310;
  --surface-2: #1c1915;
  --accent: #e8581a;
  --accent-dim: rgba(232, 88, 26, 0.10);
  --accent-line: rgba(232, 88, 26, 0.25);
  --green-ok: #16b91a;
  --red-error: #e30b0b;

  --text: #f0ede8;
  --text-sub: #9b9490;
  --text-muted: #8c877f; /* aclarado para cumplir contraste WCAG AA (texto pequeño) */
  --border: rgba(240, 237, 232, 0.07);
  --border-soft: rgba(240, 237, 232, 0.04);

  --font-display: "Barlow Condensed", sans-serif;
  --font-body: "DM Sans", sans-serif;

  --container: 1180px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --radius-pill: 999px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Reset ---- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Film grain overlay ---- */
.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- Typography helpers ---- */
.kicker {
  display: none; /* etiquetas eyebrow de cada módulo (texto + línea) eliminadas a petición del cliente */
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 12.5px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
}
.kicker::before {
  display: none; /* línea decorativa eliminada a petición del cliente */
}

.display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.02;
  text-transform: uppercase;
}

.accent-italic {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  text-transform: none;
  color: var(--accent);
  letter-spacing: 0;
}

h1.display { font-size: clamp(38px, 6.4vw, 78px); font-weight: 800; }
h2.display { font-size: clamp(30px, 4.6vw, 52px); font-weight: 800; }
h3.display { font-size: clamp(20px, 2.6vw, 28px); }

.eyebrow-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--accent);
}

.text-dim { color: var(--text-sub); }

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}
.section-head p {
  margin-top: 18px;
  color: var(--text-sub);
  font-size: 17px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

section { position: relative; padding: 120px 0; border-bottom: 1px solid var(--border); }
@media (max-width: 720px) { section { padding: 80px 0; } }

/* ---- Section background rhythm (zebra-striped bands) ---- */
.value { background: var(--bg-alt); }
.packages { background: var(--bg-alt); }
.quiz-cta { background: var(--surface); }
.brand-closer { border-bottom: none; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 30px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), background 0.35s;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #b8460f 100%);
  color: #fff; /* blanco puro sobre naranja: asegura contraste de botón (>=3:1) */
  box-shadow: 0 8px 30px -8px rgba(232, 88, 26, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -8px rgba(232, 88, 26, 0.7); }
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent-line); background: var(--accent-dim); }
.btn-block { width: 100%; }
.btn svg { width: 16px; height: 16px; }

/* ---- Header ---- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 22px 0;
  transition: padding 0.4s var(--ease-out), background 0.4s var(--ease-out), border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  padding: 14px 0;
  background: rgba(12, 12, 12, 0.82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; }

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: 1px;
}
.wordmark .dot { color: var(--accent); }

.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { font-size: 14.5px; font-weight: 600; color: var(--text-sub); transition: color 0.25s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; }
@media (max-width: 860px) { .nav-links { display: none; } }
@media (max-width: 480px) {
  .wordmark { font-size: 17px; }
  .nav-cta .btn { padding: 10px 16px; font-size: 12.5px; }
}

/* ---- Hero ---- */
.hero {
  padding: 190px 0 140px;
  position: relative;
  overflow: hidden;
  min-height: 92vh;
  display: flex;
  align-items: center;
}
.hero-lines {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.55;
}
/* Canvas de fondo del Hero: malla/onda de partículas animada (detrás del contenido) */
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
}
.hero-glow {
  position: absolute;
  top: -220px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 900px;
  background: radial-gradient(circle, rgba(232, 88, 26, 0.28) 0%, rgba(232, 88, 26, 0.08) 40%, transparent 72%);
  z-index: 0;
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
}
.hero-content { max-width: 640px; }
.hero h1 { margin: 22px 0 26px; }
.hero .lede { max-width: 600px; color: var(--text-sub); font-size: 18px; margin-bottom: 40px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 56px; }

/* ---- Foto (debajo de las fases, dentro de .phases) ---- */
.portrait-frame {
  position: relative;
  width: 100%;
  margin-top: 56px;
  overflow: hidden;
  background: #000;
}
.portrait-frame::before {
  content: "";
  position: absolute; inset: 0;
  z-index: 2;
  opacity: 0.12;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.portrait-frame::after {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  background: linear-gradient(185deg, transparent 55%, rgba(12, 12, 12, 0.85) 100%),
              linear-gradient(90deg, rgba(232, 88, 26, 0.20), transparent 40%);
  pointer-events: none;
}
.portrait-frame img {
  width: 100%; height: auto;
  display: block;
  filter: grayscale(60%) contrast(1.12) brightness(0.94);
}

@media (max-width: 720px) {
  .hero { padding: 130px 0 90px; min-height: 0; }
  .hero .lede { font-size: 16px; margin-bottom: 32px; }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; }
}

/* ---- VSL (video sales letter) ---- */
.vsl-frame {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(232, 88, 26, 0.08);
}
.vsl-frame video { width: 100%; height: 100%; display: block; object-fit: cover; cursor: pointer; }

.vsl-frame:fullscreen,
.vsl-frame:-webkit-full-screen {
  border-radius: 0;
  max-width: none;
}
.vsl-frame:fullscreen video,
.vsl-frame:-webkit-full-screen video {
  object-fit: contain;
  background: #000;
  cursor: default;
}

.vsl-toggle {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  padding: 0;
  background: rgba(12, 12, 12, 0.72);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  cursor: pointer;
  color: var(--accent);
  transition: opacity 0.2s ease;
}
.vsl-toggle[hidden] { display: none; }
.vsl-toggle-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid var(--accent-line);
  display: flex; align-items: center; justify-content: center;
}
.vsl-toggle-icon svg { width: 28px; height: 28px; }
.vsl-toggle-icon .icon-replay { display: none; }
.vsl-toggle.is-ended .icon-play { display: none; }
.vsl-toggle.is-ended .icon-replay { display: block; }
.vsl-toggle-label {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.vsl-mute {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--accent-line);
  background: rgba(12, 12, 12, 0.72);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}
.vsl-mute svg { width: 20px; height: 20px; }
.vsl-mute[hidden] { display: none; }
.offer-card.vsl-cta { margin-top: 44px; }


/* ---- Phases (mapa del método) — tarjetas planas ---- */
.phases-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.phase-card {
  position: relative;
  background: var(--surface);
  border-top: 3px solid var(--border-soft);
  border-radius: 0;
  padding: 34px 30px 38px;
  transition: border-color .25s;
}
.phase-card:hover { border-top-color: var(--accent); }
.phase-card .eyebrow-num { display: block; margin-bottom: 10px; }
.phase-card h3 { margin-bottom: 12px; }
.phase-card p { color: var(--text-sub); font-size: 15.5px; }
.phase-card mark { background: none; color: var(--accent); font-weight: 700; }

@media (max-width: 720px) {
  .phases-track { grid-template-columns: 1fr; }
}

/* ---- Value grid ---- */
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.value-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  transition: border-color 0.35s, transform 0.35s var(--ease-out);
}
.value-card:hover { border-color: var(--accent-line); transform: translateY(-4px); }
.value-card .icon { width: 40px; height: 40px; margin-bottom: 22px; color: var(--accent); }
.value-card .icon svg { width: 100%; height: 100%; }
.value-card h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.value-card p { color: var(--text-sub); font-size: 14.5px; }
@media (max-width: 980px) { .value-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .value-grid { grid-template-columns: 1fr; } }
@media (max-width: 400px) { .value-card { padding: 24px 20px; } }

/* ---- Process timeline ---- */
.process-list { max-width: 780px; }
.process-step {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 24px;
  padding: 26px 0;
  border-top: 1px solid var(--border);
}
.process-step:last-child { border-bottom: 1px solid var(--border); }
.process-step .eyebrow-num { font-size: 26px; }
.process-step h4 { font-size: 17px; margin-bottom: 6px; }
.process-step p { color: var(--text-sub); font-size: 14.5px; }

@media (max-width: 480px) {
  .process-step { grid-template-columns: 40px 1fr; gap: 14px; padding: 20px 0; }
  .process-step .eyebrow-num { font-size: 20px; }
}

/* ---- Packages ---- */
.packages-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.package-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 38px 30px;
  display: flex;
  flex-direction: column;
}
.package-card.featured {
  border-color: var(--accent-line);
  background: var(--surface-2);
  outline: 1px solid var(--accent-line);
  outline-offset: -1px;
}
.package-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
  background: var(--border);
  color: var(--text-muted);
}
.package-card.featured .package-badge { background: var(--accent-dim); color: var(--accent); }
.package-card h3 { margin-bottom: 6px; }
.package-tagline { color: var(--text-sub); font-size: 14.5px; margin-bottom: 24px; }
.package-features { display: flex; flex-direction: column; gap: 12px; margin-bottom: 30px; flex-grow: 1; }
.package-features li { display: flex; gap: 10px; font-size: 14.5px; align-items: flex-start; }
.package-features li svg { flex-shrink: 0; width: 16px; height: 16px; margin-top: 3px; color: var(--accent); }
.package-price-note { font-size: 12.5px; color: var(--text-muted); text-align: center; margin-top: 44px; }
@media (max-width: 980px) {
  .packages-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .package-card { padding: 30px 22px; }
}

/* ---- Quiz CTA banner ---- */
.quiz-banner {
  border-radius: var(--radius-lg);
  border: 1px solid var(--accent-line);
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  background: radial-gradient(ellipse at 20% 20%, rgba(232, 88, 26, 0.12), transparent 60%), var(--surface-2);
}
.quiz-banner-text h3 { margin-bottom: 10px; }
.quiz-banner-text p { color: var(--text-sub); max-width: 460px; }
@media (max-width: 760px) { .quiz-banner { flex-direction: column; text-align: center; padding: 40px 28px; } }
@media (max-width: 400px) { .quiz-banner { padding: 32px 20px; } }

/* ---- Offer card ---- */
.offer-card {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  background: linear-gradient(165deg, rgba(232, 88, 26, 0.12), var(--bg));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 56px 44px;
}
.offer-badge {
  display: inline-block;
  font-size: 11.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent-line);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 22px;
}
.offer-card h2 { margin-bottom: 12px; }
.offer-card .lede { color: var(--text-sub); margin-bottom: 34px; }
.offer-ctas { display: flex; flex-direction: column; gap: 14px; }

@media (max-width: 480px) {
  .offer-card { padding: 40px 24px; }
}

/* ---- Calendar embed (reutilizado en agendar.html) ---- */
.calendar-frame-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--accent-line);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(232, 88, 26, 0.08);
}
.calendar-frame-wrap::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), transparent 75%);
  z-index: 3;
}

@media (max-width: 600px) {
  .calendar-frame-wrap { overflow-x: auto; }
}

/* ---- FAQ ---- */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item { border-top: 1px solid var(--border); }
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 4px;
  text-align: left;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 17px;
}
.faq-question .plus { flex-shrink: 0; width: 22px; height: 22px; position: relative; }
.faq-question .plus::before, .faq-question .plus::after {
  content: ""; position: absolute; background: var(--accent); border-radius: 2px;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.faq-question .plus::before { width: 14px; height: 2px; }
.faq-question .plus::after { width: 2px; height: 14px; transition: transform 0.3s var(--ease-out); }
.faq-item.open .plus::after { transform: translate(-50%, -50%) rotate(90deg) scaleY(0); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease-out); }
.faq-answer p { padding: 0 4px 26px; color: var(--text-sub); font-size: 15.5px; max-width: 640px; }



/* ---- Brand closer ---- */
.brand-closer {
  padding: 240px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 100%, rgba(232, 88, 26, 0.3), transparent 65%), var(--surface);
}
.brand-closer .closer-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: grayscale(45%) contrast(1.15) brightness(0.75);
}
.brand-closer .closer-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(12, 12, 12, 0.82) 32%, rgba(12, 12, 12, 0.82) 68%, transparent 100%),
              radial-gradient(ellipse at 50% 50%, rgba(232, 88, 26, 0.2), transparent 70%);
}
.brand-closer .container { position: relative; z-index: 1; }
.brand-closer .wordmark-big {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 13vw, 168px);
  letter-spacing: 2px;
  line-height: 1;
}
.brand-closer .wordmark-big .dot { color: var(--accent); }
.brand-closer .tagline {
  margin-top: 22px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(16px, 2.4vw, 26px);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-sub);
  padding: 0 12px;
}
.brand-closer .tagline .accent { color: var(--accent); }

@media (max-width: 600px) {
  .brand-closer { padding: 130px 0; }
}

/* ---- Footer ---- */
.site-footer { padding: 50px 0; border-top: 1px solid var(--border); }
.footer-grid { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; text-align: center; }
.footer-links { display: flex; gap: 14px 26px; flex-wrap: wrap; justify-content: center; }
.footer-links a { font-size: 14px; color: var(--text-sub); transition: color 0.25s; }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 13px; color: var(--text-muted); }

/* ---- Reveal al hacer scroll: VARIOS efectos según el tipo de elemento ----
   Base = fade-up. Cada variante define su transform inicial; .is-visible lo lleva a identidad. */
[data-reveal] { opacity: 0; transform: translateY(28px); }
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Variedad de efectos de entrada por sección.
   Se aplican SOLO mientras está oculta (:not(.is-visible)); al aparecer, .is-visible
   la devuelve a su posición final (transform:none) y la transición hace el movimiento. */
.value-card[data-reveal]:not(.is-visible):nth-child(odd)   { transform: translateX(-46px); }  /* desde la izquierda */
.value-card[data-reveal]:not(.is-visible):nth-child(even)  { transform: translateX(46px); }   /* desde la derecha */
.process-step[data-reveal]:not(.is-visible)                { transform: translateX(-46px); }  /* timeline: desde la izquierda */
.testimonial-card[data-reveal]:not(.is-visible)            { transform: scale(0.9); }          /* zoom */
.portrait-frame[data-reveal]:not(.is-visible),
.vsl-frame[data-reveal]:not(.is-visible),
.offer-card[data-reveal]:not(.is-visible)                  { transform: scale(0.92); }         /* zoom */
.tldr-card[data-reveal]:not(.is-visible)                   { transform: translateX(46px); }    /* desde la derecha */
.quiz-banner[data-reveal]:not(.is-visible)                 { transform: scale(0.95); }         /* zoom suave */
.package-card[data-reveal]:not(.is-visible)                { transform: translateY(40px); }    /* fade-up marcado */
/* section-head, phase-card, faq-list, contact-form y cierre → fade-up (por defecto) */

/* Conserva el hover de elevación de las value-card */
.value-card.is-visible:hover { transform: translateY(-4px); }

/* Evita el desbordamiento horizontal que provocan los efectos "desde los lados"
   mientras las tarjetas están ocultas (desplazadas ±46px). */
html { overflow-x: clip; }
.value, .process, .tldr, .phases, .testimonials, .offer, .contact, .packages { overflow-x: clip; }

/* ---- Utility ---- */
.mono-line { font-family: var(--font-body); font-size: 13px; letter-spacing: 1px; color: var(--text-muted); }

/* ---- Small phone safety net ---- */
@media (max-width: 380px) {
  .container { padding: 0 16px; }
  .wordmark { font-size: 15px; }
  .nav-cta .btn { padding: 9px 14px; font-size: 12px; }
}

/* ==========================================================================
   AGENDAR (agendar.html) — página dedicada de agendamiento
   ========================================================================== */

.book-header {
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-sub);
  transition: color 0.2s;
}
.back-link:hover { color: var(--text); }

.book-hero { padding: 90px 0; }
.book-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.book-pitch .lede { color: var(--text-sub); margin: 22px 0 34px; max-width: 44ch; }

.book-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 30px;
}
.book-detail {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-sm);
}
.book-detail-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.book-detail-value { font-size: 14px; color: var(--text); font-weight: 500; }

.book-promises { display: flex; flex-direction: column; gap: 12px; }
.book-promises li {
  position: relative;
  padding-left: 20px;
  font-size: 14.5px;
  color: var(--text-sub);
  line-height: 1.5;
}
.book-promises li::before {
  content: "";
  position: absolute; left: 0; top: 7px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.booking-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.booking-card-header { padding: 28px 28px 20px; border-bottom: 1px solid var(--border); }
.booking-type { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; }
.booking-name { font-size: 22px; letter-spacing: 0.01em; }


.booking-body { padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 20px; }
.booking-desc { font-size: 13.5px; color: var(--text-sub); line-height: 1.6; }
.no-cost { text-align: center; font-size: 12px; color: var(--text-muted); }
.no-cost strong { color: var(--text-sub); }
.secure-note { text-align: center; font-size: 11.5px; color: var(--text-muted); }

@media (max-width: 780px) {
  .book-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ==========================================================================
   QUIZ (quiz.html)
   ========================================================================== */

.quiz-page-body {
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  font-family: var(--font-body);
}

.quiz-wrap {
  background: var(--surface);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 620px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
}

.quiz-wrap::before {
  content: '';
  position: absolute;
  top: -100px; left: 50%; transform: translateX(-50%);
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--accent-dim) 0%, transparent 70%);
  pointer-events: none;
}

.quiz-wrap .brand {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 3px;
  text-align: center;
  margin-bottom: 2rem;
  opacity: 0.8;
}

.progress-label {
  font-size: 12px;
  color: var(--text-muted);
  text-align: right;
  margin-bottom: 6px;
}

.progress-bar-wrap {
  background: var(--border);
  border-radius: 99px;
  height: 4px;
  margin-bottom: 2rem;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 99px;
  transition: width 0.4s ease;
}

.question-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
}

.question-title span { color: var(--accent); }

.options-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option-btn {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.4;
  width: 100%;
}

.option-btn:hover { border-color: var(--accent); background: var(--surface); }
.option-btn.selected { border-color: var(--accent); background: var(--surface-2); }

.option-letter {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--accent);
  min-width: 22px;
  opacity: 0.6;
}

.option-btn.selected .option-letter { opacity: 1; }

.nav-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.5rem;
}

.next-btn {
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 8px;
  padding: 13px 30px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 0.35;
  pointer-events: none;
}

.next-btn.active { opacity: 1; pointer-events: all; }
.next-btn.active:hover { filter: brightness(1.15); transform: translateY(-1px); }

.error-msg {
  font-size: 12px;
  color: var(--red-error);
  margin-top: 8px;
  display: none;
}

/* RESULTADO */
.result-wrap { text-align: center; }

.result-level-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 100px;
  line-height: 1;
  color: var(--accent);
}

.result-level-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 34px;
  color: var(--text);
  letter-spacing: 4px;
}

.result-divider {
  width: 60px; height: 2px;
  background: var(--accent);
  margin: 1rem auto 1.25rem;
}

.result-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-top: 10px;
  text-align: left;
}

.result-card-label {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 2px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.result-card-value {
  font-size: 15px;
  color: var(--text);
  line-height: 1.5;
  font-weight: 500;
}

.result-desc {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.7;
  margin-top: 1rem;
  text-align: left;
}

.cta-btn {
  display: block;
  width: 100%;
  margin-top: 1.75rem;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 10px;
  padding: 18px 28px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  text-align: center;
}

.cta-btn:hover { filter: brightness(1.15); transform: translateY(-2px); }

.cta-sub {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 8px;
  letter-spacing: 2px;
  font-weight: 600;
}

.restart-btn {
  margin-top: 1.25rem;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-sub);
  border-radius: 8px;
  padding: 10px 24px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}

.restart-btn:hover { border-color: var(--accent); color: var(--accent); }

.quiz-wrap .back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sub);
  margin-bottom: 1.5rem;
}
.quiz-wrap .back-link:hover { color: var(--accent); }

@media (max-width: 480px) {
  .quiz-wrap { padding: 1.75rem 1.25rem; }
  .question-title { font-size: 22px; }
  .result-level-num { font-size: 80px; }
}

/* ==========================================================================
   AÑADIDOS 2026-10-11 — TL;DR, formulario de contacto, compartir, barra móvil
   ========================================================================== */

/* ---- TL;DR / En resumen ---- */
.tldr { padding: 44px 0 4px; }
.tldr-card {
  max-width: 840px;
  margin: 0 auto;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-alt) 100%);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
}
.tldr-list { margin: 18px 0 22px; display: grid; gap: 12px; }
.tldr-list li {
  position: relative;
  padding-left: 28px;
  color: var(--text-sub);
  font-size: 15.5px;
  line-height: 1.55;
}
.tldr-list li strong { color: var(--text); font-weight: 600; }
.tldr-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ---- Contacto / Formulario ---- */
.contact { padding: 72px 0; }
.contact-form {
  max-width: 720px;
  margin: 36px auto 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: grid;
  gap: 16px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field > span {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 13px 15px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface-2);
}
.contact-form textarea { resize: vertical; min-height: 110px; }

/* Honeypot: invisible para humanos, presente en el DOM para cazar bots */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

.cf-turnstile { margin: 2px 0; min-height: 65px; }

.form-status {
  font-size: 14px;
  margin: 2px 0 0;
  min-height: 20px;
  font-weight: 500;
}
.form-status.ok { color: var(--green-ok); }
.form-status.error { color: var(--red-error); }
.form-alt { font-size: 13.5px; color: var(--text-sub); text-align: center; margin-top: 2px; }
.form-alt a { color: var(--accent); font-weight: 600; }

/* ---- Botón "Compartir" (footer) ---- */
.share-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-sub);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}
.share-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ---- Barra fija móvil (Llamar / WhatsApp / Agendar) ---- */
.mobile-bar { display: none; }
@media (max-width: 768px) {
  .mobile-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 900;
    background: rgba(12, 12, 12, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    gap: 6px;
  }
  .mobile-bar-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 7px 4px;
    border-radius: var(--radius-md);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: var(--text-sub);
    border: 1px solid transparent;
  }
  .mobile-bar-btn svg { width: 20px; height: 20px; }
  .mobile-bar-btn.primary { background: var(--accent); color: #fff; }
  body { padding-bottom: 74px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }
}

/* ---- H1 del quiz (SEO + accesibilidad) ---- */
.quiz-h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 5vw, 34px);
  line-height: 1.1;
  letter-spacing: 1px;
  margin: 6px 0 22px;
  color: var(--text);
}

/* ==========================================================================
   AÑADIDOS 2026-10-11 (2) — Banner de cookies, páginas legales, 404
   ========================================================================== */

/* ---- Banner de cookies (Aceptar / Rechazar con el mismo peso visual) ---- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 950;
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  padding: 16px 24px calc(16px + env(safe-area-inset-bottom));
  transform: translateY(115%);
  transition: transform 0.4s var(--ease-out);
  box-shadow: 0 -10px 40px -12px rgba(0, 0, 0, 0.6);
}
.cookie-banner.show { transform: translateY(0); }
.cookie-text { font-size: 13.5px; color: var(--text-sub); max-width: 720px; margin: 0; line-height: 1.55; }
.cookie-text a { color: var(--accent); font-weight: 600; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btn {
  padding: 11px 24px; font-size: 14px; font-weight: 600;
  font-family: var(--font-body);
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: transparent; color: var(--text);
  transition: all 0.2s ease;
}
.cookie-btn:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 768px) {
  /* Encima de la barra fija móvil para no tapar el CTA de llamada */
  .cookie-banner { bottom: 72px; flex-direction: column; align-items: stretch; gap: 12px; padding: 14px 16px; }
  .cookie-actions { width: 100%; }
  .cookie-btn { flex: 1; }
}

/* ---- Páginas legales (privacidad / términos) ---- */
.legal-page { padding: 140px 0 90px; }
.legal-container { max-width: 820px; }
.legal-page h1 { font-size: clamp(34px, 7vw, 64px); line-height: 1.02; margin-bottom: 10px; }
.legal-updated { color: var(--text-muted); font-size: 13px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 26px; }
.legal-review {
  background: var(--accent-dim); border: 1px solid var(--accent-line);
  border-radius: var(--radius-md); padding: 14px 18px; font-size: 14px;
  color: var(--text-sub); margin-bottom: 36px; line-height: 1.55;
}
.legal-page h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(20px, 3.4vw, 26px); letter-spacing: 0.5px;
  margin: 34px 0 12px; color: var(--text);
}
.legal-page p { color: var(--text-sub); margin-bottom: 14px; line-height: 1.7; }
.legal-page a { color: var(--accent); font-weight: 600; }
.legal-page ul { margin: 0 0 16px; padding-left: 0; display: grid; gap: 10px; }
.legal-page li { position: relative; padding-left: 22px; color: var(--text-sub); line-height: 1.6; }
.legal-page li::before { content: "•"; position: absolute; left: 0; color: var(--accent); }
.legal-page code {
  background: var(--surface-2); color: var(--accent);
  padding: 1px 7px; border-radius: 5px; font-size: 0.9em;
  border: 1px solid var(--accent-line);
}
.legal-page strong { color: var(--text); }
.legal-back { margin-top: 40px; }

/* ---- Página 404 ---- */
.error-page {
  min-height: 80vh; display: flex; align-items: center; text-align: center;
  position: relative; overflow: hidden; padding: 160px 0 100px;
}
.error-page .container { position: relative; z-index: 2; }
.error-glow {
  position: absolute; top: 18%; left: 50%; transform: translateX(-50%);
  width: 600px; height: 600px; max-width: 92vw;
  background: radial-gradient(circle, var(--accent-dim), transparent 68%);
  pointer-events: none;
}
.error-code {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(90px, 26vw, 240px); line-height: 1;
  color: var(--accent); margin: 10px 0;
}
.error-page h1 { font-size: clamp(30px, 6vw, 56px); margin-bottom: 16px; }
.error-page .lede { max-width: 560px; margin: 0 auto 30px; }
.error-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ==========================================================================
   AÑADIDOS 2026-10-11 (3) — loader, menú móvil, testimonios, volver arriba,
   microinteracciones, focus-visible, errores de formulario
   ========================================================================== */

/* ---- Loading screen ---- */
.loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.loader.hidden { opacity: 0; visibility: hidden; }
.loader-mark {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(28px, 7vw, 54px); letter-spacing: 2px;
  color: var(--text); animation: loaderPulse 1.1s ease-in-out infinite;
}
.loader-mark .dot { color: var(--accent); }
@keyframes loaderPulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }

/* ---- Menú móvil (hamburguesa) ---- */
.nav-toggle {
  display: none; background: transparent; border: 0;
  width: 44px; height: 44px; padding: 0; position: relative; z-index: 2;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px; margin: 5px auto;
  background: var(--text); border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-header .nav-cta { display: none; }
  .nav-links {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--surface); border-top: 1px solid var(--border);
    padding: 6px 0;
    transform: translateY(-10px); opacity: 0; visibility: hidden;
    transition: transform 0.25s var(--ease-out), opacity 0.25s ease, visibility 0.25s ease;
    box-shadow: 0 24px 44px -24px rgba(0, 0, 0, 0.75);
  }
  .site-header.nav-open .nav-links { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-links a {
    padding: 15px 24px; font-size: 16px; color: var(--text-sub);
    border-bottom: 1px solid var(--border-soft);
  }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-links a:hover { color: var(--text); background: var(--surface-2); }
}

/* ---- CTA intermedio ---- */
.mid-cta { padding: 8px 0 60px; text-align: center; }

/* ---- Testimonios ---- */
.testimonials { padding: 80px 0; }
.testimonials-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 22px; margin-top: 40px;
}
/* Variante para 2 testimonios: 2 columnas centradas */
.testimonials-grid--2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}
.testimonial-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px; margin: 0;
  display: flex; flex-direction: column; gap: 14px;
}
.testimonial-card .stars { color: var(--accent); letter-spacing: 3px; font-size: 15px; }
.testimonial-card blockquote {
  margin: 0; color: var(--text-sub); font-size: 15px; line-height: 1.65; flex-grow: 1;
}
.testimonial-card figcaption { display: flex; flex-direction: column; gap: 2px; }
.t-name { font-weight: 600; color: var(--text); font-size: 14.5px; }
.t-city { color: var(--text-muted); font-size: 12.5px; letter-spacing: 0.5px; }
.t-social {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 9px; align-self: flex-start;
  font-size: 13px; font-weight: 600;
  color: var(--text-sub);
  transition: color 0.2s ease;
}
.t-social:hover { color: var(--accent); }
.t-social svg { width: 16px; height: 16px; flex-shrink: 0; }
.testimonials-cta { text-align: center; margin-top: 40px; }
@media (max-width: 860px) { .testimonials-grid { grid-template-columns: 1fr; } }

/* ---- Botón "volver arriba" ---- */
.back-to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 850;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text); display: grid; place-items: center;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all 0.3s var(--ease-out);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.back-to-top svg { width: 20px; height: 20px; }
@media (max-width: 768px) { .back-to-top { bottom: 84px; right: 14px; } }

/* ---- Errores de formulario por campo ---- */
.field-error { color: var(--red-error); font-size: 12.5px; display: block; }
.field-error:empty { display: none; }
.contact-form input.invalid, .contact-form textarea.invalid { border-color: var(--red-error); }

/* ---- Microinteracciones de botones (efecto al presionar) ---- */
.btn, .cookie-btn, .share-btn, .mobile-bar-btn, .cta-btn, .next-btn {
  transition: transform 0.15s var(--ease-out), background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.btn:active, .cookie-btn:active, .share-btn:active, .cta-btn:active, .next-btn:active { transform: translateY(1px) scale(0.98); }
.mobile-bar-btn:active { transform: scale(0.94); }

/* ---- Focus visible (accesibilidad por teclado) ---- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, .btn:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---- Red de seguridad global para prefers-reduced-motion ---- */
@media (prefers-reduced-motion: reduce) {
  .loader-mark { animation: none; opacity: 1; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  /* Excepción pedida por el cliente: la animación de entrada (zoom + fade) se ve SIEMPRE */
  [data-reveal].is-visible {
    transition-duration: 0.7s !important;
    transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1) !important;
  }
}

/* ==========================================================================
   AÑADIDO 2026-10-19 — Glassmorphism en tarjetas (cristal translúcido)
   Solo cambia fondo, desenfoque, borde y sombra. Mantiene tipografía,
   textos, estructura y la paleta (acentos naranja).
   ========================================================================== */
.value-card,
.phase-card,
.package-card,
.testimonial-card,
.tldr-card,
.contact-form,
.booking-card,
.result-card {
  background: rgba(28, 24, 20, 0.45);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  backdrop-filter: blur(18px) saturate(130%);
  border: 1px solid rgba(240, 237, 232, 0.14);
  box-shadow: 0 20px 55px -18px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

/* Fina esquina redondeada para que el cristal se lea mejor en las fases */
.phase-card { border-top: 3px solid rgba(240, 237, 232, 0.12); border-radius: var(--radius-md); }
/* Mantener el acento lateral del bloque "En resumen" */
.tldr-card { border-left: 3px solid var(--accent); }

/* Tarjetas con identidad naranja: borde y brillo cálido en los contornos */
.offer-card {
  background: linear-gradient(165deg, rgba(232, 88, 26, 0.14), rgba(20, 18, 16, 0.50));
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  backdrop-filter: blur(16px) saturate(120%);
  border: 1px solid rgba(232, 88, 26, 0.30);
  box-shadow: 0 18px 55px -18px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.quiz-banner {
  background: radial-gradient(ellipse at 20% 20%, rgba(232, 88, 26, 0.16), transparent 60%), rgba(20, 18, 16, 0.50);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  backdrop-filter: blur(16px) saturate(120%);
  border: 1px solid rgba(232, 88, 26, 0.28);
  box-shadow: 0 18px 50px -18px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.package-card.featured {
  background: rgba(30, 26, 22, 0.60);
  border-color: rgba(232, 88, 26, 0.38);
  box-shadow: 0 20px 55px -18px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 26px -6px rgba(232, 88, 26, 0.20);
}

/* Fallback: navegadores sin soporte de backdrop-filter → fondo sólido legible */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .value-card, .phase-card, .package-card, .testimonial-card,
  .tldr-card, .contact-form, .booking-card, .result-card { background: var(--surface); }
  .package-card.featured { background: var(--surface-2); }
  .offer-card { background: linear-gradient(165deg, rgba(232, 88, 26, 0.14), var(--bg)); }
  .quiz-banner { background: radial-gradient(ellipse at 20% 20%, rgba(232, 88, 26, 0.14), transparent 60%), var(--surface-2); }
}

/* Resplandores ambientales detrás de las tarjetas: dan "algo que desenfocar"
   para que el efecto cristal sea perceptible sobre el fondo oscuro. */
.value, .packages, .testimonials, .offer, .contact, .phases {
  position: relative;
  isolation: isolate;
}
.value::before, .packages::before, .testimonials::before,
.offer::before, .contact::before, .phases::before {
  content: "";
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(42% 46% at 15% 26%, rgba(232, 88, 26, 0.22), transparent 70%),
    radial-gradient(46% 52% at 88% 80%, rgba(232, 88, 26, 0.13), transparent 72%);
}
.value > .container, .packages > .container, .testimonials > .container,
.offer > .container, .contact > .container,
.phases > .container, .phases > .portrait-frame {
  position: relative; z-index: 1;
}

/* ==========================================================================
   AÑADIDO 2026-10-19 (2) — Hover en tarjetas seleccionadas: fases, testimonios, paquetes
   Elevación suave (translateY -6px, 0.3s ease) + brillo de borde naranja.
   (El glassmorphism ya está aplicado a estas tarjetas.)
   ========================================================================== */
.phase-card.is-visible,
.testimonial-card.is-visible,
.package-card.is-visible {
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.45s ease, box-shadow 0.45s ease;
  will-change: transform;
}
.phase-card:hover,
.testimonial-card:hover,
.package-card:hover {
  transform: translateY(-12px);
  border-color: rgba(232, 88, 26, 0.55);
  box-shadow:
    0 36px 82px -24px rgba(0, 0, 0, 0.60),
    0 0 34px -6px rgba(232, 88, 26, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
/* En la tarjeta de paquete destacada, el brillo naranja al hover es un poco más intenso */
.package-card.featured:hover {
  border-color: rgba(232, 88, 26, 0.70);
  box-shadow:
    0 42px 90px -24px rgba(0, 0, 0, 0.62),
    0 0 42px -6px rgba(232, 88, 26, 0.50),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

/* ==========================================================================
   AÑADIDO 2026-10-XX — HEADER: efecto "liquid glass / metal líquido"
   TODO encapsulado bajo .site-header, con variables locales. No toca :root,
   .btn-primary global, el hero ni ninguna otra sección.
   ========================================================================== */
.site-header {
  --h-accent: #e8581a;      /* naranja de marca (= --accent del código) */
  --h-text: #f0ede8;
  --h-text-sub: #9b9490;
  --h-brown-1: #140c07;
  --h-brown-2: #2a1a12;
  --h-brown-3: #47291b;
}

/* --- Estructura: grid 3 columnas (logo | nav | CTA) --- */
.site-header .container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.site-header .wordmark { justify-self: start; position: relative; z-index: 195; }
.site-header .nav-links { justify-self: center; }
.site-header .nav-cta { justify-self: end; }

/* --- Links como pills de metal líquido --- */
.site-header .nav-links { gap: 8px; }
.site-header .nav-links a {
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 600;
  color: var(--h-text-sub);
  background: linear-gradient(105deg, var(--h-brown-1) 0%, var(--h-brown-2) 48%, var(--h-brown-3) 100%);
  border: 1px solid rgba(232, 88, 26, 0.45);
  transition: color 0.25s, border-color 0.35s, background 0.35s, box-shadow 0.35s;
}
.site-header .nav-links a::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 210, 180, 0.16) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
  pointer-events: none;
}
.site-header .nav-links a:hover::before { transform: translateX(120%); }
.site-header .nav-links a:hover {
  color: var(--h-text);
  border-color: rgba(232, 88, 26, 0.85);
  background: linear-gradient(105deg, #1c110a 0%, #351f15 48%, #58331f 100%);
  box-shadow: 0 0 18px rgba(232, 88, 26, 0.25);
}

/* --- CTA "Agendar Consultoría": liquid glass (conserva su naranja) --- */
.site-header .nav-cta .btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 8px 30px -8px rgba(232, 88, 26, 0.55);
  transition: background 0.35s, border-color 0.35s, box-shadow 0.35s, filter 0.35s, transform 0.3s var(--ease-out);
}
.site-header .nav-cta .btn::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, 0.40) 48%, transparent 76%);
  transform: translateX(-130%);
  transition: transform 0.65s ease;
  pointer-events: none;
}
.site-header .nav-cta .btn:hover::after { transform: translateX(130%); }
.site-header .nav-cta .btn:hover {
  filter: brightness(1.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 0 22px rgba(232, 88, 26, 0.40), 0 8px 18px rgba(232, 88, 26, 0.18);
}

/* --- Animación de entrada del header --- */
@keyframes h-pop  { from { opacity: 0; transform: scale(0.84); } to { opacity: 1; transform: none; } }
@keyframes h-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.site-header .wordmark,
.site-header .nav-links a,
.site-header .nav-cta .btn {
  opacity: 1; /* red de seguridad: visible aunque la animación no corra */
  animation-duration: 1.05s;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  animation-fill-mode: both;
}
.site-header .wordmark    { animation-name: h-pop;  animation-delay: 0.08s; }
.site-header .nav-cta .btn { animation-name: h-pop;  animation-delay: 0.34s; }
.site-header .nav-links a  { animation-name: h-rise; }
.site-header .nav-links a:nth-child(1) { animation-delay: 0.16s; }
.site-header .nav-links a:nth-child(2) { animation-delay: 0.24s; }
.site-header .nav-links a:nth-child(3) { animation-delay: 0.32s; }
.site-header .nav-links a:nth-child(4) { animation-delay: 0.40s; }
.site-header .nav-links a:nth-child(5) { animation-delay: 0.48s; }
.site-header .is-in { animation: none !important; opacity: 1 !important; transform: none !important; }

/* --- Móvil ≤900px: hamburguesa + overlay a pantalla completa --- */
@media (max-width: 900px) {
  .site-header .container {
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding-top: env(safe-area-inset-top);
  }
  .site-header .nav-cta { display: none; }

  .site-header .nav-toggle {
    display: inline-flex; justify-self: end;
    width: 42px; height: 42px; align-items: center; justify-content: center;
    border-radius: 6px;
    border: 1px solid rgba(232, 88, 26, 0.35);
    background: rgba(10, 6, 4, 0.55);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    position: relative; z-index: 195;
  }
  .site-header .nav-toggle span {
    display: block; width: 16px; height: 1.5px; margin: 2.5px auto;
    background: var(--h-text); border-radius: 2px;
    transition: transform 0.3s var(--ease-out), opacity 0.2s ease;
  }
  .site-header .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
  .site-header .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .site-header .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-4px) rotate(-45deg); }

  .site-header .nav-links {
    position: fixed; inset: 0; z-index: 190;
    width: 100vw; height: 100vh; justify-self: stretch;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 12px; padding: 0; margin: 0; border: 0; box-shadow: none;
    background: rgba(10, 6, 4, 0.55);
    -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
    opacity: 0; visibility: hidden; pointer-events: none; transform: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  .site-header.nav-open .nav-links { opacity: 1; visibility: visible; pointer-events: auto; }
  .site-header .nav-links a {
    height: 56px; min-width: 220px; justify-content: center;
    font-size: 19px; border-radius: 10px;
    animation: none; opacity: 1; /* el overlay no usa la animación de entrada */
  }
}

/* Bloqueo de scroll del body cuando el menú overlay está abierto (único rule fuera de .site-header, por necesidad) */
body.menu-open { overflow: hidden; }

/* Respeto a prefers-reduced-motion: el header aparece sin animación ni brillo en movimiento */
@media (prefers-reduced-motion: reduce) {
  .site-header .wordmark,
  .site-header .nav-links a,
  .site-header .nav-cta .btn { animation: none !important; opacity: 1 !important; transform: none !important; }
  .site-header .nav-links a::before,
  .site-header .nav-cta .btn::after { display: none; }
}
