/* ==========================================================================
   MING — Landing Page Styles
   Sistema de diseño "Quiet Luxury" (Lujo Silencioso)
   ========================================================================== */

/* ==========================================================================
   1. VARIABLES CSS — Paleta de colores y tokens de diseño
   ========================================================================== */
:root {
  /* Colores principales */
  --bg-obsidian: #0A0A0A;         /* Fondo principal, elegancia profunda */
  --accent-jade: #00B894;         /* Alma de la marca, sabiduría jade imperial */
  --accent-purple: #9B59B6;       /* Misterio, destino */
  --accent-gold: #FFD700;         /* Prosperidad, detalles premium */
  --text-jade-white: #F8F9FA;     /* Claridad, textos principales */
  --power-red: #E74C3C;           /* SOLO para CTAs críticos, uso mínimo */

  /* Colores derivados */
  --bg-card: #111111;
  --border-subtle: #1a1a1a;
  --border-hover: #2a2a2a;
  --text-muted: #6c6c6c;
  --text-secondary: #a0a0a0;

  /* Tipografía */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --tracking-wide: 0.05em;
  --tracking-wider: 0.1em;

  /* Transición premium: suave, elegante, sin rebotes */
  --ease-luxury: cubic-bezier(0.25, 1, 0.5, 1);
  --duration-base: 0.4s;
  --duration-slow: 0.7s;

  /* Espaciado */
  --section-padding: 5rem 1.25rem;
  --container-max: 1200px;
}

/* ==========================================================================
   2. RESET Y BASE
   ========================================================================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-main);
  font-weight: 300;
  color: var(--text-jade-white);
  background-color: var(--bg-obsidian);
  /* Textura de piedra sutil en todo el fondo */
  background-image: url("animals/square/bg-stone-texture.png");
  background-repeat: repeat;
  background-size: 300px 300px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* Overlay oscuro sobre la textura para mantener elegancia */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.88);
  z-index: -1;
  pointer-events: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-base) var(--ease-luxury);
}

/* Contenedor centrado reutilizable */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Títulos de sección reutilizables */
.section-title {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-align: center;
  margin-bottom: 0.75rem;
  color: var(--text-jade-white);
}

.section-subtitle {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  font-weight: 300;
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 3rem;
}

/* ==========================================================================
   3. BOTONES
   ========================================================================== */
.btn {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-luxury);
  text-align: center;
  border: none;
}

/* Botón primario: Rojo Fortuna para máximo impacto en CTA */
.btn--primary {
  background: var(--power-red);
  color: var(--text-jade-white);
  box-shadow: 0 4px 20px rgba(231, 76, 60, 0.3);
}

.btn--primary:hover {
  background: #c0392b;
  box-shadow: 0 6px 30px rgba(231, 76, 60, 0.5);
  transform: translateY(-2px);
}

/* Botón outline con borde dorado */
.btn--outline {
  background: transparent;
  color: var(--accent-gold);
  border: 1px solid var(--accent-gold);
}

.btn--outline:hover {
  background: rgba(255, 215, 0, 0.08);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.15);
  transform: translateY(-2px);
}

/* ==========================================================================
   4. NAVEGACIÓN (Header)
   ========================================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  transition: all var(--duration-base) var(--ease-luxury);
  background: transparent;
}

/* Estado al hacer scroll: fondo con blur */
.nav--scrolled {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.6rem 0;
}

.nav__container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo: imagen + MING */
.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1.2rem;
  z-index: 1001;
}

.nav__logo-img {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.nav__logo-text {
  color: var(--text-jade-white);
  letter-spacing: var(--tracking-wider);
}

/* Botón hamburguesa (solo móvil) */
.nav__toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-jade-white);
  transition: all 0.3s var(--ease-luxury);
}

/* Menú móvil: oculto por defecto */
.nav__menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 70%;
  height: 100vh;
  background: rgba(10, 10, 10, 0.97);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  transition: right 0.5s var(--ease-luxury);
}

.nav__menu--open {
  right: 0;
}

.nav__link {
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: var(--tracking-wide);
  color: var(--text-secondary);
  transition: color var(--duration-base) var(--ease-luxury);
}

.nav__link:hover,
.nav__link:focus {
  color: var(--accent-jade);
}

/* CTA en la navegación con borde dorado */
.nav__cta {
  padding: 0.6rem 1.4rem;
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  border-radius: 3px;
  transition: all var(--duration-base) var(--ease-luxury);
}

.nav__cta:hover {
  background: rgba(255, 215, 0, 0.08);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.15);
}

/* ==========================================================================
   5. HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 1.25rem 4rem;
  overflow: hidden;
}

/* Canvas de partículas doradas */
.hero__canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Textura de ruido (overlay sutil tipo papel de arroz) */
.hero__noise {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.04;
  z-index: 1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

.hero__container {
  position: relative;
  z-index: 2;
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.hero__content {
  text-align: center;
}

/* Etiqueta superior "Astrología China Premium" */
.hero__eyebrow {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s var(--ease-luxury) 0.3s forwards;
}

/* Título principal H1 */
.hero__title {
  font-size: clamp(2.2rem, 7vw, 3.8rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: var(--tracking-wide);
  color: var(--text-jade-white);
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s var(--ease-luxury) 0.5s forwards;
}

.hero__title em {
  font-style: italic;
  color: var(--accent-jade);
}

/* Subtítulo poético */
.hero__subtitle {
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 2rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s var(--ease-luxury) 0.7s forwards;
}

.hero__cta {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s var(--ease-luxury) 0.9s forwards;
}

/* Badges de App Store y Google Play */
.hero__badges {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s var(--ease-luxury) 1.1s forwards;
}

.hero__badge svg {
  height: 40px;
  width: auto;
  transition: transform var(--duration-base) var(--ease-luxury);
}

.hero__badge:hover svg {
  transform: scale(1.05);
}

/* Columna derecha: mockup del teléfono */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 1s var(--ease-luxury) 0.6s forwards;
}

.hero__phone-mockup {
  position: relative;
  width: 240px;
  height: 480px;
  background: #111;
  border-radius: 36px;
  border: 2px solid var(--border-hover);
  overflow: hidden;
  box-shadow:
    0 0 60px rgba(0, 184, 148, 0.1),
    0 20px 60px rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.hero__phone-screen {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Textura de piedra como fondo de la pantalla del celular */
  background: url("animals/square/bg-stone-texture.png") center/cover no-repeat;
  background-color: #0d0d0d;
}

.hero__phone-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.hero__phone-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.25));
}

.hero__phone-label {
  font-size: 0.8rem;
  letter-spacing: var(--tracking-wider);
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Resplandor jade detrás del teléfono */
.hero__glow {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 184, 148, 0.15) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  filter: blur(40px);
}

/* Animación de entrada */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   6. ANIMALES TOTÉMICOS (Grid de cards)
   ========================================================================== */
.animales {
  padding: var(--section-padding);
  position: relative;
}

.animales__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

/* Card individual de animal — imagen a sangre, nombre fuera */
.animal-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
  transition: all var(--duration-base) var(--ease-luxury);
  cursor: pointer;
}

.animal-card:hover {
  border-color: var(--accent-jade);
  transform: translateY(-2px);
  box-shadow:
    0 0 20px rgba(0, 184, 148, 0.08),
    0 8px 30px rgba(0, 0, 0, 0.3);
}

/* Contenedor cuadrado de la imagen (aspect-ratio 1:1) */
.animal-card__frame {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #0d0d0d;
}

/* Imagen del animal: llena todo el cuadrado */
.animal-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--duration-base) var(--ease-luxury);
}

.animal-card:hover .animal-card__img {
  transform: scale(1.05);
}

/* Nombre del animal fuera del cuadro, debajo */
.animal-card__name {
  display: block;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  color: var(--text-jade-white);
  padding: 0.6rem 0.25rem 0.5rem;
  background: var(--bg-card);
}

/* ==========================================================================
   7. EL RITUAL DE LOS 3 MINUTOS (Pasos)
   ========================================================================== */
.ritual {
  padding: var(--section-padding);
  position: relative;
}

.ritual__steps {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.ritual__step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-left: 3.5rem;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s var(--ease-luxury);
}

.ritual__step--visible {
  opacity: 1;
  transform: translateY(0);
}

/* Icono del paso: alineado para que su centro coincida con la línea */
.ritual__icon {
  position: absolute;
  left: 0;
  top: 0;
}

.ritual__title {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
}

.ritual__desc {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ==========================================================================
   8. EL BAZAR DEL TÍO FU (Tienda teaser)
   ========================================================================== */
.bazar {
  padding: var(--section-padding);
  position: relative;
  overflow: hidden;
}

/* Glow rojo y dorado de prosperidad */
.bazar__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(231, 76, 60, 0.06) 0%,
    rgba(255, 215, 0, 0.04) 40%,
    transparent 70%
  );
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.bazar .container {
  position: relative;
  z-index: 1;
}

.bazar__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.bazar__card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 1.5rem;
  transition: all var(--duration-base) var(--ease-luxury);
}

.bazar__card:hover {
  border-color: rgba(255, 215, 0, 0.3);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.06);
  transform: translateY(-2px);
}

.bazar__card-img {
  font-size: 2.5rem;
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 215, 0, 0.05);
  border-radius: 8px;
}

.bazar__card-title {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  color: var(--text-jade-white);
  margin-bottom: 0.25rem;
}

.bazar__card-desc {
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--text-muted);
}

.bazar__action {
  text-align: center;
}

/* ==========================================================================
   9. SECCIÓN DE DESCARGA (Conversión final)
   ========================================================================== */
.download {
  padding: var(--section-padding);
  text-align: center;
}

.download__container {
  position: relative;
}

.download__badges {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
}

.download__badge svg {
  height: 50px;
  width: auto;
  transition: transform var(--duration-base) var(--ease-luxury);
}

.download__badge:hover svg {
  transform: scale(1.05);
}

/* ==========================================================================
   10. FOOTER
   ========================================================================== */
.footer {
  padding: 3rem 1.25rem 2rem;
  border-top: 1px solid var(--border-subtle);
}

.footer__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.footer__tagline {
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--text-muted);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.footer__link {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: color var(--duration-base) var(--ease-luxury);
}

.footer__link:hover {
  color: var(--text-jade-white);
}

.footer__badges {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.footer__badges svg {
  height: 36px;
  width: auto;
  opacity: 0.7;
  transition: opacity var(--duration-base) var(--ease-luxury);
}

.footer__badges svg:hover {
  opacity: 1;
}

.footer__social {
  display: flex;
  gap: 1rem;
}

.footer__social-link {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  color: var(--text-muted);
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--border-subtle);
  border-radius: 3px;
  transition: all var(--duration-base) var(--ease-luxury);
}

.footer__social-link:hover {
  color: var(--accent-jade);
  border-color: var(--accent-jade);
}

.footer__copy {
  font-size: 0.7rem;
  color: var(--text-muted);
  opacity: 0.6;
}

/* ==========================================================================
   11. ANIMACIONES DE SCROLL (Intersection Observer)
   ========================================================================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease-luxury), transform 0.6s var(--ease-luxury);
}

.fade-in--visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   12. MEDIA QUERIES — Desktop (min-width: 768px)
   ========================================================================== */
@media (min-width: 768px) {
  :root {
    --section-padding: 7rem 2rem;
  }

  /* Navegación: menú horizontal en desktop */
  .nav__toggle {
    display: none;
  }

  .nav__menu {
    position: static;
    width: auto;
    height: auto;
    background: transparent;
    backdrop-filter: none;
    flex-direction: row;
    gap: 2rem;
  }

  /* Hero: 2 columnas */
  .hero__container {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

  .hero__content {
    text-align: left;
  }

  .hero__subtitle {
    margin: 0 0 2rem;
  }

  .hero__badges {
    justify-content: flex-start;
  }

  /* Animales: 4 columnas */
  .animales__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }

  /* Ritual: 3 pasos horizontales */
  .ritual__steps {
    flex-direction: row;
    justify-content: space-between;
    gap: 2rem;
  }

  .ritual__step {
    flex: 1;
    padding-left: 0;
    padding-top: 3.5rem;
    align-items: center;
    text-align: center;
  }

  .ritual__icon {
    left: 50%;
    top: 0;
    transform: translateX(-50%);
  }

  /* Bazar: 3 columnas */
  .bazar__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .bazar__card {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.5rem;
  }

  /* Footer: layout más amplio */
  .footer__container {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    text-align: left;
  }

  .footer__brand {
    align-items: flex-start;
  }

  .footer__copy {
    width: 100%;
    text-align: center;
    margin-top: 1rem;
  }
}

/* Pantallas grandes */
@media (min-width: 1024px) {
  .hero__phone-mockup {
    width: 280px;
    height: 560px;
  }

  .hero__glow {
    width: 400px;
    height: 400px;
  }

  .animal-card__img {
    /* En desktop la imagen sigue llenando todo el cuadrado */
  }
}

/* ==========================================================================
   13. SECCIÓN BRÚJULA ENERGÉTICA DIARIA (Features Premium)
   ========================================================================== */
.brujula {
  padding: var(--section-padding);
  position: relative;
}

.brujula__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.brujula__card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 1.75rem 1.5rem;
  transition: all var(--duration-base) var(--ease-luxury);
  position: relative;
  overflow: hidden;
}

/* Borde superior decorativo con gradiente jade/dorado */
.brujula__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-jade), var(--accent-gold));
  opacity: 0;
  transition: opacity var(--duration-base) var(--ease-luxury);
}

.brujula__card:hover {
  border-color: rgba(0, 184, 148, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.brujula__card:hover::before {
  opacity: 1;
}

.brujula__card-icon {
  margin-bottom: 1.1rem;
  height: 101px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.brujula__card-icon img {
  width: 91px;
  height: 91px;
  object-fit: contain;
  border-radius: 22px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  transition: transform var(--duration-base) var(--ease-luxury);
}

.brujula__card:hover .brujula__card-icon img {
  transform: scale(1.06);
}

.brujula__card-title {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
}

.brujula__card-desc {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Desktop: 2 columnas */
@media (min-width: 768px) {
  .brujula__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

/* ==========================================================================
   14. PÁGINAS LEGALES (privacy, terms, disclaimer)
   ========================================================================== */
.legal-page {
  padding: 7rem 1.25rem 4rem;
  min-height: 80vh;
}

.legal-page__container {
  max-width: 720px;
  margin: 0 auto;
  background: #111111;
  border: 1px solid rgba(255, 215, 0, 0.15);
  border-radius: 12px;
  padding: 2.5rem 1.5rem;
}

.legal-page__title {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  color: var(--text-jade-white);
  margin-bottom: 0.5rem;
}

.legal-page__updated {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.legal-page__section {
  margin-bottom: 2rem;
}

.legal-page__section h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent-jade);
  margin-bottom: 0.75rem;
}

.legal-page__section p,
.legal-page__section li {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text-jade-white);
  opacity: 0.85;
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

.legal-page__section ul {
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}

.legal-page__section li {
  margin-bottom: 0.5rem;
}

.legal-page__link {
  color: var(--accent-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--duration-base) var(--ease-luxury);
}

.legal-page__link:hover {
  color: var(--accent-jade);
}

/* Desktop: más padding */
@media (min-width: 768px) {
  .legal-page__container {
    padding: 3.5rem 3rem;
  }
}

/* ==========================================================================
   15. FOOTER EMAIL DESTACADO
   ========================================================================== */
.footer__email {
  color: var(--accent-gold);
  font-weight: 400;
}

.footer__email:hover {
  color: var(--accent-jade);
}


/* ==========================================================================
   16. CARDS DE ANIMALES ENRIQUECIDAS (Arquetipo + Elemento)
   ========================================================================== */
.animal-card__info {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem 0.4rem 0.7rem;
  gap: 0.2rem;
  background: var(--bg-card);
}

.animal-card__archetype {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-align: center;
  margin: 0;
  line-height: 1.3;
}

.animal-card__element {
  display: inline-block;
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid;
  border-radius: 3px;
  padding: 0.1rem 0.4rem;
  margin-top: 0.15rem;
}

/* Desktop: más espacio */
@media (min-width: 768px) {
  .animal-card__info {
    padding: 0.6rem 0.5rem 0.8rem;
    gap: 0.25rem;
  }
  .animal-card__archetype {
    font-size: 0.75rem;
  }
  .animal-card__element {
    font-size: 0.6rem;
    padding: 0.15rem 0.5rem;
  }
}

/* ==========================================================================
   17. MODAL DE ANIMAL (Detalle al hacer click)
   ========================================================================== */
.animal-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s var(--ease-luxury);
}

.animal-modal--open {
  opacity: 1;
}

.animal-modal--closing {
  opacity: 0;
}

.animal-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.animal-modal__card {
  position: relative;
  z-index: 1;
  background: var(--bg-obsidian);
  border: 1px solid rgba(255, 215, 0, 0.25);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  max-width: 400px;
  width: 90%;
  max-height: 86vh;
  overflow-y: auto;
  text-align: center;
  transform: translateY(30px) scale(0.95);
  transition: transform 0.3s var(--ease-luxury);
}

.animal-modal--open .animal-modal__card {
  transform: translateY(0) scale(1);
}

.animal-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.animal-modal__close:hover {
  color: var(--text-jade-white);
  background: rgba(255, 255, 255, 0.05);
}

.animal-modal__img {
  width: 180px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
  margin: 0 auto 1rem;
  border: 1px solid rgba(255, 215, 0, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* --- Los 5 elementos Wu Xing en círculos --- */
.animal-modal__elements {
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  margin: 1.25rem 0 0.9rem;
}

.animal-modal__elem {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.animal-modal__elem-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-base) var(--ease-luxury);
}

.animal-modal__elem-circle img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.animal-modal__elem-name {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* --- Invitación a descubrir el elemento en la app --- */
.animal-modal__invite {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--text-jade-white);
  line-height: 1.55;
  margin: 0.25rem 0 1rem;
}

.animal-modal__invite strong {
  color: var(--accent-gold);
  font-weight: 600;
}

/* --- Listado de características de la app --- */
.animal-modal__features {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.animal-modal__feature {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--text-jade-white);
  line-height: 1.35;
}

.animal-modal__feature-icon {
  flex-shrink: 0;
  font-size: 1rem;
}

.animal-modal__name {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  color: var(--text-jade-white);
  margin-bottom: 0.25rem;
}

.animal-modal__archetype {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.animal-modal__element {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid;
  border-radius: 4px;
  padding: 0.15rem 0.6rem;
  margin-bottom: 1rem;
}

.animal-modal__desc {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.animal-modal__cta {
  font-size: 0.8rem;
  padding: 0.7rem 1.5rem;
}


/* ==========================================================================
   18. CALCULADORA DE ANIMAL (Gancho de conversión)
   ========================================================================== */
.calculadora {
  padding: var(--section-padding);
  position: relative;
}

.calculadora__box {
  max-width: 520px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
}

.calculadora__input-row {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.calculadora__input {
  flex: 1;
  max-width: 180px;
  padding: 0.85rem 1rem;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-jade-white);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-hover);
  border-radius: 4px;
  outline: none;
  transition: border-color var(--duration-base) var(--ease-luxury);
  -moz-appearance: textfield;
}

.calculadora__input::-webkit-outer-spin-button,
.calculadora__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.calculadora__input:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.12);
}

.calculadora__btn {
  padding: 0.85rem 1.8rem;
}

/* Resultado */
.calculadora__resultado {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  text-align: left;
}

.calculadora__resultado--anim {
  animation: resultadoFadeIn 0.5s var(--ease-luxury);
}

/* Fix: el atributo hidden debe ocultar el resultado (display:flex lo sobreescribía) */
.calculadora__resultado[hidden] {
  display: none;
}


@keyframes resultadoFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.calculadora__animal-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.calculadora__animal-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.calculadora__animal-name {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  color: var(--text-jade-white);
}

.calculadora__animal-archetype {
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0;
}

.calculadora__animal-element {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid;
  border-radius: 3px;
  padding: 0.1rem 0.45rem;
  margin-top: 0.2rem;
}

.calculadora__nota {
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.calculadora__cta {
  font-size: 0.85rem;
}

/* Móvil: apilar input y botón */
@media (max-width: 480px) {
  .calculadora__input-row {
    flex-direction: column;
    align-items: center;
  }
  .calculadora__input {
    width: 100%;
    max-width: 240px;
  }
  .calculadora__resultado {
    flex-direction: column;
    text-align: center;
  }
  .calculadora__animal-info {
    align-items: center;
    text-align: center;
  }
}


/* ==========================================================================
   19. BANNERS DE IMAGEN (Hero y sección Animales)
   ========================================================================== */
/* Hero: los 12 animales, encima del título y el mockup del teléfono */
.hero__banner {
  grid-column: 1 / -1;
  display: block;
  width: 100%;
  max-width: 860px;
  height: auto;
  margin: 0 auto;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

/* Animales: el maestro bajo las estrellas, encima del título */
.maestro__banner {
  display: block;
  width: 100%;
  max-width: 620px;
  height: auto;
  margin: 0 auto 1.75rem;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}
