/* ==========================================================================
   PORTAL MÍSTICO - ESTILO AGRESIVO Y RITUAL (FUEGO Y OBSIDIANA)
   Diseñado para: Consulta Espiritual de Alta Gama y Hechicería
   Colores: HSL Tailored (Negro Carbón, Sangre de Drago, Brasa Ardiente, Oro Fundido)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;900&family=Montserrat:wght@400;500;600;700;800&family=Uncial+Antiqua&family=Playfair+Display:ital,wght@0,600;0,800;1,600&display=swap');

/* Variables del Sistema de Diseño (Estilo Agresivo de Fuego) */
:root {
  /* Paleta de Hechicería */
  --bg-deep: 340deg 15% 3%;            /* #080506 - Obsidiana pura */
  --bg-portal: 350deg 25% 7%;          /* #160e10 - Carbón con matiz rojo */
  --color-fire: 16deg 100% 50%;         /* #ff4500 - Rojo fuego/brasa */
  --color-blood: 358deg 76% 33%;        /* #941115 - Sangre de drago */
  --color-gold: 45deg 75% 50%;          /* #e5b220 - Oro fundido */
  --color-gold-glow: 48deg 95% 65%;     /* #ffe27c - Oro ardiente */
  --color-amber: 32deg 100% 50%;        /* #ff8800 - Ámbar de vela */
  --text-primary: 0deg 0% 100%;         /* #ffffff - Blanco absoluto (Lectura Máxima) */
  --text-secondary: 35deg 30% 90%;      /* #f4ebd0 - Crema claro para legibilidad */
  --text-dim: 350deg 10% 75%;           /* #c4b5b7 - Gris rojizo de alto contraste */
  --text-dark: 0deg 0% 10%;             /* #1a1a1a - Texto del papiro */
  
  /* Fuentes */
  --font-mystical: 'Cinzel', serif;
  --font-gothic: 'Uncial Antiqua', serif;
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Montserrat', sans-serif;
  
  /* Efectos */
  --glass-bg: rgba(15, 8, 10, 0.94);    /* Más sólido para súper legibilidad */
  --glass-border: rgba(255, 69, 0, 0.35);
  --glass-border-focus: rgba(255, 69, 0, 0.85);
  --shadow-fire: 0 0 25px rgba(255, 69, 0, 0.45);
  --shadow-blood: 0 0 35px rgba(148, 17, 21, 0.55);
  --shadow-gold: 0 0 25px rgba(229, 178, 32, 0.4);
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Reset de Estilos */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: hsl(var(--bg-deep));
  color: hsl(var(--text-primary));
  font-family: var(--font-sans);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Canvas para Partículas de Fuego */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* Fondo Dinámico con Auras de Brasa y Humo */
.mystical-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: 
    radial-gradient(circle at 15% 15%, rgba(148, 17, 21, 0.25) 0%, transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(255, 69, 0, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(8, 2, 4, 1) 0%, rgba(1, 0, 0, 1) 100%);
  opacity: 0.98;
}

/* --- ASTROLABIO/CÍRCULO ESOTÉRICO ROTATIVO EN FONDO --- */
.mystical-background::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 70vw;
  height: 70vw;
  max-width: 750px;
  max-height: 750px;
  margin-top: -375px;
  margin-left: -375px;
  border: 1px dashed rgba(255, 69, 0, 0.08);
  border-radius: 50%;
  animation: rotate-clockwise 180s linear infinite;
  pointer-events: none;
  z-index: -1;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.mystical-background::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50vw;
  height: 50vw;
  max-width: 550px;
  max-height: 550px;
  margin-top: -275px;
  margin-left: -275px;
  border: 2px dashed rgba(229, 178, 32, 0.06);
  background: radial-gradient(circle, transparent 65%, rgba(255, 69, 0, 0.03) 72%, transparent 75%);
  border-radius: 50%;
  animation: rotate-counter-clockwise 130s linear infinite;
  pointer-events: none;
  z-index: -1;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

/* Encabezado Principal */
.main-header {
  text-align: center;
  padding: 3rem 1rem 1rem;
  z-index: 10;
  position: relative;
}

.mystical-logo {
  display: inline-block;
  margin-bottom: 0.6rem;
  animation: fire-breathing-logo 3.5s ease-in-out infinite alternate;
}

.mystical-logo svg {
  width: 80px;
  height: 80px;
  fill: hsl(var(--color-fire));
  filter: drop-shadow(0 0 15px rgba(255, 69, 0, 0.85));
}

.main-title {
  font-family: var(--font-gothic);
  font-size: 3.4rem;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 0 25px rgba(255, 69, 0, 0.95), 0 0 5px rgba(255, 185, 0, 0.95);
  margin-bottom: 0.5rem;
}

.subtitle {
  font-family: var(--font-mystical);
  font-size: 1.4rem;
  font-weight: 700;
  color: hsl(var(--color-gold));
  letter-spacing: 5px;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.95);
}

/* --- DISEÑO PRINCIPAL (LAYOUT SPLIT MÍSTICO) --- */
.landing-main {
  flex-grow: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  justify-content: center;
  max-width: 1350px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem;
  z-index: 5;
  position: relative;
  gap: 3.5rem;
}

@media (max-width: 1024px) {
  .landing-main {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 1.5rem;
  }
}

/* Banner de Altar Sagrado (Con Animación de Brasa y Flicker) */
.altar-hero-banner {
  width: 100%;
  height: 100%;
  min-height: 600px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  border: 2px solid rgba(255, 69, 0, 0.4);
  box-shadow: var(--shadow-blood), 0 0 20px rgba(255, 69, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 1024px) {
  .altar-hero-banner {
    min-height: 350px;
    height: 350px;
  }
}

.hero-altar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.8) contrast(1.15) saturate(1.1);
  animation: altar-breath 12s ease-in-out infinite alternate;
  transition: var(--transition-smooth);
}

.hero-overlay-fade {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(8, 2, 4, 0) 50%, rgba(8, 2, 4, 0.95) 100%);
  pointer-events: none;
  z-index: 2;
}

/* Efecto de Vela Parpadeante sobre el Altar */
.altar-hero-banner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 80%, rgba(255, 106, 0, 0.25) 0%, transparent 60%);
  animation: candle-flicker 4s ease-in-out infinite alternate;
  pointer-events: none;
  mix-blend-mode: color-dodge;
  z-index: 3;
}

/* Contenedor del Formulario */
.portal-container {
  width: 100%;
  background: var(--glass-bg);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 2px solid var(--glass-border);
  box-shadow: 
    var(--shadow-blood), 
    inset 0 0 45px rgba(255, 69, 0, 0.12);
  border-radius: 16px;
  padding: 3.5rem 3rem;
  position: relative;
  overflow: hidden;
  animation: border-fire-breath 6s ease-in-out infinite;
}

@media (max-width: 500px) {
  .portal-container {
    padding: 2.5rem 1.8rem;
  }
}

/* Decoraciones Esotéricas en Esquinas */
.portal-container::before,
.portal-container::after {
  content: '';
  position: absolute;
  width: 32px;
  height: 32px;
  border: 2px solid hsl(var(--color-fire));
  pointer-events: none;
  opacity: 0.85;
}

.portal-container::before {
  top: 15px;
  left: 15px;
  border-right: none;
  border-bottom: none;
}

.portal-container::after {
  bottom: 15px;
  right: 15px;
  border-left: none;
  border-top: none;
}

/* --- TARJETAS DE TRABAJOS DE SANTERÍA (Landing Selector) --- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }
}

.service-card {
  background: #070304;
  border: 2px solid rgba(255, 69, 0, 0.28);
  border-radius: 12px;
  padding: 1.35rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: hsl(var(--color-gold));
  opacity: 0;
  transition: var(--transition-smooth);
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: hsl(var(--color-fire));
  background: #110507;
  box-shadow: 0 0 25px rgba(255, 69, 0, 0.45);
}

.service-card.selected {
  border-color: hsl(var(--color-gold));
  background: rgba(148, 17, 21, 0.25);
  box-shadow: var(--shadow-gold);
}

.service-card.selected::after {
  opacity: 1;
  background: hsl(var(--color-gold));
}

.service-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 69, 0, 0.08);
  border: 1px solid rgba(255, 69, 0, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: hsl(var(--color-gold));
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1.2), background 0.3s, color 0.3s;
}

/* Rotación Completa del Icono en Hover (Hechicería Activa) */
.service-card:hover .service-icon {
  color: #fff;
  background: hsl(var(--color-fire));
  border-color: hsl(var(--color-gold-glow));
  transform: scale(1.18) rotate(360deg);
  box-shadow: 0 0 15px rgba(255, 69, 0, 0.7);
}

.service-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.service-content {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.service-title {
  font-family: var(--font-mystical);
  font-size: 1.1rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.5px;
}

.service-desc {
  font-size: 0.875rem;
  color: var(--text-dim);
  font-weight: 500;
  margin-top: 0.3rem;
  line-height: 1.45;
}

/* Barra de Progreso del Formulario (Hilo de Fuego) */
.progress-bar-container {
  margin-bottom: 3rem;
  position: relative;
}

.progress-track {
  height: 3px;
  background: rgba(255, 255, 255, 0.05);
  width: 100%;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 0;
}

.progress-fill {
  height: 3px;
  background: linear-gradient(90deg, hsl(var(--color-blood)), hsl(var(--color-fire)));
  width: 0%;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  transition: var(--transition-smooth);
  box-shadow: 0 0 15px hsl(var(--color-fire));
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.step-indicator {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #0c0608;
  border: 2px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-gothic);
  font-size: 1rem;
  color: var(--text-dim);
  transition: var(--transition-smooth);
  cursor: default;
}

.step-indicator.active {
  border-color: hsl(var(--color-fire));
  color: hsl(var(--color-fire));
  background: #1c0a0c;
  box-shadow: var(--shadow-fire), inset 0 0 8px rgba(255, 69, 0, 0.3);
  transform: scale(1.2);
  font-weight: 700;
}

.step-indicator.completed {
  border-color: hsl(var(--color-fire));
  background: hsl(var(--color-fire));
  color: #fff;
  box-shadow: var(--shadow-fire);
}

/* Manejador de Pasos del Formulario */
.form-step {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.form-step.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Estilos de Bienvenida (Intro) */
.welcome-box {
  text-align: center;
}

.blessing-card {
  background: rgba(148, 17, 21, 0.15);
  border: 2px solid rgba(255, 69, 0, 0.38);
  border-radius: 12px;
  padding: 2.2rem;
  margin: 1rem 0 2.2rem;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(148, 17, 21, 0.4);
}

.blessing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(to bottom, hsl(var(--color-fire)), hsl(var(--color-blood)));
}

.blessing-text {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  line-height: 1.7;
  color: #fff;
  font-weight: 800;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.ritual-instructions {
  font-size: 1.05rem;
  color: hsl(var(--text-secondary));
  line-height: 1.7;
  margin-bottom: 2.2rem;
  font-weight: 500;
}

/* Campos de Formulario (Hiper-legibles) */
.form-group {
  position: relative;
  margin-bottom: 2.2rem;
  width: 100%;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem;
  width: 100%;
}

@media (max-width: 500px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.step-title {
  font-family: var(--font-gothic);
  font-size: 1.6rem;
  font-weight: 400;
  color: hsl(var(--color-gold));
  letter-spacing: 1px;
  margin-bottom: 1.8rem;
  border-bottom: 2px solid rgba(255, 69, 0, 0.3);
  padding-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.step-title svg {
  width: 26px;
  height: 26px;
  fill: hsl(var(--color-fire));
  filter: drop-shadow(0 0 5px rgba(255, 69, 0, 0.5));
}

.input-label {
  display: block;
  font-size: 1rem;
  color: #fff;
  margin-bottom: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.input-wrapper {
  position: relative;
}

.input-wrapper svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  fill: #fff;
  transition: var(--transition-smooth);
  pointer-events: none;
}

.form-control {
  width: 100%;
  padding: 1.1rem 1rem 1.1rem 3rem;
  background: #0f0709;
  border: 2px solid rgba(255, 69, 0, 0.35);
  border-radius: 8px;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  transition: var(--transition-smooth);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6);
}

.form-control:focus {
  outline: none;
  border-color: hsl(var(--color-fire));
  box-shadow: var(--shadow-fire), inset 0 1px 2px rgba(0, 0, 0, 0.8);
  background: #170b0e;
}

.form-control::placeholder {
  color: #7a6e70;
  font-weight: 500;
}

.form-control:focus + svg {
  fill: hsl(var(--color-fire));
  filter: drop-shadow(0 0 4px rgba(255, 69, 0, 0.6));
}

/* Área de Texto Especial */
textarea.form-control {
  min-height: 120px;
  resize: vertical;
  padding-left: 1.2rem;
  line-height: 1.5;
}

/* Cargador de Imágenes Místico */
.photo-upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem;
}

.photo-upload-grid.single-photo {
  grid-template-columns: 1fr;
  max-width: 400px;
  margin: 0 auto;
}

.upload-card {
  background: #0c0507;
  border: 2px dashed rgba(255, 69, 0, 0.4);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  overflow: hidden;
}

.upload-card:hover {
  border-color: hsl(var(--color-fire));
  background: #14080a;
  box-shadow: var(--shadow-fire);
}

.upload-card input[type="file"] {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.upload-icon {
  margin-bottom: 0.8rem;
  transition: var(--transition-bounce);
}

.upload-icon svg {
  width: 52px;
  height: 52px;
  fill: hsl(var(--color-fire));
  filter: drop-shadow(0 0 4px rgba(255, 69, 0, 0.4));
  transition: var(--transition-smooth);
}

.upload-card:hover .upload-icon svg {
  transform: translateY(-8px) scale(1.1);
  filter: drop-shadow(0 0 10px rgba(255, 69, 0, 0.8));
}

.upload-label {
  font-family: var(--font-mystical);
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 1px;
  margin-bottom: 0.4rem;
}

.upload-hint {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-weight: 500;
}

.image-preview-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  display: none;
  z-index: 5;
  border-radius: 10px;
}

.image-preview-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.remove-image-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(148, 17, 21, 0.9);
  border: 1px solid rgba(255, 69, 0, 0.5);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
  z-index: 6;
}

.remove-image-btn:hover {
  background: #ff2200;
  transform: scale(1.1);
  box-shadow: 0 0 10px rgba(255, 34, 0, 0.8);
}

/* Botones de Navegación */
.button-group {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  gap: 1.5rem;
}

.btn-mystical {
  font-family: var(--font-mystical);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 1.1rem 2.2rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-mystical svg {
  width: 20px;
  height: 20px;
}

.btn-primary {
  background: linear-gradient(135deg, hsl(var(--color-blood)), hsl(var(--color-fire)));
  color: #fff;
  box-shadow: var(--shadow-fire);
  width: 100%;
  flex-grow: 2;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 30%;
  height: 100%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-25deg);
  transition: 0.75s;
}

.btn-primary:hover::after {
  left: 150%;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 35px rgba(255, 69, 0, 0.65);
  background: linear-gradient(135deg, hsl(var(--color-fire)), hsl(var(--color-gold)));
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-secondary {
  background: #0f0709;
  color: var(--text-dim);
  border: 2px solid rgba(255, 69, 0, 0.35);
  padding: 1.1rem 1.8rem;
}

.btn-secondary:hover {
  background: #1d0f12;
  color: #fff;
  border-color: hsl(var(--color-fire));
}

/* Pantalla Final de Éxito */
.success-screen-box {
  text-align: center;
}

.magic-code-banner {
  background: #000;
  border: 2px dashed hsl(var(--color-gold));
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1.5rem 0 2.2rem;
  box-shadow: var(--shadow-gold);
}

.magic-code-label {
  font-family: var(--font-mystical);
  font-size: 0.95rem;
  color: hsl(var(--color-gold));
  letter-spacing: 2px;
  font-weight: 800;
}

.magic-code-value {
  font-family: var(--font-gothic);
  font-size: 2.2rem;
  color: #fff;
  letter-spacing: 3px;
  margin-top: 0.5rem;
  text-shadow: 0 0 15px rgba(229, 178, 32, 0.7);
}

/* Pantalla de Carga y Consagración */
.consecration-loader {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #050203;
  z-index: 100;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 2rem;
}

.loader-pentacle {
  width: 100px;
  height: 100px;
  margin-bottom: 2rem;
  animation: spin-clockwise 8s linear infinite;
  filter: drop-shadow(0 0 15px rgba(255, 69, 0, 0.75));
}

.loader-pentacle svg {
  width: 100%;
  height: 100%;
  fill: hsl(var(--color-fire));
}

.consecration-title {
  font-family: var(--font-gothic);
  font-size: 1.8rem;
  color: #fff;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  animation: text-pulse-fire 1.5s infinite alternate;
}

.consecration-text {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text-secondary);
  max-width: 360px;
  line-height: 1.6;
  font-weight: 600;
}

/* Pie de Página */
footer {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-dim);
  font-size: 0.95rem;
  letter-spacing: 1px;
  z-index: 5;
  position: relative;
  font-weight: 500;
  border-top: 1px solid rgba(255, 69, 0, 0.15);
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.footer-blessing {
  color: hsl(var(--color-gold));
  margin-bottom: 0.5rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 700;
  font-size: 1.05rem;
}

/* ==========================================================================
   ANIMACIONES CLAVE (KEYFRAMES)
   ========================================================================== */

@keyframes fire-breathing-logo {
  from {
    filter: drop-shadow(0 0 5px rgba(255, 69, 0, 0.4));
    transform: scale(1) rotate(0deg);
  }
  to {
    filter: drop-shadow(0 0 18px rgba(255, 69, 0, 0.85));
    transform: scale(1.03) rotate(1deg);
  }
}

@keyframes border-fire-breath {
  0%, 100% {
    border-color: rgba(255, 69, 0, 0.25);
    box-shadow: var(--shadow-blood), inset 0 0 20px rgba(255, 69, 0, 0.05);
  }
  50% {
    border-color: rgba(255, 69, 0, 0.55);
    box-shadow: 0 0 35px rgba(148, 17, 21, 0.65), inset 0 0 25px rgba(255, 69, 0, 0.15);
  }
}

@keyframes spin-clockwise {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes rotate-clockwise {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes rotate-counter-clockwise {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

@keyframes altar-breath {
  0% {
    transform: scale(1.0);
    filter: brightness(0.8) contrast(1.15) saturate(1.1);
  }
  100% {
    transform: scale(1.05);
    filter: brightness(0.92) contrast(1.2) saturate(1.15);
  }
}

@keyframes candle-flicker {
  0%, 100% {
    opacity: 0.7;
    transform: scale(1.0);
  }
  20% {
    opacity: 0.85;
    transform: scale(1.02);
  }
  40% {
    opacity: 0.6;
    transform: scale(0.98);
  }
  60% {
    opacity: 0.95;
    transform: scale(1.04);
  }
  80% {
    opacity: 0.5;
    transform: scale(0.96);
  }
}

@keyframes text-pulse-fire {
  from {
    opacity: 0.65;
    text-shadow: 0 0 5px rgba(255,255,255,0.2);
  }
  to {
    opacity: 1;
    text-shadow: 0 0 18px rgba(255, 69, 0, 0.8);
  }
}

/* Estilos de Validación */
.input-error {
  border-color: #ff3333 !important;
  box-shadow: 0 0 10px rgba(255, 51, 51, 0.45) !important;
}

.error-message {
  color: #ff4d4d;
  font-size: 0.85rem;
  margin-top: 0.5rem;
  display: none;
  font-weight: 700;
  text-shadow: 0 1.5px 2px rgba(0,0,0,0.8);
}

/* ==========================================================================
   OPTIMIZACIONES MÓVILES AVANZADAS (Responsive Esotérico)
   ========================================================================== */

@media (max-width: 768px) {
  /* Cabecera Principal */
  .main-header {
    padding: 1.5rem 1rem 0.5rem;
  }

  .mystical-logo {
    margin-bottom: 0.4rem;
  }

  .mystical-logo svg {
    width: 60px;
    height: 60px;
  }

  .main-title {
    font-size: 2.5rem;
    letter-spacing: 2px;
  }

  .subtitle {
    font-size: 1.15rem;
    letter-spacing: 3px;
  }

  /* Distribución y Contenedor Principal */
  .landing-main {
    padding: 1rem;
    gap: 1.5rem;
  }

  .altar-hero-banner {
    min-height: 240px;
    height: 240px;
    border-radius: 12px;
  }

  .portal-container {
    padding: 2rem 1.5rem;
    border-radius: 12px;
  }

  /* Cuadrícula de Servicios (Paso I) */
  .services-grid {
    gap: 12px;
    margin-top: 1.5rem;
  }

  .service-card {
    padding: 1.1rem 1rem;
    gap: 12px;
    border-radius: 10px;
  }

  .service-icon {
    width: 42px;
    height: 42px;
  }

  .service-icon svg {
    width: 20px;
    height: 20px;
  }

  .service-title {
    font-size: 1.05rem;
  }

  .service-desc {
    font-size: 0.8rem;
    margin-top: 0.2rem;
  }

  /* Sección de Bienvenida */
  .blessing-card {
    padding: 1.5rem 1.25rem;
    margin: 0.5rem 0 1.5rem;
    border-radius: 10px;
  }

  .blessing-text {
    font-size: 1.15rem;
    line-height: 1.55;
  }

  .ritual-instructions {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
  }

  /* Títulos de Pasos y Formulario */
  .step-title {
    font-size: 1.35rem;
    margin-bottom: 1.2rem;
    padding-bottom: 0.5rem;
  }

  .step-title svg {
    width: 22px;
    height: 22px;
  }

  .input-label {
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
  }

  .form-control {
    padding: 0.95rem 1rem 0.95rem 2.6rem;
    font-size: 1rem;
  }

  textarea.form-control {
    padding-left: 1rem;
    min-height: 100px;
  }

  .input-wrapper svg {
    left: 12px;
    width: 18px;
    height: 18px;
  }

  .form-group {
    margin-bottom: 1.5rem;
  }

  /* Barra de Progreso Mística */
  .progress-bar-container {
    margin-bottom: 2rem;
  }

  .step-indicator {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }

  .step-indicator.active {
    transform: scale(1.15);
  }

  /* Subidor de Fotos */
  .photo-upload-grid {
    gap: 1rem;
  }

  .upload-card {
    min-height: 160px;
    padding: 1.5rem 1rem;
    border-radius: 10px;
  }

  .upload-icon {
    margin-bottom: 0.5rem;
  }

  .upload-icon svg {
    width: 40px;
    height: 40px;
  }

  .upload-label {
    font-size: 0.85rem;
  }

  .upload-hint {
    font-size: 0.75rem;
  }

  /* Botones del Ritual */
  .button-group {
    flex-direction: column-reverse;
    gap: 0.75rem;
    margin-top: 2rem;
  }

  .btn-mystical {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
    justify-content: center;
    border-radius: 6px;
  }

  .btn-secondary {
    padding: 0.95rem 1.5rem;
  }

  /* Pie de Página */
  footer {
    padding: 2rem 1rem;
    margin-top: 1rem;
  }

  .footer-blessing {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  footer {
    padding: 1.75rem 1rem calc(1.75rem + env(safe-area-inset-bottom, 0));
    font-size: 0.85rem;
  }

  .footer-blessing {
    font-size: 0.9rem;
  }

  .main-title {
    font-size: 2.1rem;
    letter-spacing: 1.5px;
  }

  .subtitle {
    font-size: 0.95rem;
    letter-spacing: 2px;
  }

  .portal-container {
    padding: 1.5rem 1rem;
  }

  .portal-container::before {
    top: 10px;
    left: 10px;
    width: 20px;
    height: 20px;
  }

  .portal-container::after {
    bottom: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
  }

  .form-row {
    gap: 1.2rem;
  }

  .magic-code-banner {
    padding: 1.2rem 1rem;
    margin: 1.2rem 0 1.8rem;
  }

  .magic-code-label {
    font-size: 0.85rem;
    letter-spacing: 1.5px;
  }

  .magic-code-value {
    font-size: 1.8rem;
    letter-spacing: 2px;
  }

  #btn-whatsapp {
    padding: 1.1rem !important;
    font-size: 1rem !important;
  }
}

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

body {
  overflow-x: hidden;
}
