/* ==========================================================================
   SISTEMA DE DISEÑO "ARQUITECTURA ROCA" — RECINTO SAN JOSÉ
   Archivo: css/styles.css
   ========================================================================== */
:root {
  --bg-piedra: #f7f5f0;
  --text-carbon: #1f2224;
}
body {
  background-color: var(--bg-piedra);
  color: var(--text-carbon);
  font-family:
    "Plus Jakarta Sans",
    system-ui,
    -apple-system,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
.editorial-heading {
  font-family:
    "Outfit",
    system-ui,
    -apple-system,
    sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.14;
}
/* Jerarquía tipográfica de contraste: todo énfasis <strong> dentro de bloques
   de lectura secundarios (.text-pizarra) adopta el color primario (--text-carbon),
   respetando cualquier clase explícita de color (ej. text-white en tarjetas oscuras) */
.text-pizarra strong:not([class*="text-"]) {
  color: var(--text-carbon);
  font-weight: 600;
}
.hero-gradient {
  /* 1. COMPORTAMIENTO BASE (MÓVIL Y TABLET < 1024px):
     Neblina oscura profunda en Negro y Vino Tinto con paradas intermedias
     suavizadas para evitar líneas perceptuales (efecto Mach band). */
  background:
    radial-gradient(
      circle at 86% 28%,
      rgba(110, 38, 46, 0.22) 0%,
      rgba(86, 28, 35, 0.1) 50%,
      transparent 80%
    ),
    linear-gradient(
      95deg,
      rgba(16, 13, 14, 0.97) 0%,
      rgba(18, 14, 15, 0.96) 50%,
      rgba(26, 15, 18, 0.94) 75%,
      rgba(44, 17, 21, 0.89) 100%
    );
}

@media (min-width: 1024px) {
  .hero-gradient {
    /* 2. ESCRITORIO ESTÁNDAR / LAPTOP (1024px a 1499px):
       Búnker oscuro amplio desde 0% hasta 60% para atenuar por completo las lámparas
       cercanas al texto, con caída progresiva multicapa hacia la derecha. */
    background:
      radial-gradient(
        circle at 85% 30%,
        rgba(110, 38, 46, 0.22) 0%,
        rgba(86, 28, 35, 0.1) 50%,
        transparent 80%
      ),
      linear-gradient(
        95deg,
        rgba(16, 13, 14, 0.97) 0%,
        rgba(18, 14, 15, 0.96) 45%,
        rgba(24, 15, 17, 0.93) 62%,
        rgba(34, 16, 20, 0.86) 78%,
        rgba(46, 18, 22, 0.78) 90%,
        rgba(54, 19, 24, 0.72) 100%
      );
  }
}

@media (min-width: 1500px) {
  .hero-gradient {
    /* 3. ESCRITORIO AMPLIO (1500px a 1799px):
       El lado izquierdo permanece resguardado en oscuridad continua para no encender
       las lámparas junto al contenedor, abriendo con suavidad el costado derecho. */
    background:
      radial-gradient(
        circle at 84% 30%,
        rgba(110, 38, 46, 0.24) 0%,
        rgba(86, 28, 35, 0.11) 50%,
        transparent 80%
      ),
      linear-gradient(
        95deg,
        rgba(22, 14, 16, 0.94) 0%,
        rgba(16, 13, 14, 0.97) 10%,
        rgba(18, 14, 15, 0.96) 52%,
        rgba(26, 15, 18, 0.91) 68%,
        rgba(40, 17, 21, 0.8) 84%,
        rgba(54, 19, 24, 0.68) 100%
      );
  }
}

@media (min-width: 1800px) {
  .hero-gradient {
    /* 4. PANTALLAS ULTRA-WIDE (1800px+):
       Conserva exactamente el mismo búnker oscuro (0.97) detrás del texto que en
       pantallas menores, sin radial-gradient izquierdo que tiña de vino el centro,
       y con una apertura izquierda oscura y ultra suave (0.88 -> 0.94 -> 0.97). */
    background:
      radial-gradient(
        circle at 85% 30%,
        rgba(110, 38, 46, 0.24) 0%,
        rgba(86, 28, 35, 0.11) 50%,
        transparent 80%
      ),
      linear-gradient(
        95deg,
        rgba(26, 14, 17, 0.88) 0%,
        rgba(19, 13, 15, 0.94) 6%,
        rgba(16, 13, 14, 0.97) 13%,
        rgba(18, 14, 15, 0.96) 54%,
        rgba(26, 15, 18, 0.91) 68%,
        rgba(40, 17, 21, 0.8) 84%,
        rgba(54, 19, 24, 0.68) 100%
      );
  }
} /* Transición de pliegue para la barra superior móvil de GPS */
#top-crisis-bar {
  max-height: 90px;
  overflow: hidden;
  transition:
    max-height 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    padding 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

#top-crisis-bar.crisis-bar-hidden {
  max-height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  border-bottom-width: 0 !important;
  pointer-events: none;
}

/* Tarjetas Oscuras con Resplandor Dorado Cálido (Sección Crematorio) */
.luminous-card-dark {
  border: 1px solid rgba(197, 168, 126, 0.42);
  background: linear-gradient(
    145deg,
    rgba(34, 37, 39, 0.98) 0%,
    rgba(24, 26, 27, 1) 100%
  );
  box-shadow:
    0 18px 42px -12px rgba(0, 0, 0, 0.85),
    0 0 26px -4px rgba(197, 168, 126, 0.24),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.08);
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s ease,
    border-color 0.4s ease;
}
.luminous-card-dark:hover {
  transform: translateY(-4px);
  border-color: rgba(226, 198, 153, 0.72);
  box-shadow:
    0 22px 48px -10px rgba(0, 0, 0, 0.9),
    0 0 34px -2px rgba(197, 168, 126, 0.36),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.14);
} /* Tarjetas Claras Destacadas (Capilla a Domicilio, Cotización y PROFECO) */
.luminous-card-light {
  position: relative;
  border: 1px solid rgba(154, 123, 79, 0.28);
  background: var(--bg-piedra);
  box-shadow: 0 18px 40px -15px rgba(24, 26, 27, 0.09);
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s ease;
}
.luminous-card-light:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 45px -14px rgba(24, 26, 27, 0.14);
} /* Animaciones suaves de entrada para textos del Hero */
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}
.hero-anim-1 {
  animation: heroFadeUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0s both;
}
.hero-anim-2 {
  animation: heroFadeUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.06s both;
}
.hero-anim-3 {
  animation: heroFadeUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.12s both;
}
.hero-anim-4 {
  animation: heroFadeUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.18s both;
} /* Pilares del Hero sin cajas (elevación sutil y giro de estrella) */
.hero-pillar-card {
  transition: transform 0.35s ease;
}
.hero-pillar-card:hover {
  transform: translateY(-2px);
}
.hero-pillar-star {
  display: inline-block;
  transition:
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    color 0.35s ease;
}
.hero-pillar-card:hover .hero-pillar-star {
  transform: scale(1.38) rotate(12deg);
  color: #fff3d6;
} /* Tarjetas de pasos 01, 02, 03 con bisel limpio */
.bevel-card {
  border: 1.5px solid rgba(154, 123, 79, 0.35);
  background-color: rgba(239, 236, 230, 0.7);
  box-shadow: 0 10px 24px -12px rgba(24, 26, 27, 0.08);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}
.bevel-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -12px rgba(24, 26, 27, 0.13);
} /* Animaciones Scroll Reveal rápidas (380ms) y delays exclusivos para secuencias 1-2-3 (70ms, 160ms, 250ms) */
.reveal {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition:
    opacity 0.38s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
.reveal-delay-1 {
  transition-delay: 70ms;
}
.reveal-delay-2 {
  transition-delay: 160ms;
}
.reveal-delay-3 {
  transition-delay: 250ms;
} /* Tratamiento fotográfico y zoom en hover */
.arch-photo {
  filter: contrast(1.04) saturate(0.92) sepia(0.06);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.arch-photo-wrapper:hover .arch-photo {
  transform: scale(1.03);
} /* Etiquetas de Modo Auditoría para revisión con Gerencia */
.audit-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background-color: #fef3c7;
  color: #92400e;
  border: 1px dashed #d97706;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 0.5rem;
}
/* ==========================================================================
EFECTO PREMIUM SHIMMER (Rayo de luz único para botones Glassmorphism)
========================================================================== */
@keyframes shimmerSweep {
  0% {
    transform: translateX(-100%) skewX(-15deg);
  }
  100% {
    transform: translateX(220%) skewX(-15deg);
  }
}

.btn-premium-shimmer {
  position: relative;
  overflow: hidden;
  /* Corrección: Se agregó 'transform:' */
  transform: translateZ(0);
}

.btn-premium-shimmer::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.5),
    rgba(255, 255, 255, 0)
  );
  animation: shimmerSweep 1.8s cubic-bezier(0.19, 1, 0.22, 1) 0.63s 1 both;
  pointer-events: none;
  z-index: 10;
}

/* ==========================================================================
   RADAR DE COBERTURA REGIONAL (TUXTLA GUTIÉRREZ — 60 KM)
   Dos ondas concéntricas con efecto ola: ejecutan 2 ciclos al entrar en vista
   (.reveal.is-visible) y se reactivan completas al hacer hover (.group:hover).
   ========================================================================== */
@keyframes radarPulse {
  0% {
    transform: scale(0.15);
    opacity: 0.9;
  }
  70% {
    opacity: 0.45;
  }
  100% {
    transform: scale(1.05);
    opacity: 0;
  }
}

@keyframes radarPulseHover {
  0% {
    transform: scale(0.15);
    opacity: 0.9;
  }
  70% {
    opacity: 0.45;
  }
  100% {
    transform: scale(1.05);
    opacity: 0;
  }
}

/* Círculos concéntricos fijos con efecto de cresta de ola suavizado:
   transparentes del centro al 78% del radio y concentrando una opacidad sutil
   en el 20% exterior pegado al perímetro (usando closest-side). */
.radar-static-ring {
  background: radial-gradient(
    circle closest-side,
    rgba(30, 70, 49, 0) 0%,
    rgba(30, 70, 49, 0.01) 78%,
    rgba(30, 70, 49, 0.14) 92%,
    rgba(30, 70, 49, 0.28) 100%
  );
  border: 1px solid rgba(52, 211, 153, 0.2);
}

.radar-finite-pulse {
  opacity: 0;
  background: radial-gradient(
    circle,
    rgba(30, 70, 49, 0.14) 0%,
    rgba(30, 70, 49, 0.04) 60%,
    transparent 100%
  );
  border: 1px solid rgba(52, 211, 153, 0.75);
  box-shadow: 0 0 10px rgba(30, 70, 49, 0.35);
}

.reveal.is-visible .radar-wave-1 {
  animation: radarPulse 2.2s cubic-bezier(0.16, 1, 0.3, 1) 0.25s 2 forwards;
}

.reveal.is-visible .radar-wave-2 {
  animation: radarPulse 2.2s cubic-bezier(0.16, 1, 0.3, 1) 0.9s 2 forwards;
}

.group:hover .radar-wave-1 {
  animation: radarPulseHover 2.2s cubic-bezier(0.16, 1, 0.3, 1) 0s infinite;
}

.group:hover .radar-wave-2 {
  animation: radarPulseHover 2.2s cubic-bezier(0.16, 1, 0.3, 1) 0.65s infinite;
}
