/* ============================================================
   ESTILO.CSS — Miguel Angel Vera | Nutrición & Entrenamiento
   Dark premium · Syne + Space Grotesk · OKLCH · 3D tilt
   ============================================================ */


/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  background: oklch(0.11 0.015 250);
  color: oklch(0.95 0.008 245);
  overflow-x: hidden;
  max-width: 100%;
  line-height: 1.6;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}


/* ── Tokens ── */
:root {
  --bg:           oklch(0.11 0.015 250);
  --bg-surface:   oklch(0.15 0.018 250);
  --bg-raised:    oklch(0.19 0.022 250);
  --bg-hi:        oklch(0.23 0.024 250);

  --ink:          oklch(0.95 0.008 245);
  --ink-muted:    oklch(0.62 0.025 245);
  --ink-dim:      oklch(0.38 0.018 245);

  --accent:       oklch(0.65 0.22 255);
  --accent-hi:    oklch(0.72 0.20 255);
  --accent-glow:  oklch(0.65 0.22 255 / 0.22);
  --accent-2:     oklch(0.74 0.15 160);
  --accent-2-dim: oklch(0.74 0.15 160 / 0.15);

  --border:       oklch(0.22 0.018 250);
  --border-hi:    oklch(0.30 0.025 250);

  --r-card:  18px;
  --r-btn:   100px;
  --r-sm:    10px;
}


/* ── Fondo ambiental — gradientes de luz globales ── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 55% 45% at 15% 15%, oklch(0.65 0.22 255 / 0.07) 0%, transparent 100%),
    radial-gradient(ellipse 40% 35% at 85% 80%, oklch(0.74 0.15 160 / 0.05) 0%, transparent 100%);
}


/* ── Luz del cursor — sigue al ratón, muy sutil ── */
#cursor-glow {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(
    480px circle at var(--cx, -9999px) var(--cy, -9999px),
    oklch(0.65 0.22 255 / 0.07) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.6s ease;
}


/* ── Utilidades ── */
section    { position: relative; z-index: 1; overflow-x: clip; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 40px; }
.display   { font-family: 'Syne', system-ui, sans-serif; }


/* ══════════════════════════════════════
   NAV
   ══════════════════════════════════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 24px 48px;
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.4s ease, padding 0.4s ease, border-color 0.4s ease;
}
nav.scrolled {
  background: oklch(0.11 0.015 250 / 0.88);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 16px 48px;
}
.nav-logo {
  font-family: 'Syne', system-ui, sans-serif;
  font-weight: 800; letter-spacing: -0.3px;
  color: var(--ink); text-decoration: none;
  display: flex; align-items: baseline; gap: 1px;
  transition: color 0.25s ease;
}
.nav-logo em {
  font-style: normal;
  font-size: 26px; line-height: 1;
}
.nav-logo span {
  color: var(--accent); font-size: 13px; font-weight: 700;
  letter-spacing: 0.4px;
  transition: color 0.25s ease, text-shadow 0.25s ease;
}
.nav-logo:hover { color: var(--ink); }
.nav-logo:hover span {
  color: var(--accent-hi);
  text-shadow:
    0 0 8px var(--accent),
    0 0 24px var(--accent-glow),
    0 0 48px oklch(0.65 0.22 255 / 0.18);
}
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a {
  color: var(--ink-muted); text-decoration: none;
  font-size: 14px; font-weight: 500; transition: color 0.2s;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  padding: 8px 22px !important; border-radius: var(--r-btn);
  border: 1px solid var(--border-hi); color: var(--ink) !important;
  transition: border-color 0.25s ease, background 0.25s ease !important;
}
.nav-cta:hover {
  background: var(--bg-surface); border-color: var(--accent) !important;
}
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: all 0.28s cubic-bezier(0.34, 1.46, 0.64, 1); transform-origin: center;
}
nav.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
nav.nav-open .nav-toggle span:nth-child(2) { opacity: 0; transform: scaleX(0); }
nav.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ══════════════════════════════════════
   HERO
   ══════════════════════════════════════ */
#hero {
  min-height: 100dvh;
  padding: 140px 48px 80px;
  display: flex; flex-direction: column; justify-content: center;
  position: relative;
}
.hero-inner {
  max-width: 1140px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 80px; align-items: center;
}
.hero-badge {
  display: flex; align-items: center; gap: 8px;
  width: fit-content; margin: 0 auto 32px;
  border: 1px solid var(--border-hi); border-radius: var(--r-btn);
  padding: 6px 18px;
  font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  color: var(--ink-muted);
}
.badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-2); flex-shrink: 0;
  animation: pulse-dot 2.5s ease infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 oklch(0.74 0.15 160 / 0.5); }
  60%       { box-shadow: 0 0 0 5px oklch(0.74 0.15 160 / 0); }
}
.hero-heading {
  display: flex; flex-direction: column; gap: 0; margin-bottom: 28px;
  align-items: center; text-align: center;
}
.h1-solid {
  font-family: 'Syne', system-ui, sans-serif;
  font-size: clamp(60px, 7.5vw, 100px);
  font-weight: 800; letter-spacing: -3px; line-height: 0.95;
  color: var(--ink);
  display: block;
}
.h1-outline {
  font-family: 'Syne', system-ui, sans-serif;
  font-size: clamp(60px, 7.5vw, 100px);
  font-weight: 800; letter-spacing: -3px; line-height: 0.95;
  -webkit-text-stroke: 1.5px oklch(0.75 0.018 245);
  color: transparent;
  display: block;
}
.h1-accent {
  font-family: 'Syne', system-ui, sans-serif;
  font-size: clamp(28px, 3.2vw, 46px);
  font-weight: 700; letter-spacing: -0.5px;
  color: var(--accent); margin-top: 10px;
}
.hero-desc {
  font-size: 16px; color: var(--ink-muted); line-height: 1.75;
  max-width: 420px; margin: 0 auto 38px;
  text-align: center;
}
.hero-actions {
  display: flex; gap: 14px; flex-wrap: wrap; align-items: center; justify-content: center;
}

/* Botones globales */
.btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 14px 30px; border-radius: var(--r-btn);
  background: var(--accent); color: oklch(0.10 0.015 250);
  font-size: 15px; font-weight: 700; font-family: inherit;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.34, 1.46, 0.64, 1), background 0.2s, box-shadow 0.25s;
}
.btn-primary:hover {
  background: var(--accent-hi);
  transform: translateY(-2px);
  box-shadow: 0 10px 32px var(--accent-glow);
}
.btn-primary:active { transform: translateY(0) scale(0.98); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 14px 30px; border-radius: var(--r-btn);
  border: 1px solid var(--border-hi);
  color: var(--ink-muted); font-size: 15px; font-weight: 600; font-family: inherit;
  text-decoration: none; transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover { border-color: var(--ink-dim); color: var(--ink); }

/* Hero visual — floating card */
.hero-visual {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 16px;
}
.hero-card {
  width: 100%; max-width: 320px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 24px; padding: 32px;
  cursor: default; position: relative; overflow: hidden;
  box-shadow:
    0 0 0 1px var(--border),
    0 40px 80px oklch(0.05 0.012 250 / 0.8),
    0 8px 24px oklch(0.05 0.012 250 / 0.5),
    inset 0 1px 0 var(--border-hi);
  will-change: transform;
  transition: box-shadow 0.3s ease;
}
.hero-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-hi) 30%, var(--border-hi) 70%, transparent);
}
.hc-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  overflow: hidden;
  margin-bottom: 10px;
  box-shadow: 0 4px 16px var(--accent-glow);
  border: 2px solid oklch(0.65 0.22 255 / 0.35);
  flex-shrink: 0;
}
.hc-avatar img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  display: block;
}
.hc-handle {
  font-size: 13px; font-weight: 600; color: var(--ink-muted); margin-bottom: 22px;
}
.hc-divider { height: 1px; background: var(--border); margin-bottom: 22px; }
.hc-stat { margin-bottom: 18px; }
.hc-num {
  font-family: 'Syne', system-ui, sans-serif;
  font-size: 40px; font-weight: 800; color: var(--ink);
  display: block; line-height: 1; margin-bottom: 4px;
}
.hc-label { font-size: 13px; color: var(--ink-muted); }
.hc-stars { display: flex; flex-direction: column; gap: 3px; }
.stars-row { color: #f59e0b; font-size: 13px; letter-spacing: 2px; }
.stars-val  { font-size: 11px; color: var(--ink-dim); }

/* Highlight de luz que sigue al cursor (3D tilt) */
.card-light {
  position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(
    circle at var(--mx, 50%) var(--my, 50%),
    oklch(1 0 0 / 0.06) 0%, transparent 55%
  );
  pointer-events: none;
}



/* ══════════════════════════════════════
   SECTION HEADERS
   ══════════════════════════════════════ */
.section-label {
  font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.section-title {
  font-family: 'Syne', system-ui, sans-serif;
  font-size: clamp(30px, 3.8vw, 50px);
  font-weight: 800; letter-spacing: -1.5px; line-height: 1.1;
  color: var(--ink); margin-bottom: 14px;
}
.section-desc {
  font-size: 15px; color: var(--ink-muted); line-height: 1.75; max-width: 460px;
}


/* ══════════════════════════════════════
   REVEAL
   ══════════════════════════════════════ */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.16s; }
.d3 { transition-delay: 0.24s; }
.d4 { transition-delay: 0.32s; }


/* ══════════════════════════════════════
   SERVICIOS
   ══════════════════════════════════════ */
#servicios { padding: 140px 0 120px; }
.svc-header {
  display: flex; align-items: flex-start; gap: 32px;
  margin-bottom: 70px;
}
.svc-num-big {
  font-family: 'Syne', system-ui, sans-serif;
  font-size: clamp(80px, 9vw, 120px);
  font-weight: 800; line-height: 0.9; color: var(--ink);
  opacity: 0.10; flex-shrink: 0; user-select: none; margin-top: -8px;
}
.services-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
.svc-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 40px;
  position: relative; overflow: hidden; cursor: default;
  box-shadow:
    0 8px 32px oklch(0.05 0.012 250 / 0.5),
    inset 0 1px 0 var(--border-hi);
  will-change: transform;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.svc-card:hover {
  border-color: oklch(0.65 0.22 255 / 0.4);
  box-shadow:
    0 0 0 1px oklch(0.65 0.22 255 / 0.08),
    0 16px 48px oklch(0.65 0.22 255 / 0.12),
    0 8px 20px oklch(0.05 0.012 250 / 0.4),
    inset 0 1px 0 var(--border-hi);
}
.svc-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-hi) 40%, var(--border-hi) 60%, transparent);
}
.svc-icon {
  width: 52px; height: 52px;
  background: var(--accent-glow); border: 1px solid oklch(0.65 0.22 255 / 0.2);
  border-radius: 15px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); margin-bottom: 26px;
}
.svc-name {
  font-family: 'Syne', system-ui, sans-serif;
  font-size: 24px; font-weight: 800; line-height: 1.2;
  color: var(--ink); margin-bottom: 12px;
}
.svc-text {
  font-size: 14px; color: var(--ink-muted); line-height: 1.7; margin-bottom: 28px;
}
.svc-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.svc-list li {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: oklch(0.68 0.022 245);
}
.svc-list li::before {
  content: ''; width: 4px; height: 4px;
  background: var(--accent); border-radius: 50%; flex-shrink: 0;
}


/* ══════════════════════════════════════
   METODOLOGÍA
   ══════════════════════════════════════ */
#metodologia { padding: 100px 0 140px; }
.method-header { margin-bottom: 60px; }
.steps-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px;
  border-radius: var(--r-card); overflow: hidden;
}
.step-block {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 40px 32px;
  position: relative;
  transition: background 0.3s ease;
}
.step-block:hover { background: var(--bg-raised); }
.step-block:not(:first-child) { border-left: none; }
.step-n {
  font-family: 'Syne', system-ui, sans-serif;
  font-size: 52px; font-weight: 800; line-height: 1;
  color: var(--accent); opacity: 0.3;
  margin-bottom: 20px; display: block;
}
.step-title { font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.step-desc  { font-size: 13px; color: var(--ink-muted); line-height: 1.65; }


/* ══════════════════════════════════════
   SOBRE MÍ
   ══════════════════════════════════════ */
#sobre-mi { padding: 120px 0; }
.about-wrap {
  display: grid; grid-template-columns: 1fr 1.35fr; gap: 64px; align-items: center;
}
.about-photo-wrap {
  aspect-ratio: 3/4; cursor: default; will-change: transform;
}
.about-photo {
  width: 100%; height: 100%;
  border: 1px solid var(--border); border-radius: 20px; overflow: hidden;
  box-shadow:
    0 20px 60px oklch(0.05 0.012 250 / 0.7),
    inset 0 1px 0 var(--border-hi);
  position: relative;
}
.about-photo::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px; z-index: 2;
  background: linear-gradient(90deg, transparent, oklch(1 0 0 / 0.15) 40%, oklch(1 0 0 / 0.15) 60%, transparent);
}
/* Gradiente inferior para que el handle sea legible sobre la foto */
.about-photo::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 80px; z-index: 1;
  background: linear-gradient(to top, oklch(0.09 0.015 250 / 0.85) 0%, transparent 100%);
  pointer-events: none;
}
.about-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  display: block;
}
.about-ig {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  z-index: 2;
  font-size: 12px; color: oklch(0.88 0.008 245); font-weight: 600;
  white-space: nowrap;
  background: oklch(0.11 0.015 250 / 0.5);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid oklch(1 0 0 / 0.12);
  padding: 4px 12px; border-radius: 100px;
}
.about-text { }
.about-text .section-title { margin-bottom: 20px; }
.about-body p {
  font-size: 14px; color: var(--ink-muted); line-height: 1.8; margin-bottom: 16px;
}
.about-body p:last-child { margin-bottom: 0; }
.about-body p em {
  font-style: italic; color: oklch(0.75 0.015 245);
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tag {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--r-btn); padding: 5px 14px;
  font-size: 12px; font-weight: 600; color: var(--ink-muted);
  transition: border-color 0.2s, color 0.2s;
}
.tag:hover { border-color: var(--accent); color: var(--accent); }


/* ══════════════════════════════════════
   PLANES
   ══════════════════════════════════════ */
#planes { padding: 100px 0 120px; }
.plans-header { margin-bottom: 60px; }
.plans-grid {
  display: grid; grid-template-columns: 1fr 1.12fr 1fr; gap: 16px; align-items: start;
}
.plan-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 32px 28px;
  position: relative; overflow: hidden; cursor: default;
  box-shadow: 0 8px 32px oklch(0.05 0.012 250 / 0.4), inset 0 1px 0 var(--border-hi);
  will-change: transform; transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.plan-card:not(.hot):hover {
  border-color: oklch(0.65 0.22 255 / 0.4);
  box-shadow:
    0 0 0 1px oklch(0.65 0.22 255 / 0.08),
    0 16px 48px oklch(0.65 0.22 255 / 0.12),
    0 8px 20px oklch(0.05 0.012 250 / 0.4),
    inset 0 1px 0 var(--border-hi);
}
.plan-card.hot {
  background: var(--bg-raised);
  border-color: oklch(0.65 0.22 255 / 0.35);
  box-shadow:
    0 0 0 1px oklch(0.65 0.22 255 / 0.12),
    0 24px 64px oklch(0.05 0.012 250 / 0.65),
    0 0 50px oklch(0.65 0.22 255 / 0.07),
    inset 0 1px 0 oklch(0.65 0.22 255 / 0.25);
}
/* Halo superior en el plan destacado */
.plan-card.hot::before {
  content: '';
  position: absolute; top: -60px; left: 50%; transform: translateX(-50%);
  width: 280px; height: 120px;
  background: radial-gradient(ellipse, oklch(0.65 0.22 255 / 0.15) 0%, transparent 70%);
  pointer-events: none;
}
.plan-popular {
  display: inline-flex; align-items: center;
  background: oklch(0.65 0.22 255 / 0.10);
  border: 1px solid oklch(0.65 0.22 255 / 0.25);
  color: var(--accent);
  font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  padding: 4px 12px; border-radius: var(--r-btn); margin-bottom: 18px;
}
.plan-name {
  font-family: 'Syne', system-ui, sans-serif;
  font-size: 19px; font-weight: 800;
  color: var(--ink); margin-bottom: 6px; line-height: 1.2;
}
.plan-price-row { display: flex; align-items: baseline; gap: 2px; margin-bottom: 4px; }
.plan-eur { font-size: 18px; font-weight: 700; color: var(--ink-muted); align-self: flex-start; padding-top: 8px; }
.plan-amt {
  font-family: 'Syne', system-ui, sans-serif;
  font-size: 50px; font-weight: 800; line-height: 1;
  color: var(--ink);
}
.plan-period-lbl { font-size: 14px; font-weight: 500; color: var(--ink-muted); }
.plan-period { font-size: 12px; color: var(--ink-dim); margin-bottom: 22px; }
.plan-hr { height: 1px; background: var(--border); margin-bottom: 20px; }
.plan-feats { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.plan-feats li { display: flex; align-items: center; gap: 9px; font-size: 13px; color: oklch(0.68 0.022 245); }
.plan-check {
  width: 16px; height: 16px; flex-shrink: 0;
  background: oklch(0.65 0.22 255 / 0.10); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 8px; color: var(--accent);
}
.btn-plan {
  display: block; text-align: center; width: 100%;
  padding: 12px 16px; border-radius: 12px;
  font-size: 14px; font-weight: 700; font-family: inherit;
  text-decoration: none; cursor: pointer;
  background: var(--bg-hi); border: 1px solid var(--border-hi);
  color: var(--ink);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.btn-plan:hover { background: var(--border-hi); }
.btn-plan:active { transform: scale(0.98); }
.plan-card.hot .btn-plan {
  background: var(--accent); border-color: transparent;
  color: oklch(0.10 0.015 250);
  box-shadow: 0 4px 20px var(--accent-glow);
}
.plan-card.hot .btn-plan:hover {
  background: var(--accent-hi);
}


/* ══════════════════════════════════════
   TESTIMONIOS
   ══════════════════════════════════════ */
#testimonios { padding: 80px 0 100px; }
.testi-header { margin-bottom: 56px; }
.testi-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  align-items: stretch;
}
.testi-card {
  background: var(--bg-surface);
  border: 1px solid var(--border); border-radius: var(--r-card);
  padding: 28px; position: relative; overflow: hidden;
  box-shadow: 0 4px 20px oklch(0.05 0.012 250 / 0.3);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex; flex-direction: column;
}
.testi-card:hover {
  border-color: oklch(0.65 0.22 255 / 0.35);
  box-shadow:
    0 0 0 1px oklch(0.65 0.22 255 / 0.07),
    0 12px 40px oklch(0.65 0.22 255 / 0.10),
    0 4px 16px oklch(0.05 0.012 250 / 0.3);
}
.testi-stars { color: #f59e0b; font-size: 12px; letter-spacing: 2px; margin-bottom: 14px; }
.testi-text {
  font-size: 14px; color: var(--ink-muted); line-height: 1.72;
  font-style: italic; margin-bottom: 20px; flex: 1;
}
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), oklch(0.50 0.26 285));
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: white;
}
.testi-name { font-size: 13px; font-weight: 600; color: var(--ink); }
.testi-meta { font-size: 11px; color: var(--ink-muted); }


/* ══════════════════════════════════════
   CONTACTO
   ══════════════════════════════════════ */
#contacto { padding: 80px 0 140px; }
.cta-block {
  background: var(--bg-surface);
  border: 1px solid var(--border); border-radius: 28px;
  padding: 90px 60px; text-align: center;
  position: relative; overflow: hidden;
  box-shadow: 0 20px 60px oklch(0.05 0.012 250 / 0.5), inset 0 1px 0 var(--border-hi);
}
/* Halo de luz superior centrado */
.cta-block::before {
  content: '';
  position: absolute; top: -80px; left: 50%; transform: translateX(-50%);
  width: 500px; height: 200px;
  background: radial-gradient(ellipse, oklch(0.65 0.22 255 / 0.12) 0%, transparent 70%);
  pointer-events: none;
}
/* Eyebrow — solo aquí y en Sobre mí */
.cta-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px; display: block;
}
.cta-heading {
  font-family: 'Syne', system-ui, sans-serif;
  font-size: clamp(32px, 4.5vw, 62px);
  font-weight: 800; letter-spacing: -2px; line-height: 1.08;
  color: var(--ink); margin-bottom: 18px;
}
.cta-desc {
  font-size: 16px; color: var(--ink-muted);
  max-width: 440px; margin: 0 auto 40px; line-height: 1.7;
}
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-ig {
  display: inline-flex; align-items: center; gap: 9px;
  margin-top: 28px;
  background: linear-gradient(135deg, #818cf8, #a855f7, #ec4899);
  color: white; padding: 13px 26px; border-radius: var(--r-btn);
  font-size: 14px; font-weight: 700; font-family: inherit;
  text-decoration: none;
  border: 1px solid oklch(1 0 0 / 0.15);
  box-shadow: 0 4px 20px oklch(0.55 0.22 300 / 0.25);
  transition: transform 0.25s cubic-bezier(0.34, 1.46, 0.64, 1), box-shadow 0.25s;
}
.cta-ig:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px oklch(0.55 0.22 300 / 0.35);
}
.cta-ig-wrap { display: flex; justify-content: center; margin-top: 0; }


/* ══════════════════════════════════════
   FOOTER
   ══════════════════════════════════════ */
footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--border);
  padding: 28px 48px;
  display: flex; justify-content: space-between; align-items: center;
}
.footer-logo {
  font-family: 'Syne', system-ui, sans-serif;
  font-weight: 800; color: var(--ink);
  display: flex; align-items: baseline; gap: 1px;
}
.footer-logo em { font-style: normal; font-size: 20px; }
.footer-logo span { color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: 0.4px; }
footer p { font-size: 12px; color: var(--ink-dim); }
footer a { font-size: 12px; color: var(--ink-muted); text-decoration: none; transition: color 0.2s; }
footer a:hover { color: var(--ink); }


/* ── Animaciones ── */
@keyframes fadeIn     { from { opacity: 0; }              to { opacity: 1; } }
@keyframes fadeInUp   { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-18px); } to { opacity: 1; transform: translateY(0); } }


/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */

/* ── Tablet (≤ 900px) ── */
@media (max-width: 900px) {
  /* Hero — pasa a columna única, todo centrado */
  .hero-inner     { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-visual    { align-items: center; }
  .hero-card      { max-width: 340px; margin: 0 auto; }

  /* Grids a columna única */
  .services-grid  { grid-template-columns: 1fr; }
  .about-wrap     { grid-template-columns: 1fr; }
  .about-photo-wrap { aspect-ratio: auto; height: 260px; }
  .plans-grid     { grid-template-columns: 1fr; max-width: 440px; margin-left: auto; margin-right: auto; }
  .plan-card.hot  { order: -1; }
  .testi-grid     { grid-template-columns: 1fr 1fr; }

  /* Steps — apilados verticalmente con bordes correctos */
  .steps-row         { grid-template-columns: 1fr; gap: 0; border-radius: var(--r-card); overflow: hidden; }
  .step-block        { border-radius: 0; border-left: 1px solid var(--border); border-right: 1px solid var(--border); }
  .step-block:first-child { border-radius: var(--r-card) var(--r-card) 0 0; border-top: 1px solid var(--border); }
  .step-block:last-child  { border-radius: 0 0 var(--r-card) var(--r-card); border-bottom: 1px solid var(--border); }
  .step-block:not(:first-child) { border-top: none; border-left: 1px solid var(--border); }
}

/* ── Móvil (≤ 768px) ── */
@media (max-width: 768px) {
  /* Nav */
  nav          { padding: 16px 20px; }
  nav.scrolled { padding: 12px 20px; }
  .nav-toggle  { display: flex; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; list-style: none;
    background: oklch(0.11 0.015 250 / 0.97);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    padding: 8px 0 16px;
    box-shadow: 0 8px 32px oklch(0.05 0.012 250 / 0.5);
  }
  .nav-links a { display: block; padding: 13px 24px; font-size: 16px; font-weight: 500; text-align: left; }
  .nav-links li:last-child { padding: 8px 20px 0; }
  .nav-links li:last-child .nav-cta { display: flex; justify-content: center; width: 100%; }
  nav.nav-open .nav-links { display: flex; }

  /* Layout base */
  .container { padding: 0 20px; }

  /* Hero — reescritura completa para móvil */
  #hero         { min-height: auto; padding: 88px 20px 60px; }
  .hero-inner   { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0; }
  .hero-visual  { display: none; }
  .hero-badge   { margin-bottom: 20px; letter-spacing: 1px; }
  .hero-heading { width: 100%; margin-bottom: 18px; overflow: hidden; }
  .h1-solid, .h1-outline {
    display: block; width: 100%; overflow: hidden;
    font-size: min(7.8vw, 54px);
    letter-spacing: -0.5px; line-height: 1.02;
  }
  .h1-accent    { font-size: clamp(18px, 4.8vw, 32px); }
  .hero-desc    { font-size: 15px; margin-bottom: 28px; }

  /* Espaciado de secciones — reducido para móvil */
  #servicios   { padding: 80px 0 70px; }
  #metodologia { padding: 60px 0 80px; }
  #sobre-mi    { padding: 70px 0; }
  #planes      { padding: 60px 0 70px; }
  #testimonios { padding: 50px 0 60px; }
  #contacto    { padding: 50px 0 80px; }

  /* Títulos de sección */
  .section-title { letter-spacing: -1px; }

  /* Servicios */
  .svc-header  { flex-direction: column; gap: 4px; }
  .svc-num-big { font-size: 52px; opacity: 0.08; }
  .svc-card    { padding: 28px 22px; }
  .svc-name    { font-size: 20px; }

  /* Steps */
  .step-block  { padding: 28px 22px; }
  .step-n      { font-size: 40px; margin-bottom: 14px; }

  /* About */
  .about-photo-wrap { height: 210px; }

  /* Planes */
  .plan-card   { padding: 26px 20px; }
  .plan-amt    { font-size: 44px; }

  /* Testimonios — columna única */
  .testi-grid  { grid-template-columns: 1fr; }

  /* CTA */
  .cta-block   { padding: 50px 24px; }
  .cta-heading { font-size: clamp(22px, 6vw, 46px); letter-spacing: -0.5px; line-height: 1.15; }
  .cta-actions { flex-direction: column; align-items: center; }
  .cta-actions .btn-primary,
  .cta-actions .btn-ghost  { width: 100%; max-width: 300px; justify-content: center; }

  /* Footer */
  footer { flex-direction: column; gap: 10px; text-align: center; padding: 24px; }
}

/* ── Móvil pequeño (≤ 480px) ── */
@media (max-width: 480px) {
  /* El heading ya usa min(9vw, 60px) desde el breakpoint 768px.
     Aquí solo ajustamos detalles finos para pantallas muy pequeñas. */
  .h1-accent   { font-size: clamp(18px, 5vw, 28px); }
  .hero-badge  { font-size: 9px; letter-spacing: 0.8px; padding: 5px 13px; margin-bottom: 16px; }
  .hero-heading { margin-bottom: 14px; }
  .hero-desc   { font-size: 14px; margin-bottom: 22px; }

  /* Botones hero — ancho completo en pantallas muy pequeñas */
  .hero-actions               { flex-direction: column; width: 100%; }
  .hero-actions .btn-primary,
  .hero-actions .btn-ghost    { width: 100%; justify-content: center; }

  /* Cards más compactas */
  .svc-card    { padding: 22px 18px; }
  .step-block  { padding: 22px 18px; }
  .testi-card  { padding: 20px 16px; }
  .plan-card   { padding: 22px 18px; }
  .plan-amt    { font-size: 40px; }
  .cta-block   { padding: 40px 20px; }
  .hc-num      { font-size: 32px; }
}

/* ── Sin hover (touch) — desactiva tilt 3D ── */
@media (hover: none) {
  [data-tilt] { transform: none !important; transition: none !important; }
}

/* ── Prefers-reduced-motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
