/* ==========================================================================
   Apex Performance — Jesus David · Nutriólogo
   Sistema visual: negro profundo, rojo de marca, líneas finas, tracking amplio
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg: #070708;
  --bg-alt: #0b0b0d;
  --surface: #101013;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --red: #e42e2e;
  --red-soft: rgba(228, 46, 46, 0.12);
  --text: #f2f2f3;
  --muted: #9b9ba1;
  --muted-dim: #6f6f76;

  --font: "Archivo", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Menlo, monospace;

  --wrap: 1180px;
  --radius: 2px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--red); color: #fff; }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 999;
  padding: 10px 16px;
  background: var(--red);
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.skip-link:focus { top: 12px; }

/* ---------- Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

.section { padding-block: clamp(72px, 11vw, 130px); position: relative; }
section[id] { scroll-margin-top: 92px; }
.section-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--line);
}

.split {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.mono {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-dim);
}

/* ---------- Typography ---------- */
h1, h2, h3 {
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(1.95rem, 7vw, 4.5rem);
  text-transform: uppercase;
  overflow-wrap: break-word;
}
h1 em {
  font-style: normal;
  color: var(--red);
}

h2 {
  font-size: clamp(1.7rem, 4.2vw, 3rem);
  text-transform: uppercase;
  margin-bottom: 0.6em;
}

h3 {
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  letter-spacing: -0.01em;
}

p { max-width: 62ch; }
p + p { margin-top: 1em; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}
.eyebrow .dot {
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--red);
}
.eyebrow .idx {
  font-family: var(--mono);
  color: var(--red);
}

.lead { color: var(--muted); font-size: 1.05rem; }
.lead strong { color: var(--text); font-weight: 600; }

.section-head { margin-bottom: clamp(36px, 5vw, 56px); max-width: 720px; }
.section-sub { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn-solid {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.btn-solid:hover { background: #f13a3a; border-color: #f13a3a; }

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--red); color: var(--red); }

.btn-sm { padding: 11px 18px; font-size: 0.7rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding-block: 18px;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease),
              padding 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  padding-block: 11px;
  background: rgba(7, 7, 8, 0.86);
  border-bottom-color: var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand-mark {
  width: 30px;
  height: 26px;
  color: var(--red);
  transition: transform 0.4s var(--ease);
}
.brand:hover .brand-mark { transform: translateY(-2px); }

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-text strong {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.34em;
}
.brand-text span {
  font-size: 0.5rem;
  letter-spacing: 0.4em;
  color: var(--muted);
  margin-top: 4px;
}

.nav {
  display: flex;
  gap: clamp(16px, 2.2vw, 30px);
  margin-left: auto;
}
.nav a {
  position: relative;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding-block: 6px;
  transition: color 0.2s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--red);
  transition: width 0.3s var(--ease);
}
.nav a:hover,
.nav a.is-active { color: var(--text); }
.nav a:hover::after,
.nav a.is-active::after { width: 100%; }

.header-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(120px, 16vw, 180px);
  padding-bottom: 0;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 92px 92px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 20%, transparent 78%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
  padding-bottom: clamp(56px, 8vw, 96px);
}

.hero-copy h1 { margin-bottom: 0.42em; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-meta li { display: flex; gap: 8px; align-items: baseline; }
.hero-meta span {
  font-family: var(--mono);
  font-size: 0.64rem;
  color: var(--red);
}

.hero-figure {
  position: relative;
  display: grid;
  place-items: center;
}
.hero-glow {
  position: absolute;
  width: 74%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(228, 46, 46, 0.22), transparent 68%);
  filter: blur(20px);
  pointer-events: none;
}
.hero-figure img {
  position: relative;
  width: 100%;
  max-width: 480px;
  mix-blend-mode: lighten;
  animation: floaty 9s ease-in-out infinite;
}
.hero-figure figcaption {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted-dim);
  white-space: nowrap;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ---------- Marquee ---------- */
.marquee {
  border-block: 1px solid var(--line);
  background: var(--bg-alt);
  overflow: hidden;
  padding-block: 14px;
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  animation: slide 42s linear infinite;
}
.marquee span {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.marquee i {
  width: 5px;
  height: 5px;
  background: var(--red);
  transform: rotate(45deg);
  flex-shrink: 0;
}
@keyframes slide {
  to { transform: translateX(-50%); }
}

/* ---------- Sobre mí ---------- */
.quote {
  margin-top: 32px;
  padding-left: 22px;
  border-left: 2px solid var(--red);
  font-size: 1.12rem;
  line-height: 1.5;
  color: var(--text);
  font-weight: 500;
}
.quote cite {
  display: block;
  margin-top: 10px;
  font-family: var(--mono);
  font-style: normal;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.cred-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  position: sticky;
  top: 100px;
}
.cred-list { margin-top: 18px; }
.cred-list li {
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
}
.cred-list li:last-child { border-bottom: 0; }
.cred-list span {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
}
.cred-list small {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 3px;
}
.cred-foot {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.cred-foot p { font-size: 0.9rem; color: var(--text); margin-top: 6px; }

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  overflow: hidden;
}

.card {
  position: relative;
  background: var(--bg-alt);
  padding: clamp(24px, 3vw, 34px);
  transition: background 0.3s var(--ease);
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.card:hover { background: var(--surface); }
.card:hover::before { transform: scaleX(1); }

.card-num {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  color: var(--red);
}
.card h3 { margin: 14px 0 10px; }
.card p { color: var(--muted); font-size: 0.93rem; }
.card-meta {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-dim);
}

/* ---------- Planes ---------- */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 34px);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.plan:hover { border-color: var(--line-strong); transform: translateY(-3px); }

.plan-featured {
  border-color: rgba(228, 46, 46, 0.5);
  background: linear-gradient(180deg, rgba(228, 46, 46, 0.07), var(--surface) 42%);
}
.plan .tag {
  position: absolute;
  top: 0;
  right: 22px;
  transform: translateY(-50%);
  background: var(--red);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 5px 10px;
}

.plan h3 { margin: 10px 0 8px; font-size: clamp(1.2rem, 2vw, 1.5rem); }
.plan-desc { color: var(--muted); font-size: 0.9rem; min-height: 3.2em; }

.plan ul {
  margin: 22px 0 26px;
  display: grid;
  gap: 11px;
  font-size: 0.88rem;
  color: var(--muted);
}
.plan ul li {
  position: relative;
  padding-left: 20px;
}
.plan ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border: 1px solid var(--red);
  transform: rotate(45deg);
}

.plan-price {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-dim);
  margin-bottom: 16px;
}

/* ---------- Pasos ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
  overflow: hidden;
}
.step {
  background: var(--bg-alt);
  padding: clamp(22px, 2.6vw, 32px);
}
.step-num {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--red);
}
.step h3 { margin: 18px 0 10px; }
.step p { color: var(--muted); font-size: 0.9rem; }

/* ---------- Testimonios ---------- */
.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.quote-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.quote-card blockquote {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
}
.quote-card figcaption {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.quote-card figcaption strong { font-size: 0.9rem; }
.quote-card figcaption span {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-dim);
}

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 900px; }

.faq details {
  border-bottom: 1px solid var(--line);
}
.faq details:first-of-type { border-top: 1px solid var(--line); }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  list-style: none;
  transition: color 0.2s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--red); }
.faq summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: 1.15rem;
  color: var(--red);
  transition: transform 0.3s var(--ease);
  flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  padding: 0 0 22px;
  padding-right: clamp(0px, 6vw, 60px);
  color: var(--muted);
  font-size: 0.94rem;
}

/* ---------- Contacto ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: clamp(36px, 6vw, 72px);
  align-items: start;
}
.contact-copy > p { color: var(--muted); margin-bottom: 32px; }

.contact-list { display: grid; gap: 18px; }
.contact-list li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  align-items: baseline;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.contact-list a {
  color: var(--text);
  transition: color 0.2s var(--ease);
}
.contact-list a:hover { color: var(--red); }
.contact-list p { color: var(--text); font-size: 0.95rem; }

/* ---------- Consultorio dentro del gym ---------- */
.consult {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  align-items: stretch;
}
.consult-map {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  min-height: 470px;
}
.consult-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 470px;
  border: 0;
  filter: invert(90%) hue-rotate(180deg) contrast(0.92);
}

.consult-info {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 32px);
}
.consult-list { display: grid; gap: 16px; }
.consult-list li {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.consult-list li p {
  margin-top: 5px;
  font-size: 0.92rem;
  color: var(--text);
}

.chips-title { margin-top: 24px; }
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.chips li {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
}

.consult-note {
  margin-top: 22px;
  font-size: 0.88rem;
  color: var(--muted);
}
.consult-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 24px;
}

.form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3.4vw, 36px);
  display: grid;
  gap: 18px;
}
.field { display: grid; gap: 8px; }
.field label {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  padding: 13px 14px;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.field textarea { resize: vertical; min-height: 100px; }
.field input::placeholder,
.field textarea::placeholder { color: #55555b; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--red);
  background: #0d0d10;
}
.field select { appearance: none; cursor: pointer; }
.field input:user-invalid,
.field select:user-invalid { border-color: #7a2020; }

.form-note {
  font-size: 0.72rem;
  color: var(--muted-dim);
  text-align: center;
}
.form-note.is-error { color: #ff6b6b; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  padding-block: 44px 30px;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
}
.footer-nav a {
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}
.footer-nav a:hover { color: var(--red); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  padding-top: 22px;
  font-size: 0.74rem;
  color: var(--muted-dim);
}
.footer-tag {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted-dim);
}

/* ---------- Botón flotante de WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: clamp(16px, 2.2vw, 26px);
  bottom: clamp(16px, 2.2vw, 26px);
  z-index: 95;
  display: inline-flex;
  align-items: center;
  color: #fff;
  background: #25d366;
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease),
              box-shadow 0.3s var(--ease);
}
.wa-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 2px solid rgba(37, 211, 102, 0.55);
  animation: waPulse 2.8s ease-out infinite;
  pointer-events: none;
}
@keyframes waPulse {
  0% { transform: scale(1); opacity: 0.7; }
  70% { transform: scale(1.45); opacity: 0; }
  100% { transform: scale(1.45); opacity: 0; }
}

.wa-float-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  flex-shrink: 0;
}
.wa-float-icon svg { width: 28px; height: 28px; fill: currentColor; }

.wa-float-label {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  padding-right: 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: max-width 0.35s var(--ease), opacity 0.3s var(--ease),
              padding-right 0.35s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .wa-float:hover,
  .wa-float:focus-visible {
    transform: translateY(-3px);
    background: #2ee074;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.14) inset;
  }
  .wa-float:hover .wa-float-label,
  .wa-float:focus-visible .wa-float-label {
    max-width: 230px;
    opacity: 1;
    padding-right: 24px;
  }
}

@media (max-width: 640px) {
  .wa-float-icon { width: 54px; height: 54px; }
  .wa-float-icon svg { width: 26px; height: 26px; }
}

/* ---------- Reveal on scroll ---------- */
/* Solo se ocultan si JS está activo (.js se añade desde script.js),
   así el contenido sigue visible si el script no carga. */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-figure { order: -1; max-width: 420px; margin-inline: auto; }
  .hero-figure figcaption { bottom: -4px; }
  .split { grid-template-columns: 1fr; }
  .cred-card { position: static; }
  .plans { grid-template-columns: 1fr; }
  .plan-desc { min-height: 0; }
  .quotes { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .consult { grid-template-columns: 1fr; }
  .consult-map,
  .consult-map iframe { min-height: 340px; }
}

@media (max-width: 820px) {
  .header-cta { display: none; }
  .nav-toggle { display: inline-flex; }

  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(78vw, 320px);
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 90px 32px 40px;
    background: #0c0c0e;
    border-left: 1px solid var(--line);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    margin: 0;
  }
  .nav.is-open { transform: translateX(0); }
  .nav a {
    font-size: 1rem;
    letter-spacing: 0.16em;
    padding-block: 14px;
    border-bottom: 1px solid var(--line);
    color: var(--text);
  }
  .nav a::after { display: none; }
  .nav a:hover { color: var(--red); }
}

@media (max-width: 640px) {
  .steps { grid-template-columns: 1fr; }
  .contact-list li { grid-template-columns: 1fr; gap: 4px; }
  .hero-meta { flex-direction: column; gap: 8px; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .hero-figure img { max-width: 320px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}
