/* ============================================================
   El Tarot de Helena — Hoja de estilos principal
   Estructura: variables → reset → tipografía → componentes
   Mobile first, luego media queries para tablet y desktop
   ============================================================ */

/* ============================================================
   1. VARIABLES (light mode por defecto)
   ============================================================ */
:root {
  --ink: #3f3429;
  --ink-soft: #66584b;
  --gold: #8f5c0f;
  --gold-light: #b97916;
  --paper: #f6edda;
  --paper-light: #fffaf0;
  --blue: #70859a;
  --blue-soft: #b9c7ce;
  --green: #78856f;
  --white: #ffffff;

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;

  --max: 1180px;
  --header-h: 72px;
  --pad-y: 4rem;
  --radius: 12px;
  --radius-lg: 24px;

  --shadow: 0 4px 20px rgba(63, 52, 41, 0.06);
  --shadow-lg: 0 12px 40px rgba(63, 52, 41, 0.1);

  --ease: 0.28s ease;
}

[data-theme='dark'] {
  --ink: #f0e6d2;
  --ink-soft: #c4b8a5;
  --gold: #e0a838;
  --gold-light: #f0c060;
  --paper: #1e1c19;
  --paper-light: #262421;
  --blue: #8fa4b8;
  --blue-soft: #4a5a68;
  --green: #9aa891;
  --white: #2a2825;

  --shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
}

/* ============================================================
   2. RESET Y BASE
   ============================================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink);
  background-color: var(--paper-light);
  overflow-x: hidden;
  max-width: 100%;
  position: relative;
  transition:
    background-color 0.4s ease,
    color 0.4s ease;
}

img,
picture,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

/* ============================================================
   3. UTILIDADES Y LAYOUT
   ============================================================ */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section-padding {
  padding: var(--pad-y) 0;
}

.section-header {
  margin-bottom: 2.5rem;
}

.section-header--center {
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 3rem;
}

.section-tag {
  display: inline-block;
  font-family: var(--serif);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.section-subtitle,
.section-lead {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 620px;
}

.section-header--center .section-subtitle {
  margin: 0.75rem auto 0;
}

.section-lead {
  margin: 0 auto 3rem;
  text-align: center;
}

.text-center {
  text-align: center;
}

/* ============================================================
   4. BOTONES
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 2px solid transparent;
  transition: all var(--ease);
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
}

.btn--primary {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(185, 121, 22, 0.25);
}

.btn--secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink-soft);
}

.btn--secondary:hover,
.btn--secondary:focus-visible {
  background: var(--ink);
  color: var(--paper-light);
  border-color: var(--ink);
}

.btn--large {
  padding: 1rem 2.4rem;
  font-size: 1.05rem;
}

/* ============================================================
   5. SKIP LINK (accesibilidad)
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--gold);
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 0 0 8px 8px;
  font-weight: 700;
  z-index: 9999;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* ============================================================
   6. HEADER
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  background: rgba(255, 250, 240, 0.96);
  border-bottom: 1px solid rgba(185, 121, 22, 0.12);
  z-index: 100;
  transition:
    background 0.4s,
    border-color 0.4s;
}

[data-theme='dark'] .header {
  background: rgba(30, 28, 25, 0.96);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
}

.header__logo-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.header__logo-text {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
  display: none;
}

/* Botón hamburguesa, solo visible en móvil */
.header__menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  order: 3;
  z-index: 1100;
  transition: opacity 0.25s ease;
}

.hamburger-line {
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition:
    transform 0.3s,
    opacity 0.3s;
}

.header__menu-toggle[aria-expanded='true'] .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.header__menu-toggle[aria-expanded='true'] .hamburger-line:nth-child(2) {
  opacity: 0;
}
.header__menu-toggle[aria-expanded='true'] .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.header__menu-toggle[aria-expanded='true'] {
  display: none;
  pointer-events: none;
}

/* ============================================================
   NAV EN MÓVIL — Pantalla completa con cabecera, enlaces y pie
   ============================================================ */
.header__nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  background: var(--paper-light);
  display: flex;
  flex-direction: column;
  padding: clamp(0.75rem, 2vh, 1.5rem);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s,
    visibility 0.3s;
  z-index: 1000;
  overflow: hidden;
  overscroll-behavior: contain;
  pointer-events: none;
}

[data-theme='dark'] .header__nav {
  background: #1e1c19;
}

.header__nav.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Cabecera interna del menú: logo + botón cerrar */
.header__nav-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  padding-bottom: clamp(0.6rem, 1.8vh, 1.5rem);
  border-bottom: 1px solid rgba(185, 121, 22, 0.15);
}

.header__nav-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
}

.header__nav-logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
}

.header__nav-logo span {
  white-space: nowrap;
}

.header__nav-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--ink);
  transition: background var(--ease);
  flex-shrink: 0;
}

.header__nav-close:hover,
.header__nav-close:focus-visible {
  background: rgba(185, 121, 22, 0.12);
}

/* Enlaces: escalan según la altura del viewport para caber siempre
   con espaciado holgado */
.nav__list {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: clamp(0.9rem, 2.2vh, 1.8rem);
  text-align: center;
  padding: clamp(0.5rem, 1.5vh, 1.5rem) 0;
  overflow: hidden;
  min-height: 0;
}

.nav__link {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 3.8vh, 1.8rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink);
  transition: color var(--ease);
}

.nav__link:hover,
.nav__link:focus-visible {
  color: var(--gold);
}

[data-theme='dark'] .nav__link {
  color: var(--ink);
}

/* Pie interno del menú: tagline */
.header__nav-bottom {
  flex-shrink: 0;
  text-align: center;
  padding-top: clamp(0.6rem, 1.8vh, 1.5rem);
  border-top: 1px solid rgba(185, 121, 22, 0.15);
}

.header__nav-tagline {
  font-family: var(--serif);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.7;
}

/* Cuando el menú está abierto, bloqueamos scroll de fondo */
body.menu-open {
  position: fixed;
  width: 100%;
  overflow: hidden;
  touch-action: none;
}

/* Botón cambio de tema */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--ink);
  transition: background var(--ease);
  order: 2;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  background: rgba(185, 121, 22, 0.12);
}

.theme-toggle__icon {
  width: 20px;
  height: 20px;
  grid-area: 1 / 1;
}

.theme-toggle__icon--moon {
  display: none;
}

[data-theme='dark'] .theme-toggle__icon--sun {
  display: none;
}
[data-theme='dark'] .theme-toggle__icon--moon {
  display: block;
}

/* ============================================================
   7. HERO
   ============================================================ */
.hero {
  padding: calc(var(--header-h) + 2rem) 0 3rem;
  background: linear-gradient(170deg, var(--paper-light) 0%, var(--paper) 100%);
  position: relative;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.hero__badge {
  display: inline-block;
  font-family: var(--serif);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero__title {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 8vw, 4.5rem);
  font-weight: 600;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 1.2rem;
}

.hero__title-accent {
  color: var(--gold);
  font-style: italic;
  font-weight: 500;
}

.hero__subtitle {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 480px;
  margin-bottom: 2rem;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

/* ============================================================
   8. PARA QUÉ
   ============================================================ */
.para-que {
  background: var(--white);
}

.para-que__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.para-que__item {
  text-align: center;
  padding: 1.5rem 1rem;
}

.para-que__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
  color: var(--gold);
  border-radius: 50%;
  background: rgba(185, 121, 22, 0.08);
}

.para-que__title {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.para-que__text {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.destacado {
  border-left: 3px solid var(--gold);
  padding: 1.2rem 1.5rem;
  margin: 2rem 0;
  background: var(--paper);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.destacado--center {
  max-width: 640px;
  margin: 2.5rem auto 0;
  text-align: center;
  border-left: none;
  border-top: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  border-radius: 0;
  background: transparent;
  padding: 1.5rem;
}

.destacado--strong {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-style: italic;
}

.destacado__title {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.destacado__text {
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ============================================================
   9. SOBRE HELENA
   ============================================================ */
.sobre-mi {
  background: var(--paper);
}

.sobre-mi__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.sobre-mi__image {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.sobre-mi__image img {
  width: 100%;
  display: block;
}

.sobre-mi__ornament {
  display: none;
  pointer-events: none;
}

@media (min-width: 960px) {
  .sobre-mi__ornament {
    display: block;
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    color: var(--gold);
    opacity: 0.4;
  }
}

.sobre-mi__text p {
  margin-bottom: 1rem;
  color: var(--ink-soft);
}

.sobre-mi__quote {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--ink);
  border-left: 3px solid var(--gold);
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin: 1.8rem 0;
}

.sobre-mi__thanks {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--gold);
  margin-top: 0.5rem;
}

/* ============================================================
   10. CÓMO LEO
   ============================================================ */
.como-leo {
  background: var(--white);
}

.pasos {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 820px;
  margin: 0 auto;
}

.paso {
  display: flex;
  gap: 1.2rem;
  padding: 1.5rem;
  background: var(--paper-light);
  border-radius: var(--radius);
  border: 1px solid rgba(185, 121, 22, 0.12);
  transition:
    transform var(--ease),
    box-shadow var(--ease);
}

.paso:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.paso__numero {
  flex-shrink: 0;
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
  opacity: 0.5;
  min-width: 45px;
}

.paso__title {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.paso__text {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ============================================================
   11. PRECIO
   ============================================================ */
.precio {
  background: var(--paper);
}

.precio__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}

.precio__card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(185, 121, 22, 0.15);
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
  overflow: hidden;
}

.precio__label {
  display: block;
  font-family: var(--serif);
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.precio__amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.2rem;
  margin: 0.5rem 0 1rem;
  line-height: 1;
}

.precio__number {
  font-family: var(--serif);
  font-size: 5rem;
  font-weight: 600;
  color: var(--gold);
}

.precio__currency {
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--gold);
}

.precio__desc {
  color: var(--ink-soft);
  margin-bottom: 1.8rem;
  font-size: 0.95rem;
}

.precio__nota {
  margin-top: 1.2rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-style: italic;
}

.precio__info-title {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.precio__info-list {
  margin-bottom: 1.2rem;
}

.precio__info-list li {
  padding: 0.3rem 0 0.3rem 1.5rem;
  position: relative;
  color: var(--ink-soft);
}

.precio__info-list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.9rem;
}

.precio__info-text {
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

/* ============================================================
   AJUSTES DE LA CARD DE PRECIO EN PANTALLAS PEQUEÑAS
   ============================================================ */
@media (max-width: 480px) {
  .precio__card {
    padding: 2rem 1.25rem;
    overflow: hidden;
  }

  .precio__number {
    font-size: 3.5rem;
  }

  .precio__currency {
    font-size: 1.8rem;
  }

  .precio__amount {
    gap: 0.1rem;
  }
}

@media (max-width: 360px) {
  .precio__number {
    font-size: 3rem;
  }
  .precio__currency {
    font-size: 1.6rem;
  }
}

/* ============================================================
   12. SIN MIEDO
   ============================================================ */
.sin-miedo {
  background: var(--white);
}

.miedos {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.miedo {
  display: flex;
  gap: 1.2rem;
  padding: 1.5rem;
  background: var(--paper);
  border-radius: var(--radius);
  transition: transform var(--ease);
}

.miedo:hover {
  transform: translateY(-3px);
}

.miedo__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  background: var(--paper-light);
  border-radius: 50%;
}

.miedo__title {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.miedo__text {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ============================================================
   13. TESTIMONIOS
   ============================================================ */
.testimonios {
  background: var(--paper);
}

.testimonios__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.testimonio {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  border-left: 3px solid var(--gold);
  box-shadow: var(--shadow);
}

.testimonio__quote {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 1rem;
}

.testimonio__author {
  display: block;
  font-style: normal;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--gold);
  text-transform: uppercase;
}

.testimonio__author::before {
  content: '— ';
}

/* ============================================================
   14. ARCANOS
   ============================================================ */
.arcanos {
  background: var(--paper-light);
}

.arcanos__controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}

.arcanos__filter,
.arcanos__shuffle,
.arcanos__reveal {
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-soft);
  border: 1px solid rgba(185, 121, 22, 0.25);
  transition: all var(--ease);
}

.arcanos__filter:hover,
.arcanos__shuffle:hover,
.arcanos__reveal:hover,
.arcanos__filter.is-active,
.arcanos__reveal.is-active {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}

.arcanos__shuffle,
.arcanos__reveal {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.arcanos__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.arcano {
  position: relative;
  aspect-ratio: 2 / 3;
  cursor: pointer;
  perspective: 1000px;
  background: none;
  border: none;
  padding: 0;
  transition: opacity 0.3s;
}

.arcano.is-hidden {
  display: none;
}

.arcano__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.arcano.is-flipped .arcano__inner {
  transform: rotateY(180deg);
}

.arcano__face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(185, 121, 22, 0.2);
}

.arcano__face--back {
  background: linear-gradient(145deg, var(--paper), var(--paper-light));
  color: var(--gold);
  padding: 1rem;
}

.arcano__back-symbol {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  opacity: 0.7;
}

.arcano__back-name {
  font-family: var(--serif);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  text-align: center;
  line-height: 1.2;
}

.arcano__face--front {
  transform: rotateY(180deg);
  background: var(--paper-light);
}

.arcano__face--front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (hover: hover) and (pointer: fine) {
  .arcano.is-visible {
    transition:
      opacity 0.3s ease,
      transform 0.25s ease,
      box-shadow 0.25s ease;
  }

  .arcano.is-visible:hover {
    transform: translateY(-6px);
  }

  .arcano.is-visible:hover .arcano__inner {
    box-shadow: 0 16px 36px rgba(185, 121, 22, 0.22);
  }

  .arcano.is-visible:hover .arcano__face--back {
    border-color: var(--gold);
    background: linear-gradient(
      145deg,
      var(--paper),
      color-mix(in srgb, var(--gold) 12%, var(--paper))
    );
  }
}

/* ============================================================
   15. MODAL DE ARCANO
   ============================================================ */
.arcano-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.25s;
}

.arcano-modal[hidden] {
  display: none;
}

.arcano-modal.is-open {
  opacity: 1;
}

.arcano-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 28, 25, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.arcano-modal__content {
  position: relative;
  background: var(--paper-light);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-lg);
  animation: modalUp 0.3s ease;
}

@keyframes modalUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.arcano-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--ink-soft);
  transition:
    background var(--ease),
    color var(--ease);
}

.arcano-modal__close:hover {
  background: rgba(185, 121, 22, 0.12);
  color: var(--ink);
}

.arcano-modal__header {
  text-align: center;
  margin-bottom: 1.2rem;
}

.arcano-modal__number {
  display: block;
  font-family: var(--serif);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.arcano-modal__title {
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 600;
  line-height: 1.1;
}

.arcano-modal__image-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.arcano-modal__image {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 200px;
  width: 100%;
  transition: transform 0.4s ease;
}

.arcano-modal__image.is-reversed {
  transform: rotate(180deg);
}

.arcano-modal__toggle {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  background: var(--paper);
  border-radius: 999px;
  padding: 0.3rem;
}

.arcano-modal__toggle-btn {
  flex: 1;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-soft);
  transition: all var(--ease);
}

.arcano-modal__toggle-btn.is-active {
  background: var(--gold);
  color: #fff;
}

.arcano-modal__body {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.65;
}

.arcano-modal__body h4 {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  margin: 1.2rem 0 0.4rem;
}

.arcano-modal__body p {
  margin-bottom: 0.8rem;
}

.arcano-modal__body ul {
  margin: 0.4rem 0 1rem 1rem;
}

.arcano-modal__body ul li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.3rem;
}

.arcano-modal__body ul li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

.arcano-modal__key {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(185, 121, 22, 0.2);
  text-align: center;
}

.arcano-modal__key-label {
  display: block;
  font-family: var(--serif);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.arcano-modal__key-text {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--ink);
}

body.modal-open {
  position: fixed;
  width: 100%;
  overflow: hidden;
  touch-action: none;
}

.arcano-modal,
.arcano-modal__backdrop,
.arcano-modal__content {
  overscroll-behavior: contain;
}

.arcano-modal__backdrop {
  touch-action: none;
}

.arcano-modal__content {
  -webkit-overflow-scrolling: touch;
}

/* ============================================================
   16. CTA WHATSAPP FINAL
   ============================================================ */
.contacto {
  background: var(--white);
}

.contacto__box {
  background: linear-gradient(150deg, var(--paper) 0%, var(--paper-light) 100%);
  border-radius: var(--radius-lg);
  padding: 3rem 1.5rem;
  text-align: center;
  border: 1px solid rgba(185, 121, 22, 0.2);
  max-width: 640px;
  margin: 0 auto;
  min-width: 0;
}

.contacto__ornament {
  display: block;
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 0.8rem;
}

.contacto__title {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.contacto__text {
  color: var(--ink-soft);
  margin-bottom: 1.8rem;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

.contacto__phone {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.contacto__phone strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
  margin-top: 0.3rem;
  letter-spacing: 0.05em;
}

/* ============================================================
   BOTONES DENTRO DE TARJETAS
   ============================================================ */
.precio__card .btn,
.contacto__box .btn {
  max-width: 100%;
  white-space: normal;
  padding: 1rem 1.5rem;
  line-height: 1.3;
  text-align: center;
  height: auto;
}

/* ============================================================
   17. FOOTER
   ============================================================ */
.footer {
  background: #3a3027;
  color: #f0e6d2;
  padding: 3rem 0 2rem;
}

[data-theme='dark'] .footer {
  background: #14120e;
  color: #ede1c8;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.8rem;
  text-align: center;
}

.footer__logo {
  width: 56px;
  height: 56px;
  margin: 0 auto 0.5rem;
  border-radius: 50%;
}

.footer__name {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: #f0e6d2;
}

[data-theme='dark'] .footer__name {
  color: #ede1c8;
}

.footer__tagline {
  font-family: var(--serif);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #d39a2c;
  opacity: 0.9;
  margin-top: 0.2rem;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
}

.footer__nav a {
  font-size: 0.85rem;
  color: #e8dcc2;
  opacity: 0.9;
  transition:
    opacity var(--ease),
    color var(--ease);
}

.footer__nav a:hover,
.footer__nav a:focus-visible {
  opacity: 1;
  color: var(--gold-light);
}

.footer__social {
  display: flex;
  gap: 1.2rem;
}

.footer__social a {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #f0e6d2;
  transition:
    background var(--ease),
    transform var(--ease),
    color var(--ease);
}

.footer__social a:hover,
.footer__social a:focus-visible {
  background: var(--gold);
  color: #ffffff;
  transform: translateY(-3px);
}

.footer__copyright {
  font-size: 0.8rem;
  color: #c4b8a5;
  opacity: 0.85;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  width: 100%;
  max-width: 480px;
}

/* ============================================================
   18. BOTÓN FLOTANTE DE WHATSAPP
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 1.2rem;
  right: 1.2rem;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.35);
  z-index: 90;
  transition:
    transform var(--ease),
    box-shadow var(--ease);
  animation: waPulse 3s ease-in-out infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

@keyframes waPulse {
  0%,
  70%,
  100% {
    transform: scale(1);
  }
  80% {
    transform: scale(1.08);
  }
}

/* ============================================================
   19. RESPONSIVE — TABLET (≥ 640px)
   ============================================================ */
@media (min-width: 640px) {
  :root {
    --pad-y: 5rem;
  }

  .container {
    padding: 0 2rem;
  }

  .header__logo-text {
    display: inline;
  }

  .para-que__list {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 2rem;
  }

  .miedos {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonios__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .arcanos__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
  }

  .pasos {
    gap: 1.2rem;
  }

  .precio__info {
    padding: 0 1rem;
  }
}

/* ============================================================
   20. RESPONSIVE — DESKTOP (≥ 960px)
   ============================================================ */
@media (min-width: 960px) {
  .header__menu-toggle {
    display: none;
  }

  .header__nav {
    position: static;
    inset: auto;
    width: auto;
    height: auto;
    background: transparent;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    flex: 1;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    padding: 0;
    overflow: visible;
    border: none;
  }

  [data-theme='dark'] .header__nav {
    background: transparent;
  }

  .header__nav-top,
  .header__nav-bottom {
    display: none;
  }

  .nav__list {
    flex: none;
    flex-direction: row;
    gap: 1.8rem;
    padding: 0;
    overflow: visible;
  }

  .nav__link {
    font-family: var(--sans);
    font-size: 0.92rem;
    font-weight: 400;
  }

  .hero {
    padding-top: calc(var(--header-h) + 4rem);
    padding-bottom: 5rem;
  }

  .hero__grid {
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
  }

  .sobre-mi__grid {
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
  }

  .precio__inner {
    grid-template-columns: 1fr 1.1fr;
    gap: 4rem;
    align-items: center;
  }

  .para-que__list {
    grid-template-columns: repeat(4, 1fr);
  }

  .miedos {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 2rem;
  }

  .testimonios__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .arcanos__grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 1.2rem;
  }

  .footer__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    text-align: left;
    gap: 2rem;
  }

  .footer__brand {
    text-align: left;
  }

  .footer__logo {
    margin: 0 0 0.5rem;
  }

  .footer__nav {
    justify-content: center;
  }

  .footer__social {
    justify-content: flex-end;
  }

  .footer__copyright {
    grid-column: 1 / -1;
    text-align: center;
  }

  .whatsapp-float {
    bottom: 1.8rem;
    right: 1.8rem;
    width: 64px;
    height: 64px;
  }

  .arcano-modal__content {
    max-width: 600px;
    padding: 2.5rem 2.5rem;
  }

  .arcano-modal__image {
    max-width: 240px;
  }
}

/* ============================================================
   21. PANTALLAS GRANDES (≥ 1280px)
   ============================================================ */
@media (min-width: 1280px) {
  :root {
    --pad-y: 6rem;
  }

  .hero__grid {
    gap: 5rem;
  }

  .arcanos__grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* ============================================================
   22. PREFERENCIAS DE MOVIMIENTO REDUCIDO
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .whatsapp-float {
    animation: none;
  }

  .arcano__inner {
    transition: none;
  }
}

/* ============================================================
   23. FOCO VISIBLE
   ============================================================ */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

a:focus,
button:focus {
  outline: none;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* ============================================================
   24. SELECCIÓN DE TEXTO
   ============================================================ */
::selection {
  background: var(--gold);
  color: #fff;
}

/* ============================================================
   25. SCROLLBAR PERSONALIZADA
   ============================================================ */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--paper);
}

::-webkit-scrollbar-thumb {
  background: var(--gold-light);
  border-radius: 5px;
  border: 2px solid var(--paper);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

/* ============================================================
   26. PÁGINAS LEGALES
   ============================================================ */
.legal {
  max-width: 720px;
  margin: 0 auto;
  color: var(--ink-soft);
  line-height: 1.8;
}

.legal__header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(185, 121, 22, 0.2);
}

.legal__updated {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--gold);
  margin-top: 0.5rem;
}

.legal h2 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ink);
  margin: 2rem 0 0.75rem;
}

.legal p,
.legal li {
  font-size: 0.98rem;
  color: var(--ink-soft);
  margin-bottom: 0.8rem;
}

.legal strong {
  color: var(--ink);
  font-weight: 700;
}

.legal ul,
.legal ol {
  margin: 0.5rem 0 1rem 1.5rem;
  list-style: disc;
}

.legal ol {
  list-style: decimal;
}

.legal li {
  margin-bottom: 0.4rem;
}

.legal a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal a:hover {
  color: var(--gold-light);
}

.legal__list {
  list-style: none;
  margin-left: 0;
}

.legal__list li {
  padding-left: 0;
}

.legal__table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.9rem;
  background: var(--paper-light);
  border-radius: var(--radius);
  overflow: hidden;
}

.legal__table th,
.legal__table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(185, 121, 22, 0.15);
}

.legal__table th {
  background: var(--paper);
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
}

.legal__table td {
  color: var(--ink-soft);
}

.legal__table code {
  font-family: 'Menlo', 'Consolas', monospace;
  font-size: 0.85rem;
  background: rgba(185, 121, 22, 0.08);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  color: var(--gold);
}

/* ============================================================
   27. PÁGINA 404 Y GRACIAS
   ============================================================ */
.page-404,
.page-gracias {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 0;
  background: var(--paper-light);
}

.page-404__ornament,
.page-gracias__ornament {
  display: block;
  font-size: 2.5rem;
  color: var(--gold);
  margin-bottom: 1rem;
  opacity: 0.6;
}

.page-404__code {
  font-family: var(--serif);
  font-size: 6rem;
  font-weight: 600;
  line-height: 1;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.page-404__title,
.page-gracias__title {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.2;
}

.page-404__text,
.page-gracias__text {
  color: var(--ink-soft);
  max-width: 520px;
  margin: 0 auto 1rem;
}

.page-404__ctas,
.page-gracias__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .page-404__code {
    font-size: 8rem;
  }
  .page-404__title {
    font-size: 2.2rem;
  }
}

/* ============================================================
   ARCÁNOS — Animación de entrada
   ============================================================ */
.js-ready .arcano {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

.js-ready .arcano.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .js-ready .arcano,
  .js-ready .arcano.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================================
   SECCIÓN DE TRANSICIÓN DECORATIVA
   ============================================================ */
.transicion {
  position: relative;
  padding: 6rem 0;
  background: var(--paper);
  overflow: hidden;
  text-align: center;
}

.transicion__decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.transicion__carta {
  position: absolute;
  width: 120px;
  height: auto;
  opacity: 0.08;
  filter: blur(1px);
  border-radius: 8px;
}

[data-theme='dark'] .transicion__carta {
  opacity: 0.15;
}

.transicion__carta--1 {
  top: 10%;
  left: 4%;
  transform: rotate(-18deg);
}

.transicion__carta--2 {
  top: 60%;
  left: 12%;
  transform: rotate(12deg) scale(0.9);
}

.transicion__carta--3 {
  top: 20%;
  right: 8%;
  transform: rotate(15deg);
}

.transicion__carta--4 {
  top: 70%;
  right: 4%;
  transform: rotate(-10deg) scale(0.85);
}

.transicion__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.transicion__ornament {
  display: block;
  font-size: 1.5rem;
  color: var(--gold);
  opacity: 0.6;
  margin: 0.5rem 0;
}

.transicion__quote {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink);
  margin: 1rem 0;
}

@media (max-width: 767px) {
  .transicion__carta {
    width: 70px;
    opacity: 0.06;
  }

  [data-theme='dark'] .transicion__carta {
    opacity: 0.12;
  }

  .transicion__carta--1,
  .transicion__carta--4 {
    display: none;
  }
}

/* ============================================================
   SOBRE MÍ — Crossfade automático entre dos retratos
   ============================================================ */
.sobre-mi__carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.sobre-mi__slide {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sobre-mi__slide--1 {
  opacity: 1;
  animation: sobreMiFadeOut 16s ease-in-out infinite;
}

.sobre-mi__slide--2 {
  opacity: 0;
  animation: sobreMiFadeIn 16s ease-in-out infinite;
}

@keyframes sobreMiFadeOut {
  0%,
  45% {
    opacity: 1;
  }
  55%,
  95% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes sobreMiFadeIn {
  0%,
  45% {
    opacity: 0;
  }
  55%,
  95% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@media (hover: hover) and (pointer: fine) {
  .sobre-mi__carousel:hover .sobre-mi__slide {
    animation-play-state: paused;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sobre-mi__slide--1 {
    animation: none;
    opacity: 1;
  }
  .sobre-mi__slide--2 {
    animation: none;
    opacity: 0;
  }
}
