/* styles.css - Estilos personalizados, textura de ruido, glassmorfismo y animaciones */

/* Textura de ruido sutil (silk grain) */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.02;
  pointer-events: none;
  z-index: 9999;
}

/* Glassmorfismo para tarjetas y paneles */
.glass-card {
  background: rgba(26, 22, 20, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(184, 149, 106, 0.25);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(184, 149, 106, 0.08);
  transition: all 0.3s ease;
}

.glass-card:hover {
  border-color: rgba(184, 149, 106, 0.5);
  box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.5);
}

/* Botón primario (bronce sólido) */
.btn-primary {
  background: linear-gradient(135deg, #B8956A 0%, #9c784e 100%);
  color: #161310;
  font-weight: 600;
  border: none;
  box-shadow: 0 2px 8px rgba(184, 149, 106, 0.3);
  transition: all 0.3s;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #c9a47a 0%, #b0885c 100%);
  box-shadow: 0 0 18px rgba(184, 149, 106, 0.6);
  transform: scale(1.02);
}
.btn-primary:active {
  transform: scale(0.98);
}

/* Botón secundario (borde bronce, fondo transparente) */
.btn-secondary {
  background: transparent;
  border: 1px solid rgba(184, 149, 106, 0.7);
  color: #E9E1DB;
  font-weight: 500;
  backdrop-filter: blur(4px);
  transition: all 0.3s;
}
.btn-secondary:hover {
  background: rgba(184, 149, 106, 0.2);
  border-color: #E7C092;
  color: #E7C092;
  backdrop-filter: blur(8px);
}

/* Padding de secciones */
.py-section {
  padding-top: 100px;
  padding-bottom: 100px;
}
@media (max-width: 768px) {
  .py-section {
    padding-top: 60px;
    padding-bottom: 60px;
  }
}

/* Enlaces del navbar (scroll suave) */
.nav-link, .mobile-nav-link {
  position: relative;
  cursor: pointer;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: #E7C092;
  transition: width 0.3s ease;
}
.nav-link:hover::after {
  width: 100%;
}

/* Contadores animados */
.counter {
  display: inline-block;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

/* Animación sutil para trust cards */
.trust-card {
  transition: transform 0.25s ease;
}
.trust-card:hover {
  transform: translateY(-4px);
}

/* Ajustes de formulario */
input, select, textarea {
  transition: all 0.2s;
}
input:focus, select:focus, textarea:focus {
  box-shadow: 0 0 0 2px rgba(184, 149, 106, 0.3);
}

/* Responsive del menú móvil */
#mobile-menu.show {
  display: flex;
}