/* Fundación Bon Sens - Estilos globales... */

:root {
  --color-primary: #cc0000;
  --color-black: #111111;
  --color-white: #ffffff;
  --color-light: #f5f5f5;
  --color-dark-gray: #4a4a4a;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--color-black);
  background-color: #f6f8fa; /* Soft off-white to contrast glass panels */
  position: relative;
  overflow-x: hidden;
}

/* Ambient glow blobs for glassmorphism refraction */
body::before,
body::after {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.08;
  z-index: -1;
  pointer-events: none;
}

body::before {
  background: #cc0000;
  top: 12%;
  left: -200px;
}

body::after {
  background: #ff5555;
  top: 60%;
  right: -200px;
}

/* Header sticky - Subtle claymorphic floating effect */
.site-header {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/*.site-header.is-sticky */
.site-header.is-sticky {
  background-color: rgba(255, 255, 255, 0.6) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4) !important;
  box-shadow: 
    0 10px 30px -10px rgba(0, 0, 0, 0.04),
    inset 1px 1px 2px rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
}

/* Nav links premium hover effect */
.nav-link {
  position: relative;
  font-weight: 500;
  transition: color 0.25s ease;
}

.nav-link:hover {
  color: var(--color-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--color-primary);
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Hero & Animaciones de Entrada */
.hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.55),
    rgba(0, 0, 0, 0.35)
  );
}

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

.hero-title {
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-btn {
  opacity: 0;
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

/* Posicionamiento adaptativo de la imagen de fondo del Hero */
.hero-bg-img {
  object-position: center 25%; /* Optimizado para móviles vertical - restaurado... */
  transition: object-position 0.3s ease;
}

@media (min-width: 768px) {
  .hero-bg-img {
    object-position: center 10%; /* Ajuste para escritorio - restaurado para mostrar cabezas */
  }
}

/* Utilidades de Animación por Scroll (Scroll Reveal) */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Utilidades visuales */
.section-title {
  letter-spacing: -0.02em;
}

/* Card Hover - Aggressive Glassmorphism */
.card-hover {
  background: rgba(255, 255, 255, 0.45) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  border-radius: 24px !important;
  box-shadow: 
    0 16px 36px -12px rgba(0, 0, 0, 0.06),
    0 8px 16px -8px rgba(0, 0, 0, 0.02),
    inset 1px 1px 2px rgba(255, 255, 255, 0.8) !important;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.card-hover:hover {
  transform: translateY(-8px) scale(1.01);
  background: rgba(255, 255, 255, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.85) !important;
  box-shadow: 
    0 24px 48px -15px rgba(0, 0, 0, 0.1),
    0 12px 24px -10px rgba(0, 0, 0, 0.04),
    inset 2px 2px 4px rgba(255, 255, 255, 0.9) !important;
}

/* Primary Button - Red Glassmorphic Button */
.btn-primary {
  background: rgba(204, 0, 0, 0.75) !important;
  color: var(--color-white) !important;
  border-radius: 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  box-shadow: 
    0 8px 20px -6px rgba(204, 0, 0, 0.25),
    inset 1px 1px 2px rgba(255, 255, 255, 0.4) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-primary:hover {
  background: rgba(204, 0, 0, 0.9) !important;
  filter: brightness(1.05);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.45) !important;
  box-shadow: 
    0 12px 24px -4px rgba(204, 0, 0, 0.35),
    inset 2px 2px 4px rgba(255, 255, 255, 0.5) !important;
}

/* Noticias placeholder */
.elfsight-placeholder {
  border: 2px dashed #d1d5db;
  border-radius: 12px;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #6b7280;
  padding: 1rem;
  background: #fafafa;
}

/* Botón flotante WhatsApp y Animación */
@keyframes whatsapp-pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}

/* WhatsApp Floating Button - Glassmorphism */
.whatsapp-float {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 211, 102, 0.75) !important;
  color: white;
  box-shadow: 
    0 10px 24px -6px rgba(37, 211, 102, 0.3),
    inset 2px 2px 4px rgba(255, 255, 255, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  z-index: 60;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  animation: whatsapp-pulse 2.5s infinite ease-in-out;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

.whatsapp-float:hover {
  background: rgba(37, 211, 102, 0.95) !important;
  transform: scale(1.15) translateY(-4px);
  animation: none;
  box-shadow: 
    0 14px 28px -6px rgba(37, 211, 102, 0.45),
    inset 2px 2px 4px rgba(255, 255, 255, 0.6) !important;
}

/* Campos de formulario */
/* Form Input - Glassmorphism */
.form-input {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.4) !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  border-radius: 12px !important;
  padding: 0.75rem 0.9rem;
  outline: none;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  box-shadow: 
    inset 1px 1px 2px rgba(0, 0, 0, 0.02),
    0 4px 6px -4px rgba(0, 0, 0, 0.02) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-input:focus {
  border-color: rgba(204, 0, 0, 0.5) !important;
  background-color: rgba(255, 255, 255, 0.7) !important;
  box-shadow: 
    0 0 0 3px rgba(204, 0, 0, 0.15),
    inset 1px 1px 2px rgba(0, 0, 0, 0.01),
    inset -2px -2px 6px rgba(255, 255, 255, 0.9) !important;
}

/* Estado activo de navegación */
.nav-link.active {
  color: var(--color-primary);
  font-weight: 700;
}

/* Ajustes responsive */
@media (max-width: 767px) {
  .hero-title {
    font-size: 2rem;
    line-height: 1.2;
  }
  .whatsapp-float {
    right: 1rem;
    bottom: 1rem;
  }
}

/* Toast notificación portal de donaciones */
#donation-toast {
  max-width: calc(100vw - 2rem);
  text-align: center;
}

/* Skeleton Loaders */
@keyframes skeleton-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

.animate-pulse-custom {
  animation: skeleton-pulse 1.6s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.skeleton-bg {
  background-color: #e5e7eb; /* Tailwind gray-200 */
}

.skeleton-bg-dark {
  background-color: #d1d5db; /* Tailwind gray-300 */
}

/* --- GLASSMORPHISM AGRESIVO SYSTEM --- */

/* Global rounded-2xl overrides for Glassmorphism */
.rounded-2xl {
  background: rgba(255, 255, 255, 0.45) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  border-radius: 24px !important;
  box-shadow: 
    0 16px 36px -12px rgba(0, 0, 0, 0.05),
    0 8px 16px -8px rgba(0, 0, 0, 0.02),
    inset 1px 1px 2px rgba(255, 255, 255, 0.8) !important;
}

/* Reset shadows and borders on direct images so they don't look weird */
img.rounded-2xl {
  box-shadow: none !important;
  border: none !important;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Glassmorphism for dark sections */
.bg-gradient-to-b.from-\[\#131313\] .card-hover,
.bg-gradient-to-b.from-\[\#131313\] #videos-container > div {
  background: rgba(255, 255, 255, 0.06) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 
    0 20px 40px -15px rgba(0, 0, 0, 0.25),
    inset 1px 1px 1px rgba(255, 255, 255, 0.15) !important;
}

.bg-gradient-to-b.from-\[\#131313\] .card-hover:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  box-shadow: 
    0 28px 48px -12px rgba(0, 0, 0, 0.4),
    inset 2px 2px 2px rgba(255, 255, 255, 0.2) !important;
}

/* Color-specific glassmorphic styles for solid primary backgrounds */
.bg-\[\#CC0000\],
[class*="from-[#CC0000]"],
#donar-online {
  background: rgba(204, 0, 0, 0.85) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow: 
    0 16px 36px -12px rgba(0, 0, 0, 0.25),
    inset 1px 1px 2px rgba(255, 255, 255, 0.2) !important;
}

/* Secondary/Outlined buttons styled as glassy borders */
.border-2.border-\[\#CC0000\] {
  border-width: 1px !important;
  border-color: rgba(204, 0, 0, 0.4) !important;
  background-color: rgba(255, 255, 255, 0.2) !important;
  color: #cc0000 !important;
  border-radius: 12px !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  box-shadow: 
    0 4px 10px -2px rgba(204, 0, 0, 0.05),
    inset 1px 1px 2px rgba(255, 255, 255, 0.8) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.border-2.border-\[\#CC0000\]:hover {
  background-color: rgba(204, 0, 0, 0.8) !important;
  color: white !important;
  box-shadow: 
    0 8px 16px -4px rgba(204, 0, 0, 0.25),
    inset 2px 2px 4px rgba(255, 255, 255, 0.4) !important;
}

/* Gallery Tab Navigation Wrapper overrides */
.gallery-tabs-wrapper {
  background-color: rgba(255, 255, 255, 0.3) !important;
  backdrop-filter: blur(16px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(140%) !important;
  border-radius: 16px !important;
  padding: 4px !important;
  box-shadow: 
    0 6px 20px -8px rgba(0, 0, 0, 0.05),
    inset 1px 1px 2px rgba(255, 255, 255, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
}

.gallery-tabs-wrapper button {
  border-radius: 12px !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.gallery-tabs-wrapper button.bg-white {
  background-color: rgba(255, 255, 255, 0.8) !important;
  box-shadow: 
    0 4px 10px -2px rgba(0, 0, 0, 0.05),
    inset 1px 1px 2px rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(255, 255, 255, 0.8) !important;
}

