html {
  scroll-behavior: smooth;
}

body {
  padding-top: 121px;
}

@font-face {
  font-family: "Lava Arabic";
  src: url("../fonts/LavaArabicRegular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ============================================
   BANNER HERO ANIMADO (EFECTO MEJORADO)
   ============================================ */

.banner-hero-container {
  position: relative;
  background-color: #000;
  overflow: hidden;
}

/* --- SLIDES --- */
.banner-hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  filter: blur(15px);
  transform: scale(1.1) translateY(20px);
  transition:
    opacity 1.5s ease-in-out,
    transform 2.5s ease-in-out,
    filter 2.5s ease-in-out;
}

.banner-hero-slide.active {
  opacity: 1;
  filter: blur(0);
  transform: scale(1) translateY(0);
  z-index: 2;
}

/* --- TEXTO --- */
.banner-hero-text {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 1.2s ease-out 0.6s,
    transform 1.2s ease-out 0.6s;
}

.banner-hero-slide.active .banner-hero-text {
  opacity: 1;
  transform: translateY(0);
}

/* --- PROGRESO --- */
.banner-hero-progress-container {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 4px;
  background: rgba(255, 255, 255, 0.2);
  z-index: 10;
}

.banner-hero-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: rgba(255, 255, 255, 0.8);
}

/* --- DOTS --- */
.banner-hero-dot {
  opacity: 0.5;
  width: 10px;
  height: 10px;
  background: white;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.banner-hero-dot.active {
  opacity: 1;
  width: 24px;
  border-radius: 5px;
}

.banner-hero-dot:hover {
  opacity: 0.8;
}

/* ============================================
   VIDEO EMBEBIDO - CONÓCENOS
   ============================================ */
.conocenos-video-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
}

/* YouTube - mantener como está */
.conocenos-video-container.youtube-container {
  height: 300px;
}

@media (min-width: 1024px) {
  .conocenos-video-container.youtube-container {
    height: 100%;
  }
}

/* Instagram - formato vertical más compacto */
.conocenos-video-container.instagram-container {
  height: 450px;
  max-width: 320px;
  margin: 0 auto;
  background: white;
}

@media (min-width: 1024px) {
  .conocenos-video-container.instagram-container {
    height: 500px;
    max-width: 350px;
  }
}

/* iframes estándar */
.conocenos-video-container iframe {
  width: 100% !important;
  height: 100% !important;
  border: none;
  border-radius: 0.5rem;
  display: block;
}

/* Wrapper para Instagram */
.instagram-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
}

.instagram-wrapper iframe {
  width: 100% !important;
  height: 100% !important;
  border: none;
  border-radius: 0.5rem;
}

/* Loader mientras carga */
.conocenos-video-container::before {
  content: "";
  position: absolute;
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 1;
}

.conocenos-video-container iframe {
  position: relative;
  z-index: 2;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ========================================
   TOAST NOTIFICATIONS - FORMULARIO CONTACTO
   ======================================== */

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translate(-50%, -100%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes slideUp {
  from {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  to {
    opacity: 0;
    transform: translate(-50%, -100%);
  }
}

.animate-slide-down {
  animation: slideDown 0.5s ease-out forwards;
}

.animate-slide-up {
  animation: slideUp 0.5s ease-out forwards;
}

#toast-notification {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  transition: all 0.5s ease-in-out;
}

/* ========================================
   ANIMACIÓN BARRA DE PROGRESO - CONTADOR FIRMAS
   ======================================== */

/* Barra de progreso inicia en 0 */
.progress-bar-animated {
  width: 0 !important;
  transition: width 2s ease-out;
}

/* Punto de control inicia en 0 */
.control-point-animated {
  left: 0 !important;
  transition: left 2s ease-out;
}

/* Clase que se agrega después de cargar */
.progress-loaded .progress-bar-animated {
  width: var(--progress-width) !important;
}

.progress-loaded .control-point-animated {
  left: var(--progress-width) !important;
}

/* Evitar que la animación se repita */
.progress-animated {
  /* Clase marcadora - no necesita estilos */
}

.counter-animated {
  /* Clase marcadora para contadores ya animados */
}

.contenido-noticia a {
  color: #000000;
  text-decoration: underline; 
  text-underline-offset: 2px;
  transition:
    color 0.3s ease,
    text-decoration-color 0.3s ease;
}

.contenido-noticia a:hover {
  color: #f39200;
  text-decoration-color: #f39200;
}

.contenido-noticia a:active {
  color: #f39200; 
}
