@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 5.5rem;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
}

/* Enlace activo con subrayado amarillo */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: #F5A623;
  transition: width 0.3s ease;
}

.nav-link.text-ascentra-yellow::after,
.nav-link:hover::after {
  width: 100%;
}

/* Hero overlay gradiente */
.hero-overlay {
  background: linear-gradient(
    90deg,
    rgba(18, 18, 18, 0.92) 0%,
    rgba(18, 18, 18, 0.75) 45%,
    rgba(18, 18, 18, 0.35) 100%
  );
}

/* Value section overlay */
.value-overlay {
  background: linear-gradient(
    90deg,
    rgba(18, 18, 18, 0.95) 0%,
    rgba(18, 18, 18, 0.85) 50%,
    rgba(18, 18, 18, 0.6) 100%
  );
}

/* Tarjetas de producto */
.product-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.product-card img {
  transition: transform 0.4s ease;
}

.product-card:hover img {
  transform: scale(1.05);
}

/* Botones de ficha en cards estrechas (≤448px, 2 columnas en móvil) */
@media (max-width: 448px) {
  .data-sheet-btn {
    min-height: 2.75rem;
  }
}

/* Botones */
.btn-primary {
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-primary:hover {
  background-color: #E09500;
  transform: translateY(-1px);
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Iconos de beneficios */
.benefit-icon {
  transition: transform 0.3s ease;
}

.benefit-item:hover .benefit-icon {
  transform: scale(1.1);
}

/* Animación fade-in al cargar */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease forwards;
}

.animate-delay-100 { animation-delay: 0.1s; }
.animate-delay-200 { animation-delay: 0.2s; }
.animate-delay-300 { animation-delay: 0.3s; }

/* Mapa de Google */
.map-container iframe {
  filter: grayscale(20%) contrast(1.05);
}

/* Modal ficha técnica */
.data-sheet-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.data-sheet-modal.hidden {
  display: none;
}

.data-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 18, 18, 0.85);
  backdrop-filter: blur(4px);
}

.data-sheet-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
}

.data-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e5e7eb;
}

.data-sheet-close {
  flex-shrink: 0;
  padding: 0.25rem;
  color: #6B7280;
  transition: color 0.2s ease;
}

.data-sheet-close:hover {
  color: #121212;
}

.data-sheet-body {
  overflow: auto;
  padding: 1rem;
  background: #F3F4F6;
}
