/**
 * M&T Consulting - Estilos personalizados
 * Complementa Tailwind CSS (CDN) con utilidades y componentes propios.
 */

/* Alpine.js: ocultar contenido hasta que esté listo */
[x-cloak] {
  display: none !important;
}

/* Glassmorphism: header, cards, formularios */
.glass {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.dark .glass {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(51, 65, 85, 0.5);
}

/* Hero: gradiente institucional + esmeralda */
.gradient-hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #10b981 100%);
}

.dark .gradient-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 40%, #065f46 100%);
}

/* Galeria de evidencias: mas profesional y responsiva */
.evidencias-section .gallery-grid {
  margin-bottom: 0.5rem;
}

.evidencias-section .gallery-card {
  overflow: hidden;
  border-radius: 1rem;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.evidencias-section .gallery-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(2, 6, 23, 0.16);
}

.evidencias-section .gallery-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 0.75rem;
  cursor: zoom-in;
  transition: transform 250ms ease;
}

.evidencias-section .gallery-card:hover .gallery-image {
  transform: scale(1.02);
}

@media (max-width: 640px) {
  .evidencias-section .gallery-image {
    aspect-ratio: 4 / 3;
  }
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(2, 6, 23, 0.88);
}

.lightbox.is-open {
  display: flex;
}

.lightbox-image {
  max-width: min(1200px, 96vw);
  max-height: 90vh;
  border-radius: 0.75rem;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.75);
  color: #ffffff;
  cursor: pointer;
}
