/* ==========================================================================
   Hale — landing page
   Estilo: simple y fino (ref. glapp.io) · tokens de la app (light, sky)
   ========================================================================== */

:root {
  --bg: #FFFFFF;
  --surface: #F6F7F9;
  --border: #E9EBEE;
  --accent: #1E7CB3;
  --accent-tint: #DBEAF7;
  --accent-light: #5FB0DC;
  --positive: #2F8F5B;
  --text: #17181A;
  --text-2: #666D74;
  --text-3: #9AA0A6;
  --radius: 28px;
  --radius-sm: 16px;
  --shadow-soft: 0 2px 8px rgba(28, 28, 30, 0.04), 0 16px 40px rgba(28, 28, 30, 0.06);
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* Reset ------------------------------------------------------------------ */

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 500;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1rem;
}

h1, h2, h3, h4, p, ul, ol, dl, figure { margin: 0; }

img, svg { display: block; max-width: 100%; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

button { font: inherit; }

:focus-visible {
  outline: 3px solid var(--accent-light);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: var(--accent-tint); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Layout ----------------------------------------------------------------- */

.container {
  width: min(100% - 2.5rem, 1020px);
  margin-inline: auto;
}

.section { padding-block: 5rem; }

@media (min-width: 768px) {
  .section { padding-block: 7rem; }
}

.section--alt { border-top: 1px solid var(--border); }
.section--cta { text-align: center; }

/* Statement (cabecera de sección, centrada) ------------------------------- */

.statement {
  text-align: center;
  max-width: 40rem;
  margin-inline: auto;
  margin-bottom: 3.5rem;
}

.statement h2 {
  font-size: clamp(1.875rem, 5vw, 2.875rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.statement p {
  margin-top: 1.1rem;
  color: var(--text-2);
  font-size: 1.0625rem;
}

/* Skip link ---------------------------------------------------------------- */

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0 0 12px 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* Nav ---------------------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}
.brand:hover { text-decoration: none; }

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  flex: none;
}

/* Buttons ------------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.98); }

.btn--primary {
  background: var(--accent);
  color: #fff;
}
.btn--primary:hover { background: #196A9A; }

/* Hero ---------------------------------------------------------------------- */

.hero {
  padding-block: 4.5rem 0;
  text-align: center;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero { padding-block: 6.5rem 0; }
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 4.25rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.hero h1 .accent { color: var(--accent); }

.hero-sub {
  margin-top: 1.35rem;
  font-size: clamp(1.0625rem, 2.5vw, 1.1875rem);
  color: var(--text-2);
  max-width: 33rem;
  margin-inline: auto;
}

.hero-note {
  margin-top: 1.1rem;
  font-size: 0.875rem;
  color: var(--text-3);
}

/* Badges oficiales de las stores -------------------------------------------- */

.store-soon {
  margin-top: 2.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}

.store-badges {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.store-badges--center { margin-top: 2rem; }

/* El SVG oficial de Apple no lleva margen; el PNG oficial de Google Play sí
   (obligatorio en su guía). Se compensa para alinear ambos visualmente. */
.badge-appstore { height: 52px; width: auto; }
.badge-gplay { height: 64px; width: auto; margin: -10px; }

/* Phone mockup --------------------------------------------------------------- */

.phone-wrap {
  display: flex;
  justify-content: center;
  position: relative;
  margin-top: 3.5rem;
}

.phone-wrap::before {
  content: "";
  position: absolute;
  inset: 6% -20% -30% -20%;
  background: radial-gradient(closest-side, var(--accent-tint) 0%, rgba(219, 234, 247, 0) 100%);
  z-index: -1;
}

.phone {
  width: min(310px, 82vw);
  border: 9px solid var(--text);
  border-radius: 46px;
  background: var(--bg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  position: relative;
  text-align: left;
}

.phone--md { width: min(280px, 78vw); }

.phone-notch {
  width: 104px;
  height: 24px;
  background: var(--text);
  border-radius: 999px;
  margin: 10px auto 0;
}

.phone-screen {
  padding: 15px 15px 24px;
  display: grid;
  gap: 11px;
}

.ps-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 4px 2px;
}

.ps-greeting {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.ps-date {
  font-size: 0.6875rem;
  color: var(--text-2);
  font-weight: 600;
}

.ps-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 0.8125rem;
  font-weight: 700;
  flex: none;
}

.ps-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px;
}

.ps-card-title {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 8px;
}

.ps-protein {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ps-ring { flex: none; }

.ps-protein-num {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.ps-protein-num span {
  font-size: 0.8125rem;
  color: var(--text-2);
  font-weight: 600;
}

.ps-protein-label {
  font-size: 0.75rem;
  color: var(--text-2);
  font-weight: 600;
  margin-top: 2px;
}

.ps-protein-hint {
  margin-top: 6px;
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--positive);
  background: rgba(47, 143, 91, 0.1);
  padding: 2px 8px;
  border-radius: 999px;
}

.ps-dose {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ps-dose-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--accent-tint);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex: none;
}

.ps-dose-main {
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
}

.ps-dose-sub {
  font-size: 0.75rem;
  color: var(--text-2);
  font-weight: 600;
}

.ps-dose-badge {
  margin-left: auto;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-tint);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.ps-level-value {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.ps-level-value span {
  font-size: 0.75rem;
  color: var(--text-2);
  font-weight: 600;
}

.ps-curve { margin-top: 8px; width: 100%; height: auto; }

.ps-level-note {
  margin-top: 6px;
  font-size: 0.625rem;
  color: var(--text-3);
  font-weight: 600;
}

/* Chip IA -------------------------------------------------------------------- */

.ai-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-tint);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  line-height: 1.4;
}

.ai-chip svg { width: 12px; height: 12px; flex: none; }

.ai-chip--mini { font-size: 0.625rem; padding: 0.15rem 0.5rem; }
.ai-chip--mini svg { width: 10px; height: 10px; }

.ai-chip--plain {
  color: var(--text-2);
  background: var(--bg);
  border: 1px solid var(--border);
}
.ai-chip--plain svg { display: none; }

/* Tarjetas de función (grandes, estilo glapp) --------------------------------- */

.fcard {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2.5rem 1.75rem;
  display: grid;
  gap: 2.25rem;
  align-items: center;
  justify-items: center;
}

.fcard + .fcard { margin-top: 1.5rem; }

@media (min-width: 860px) {
  .fcard {
    grid-template-columns: 1fr 1fr;
    padding: 3.5rem 3.5rem;
    justify-items: stretch;
  }
  .fcard-visual { justify-self: center; }
  .fcard--flip .fcard-copy { order: 2; }
  .fcard--flip .fcard-visual { order: 1; }
}

.fcard-copy { max-width: 26rem; }

.fcard-copy h3 {
  margin-top: 1.1rem;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.fcard-copy p {
  margin-top: 0.8rem;
  color: var(--text-2);
  font-size: 1.0313rem;
}

/* Línea de privacidad ---------------------------------------------------------- */

.privacy-line {
  margin-top: 3rem;
  text-align: center;
  font-size: 0.9063rem;
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.privacy-line svg { color: var(--accent); flex: none; }

/* Pantalla: Coach IA (chat) ------------------------------------------------- */

.ps-chat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--surface);
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 2px 2px 8px;
  border-bottom: 1px solid var(--border);
}

.chat-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  flex: none;
}
.chat-avatar svg { width: 18px; height: 18px; }

.chat-name { font-size: 0.875rem; font-weight: 700; line-height: 1.2; }
.chat-status { font-size: 0.6875rem; color: var(--text-2); font-weight: 600; }

.chat-bubble {
  font-size: 0.8125rem;
  line-height: 1.4;
  padding: 9px 12px;
  border-radius: 14px;
  max-width: 90%;
}

.chat-bubble--user {
  align-self: flex-end;
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 5px;
}

.chat-bubble--coach {
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text);
  border-bottom-left-radius: 5px;
}

.chat-bubble strong { font-weight: 700; }

.chat-datacard {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px 9px;
}
.chat-datacard svg { flex: none; }
.chat-datacard small { display: block; font-size: 0.625rem; color: var(--text-2); font-weight: 600; }
.chat-datacard strong { font-size: 0.8125rem; font-weight: 700; }

.chat-input {
  margin-top: auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.75rem;
  color: var(--text-3);
  font-weight: 600;
}

/* Pantalla: Foto → proteína ------------------------------------------------- */

.ps-photo { display: flex; flex-direction: column; gap: 10px; }

.photo-shot { position: relative; border-radius: 12px; overflow: hidden; }
.photo-shot svg { display: block; width: 100%; height: auto; }

.photo-corner {
  position: absolute;
  width: 15px;
  height: 15px;
  border: 2.5px solid #fff;
}
.photo-corner--tl { top: 8px; left: 8px; border-right: 0; border-bottom: 0; border-top-left-radius: 4px; }
.photo-corner--tr { top: 8px; right: 8px; border-left: 0; border-bottom: 0; border-top-right-radius: 4px; }
.photo-corner--bl { bottom: 8px; left: 8px; border-right: 0; border-top: 0; border-bottom-left-radius: 4px; }
.photo-corner--br { bottom: 8px; right: 8px; border-left: 0; border-top: 0; border-bottom-right-radius: 4px; }

.photo-analyzing {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-2);
  font-weight: 600;
}

.photo-result {
  background: var(--accent-tint);
  border-radius: 14px;
  padding: 12px 14px;
  text-align: center;
}
.photo-result__num { font-size: 1.5rem; font-weight: 700; color: var(--accent); letter-spacing: -0.02em; line-height: 1.1; }
.photo-result__label { font-size: 0.75rem; color: var(--text-2); font-weight: 600; }
.photo-result__items { margin-top: 4px; font-size: 0.6875rem; color: var(--text-3); font-weight: 600; }

/* Pantalla: Tendencias ------------------------------------------------------ */

.ps-trend { display: grid; gap: 10px; }
.trend-chart { width: 100%; height: auto; }

.trend-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.trend-tile { background: var(--surface); border-radius: 10px; padding: 8px 4px; text-align: center; }
.trend-tile strong { display: block; font-size: 0.875rem; font-weight: 700; letter-spacing: -0.01em; }
.trend-tile small { font-size: 0.625rem; color: var(--text-2); font-weight: 600; }

/* Pricing ----------------------------------------------------------------------------- */

.pricing-card {
  max-width: 460px;
  margin-inline: auto;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2.5rem 1.75rem;
  text-align: center;
}

@media (min-width: 640px) {
  .pricing-card { padding: 2.75rem 2.5rem; }
}

.pricing-badge {
  display: inline-block;
  background: var(--accent-tint);
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.pricing-card h3 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.price-options {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.75rem;
  text-align: left;
}

.price-option {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  background: var(--bg);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
}

.price-option--featured { border-color: var(--accent); }

.price-name {
  font-weight: 700;
  font-size: 0.9375rem;
}

.price-name small {
  display: block;
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--text-2);
}

.price-amount {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.price-amount span {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-2);
}

.pricing-features {
  margin-top: 1.5rem;
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.6rem;
  text-align: left;
}

.pricing-features li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.9375rem;
  color: var(--text-2);
}

.pricing-features svg {
  flex: none;
  color: var(--positive);
  margin-top: 3px;
}

.pricing-fine {
  margin-top: 1.5rem;
  font-size: 0.8125rem;
  color: var(--text-3);
}

/* FAQ ------------------------------------------------------------------------------------ */

.faq-list {
  max-width: 680px;
  margin-inline: auto;
  display: grid;
  gap: 0.85rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--bg);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 1.35rem;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 1.375rem;
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
  flex: none;
  transition: transform 0.15s ease;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item[open] summary { border-bottom: 1px solid var(--border); }

.faq-body {
  padding: 1rem 1.35rem 1.25rem;
  color: var(--text-2);
  font-size: 0.9375rem;
}

.faq-body p + p { margin-top: 0.6rem; }

/* Footer ---------------------------------------------------------------------------------------- */

.footer {
  border-top: 1px solid var(--border);
  padding-block: 3rem;
  font-size: 0.875rem;
  color: var(--text-2);
}

.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .footer-grid {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: var(--text-2);
  font-weight: 600;
}
.footer-links a:hover { color: var(--accent); }

.footer-disclaimer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--text-3);
  max-width: 56rem;
}

/* Legal pages -------------------------------------------------------------------------------------- */

.legal {
  padding-block: 3.5rem 5rem;
}

.legal-inner {
  max-width: 720px;
  margin-inline: auto;
}

.legal h1 {
  font-size: clamp(1.875rem, 5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.legal-updated {
  margin-top: 0.75rem;
  color: var(--text-2);
  font-size: 0.9375rem;
}

.legal h2 {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-top: 2.75rem;
  margin-bottom: 0.75rem;
}

.legal h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

.legal p, .legal li {
  color: var(--text-2);
  font-size: 1rem;
}

.legal p + p { margin-top: 0.85rem; }

.legal ul, .legal ol {
  margin-top: 0.85rem;
  padding-left: 1.35rem;
  display: grid;
  gap: 0.5rem;
}

.legal strong { color: var(--text); }

.legal-summary {
  margin-top: 2rem;
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 1.5rem 1.5rem;
}

.legal-summary h2 {
  margin-top: 0;
  font-size: 1.0625rem;
}

.legal-summary ul { margin-top: 0.75rem; }

.notice-medical {
  margin-top: 1.5rem;
  border: 1.5px solid var(--accent);
  background: var(--accent-tint);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
}

.notice-medical h2 {
  margin-top: 0;
  color: var(--accent);
  font-size: 1.125rem;
}

.notice-medical p { color: var(--text); }

.placeholder {
  background: #FFF3CD;
  border: 1px dashed #B58900;
  border-radius: 6px;
  padding: 0.05rem 0.4rem;
  color: #7A5C00;
  font-weight: 700;
  white-space: nowrap;
}
