/* =========================================================
   Tempta — Landing
   Layout: página blanca, contenido centrado a 1200px;
   bandas de color solo para "Cómo funciona" (crema),
   Tempta Studio (ámbar) y el cierre (tarjeta carbón).
   ========================================================= */

@font-face {
  font-family: "Outfit";
  src: url("../assets/fonts/outfit-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Color */
  --white: #FFFFFF;
  --ink: #121214;          /* texto principal, fondos oscuros */
  --amber: #FFB020;        /* símbolo, botones principales */
  --amber-hover: #FFC24D;
  --amber-text: #8A5A00;   /* ámbar oscuro para texto sobre blanco */
  --soft: #FFF8EC;         /* bandas suaves */
  --line: #ECE4D8;         /* bordes */
  --muted: #5F5A54;        /* texto secundario */
  --chip: #F1EBE1;
  --on-ink: #FFF8EC;
  --on-ink-muted: #D8D0C3;

  /* Tipografía */
  --font-display: "Outfit", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Espaciado y forma */
  --radius: 20px;
  --radius-lg: 28px;
  --gutter: 24px;
  --shadow: 0 1px 2px rgba(18, 18, 20, .04), 0 8px 24px rgba(18, 18, 20, .06);
  --shadow-hover: 0 2px 4px rgba(18, 18, 20, .05), 0 16px 36px rgba(18, 18, 20, .10);
  --ease: cubic-bezier(.2, .7, .2, 1);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
img { display: block; height: auto; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 10px; }
.nowrap { white-space: nowrap; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--on-ink); padding: 10px 16px; border-radius: 10px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.stack { display: flex; flex-direction: column; gap: 40px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px; border-radius: 14px;
  font-family: var(--font-body); font-weight: 600; font-size: 17px; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s, box-shadow .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-amber { background: var(--amber); color: var(--ink); box-shadow: 0 6px 18px rgba(255, 176, 32, .35); }
.btn-amber:hover { background: var(--amber-hover); box-shadow: 0 10px 26px rgba(255, 176, 32, .45); }
.btn-ink { background: var(--ink); color: var(--on-ink); }
.btn-ink:hover { background: #26262A; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--on-ink); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; border-radius: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px rgba(18, 18, 20, .05); }
.nav { display: flex; align-items: center; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; margin-right: auto; }
.brand img { width: 152px; }
.nav-actions { display: flex; align-items: center; gap: 6px; }
.nav-link { text-decoration: none; font-weight: 500; font-size: 15px; padding: 12px; border-radius: 10px; }
.nav-link:hover { background: var(--soft); }

.lang-toggle {
  display: inline-flex; align-items: center; gap: 2px;
  min-height: 44px; padding: 0 12px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--white); color: var(--muted);
  font: 600 14px/1 var(--font-body); cursor: pointer; transition: border-color .2s;
}
.lang-toggle:hover { border-color: var(--ink); }
.lang-opt { padding: 4px 4px; border-radius: 6px; transition: color .2s, background-color .2s; }
.lang-opt.is-active { color: var(--ink); background: var(--soft); }
.lang-sep { color: var(--line); }

/* ---------- Hero ---------- */
.hero { padding-block: 40px 96px; overflow: hidden; }
.hero-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.hero-text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--amber-text); }
.eyebrow-ink { color: var(--ink); }
.hero h1 { font-size: clamp(42px, 6.6vw, 68px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 800; }
.lead { font-size: clamp(18px, 2.1vw, 20px); color: var(--muted); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.note { font-size: 14px; color: var(--muted); }

.phone-stage { flex: 0 0 auto; margin: 0 auto; position: relative; }
.phone-stage::before {
  content: ""; position: absolute; inset: 8% -18% 4% -18%; z-index: -1;
  background: var(--soft); border-radius: 48% 52% 44% 56% / 52% 46% 54% 48%;
}
.phone {
  width: min(300px, 82vw); aspect-ratio: 300 / 610; max-width: 100%;
  border-radius: 44px; background: #1E1E22; padding: 12px;
  box-shadow: 0 30px 60px rgba(18, 18, 20, .22), 0 6px 14px rgba(18, 18, 20, .12);
  animation: float 7s ease-in-out infinite;
}
.screen { height: 100%; border-radius: 33px; background: var(--soft); overflow: hidden; display: flex; flex-direction: column; }
.screen-cover {
  flex: 0 0 28%; background: #8E3F1E; color: var(--on-ink);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; padding: 16px 18px;
}
.screen-name { font-family: var(--font-display); font-weight: 700; font-size: 22px; }
.screen-sub { font-size: 12px; color: #F3DCC8; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 14px 6px; }
.pill { font-size: 11.5px; font-weight: 600; padding: 6px 11px; border-radius: 999px; background: var(--chip); }
.pill.is-on { background: var(--ink); color: var(--on-ink); }
.dishes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 8px 14px 14px; }
.dish { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dish b { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dish small { font-size: 11.5px; color: var(--muted); }
.dish-media {
  position: relative; aspect-ratio: 1 / 1.05; border-radius: 14px; overflow: hidden; background: var(--tone);
  animation: dish-focus 8s var(--ease) infinite; animation-delay: calc(var(--i) * 2s);
}
.dish-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.dish-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .22) 50%, transparent 70%);
  transform: translateX(-100%); animation: sheen 8s ease-in-out infinite; animation-delay: calc(var(--i) * 2s);
}
.play {
  position: absolute; right: 8px; bottom: 10px; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(18, 18, 20, .55);
}
.play::before {
  content: ""; position: absolute; left: 10px; top: 8px;
  border-left: 8px solid var(--on-ink); border-top: 5px solid transparent; border-bottom: 5px solid transparent;
}
.progress { position: absolute; left: 8px; right: 40px; bottom: 21px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .35); overflow: hidden; }
.progress::before {
  content: ""; position: absolute; inset: 0; background: var(--on-ink); transform-origin: left; transform: scaleX(0);
  animation: progress 8s linear infinite; animation-delay: calc(var(--i) * 2s);
}

/* ---------- Secciones ---------- */
.section { padding-block: 96px; }
.section h2, .studio h2 { font-size: clamp(32px, 4.4vw, 46px); line-height: 1.1; letter-spacing: -0.025em; font-weight: 800; }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 780px; }
.sub { font-size: 18px; color: var(--muted); }
.punch { font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 2.8vw, 27px); line-height: 1.3; }
.band-soft { background: var(--soft); }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: #E2D7C6; }
.card h3 { font-size: 21px; font-weight: 700; }
.card p { color: var(--muted); }

.steps { counter-reset: none; }
.step { display: flex; flex-direction: column; gap: 12px; }
.step h3 { font-size: 22px; font-weight: 700; }
.step p { color: var(--muted); }
.step-num {
  width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: var(--amber);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 22px;
}

.features { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.feature { grid-column: span 2; }
.feature:nth-child(4), .feature:nth-child(5) { grid-column: span 3; }
.icon { width: 34px; height: 34px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon .fill-amber { fill: var(--amber); }
.feature:hover .icon { animation: nudge .5s var(--ease); }

/* ---------- Studio ---------- */
.band-amber { background: var(--amber); color: var(--ink); }
.studio { display: flex; flex-wrap: wrap; align-items: center; gap: 32px; padding-block: 84px; }
.studio-text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.studio-text p { font-size: 18px; max-width: 36em; }

/* ---------- Planes ---------- */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 880px; }
.plan {
  border-radius: var(--radius-lg); padding: 32px; display: flex; flex-direction: column; gap: 16px;
  background: var(--white); border: 1px solid var(--line);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.plan-featured { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.plan-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.plan-name { font-size: 24px; font-weight: 800; }
.badge { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.badge-amber { background: var(--amber); color: var(--ink); }
.badge-soft { background: var(--chip); color: var(--ink); }
.price { font-family: var(--font-display); font-weight: 700; font-size: 40px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.price span { font-family: var(--font-body); font-size: 16px; font-weight: 500; color: var(--muted); }
.plan-featured .price span, .plan-featured .plan-desc { color: var(--on-ink-muted); }
.plan-desc { color: var(--muted); }
.plan ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.plan li { position: relative; padding-left: 26px; }
.plan li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--amber) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23121214' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.plan .btn { margin-top: auto; }

/* ---------- Cierre ---------- */
.closing-wrap { padding-block: 24px 96px; }
.closing {
  background: var(--ink); color: var(--on-ink); border-radius: 32px;
  padding: clamp(48px, 8vw, 88px) clamp(24px, 5vw, 64px);
  display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center;
}
.closing img { width: 72px; height: 72px; }
.closing h2 { font-size: clamp(36px, 5.6vw, 60px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 800; }
.hl { color: var(--amber); }
.hl-dark { color: var(--amber-text); font-weight: 600; }
.closing-es { font-size: 20px; font-weight: 600; color: var(--on-ink-muted); }
.closing-es:empty { display: none; }
.closing-sub { font-size: 18px; color: var(--on-ink-muted); max-width: 32em; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); }
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-block: 32px calc(32px + env(safe-area-inset-bottom, 0px)); font-size: 14px; color: var(--muted); }
.foot-brand { display: flex; flex-direction: column; gap: 8px; }
.foot-brand img { width: 128px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px; }
.foot-links a { text-decoration: none; padding: 10px 12px; border-radius: 10px; }
.foot-links a:hover { background: var(--soft); color: var(--ink); }
.foot-meta { display: flex; flex-direction: column; gap: 4px; text-align: right; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; z-index: 60;
  right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 18px 0 14px;
  border-radius: 999px; background: #25D366; color: #0B2E17; text-decoration: none; font-weight: 600; font-size: 15px;
  box-shadow: 0 10px 24px rgba(18, 18, 20, .2);
  transition: transform .2s var(--ease), box-shadow .2s;
}
.wa-float:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(18, 18, 20, .26); }
.wa-float svg { width: 26px; height: 26px; }
.wa-float svg path:first-child { fill: none; stroke: #0B2E17; stroke-width: 1.7; stroke-linejoin: round; }
.wa-float .wa-glyph { fill: #0B2E17; }

/* ---------- Animaciones ---------- */
.anim-in { animation: rise .8s var(--ease) both; animation-delay: calc(var(--d, 0) * 90ms + 80ms); }
.reveal { transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-pending { opacity: 0; transform: translateY(24px); }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes progress { 0% { transform: scaleX(0); } 22% { transform: scaleX(1); } 25%, 100% { transform: scaleX(0); } }
@keyframes dish-focus { 0%, 22% { transform: scale(1.04); } 26%, 100% { transform: scale(1); } }
@keyframes sheen { 0% { transform: translateX(-100%); } 18% { transform: translateX(100%); } 100% { transform: translateX(100%); } }
@keyframes nudge { 0% { transform: none; } 40% { transform: translateY(-3px) rotate(-4deg); } 100% { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal.is-pending { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature, .feature:nth-child(4) { grid-column: span 1; }
  .feature:nth-child(5) { grid-column: span 2; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 > :last-child { grid-column: span 2; }
}
@media (max-width: 720px) {
  :root { --gutter: 18px; }
  .section { padding-block: 72px; }
  .hero { padding-block: 24px 72px; }
  .hero-grid { gap: 48px; }
  .grid-3, .features, .plans { grid-template-columns: minmax(0, 1fr); }
  .grid-3 > :last-child, .feature, .feature:nth-child(4), .feature:nth-child(5) { grid-column: auto; }
  .cta-row .btn { flex: 1 1 100%; }
  .studio { padding-block: 64px; }
  .studio .btn { width: 100%; }
  .foot { flex-direction: column; align-items: flex-start; }
  .foot-meta { text-align: left; }
  .wa-float span { display: none; }
  .wa-float { padding: 0; width: 56px; height: 56px; justify-content: center; }
}
@media (max-width: 480px) {
  .brand img { width: 124px; }
  .nav { gap: 8px; min-height: 64px; }
  .nav-cta { display: none; }
  .nav-link { padding: 12px 8px; }
}
