/* Alma Hermosa — sistema visual "santuario nocturno".
   Mismos valores que DesignSystem/AHTheme.swift en la app iOS. */

:root {
  --ah-background: #131020;
  --ah-surface: #1c1830;
  --ah-surface-elevated: #252040;
  --ah-gold: #e3b34c;
  --ah-violet: #8a63d2;
  --ah-rose: #e58f8a;
  --ah-text-primary: #f5f2e9;
  --ah-text-secondary: #a79dc0;
  --ah-border: rgba(255, 255, 255, 0.08);

  --serif: "New York", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia,
    "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;

  --radius: 18px;
  --measure: 680px;
}

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

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

body {
  margin: 0;
  background: var(--ah-background);
  color: var(--ah-text-primary);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--ah-gold);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

.wrap--narrow {
  max-width: 760px;
}

/* ---------- Encabezado ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(19, 16, 32, 0.93);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--ah-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ah-text-primary);
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: 0.01em;
}

.brand:hover {
  text-decoration: none;
  opacity: 0.9;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 15px;
}

.nav a {
  color: var(--ah-text-secondary);
}

.nav a:hover {
  color: var(--ah-text-primary);
  text-decoration: none;
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 84px;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% 50% auto;
  width: 760px;
  height: 760px;
  transform: translateX(-50%);
  background: radial-gradient(
    circle,
    rgba(138, 99, 210, 0.22) 0%,
    rgba(138, 99, 210, 0.07) 42%,
    transparent 68%
  );
  pointer-events: none;
}

.hero > * {
  position: relative;
}

.star {
  width: 62px;
  height: 62px;
  margin: 0 auto 30px;
  display: block;
}

h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 18px;
}

.hero p {
  max-width: 520px;
  margin: 0 auto;
  color: var(--ah-text-secondary);
  font-size: 19px;
}

.hero__actions {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 34px;
  border-radius: 999px;
  background: var(--ah-gold);
  color: #1a1508;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn svg {
  flex: none;
  margin-top: -2px;
}

.btn:hover {
  text-decoration: none;
  opacity: 0.92;
  transform: translateY(-1px);
}

.hero__note {
  color: var(--ah-text-secondary);
  font-size: 14px;
}

/* ---------- Maqueta de iPhone ---------- */

.phones {
  margin-top: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
}

.phone {
  margin: 0;
  flex: 0 0 auto;
  width: 244px;
  border: 9px solid #2b2542;
  border-radius: 46px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
}

/* El del centro va más grande y ligeramente arriba. */
.phone--center {
  width: 282px;
  border-radius: 52px;
  z-index: 2;
  transform: translateY(-22px);
}

.phone--side {
  opacity: 0.94;
}

@media (max-width: 860px) {
  .phones {
    gap: 16px;
  }

  .phone {
    width: 40vw;
    border-width: 7px;
    border-radius: 32px;
  }

  .phone--center {
    width: 46vw;
    border-radius: 36px;
    transform: translateY(-12px);
  }
}

@media (max-width: 560px) {
  /* En móvil solo se muestra la pantalla principal. */
  .phones {
    margin-top: 46px;
  }

  .phone--side {
    display: none;
  }

  .phone--center {
    width: min(268px, 72vw);
    border-width: 8px;
    border-radius: 42px;
    transform: none;
  }
}

/* ---------- Secciones ---------- */

section {
  padding: 72px 0;
}

/* Franja levemente más clara para alternar secciones. */
.band {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.018),
    rgba(255, 255, 255, 0.018)
  );
  border-top: 1px solid var(--ah-border);
  border-bottom: 1px solid var(--ah-border);
}

/* ---------- Mantras (sección protagonista) ---------- */

.mantras {
  position: relative;
  overflow: hidden;
}

/* Halo dorado tenue: el audio es el corazón del producto. */
.mantras::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 22%;
  width: 620px;
  height: 620px;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle,
    rgba(227, 179, 76, 0.13) 0%,
    rgba(227, 179, 76, 0.04) 45%,
    transparent 70%
  );
  pointer-events: none;
}

.mantras__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 56px;
}

.phone--feature {
  margin: 0;
  width: 100%;
  max-width: 300px;
  justify-self: center;
  border: 10px solid #2b2542;
  border-radius: 50px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6),
    inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.phone--feature img {
  display: block;
  width: 100%;
  height: auto;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--ah-gold);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mantras__copy h2 {
  margin-bottom: 12px;
}

.features {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
}

.features li {
  position: relative;
  padding: 0 0 20px 40px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--ah-border);
  color: var(--ah-text-secondary);
  font-size: 15.5px;
  line-height: 1.6;
}

.features li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

/* Onda de sonido como viñeta, en vez de un punto genérico. */
.features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 22px;
  height: 16px;
  background: var(--ah-gold);
  opacity: 0.85;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 18'%3E%3Cg fill='%23000'%3E%3Crect x='0' y='6' width='2.6' height='6' rx='1.3'/%3E%3Crect x='5' y='2' width='2.6' height='14' rx='1.3'/%3E%3Crect x='10' y='0' width='2.6' height='18' rx='1.3'/%3E%3Crect x='15' y='4' width='2.6' height='10' rx='1.3'/%3E%3Crect x='20' y='6.5' width='2.6' height='5' rx='1.3'/%3E%3C/g%3E%3C/svg%3E")
    no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 18'%3E%3Cg fill='%23000'%3E%3Crect x='0' y='6' width='2.6' height='6' rx='1.3'/%3E%3Crect x='5' y='2' width='2.6' height='14' rx='1.3'/%3E%3Crect x='10' y='0' width='2.6' height='18' rx='1.3'/%3E%3Crect x='15' y='4' width='2.6' height='10' rx='1.3'/%3E%3Crect x='20' y='6.5' width='2.6' height='5' rx='1.3'/%3E%3C/g%3E%3C/svg%3E")
    no-repeat center / contain;
}

.features strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ah-text-primary);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.1rem;
}

@media (max-width: 860px) {
  .mantras__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .mantras__copy {
    order: -1;
  }

  .phone--feature {
    max-width: min(260px, 68vw);
    border-width: 8px;
    border-radius: 42px;
  }

  .mantras::before {
    left: 50%;
  }
}

/* ---------- Dolores ---------- */

.pains {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 12px;
}

.pains li {
  position: relative;
  padding: 18px 22px 18px 52px;
  background: var(--ah-surface);
  border: 1px solid var(--ah-border);
  border-radius: 14px;
  color: var(--ah-text-primary);
  font-family: var(--serif);
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.45;
}

/* Comilla de apertura como marca de "esto lo dices tú". */
.pains li::before {
  content: "“";
  position: absolute;
  left: 20px;
  top: 16px;
  color: var(--ah-gold);
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1;
  opacity: 0.75;
}

.pains__note {
  max-width: var(--measure);
  margin: 34px 0 0;
  color: var(--ah-text-secondary);
}

/* ---------- Dos mañanas ---------- */

.mornings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.morning {
  background: var(--ah-surface);
  border: 1px solid var(--ah-border);
  border-radius: 20px;
  padding: 28px;
}

.morning h3 {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--ah-text-secondary);
}

.morning ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.morning li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 14px;
  color: var(--ah-text-secondary);
  font-size: 16px;
  line-height: 1.55;
}

.morning li:last-child {
  margin-bottom: 0;
}

.morning li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--ah-text-secondary);
  opacity: 0.55;
}

.morning--after {
  background: var(--ah-surface-elevated);
  border-color: rgba(227, 179, 76, 0.4);
}

.morning--after h3 {
  color: var(--ah-gold);
}

.morning--after li {
  color: var(--ah-text-primary);
}

.morning--after li::before {
  content: "✓";
  color: var(--ah-gold);
  opacity: 1;
  font-size: 14px;
}

/* ---------- Promesas ---------- */

.promises {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px 44px;
}

@media (min-width: 720px) {
  .promises {
    grid-template-columns: repeat(2, 1fr);
  }
}

.promises li {
  color: var(--ah-text-secondary);
  font-size: 15.5px;
  line-height: 1.6;
  padding-top: 18px;
  border-top: 1px solid var(--ah-border);
}

.promises strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ah-text-primary);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.12rem;
}

h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.6rem, 3.6vw, 2.2rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}

.section-intro {
  max-width: var(--measure);
  color: var(--ah-text-secondary);
  margin: 0 0 40px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: 18px;
}

/* Cuatro tarjetas: 2×2 en escritorio, una columna en móvil. */
@media (min-width: 720px) {
  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.card h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.18rem;
  margin: 0 0 8px;
}

.card p {
  margin: 0;
  color: var(--ah-text-secondary);
  font-size: 15.5px;
  line-height: 1.6;
}

.card__icon {
  width: 26px;
  height: 26px;
  margin-bottom: 16px;
  color: var(--ah-gold);
}

/* Bloque de ritual: tres pasos numerados */

.ritual {
  background: var(--ah-surface);
  border: 1px solid var(--ah-border);
  border-radius: 24px;
  padding: 40px;
}

.ritual__steps {
  list-style: none;
  counter-reset: paso;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}

.ritual__steps li {
  counter-increment: paso;
  padding-top: 46px;
  position: relative;
  color: var(--ah-text-secondary);
  font-size: 15.5px;
}

.ritual__steps li::before {
  content: counter(paso);
  position: absolute;
  top: 0;
  left: 0;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(227, 179, 76, 0.45);
  color: var(--ah-gold);
  font-family: var(--serif);
  font-size: 15px;
}

.ritual__steps strong {
  display: block;
  color: var(--ah-text-primary);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 6px;
}

/* Cita */

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

.quote blockquote {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  line-height: 1.45;
}

.quote figcaption {
  color: var(--ah-text-secondary);
  font-size: 14px;
}

/* ---------- Páginas de texto legal ---------- */

.doc {
  padding: 64px 0 40px;
}

.doc h1 {
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  margin-bottom: 10px;
}

.doc__meta {
  color: var(--ah-text-secondary);
  font-size: 14.5px;
  margin: 0 0 44px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--ah-border);
}

.doc h2 {
  font-size: 1.35rem;
  margin: 44px 0 12px;
}

.doc h3 {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 30px 0 8px;
}

.doc p,
.doc li {
  color: #ddd7ea;
  font-size: 16.5px;
}

.doc ul,
.doc ol {
  padding-left: 22px;
}

.doc li {
  margin-bottom: 10px;
}

.doc strong {
  color: var(--ah-text-primary);
}

.callout {
  background: var(--ah-surface);
  border: 1px solid var(--ah-border);
  border-left: 3px solid var(--ah-gold);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 28px 0;
}

.callout p {
  margin: 0;
  font-size: 15.5px;
}

/* Preguntas frecuentes */

.faq {
  border-top: 1px solid var(--ah-border);
}

.faq details {
  border-bottom: 1px solid var(--ah-border);
  padding: 20px 0;
}

.faq summary {
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.faq summary::after {
  content: "+";
  color: var(--ah-gold);
  font-size: 1.4rem;
  font-family: var(--sans);
  line-height: 1;
  flex: none;
}

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

.faq details p {
  margin: 12px 0 0;
  color: var(--ah-text-secondary);
  font-size: 16px;
  max-width: var(--measure);
}

/* ---------- Pie ---------- */

.site-footer {
  border-top: 1px solid var(--ah-border);
  padding: 44px 0 56px;
  margin-top: 40px;
  color: var(--ah-text-secondary);
  font-size: 14.5px;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.site-footer a {
  color: var(--ah-text-secondary);
}

.site-footer a:hover {
  color: var(--ah-text-primary);
  text-decoration: none;
}

@media (max-width: 640px) {
  section {
    padding: 56px 0;
  }

  .hero {
    padding: 68px 0 60px;
  }

  .ritual {
    padding: 28px;
  }

  .nav {
    gap: 18px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn svg {
  flex: none;
  margin-top: -2px;
}

.btn:hover {
    transform: none;
  }
}
