/* =========================================================
   KRAKEN — Hoja de estilos
   Estética oscura, potente y premium.
   ========================================================= */

:root {
  --black: #000000;
  --bg: #050505;
  --bg-elev: #0d0d0d;
  --bg-card: #111111;
  --border: #1f1f1f;
  --border-strong: #2e2e2e;
  --white: #ffffff;
  --gray-100: #e7e7e7;
  --gray-300: #b5b5b5;
  --gray-500: #7a7a7a;
  --gray-700: #3d3d3d;

  --font-display: "Bebas Neue", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --container: 1180px;
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

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

/* ---------- Tipografía ---------- */
.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  color: var(--white);
  text-transform: uppercase;
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 14px;
}

.section-sub {
  color: var(--gray-300);
  max-width: 560px;
  margin-top: 18px;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 15px 34px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    color 0.25s var(--ease), border-color 0.25s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--white);
  color: var(--black);
}
.btn-primary:hover { background: var(--gray-100); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--border-strong);
}
.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

/* =========================================================
   BOTONES DE PAGO CON IDENTIDAD DE MARCA (reutilizables)
   Uso: <a class="btn btn-mercadopago plan-btn" ...>
          <img class="pay-icon" src=".../img/pay-mercadopago.png" alt="" /> Mercado Pago
        </a>
   (ídem .btn-paypal con img/pay-paypal.png y texto "PayPal")
   ========================================================= */
.btn-mercadopago,
.btn-paypal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-color: transparent;
  text-transform: none;
  letter-spacing: 0.02em;
}
.btn-mercadopago .pay-icon,
.btn-paypal .pay-icon {
  height: 20px;
  width: auto;
  flex-shrink: 0;
}
.btn-mercadopago {
  background: #ffe600;            /* amarillo oficial Mercado Pago */
  color: #2d3277;                 /* azul Mercado Pago para el texto */
}
.btn-mercadopago:hover { background: #f2da00; }
.btn-paypal {
  background: #003087;            /* azul oficial PayPal */
  color: #ffffff;
}
.btn-paypal:hover { background: #00256b; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease),
    backdrop-filter 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.7rem;
  letter-spacing: 0.14em;
  color: var(--white);
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.brand-sub {
  font-size: 0.72rem;
  letter-spacing: 0.42em;
  color: var(--gray-500);
}

.nav { display: flex; gap: 34px; }
.nav-link {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray-300);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1.5px;
  background: var(--white);
  transition: width 0.28s var(--ease);
}
.nav-link:hover { color: var(--white); }
.nav-link:hover::after { width: 100%; }

/* ---------- Desplegable "Herramientas" ---------- */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.nav-caret {
  width: 10px;
  height: 7px;
  flex-shrink: 0;
  color: currentColor;
  transition: transform 0.25s var(--ease);
}
.nav-dropdown.open .nav-caret { transform: rotate(180deg); }

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 230px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
  z-index: 200;
}
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-link {
  display: block;
  padding: 11px 14px;
  border-radius: 7px;
  color: var(--gray-300);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.nav-dropdown-link:hover { background: var(--bg-elev); color: var(--white); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
}
.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 0 90px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.08), transparent 55%),
    radial-gradient(circle at 80% 100%, rgba(255, 255, 255, 0.05), transparent 60%),
    var(--black);
  z-index: 0;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.22;
  mask-image: radial-gradient(circle at 30% 40%, black, transparent 75%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 50px;
}
.hero-text { padding-left: clamp(0px, 3vw, 44px); }
.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.2rem, 9vw, 7rem);
  line-height: 0.88;
  letter-spacing: 0.02em;
  color: var(--white);
  text-transform: uppercase;
}
.hero-title span { color: var(--gray-500); }
.hero-tagline {
  margin: 24px 0 36px;
  max-width: 480px;
  color: var(--gray-300);
  font-size: 1.05rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero-cta { font-size: 0.95rem; padding: 16px 36px; }

/* Botón "Instalar app" — debajo de los CTA del hero, acento verde apagado */
.hero-app-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 13px 24px;
  border-radius: 999px;
  background: #14161a;
  border: 1.5px solid #2f7d63;
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease),
    transform 0.25s var(--ease);
}
.hero-app-cta svg { width: 17px; height: 17px; color: #4fb391; }
.hero-app-cta:hover {
  background: #191c21;
  border-color: #46a883;
  transform: translateY(-2px);
}
.hero-app-hint {
  margin-top: 10px;
  max-width: 340px;
  color: var(--gray-500);
  font-size: 0.72rem;
  line-height: 1.5;
}

.hero-media {
  position: relative;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: grayscale(1) contrast(1.08) brightness(0.92);
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(5, 5, 5, 0.55) 100%);
}

.scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid var(--border-strong);
  border-radius: 999px;
  z-index: 1;
}
.scroll-hint span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  background: var(--white);
  border-radius: 2px;
  animation: scrollDot 1.8s infinite;
}
@keyframes scrollDot {
  0% { opacity: 0; transform: translateY(0); }
  40% { opacity: 1; }
  80% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 0; }
}

/* =========================================================
   SECCIONES GENERALES
   ========================================================= */
.section {
  padding: clamp(80px, 12vw, 140px) 0;
  border-top: 1px solid var(--border);
}
.section-head { margin-bottom: 60px; }

/* =========================================================
   PLANES
   ========================================================= */
.plan-group-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin: 0 0 22px;
  scroll-margin-top: 100px;
}
.plan-grid + .plan-group-title { margin-top: 56px; }

.plan-grid {
  display: grid;
  gap: 24px;
}
.plan-grid--auto { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.plan-grid--mentoria {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  max-width: 760px;
}

.plan-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease),
    background 0.3s var(--ease);
}
.plan-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  background: #151515;
}
.plan-card--featured {
  border-color: var(--white);
  background: #161616;
}
.plan-card--vip { border-color: var(--border-strong); background: #131313; }
.plan-badge {
  position: absolute;
  top: -12px;
  left: 28px;
  background: var(--white);
  color: var(--black);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}
.plan-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.8rem;
  letter-spacing: 0.04em;
  color: var(--white);
  text-transform: uppercase;
  line-height: 1;
}
.plan-pain {
  color: var(--white);
  font-style: italic;
  font-size: 0.95rem;
  margin-top: 12px;
}
.plan-desc {
  color: var(--gray-300);
  font-size: 0.92rem;
  margin-top: 12px;
}
.plan-price {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--white);
  letter-spacing: 0.02em;
  margin: 24px 0 0;
  line-height: 1;
}
.plan-price .currency { font-size: 1.3rem; vertical-align: super; margin-right: 2px; }
.plan-price .per {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--gray-500);
  letter-spacing: 0.04em;
  margin-left: 6px;
  text-transform: uppercase;
}
.plan-price-sub {
  color: var(--gray-300);
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 6px;
}

.plan-features {
  list-style: none;
  margin: 22px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  flex-grow: 1;
}
.plan-features li {
  position: relative;
  padding-left: 24px;
  font-size: 0.9rem;
  color: var(--gray-300);
}
.plan-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  background: var(--white);
  border-radius: 2px;
}
.plan-btn { width: 100%; text-align: center; }

.plan-pay-hint {
  color: var(--gray-500);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.plan-pay-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plan-note {
  margin-top: 26px;
  color: var(--gray-500);
  font-size: 0.82rem;
}

/* =========================================================
   SOBRE MÍ
   ========================================================= */
.about-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: center;
}
.about-media {
  aspect-ratio: 4 / 5;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
}
.about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  filter: grayscale(1) contrast(1.06) brightness(0.95);
}
.about-text p { margin-bottom: 16px; color: var(--gray-300); }
.about-text .btn { margin-top: 14px; }
.about-text em { color: var(--white); font-style: italic; }

/* =========================================================
   CONTACTO
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 18px;
}
.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 34px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--gray-300);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: transform 0.28s var(--ease), border-color 0.28s var(--ease),
    color 0.28s var(--ease), background 0.28s var(--ease);
}
.contact-item svg {
  width: 32px;
  height: 32px;
  fill: var(--gray-300);
  transition: fill 0.28s var(--ease), transform 0.28s var(--ease);
}
.contact-item:hover {
  transform: translateY(-6px);
  border-color: var(--white);
  color: var(--white);
  background: #151515;
}
.contact-item:hover svg { fill: var(--white); transform: scale(1.1); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  background: var(--black);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.footer-logo { height: 34px; width: auto; opacity: 0.6; }
.site-footer p { color: var(--gray-500); font-size: 0.82rem; }

/* =========================================================
   BOTÓN FLOTANTE DE WHATSAPP
   ========================================================= */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
.wa-float:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
}
@media (max-width: 480px) {
  .wa-float { width: 50px; height: 50px; right: 14px; bottom: 14px; }
  .wa-float svg { width: 27px; height: 27px; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-float { transition: none; }
}

/* =========================================================
   PÁGINA DE PRODUCTO (planes/*.html)
   ========================================================= */
.breadcrumb-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gray-500);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s var(--ease);
}
.breadcrumb-back:hover { color: var(--white); }

.product-eyebrow { margin-top: 18px; }
.product-title { font-size: clamp(2.6rem, 6vw, 4.2rem); }
.hero-text .plan-pain {
  font-size: 1.1rem;
  margin-top: 16px;
}
.section--tight { padding-top: 0; }
.pay-card { max-width: 520px; margin-inline: auto; }
.product-desc {
  color: var(--gray-300);
  max-width: 480px;
  margin-top: 16px;
  font-size: 1.02rem;
}
.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 22px 0 30px;
}
.product-price-row .plan-price { margin: 0; }

.product-body {
  max-width: 720px;
}
.product-body h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2rem;
  letter-spacing: 0.03em;
  color: var(--white);
  text-transform: uppercase;
  margin: 0 0 18px;
}
.product-body p { color: var(--gray-300); margin-bottom: 16px; }
.product-body p:last-child { margin-bottom: 0; }

.includes-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0;
}
.includes-list li {
  position: relative;
  padding-left: 30px;
  color: var(--gray-300);
}
.includes-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 10px;
  height: 10px;
  background: var(--white);
  border-radius: 2px;
}
.includes-list strong { color: var(--white); display: block; margin-bottom: 2px; }

.product-video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-video iframe,
.product-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.product-video-placeholder {
  text-align: center;
  color: var(--gray-500);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0 24px;
}
.product-video-placeholder span {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  color: var(--gray-300);
  text-transform: none;
  margin-bottom: 8px;
}

.pay-card {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 36px 32px;
  text-align: center;
}
.pay-card .plan-price {
  text-align: center;
  margin: 0 0 24px;
}
.pay-card .plan-pay-options {
  max-width: 360px;
  margin: 0 auto;
}
.pay-card .plan-pay-hint { text-align: center; }

/* =========================================================
   LINKTREE (link/index.html)
   ========================================================= */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.linktree {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Foto de fondo, levemente desenfocada y oscurecida (mismo lenguaje que el
   hero/Sobre Mí del sitio en mobile, pero con blur). inset negativo + blur
   evita que se note el borde recortado de la imagen. */
.linktree::before {
  content: "";
  position: fixed;
  inset: -40px;
  background: url("../img/link-bg.jpg") center 18% / cover no-repeat;
  filter: blur(6px) grayscale(1) brightness(0.55);
  z-index: 0;
}
.linktree::after {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 5, 5, 0.55) 0%, rgba(5, 5, 5, 0.75) 100%);
  z-index: 0;
}

.link-page {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: 96px 24px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.link-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 3.6rem;
  letter-spacing: 0.1em;
  color: var(--white);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
  line-height: 1;
}
.link-tagline {
  color: var(--gray-300);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 10px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

.link-socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}
.link-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.link-social svg { width: 20px; height: 20px; fill: var(--gray-300); transition: fill 0.2s var(--ease); }
.link-social:hover {
  background: #151515;
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.link-social:hover svg { fill: var(--white); }

.link-buttons {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 32px;
}
.link-card {
  display: block;
  width: 100%;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.link-card:hover {
  background: #171717;
  border-color: var(--white);
  transform: translateY(-2px);
}
.link-card--primary {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}
.link-card--primary:hover { background: var(--gray-100); }
.link-card--app {
  background: #14161a;
  border-color: #2f7d63;
}
.link-card--app:hover { background: #191c21; border-color: #46a883; }

.link-footer {
  margin-top: 40px;
  color: var(--gray-700);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Aviso "abrí esto en Chrome/Safari" para navegadores in-app */
.browser-hint[hidden] { display: none; } /* gana por especificidad a display:flex de abajo */
.browser-hint {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 44px 12px 16px;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border-strong);
}
.browser-hint p {
  flex: 1;
  color: var(--gray-100);
  font-size: 0.78rem;
  line-height: 1.4;
}
.browser-hint-action {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--white);
  color: var(--black);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.browser-hint-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  border: none;
  color: var(--gray-500);
  font-size: 1.3rem;
  line-height: 1;
  padding: 4px;
}
.browser-hint-close:hover { color: var(--white); }

@media (max-width: 480px) {
  .link-page { padding: 88px 20px 32px; }
  .link-name { font-size: 2.9rem; }
}

/* =========================================================
   ANIMACIONES DE SCROLL
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-hint span { animation: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   CALCULADORA DE CALORÍAS (herramientas/*.html)
   ========================================================= */
.tool-intro { padding-top: 150px; padding-bottom: 20px; }
.tool-form { padding-top: 10px; }
.calc-card {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 40px 36px;
  max-width: 560px;
  margin: 0 auto;
}
.calc-field { margin-bottom: 20px; }
.calc-field label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 8px;
}
.calc-field input,
.calc-field select {
  width: 100%;
  padding: 13px 16px;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s var(--ease);
}
.calc-field input::placeholder { color: var(--gray-500); }
.calc-field input:focus,
.calc-field select:focus { outline: none; border-color: var(--white); }
.calc-field select { cursor: pointer; }
.calc-submit { width: 100%; margin-top: 6px; }

.calc-result {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
  display: none;
}
.calc-result.visible { display: block; }
.calc-kcal { text-align: center; }
.calc-kcal .num {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 3.2rem;
  color: var(--white);
  line-height: 1;
}
.calc-kcal .unit {
  font-size: 1rem;
  color: var(--gray-500);
  margin-left: 6px;
}
.calc-kcal p {
  color: var(--gray-300);
  font-size: 0.88rem;
  margin-top: 8px;
}

.macro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 26px;
}
.macro-item {
  text-align: center;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 8px;
}
.macro-item .num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--white);
}
.macro-item .lbl {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-top: 4px;
}

.calc-cta {
  margin-top: 28px;
  padding: 22px 20px;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  text-align: center;
}
.calc-cta p {
  color: var(--gray-300);
  font-size: 0.92rem;
  margin-bottom: 16px;
}
.calc-note {
  color: var(--gray-500);
  font-size: 0.78rem;
  text-align: center;
  margin-top: 18px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  /* --- HERO mobile: foto a pantalla completa, detrás del texto --- */
  .hero {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: 120px 0 72px;
  }
  .hero-bg { display: none; }
  .hero-inner {
    position: static;   /* deja que .hero-media se posicione contra .hero */
    display: block;
  }
  .hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    margin: 0;
    width: auto;
    max-width: none;
    aspect-ratio: auto;
    border: 0;
    border-radius: 0;
  }
  .hero-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 16%;
    filter: grayscale(1) contrast(1.05) brightness(0.9);
  }
  .hero-media::after {
    display: block;
    background: linear-gradient(
      180deg,
      rgba(5, 5, 5, 0.72) 0%,
      rgba(5, 5, 5, 0.48) 40%,
      rgba(5, 5, 5, 0.96) 100%
    );
  }
  .hero-text {
    position: relative;
    z-index: 1;
    padding-left: 0;
    text-align: center;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
  }
  .hero-title span { color: var(--gray-300); }
  .hero-tagline { margin-inline: auto; color: var(--gray-100); }
  .hero-actions { justify-content: center; flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 320px; text-align: center; }
  .hero-app-cta {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 320px;
    margin: 16px auto 0;
  }
  .hero-app-hint { margin-inline: auto; }
  .scroll-hint { display: none; }

  /* --- Sobre Mí: foto de fondo completa, detrás del texto (igual que el hero) --- */
  .section.about {
    position: relative;
    overflow: hidden;
    min-height: 640px;
    display: flex;
    align-items: center;
  }
  .about-inner { display: block; }
  .about-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    margin: 0;
    max-width: none;
    width: auto;
    aspect-ratio: auto;
    border: 0;
    border-radius: 0;
  }
  .about-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 12%;
  }
  .about-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      180deg,
      rgba(5, 5, 5, 0.55) 0%,
      rgba(5, 5, 5, 0.35) 35%,
      rgba(5, 5, 5, 0.95) 100%
    );
  }
  .about-text {
    position: relative;
    z-index: 1;
    text-align: center;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
  }
  .about-text p { color: var(--gray-100); }
  .plan-grid--mentoria { max-width: none; }
}

@media (max-width: 760px) {
  .nav {
    position: fixed;
    inset: 74px 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: rgba(5, 5, 5, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 10px 0 20px;
    transform: translateY(-140%);
    transition: transform 0.4s var(--ease);
  }
  .nav.open { transform: translateY(0); }
  .nav-link {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    width: 100%;
  }
  .nav-link::after { display: none; }
  .nav-toggle { display: flex; }

  /* El desplegable pasa a ser un acordeón dentro del menú mobile */
  .nav-dropdown { width: 100%; }
  .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
  }
  .nav-dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s var(--ease);
  }
  .nav-dropdown.open .nav-dropdown-menu { max-height: 220px; }
  .nav-dropdown-link {
    padding: 14px 24px 14px 36px;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .btn { padding: 14px 26px; }
  .modal-box { padding: 20px 16px; }
}
