:root {
  /* Tono oscuro dedicado de la app (CLAUDE.md §7.2: "grafito cálido"), no una
     inversión de grises — es el único tema del sitio, a juego con la app. */
  --bg: #17140f;
  --bg-alt: #1e1a15;
  --surface: #211c17;
  --surface-border: rgba(242, 239, 233, 0.1);
  --text: #f2efe9;
  --text-soft: rgba(242, 239, 233, 0.62);
  --brand: #e08a46;
  --brand-dark: #7a3b12;
  --accent: #c1613f;
  --gold: #b08a3e;
  --blue: #3e6e8c;
  --success: #7fa86b;
  --danger: #a6402d;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
}

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

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 10px;
  display: block;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 38px);
}

.section-head p {
  color: var(--text-soft);
  font-size: 17px;
}

section {
  padding: 96px 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 15px 28px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(160deg, #e08a46, var(--brand-dark));
  color: #fff;
  box-shadow: 0 12px 24px rgba(193, 104, 46, 0.35);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--surface-border);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--surface-border);
}

.btn-disabled {
  opacity: 0.5;
  pointer-events: none;
}

.btn svg {
  width: 18px;
  height: 18px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--surface-border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  height: 34px;
  width: auto;
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-menu a:not(.btn) {
  text-decoration: none;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--text-soft);
}

.nav-menu a:not(.btn):hover {
  color: var(--text);
}

.nav-menu-cta {
  display: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  position: relative;
  transition: 0.2s;
}

.nav-toggle span::before {
  position: absolute;
  top: -7px;
}

.nav-toggle span::after {
  position: absolute;
  top: 7px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 40px;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(34px, 5vw, 54px);
}

.hero .lede {
  font-size: 18px;
  color: var(--text-soft);
  max-width: 480px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-badges {
  display: flex;
  gap: 22px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.hero-badge {
  font-size: 13px;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: -10% -10% 0;
  background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 65%);
  z-index: 0;
}

.phone-frame {
  position: relative;
  z-index: 1;
  width: min(300px, 78vw);
  border-radius: 42px;
  overflow: hidden;
  box-shadow: var(--shadow), 0 0 0 8px #1b1b1b, 0 0 0 9px #333, 0 0 0 10px rgba(255, 255, 255, 0.07);
  transform: rotate(-2deg);
}

.phone-frame img {
  width: 100%;
  display: block;
}

.phone-frame-secondary {
  position: absolute;
  z-index: 0;
  width: min(220px, 58vw);
  right: -6%;
  bottom: -6%;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--shadow), 0 0 0 7px #1b1b1b, 0 0 0 8px #333, 0 0 0 9px rgba(255, 255, 255, 0.07);
  transform: rotate(6deg);
  opacity: 0.94;
}

.phone-frame-secondary img {
  width: 100%;
  display: block;
}

/* ---------- Qué es Meditu ---------- */
.about {
  background: var(--bg-alt);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.about-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 26px;
}

.about-card .num {
  font-family: "Fraunces", serif;
  font-size: 26px;
  color: var(--brand);
  margin-bottom: 8px;
}

.about-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.about-card p {
  font-size: 14.5px;
  color: var(--text-soft);
  margin: 0;
}

/* ---------- Screenshot gallery ---------- */
.gallery-scroller {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 8px 4px 24px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.gallery-scroller::-webkit-scrollbar {
  height: 8px;
}

.gallery-scroller::-webkit-scrollbar-thumb {
  background: var(--surface-border);
  border-radius: 999px;
}

.gallery-item {
  scroll-snap-align: start;
  flex: 0 0 auto;
  width: 220px;
  text-align: center;
}

.gallery-item .shot {
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow), 0 0 0 6px #1b1b1b, 0 0 0 7px #333, 0 0 0 8px rgba(255, 255, 255, 0.07);
  margin-bottom: 14px;
}

.gallery-item .shot img {
  width: 100%;
  display: block;
}

.gallery-item span {
  font-weight: 700;
  font-size: 14px;
}

/* ---------- Features ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.feature-card::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--icon-ring, rgba(193, 104, 46, 0.12));
  filter: blur(2px);
}

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  color: #fff;
  background: var(--icon-bg, linear-gradient(160deg, #e08a46, #a8551f));
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.18);
}

.feature-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.feature-card p {
  font-size: 14.5px;
  color: var(--text-soft);
  margin: 0;
  position: relative;
  z-index: 1;
}

.feature-card .tag {
  display: inline-block;
  margin-top: 12px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--gold), #8c6a2c);
  color: #fff;
  position: relative;
  z-index: 1;
}

/* ---------- Security ---------- */
.security {
  background: var(--bg-alt);
}

.security .container {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.security-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.security-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.security-check {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  margin-top: 2px;
}

.security-list strong {
  display: block;
  font-size: 15px;
  margin-bottom: 2px;
}

.security-list span {
  color: var(--text-soft);
  font-size: 14px;
}

/* ---------- Plans ---------- */
.plans-note {
  text-align: center;
  font-size: 13px;
  color: var(--text-soft);
  max-width: 560px;
  margin: -24px auto 44px;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  align-items: stretch;
}

.plan-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 34px;
  display: flex;
  flex-direction: column;
}

.plan-card.is-premium {
  border-color: var(--brand);
  box-shadow: var(--shadow);
  position: relative;
}

.plan-card.is-premium::before {
  content: "Recomendado";
  position: absolute;
  top: -13px;
  right: 28px;
  background: linear-gradient(120deg, var(--gold), #8c6a2c);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}

.plan-name {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.plan-price {
  font-family: "Fraunces", serif;
  font-size: 34px;
  margin: 8px 0 22px;
}

.plan-price small {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-soft);
}

.plan-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.plan-list li {
  display: flex;
  gap: 10px;
  font-size: 14.5px;
  align-items: flex-start;
}

.plan-list li::before {
  content: "✓";
  color: var(--success);
  font-weight: 800;
  flex-shrink: 0;
}

/* ---------- Download ---------- */
.download {
  background: linear-gradient(160deg, #201a13, #120e0a);
  color: #f2efe9;
  border-radius: var(--radius-lg);
  margin: 0 24px;
  padding: 64px 40px;
  position: relative;
  overflow: hidden;
}

.download::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 138, 70, 0.35), transparent 70%);
}

.download-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.download h2 {
  color: #fff;
  font-size: clamp(26px, 3.6vw, 36px);
}

.download p {
  color: rgba(242, 239, 233, 0.7);
}

.download-meta {
  font-size: 13px;
  color: rgba(242, 239, 233, 0.55);
  margin-top: 14px;
}

.download-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 28px;
  text-align: center;
}

.download-card .btn-primary {
  width: 100%;
}

.download-card .requirement {
  font-size: 12.5px;
  color: rgba(242, 239, 233, 0.55);
  margin-top: 14px;
}

.download-status {
  font-size: 12.5px;
  color: rgba(242, 239, 233, 0.7);
  margin-top: 10px;
}

.store-soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(242, 239, 233, 0.55);
  margin-top: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  padding: 8px 14px;
  border-radius: 999px;
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  padding: 4px 22px;
}

.faq-item summary {
  cursor: pointer;
  padding: 18px 0;
  font-weight: 700;
  font-size: 15.5px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.faq-item summary::after {
  content: "+";
  font-size: 20px;
  color: var(--brand);
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  color: var(--text-soft);
  font-size: 14.5px;
  padding-bottom: 18px;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--surface-border);
  padding: 56px 0 32px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.footer-brand p {
  color: var(--text-soft);
  font-size: 14px;
  max-width: 300px;
}

.footer-cols {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-soft);
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--surface-border);
  font-size: 13px;
  color: var(--text-soft);
}

/* ---------- Legal pages ---------- */
.legal-doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

.legal-doc h1 {
  font-size: 32px;
}

.legal-doc h2 {
  font-size: 20px;
  margin-top: 40px;
}

.legal-doc p,
.legal-doc li {
  color: var(--text-soft);
  font-size: 15px;
}

.legal-notice {
  background: var(--bg-alt);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  font-size: 14px;
  margin-bottom: 32px;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero .container {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
    padding-top: 24px;
  }

  .about-grid,
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .security .container {
    grid-template-columns: 1fr;
  }

  .security .container > div:first-child {
    order: 2;
  }

  .download-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nav-menu {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--surface-border);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 28px;
    gap: 18px;
    display: none;
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu-cta {
    display: inline-flex;
    width: 100%;
  }

  .nav-toggle {
    display: block;
  }

  .nav-actions .btn {
    display: none;
  }

  section {
    padding: 64px 0;
  }

  .about-grid,
  .features-grid,
  .plans-grid {
    grid-template-columns: 1fr;
  }

  .download {
    margin: 0 16px;
    padding: 40px 24px;
  }

  .footer-top {
    flex-direction: column;
  }
}

/* ---------- Página de confirmación de cuenta (cuenta-confirmada.html) ---------- */
.confirm-page {
  min-height: calc(100vh - 76px - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 24px 96px;
}

.confirm-card {
  width: 100%;
  max-width: 520px;
  text-align: center;
  background: var(--bg-alt);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 48px 40px;
}

.confirm-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--success) 18%, transparent);
  color: var(--success);
}

.confirm-icon.is-error {
  background: color-mix(in srgb, var(--danger) 20%, transparent);
  color: var(--danger);
}

.confirm-icon svg {
  width: 30px;
  height: 30px;
}

.confirm-card h1 {
  font-size: clamp(26px, 5vw, 32px);
  margin-bottom: 14px;
}

.confirm-lead {
  color: var(--text-soft);
  font-size: 16px;
  margin-bottom: 32px;
}

.confirm-actions {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.confirm-hint {
  color: var(--text-soft);
  font-size: 13.5px;
  line-height: 1.6;
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid var(--surface-border);
}

@media (max-width: 760px) {
  .confirm-card {
    padding: 40px 24px;
  }
}
