/*body {
  background: #0D0D0D;
  color: #EEE;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}*/
/* ==========================================================
   FONDO GLOBAL PREMIUM — estilo NewGenre (oscuro arriba)
   Se aplica a TODAS las páginas
   ========================================================== */

/* ==========================================================
   HERO PREMIUM — unificado (sí respeta el fondo global)
   ========================================================== */
body {
  background: linear-gradient(
    to bottom,
    #0a0a0d 0%,        /* negro profundo */
    #0d1016 20%,       /* tono industrial oscuro */
    #161c27 45%,       /* azul metálico muy oscuro */
    #1d2a3f 70%,       /* azul grisáceo profesional */
    #233d60 100%       /* azul profundo */
  );

  background-attachment: fixed;
  background-size: 100% 200%;
  animation: globalBGMove 5s ease-in-out infinite alternate;
  color: #EEE;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

@keyframes globalBGMove {
  from { background-position: 0% 0%; }
  to   { background-position: 0% 100%; }
}

/*.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  
  background: linear-gradient(
    to bottom,
    rgba(5, 5, 8, 0.95) 0%,
    rgba(15, 18, 26, 0.90) 35%,
    rgba(25, 38, 58, 0.85) 75%,
    rgba(35, 61, 96, 0.80) 100%
  );

  background-size: 100% 200%;
  animation: heroGradientMove 14s ease-in-out infinite alternate;
  backdrop-filter: blur(1px);
}*/

/* ==========================================================
   HERO CON VIDEO — fondo animado ultra-premium
   ========================================================== */

/* HERO con video de fondo */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

/* Video full-screen detrás del contenido */
.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
}

/* Capa oscura + degradado sobre el video */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(5, 5, 8, 0.92) 0%,
    rgba(10, 12, 18, 0.90) 30%,
    rgba(20, 30, 50, 0.88) 70%,
    rgba(15, 20, 30, 0.95) 100%
  );
}

/* Contenido por encima del video + overlay */
.hero-content {
  position: relative;
  z-index: 2;
}

/* Logo sobre el video */
.logo-hero {
  height: 200px;
  filter: drop-shadow(0 0 25px rgba(0,114,206,0.45));
}


@keyframes heroGradientMove {
  from { background-position: 0% 0%; }
  to   { background-position: 0% 100%; }
}

/* ==========================================================
   MENÚ PREMIUM — estilo equilibrado con el fondo NewGenre
   ========================================================== */

/* Enlaces del menú */
.nav-link-custom {
  color: #cfd8e3 !important;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: all 0.25s ease-in-out;
  padding: 6px 10px;
  border-radius: 6px;
  position: relative;
}

/* Hover con glow suave */
.nav-link-custom:hover {
  color: #ffffff !important;
  text-shadow: 0 0 8px rgba(0, 114, 206, 0.6);
  transform: translateY(-2px);
}

/* Indicador inferior animado */
.nav-link-custom::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, #0072CE, #00A3FF);
  border-radius: 2px;
  transition: width 0.25s ease-in-out;
}

.nav-link-custom:hover::after {
  width: 100%;
}

/* ==========================================================
   BOTÓN "COTIZAR" estilo premium
   ========================================================== */
.navbar .btn-primary {
  background: linear-gradient(145deg, #0072CE 0%, #004A89 100%);
  border: 1px solid #0c2947;
  box-shadow: 0 0 12px rgba(0,114,206,0.5);
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.25s ease-in-out;
}

.navbar .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 22px rgba(0,114,206,0.8);
  background: linear-gradient(145deg, #0088FF 0%, #0056A8 100%);
}


/* TITLES */
.section-title {
  color: #EEE;
}

/* ==========================================================
   TARJETAS DE SERVICIO — GLASSMORPHISM PREMIUM
   ========================================================== */

.card-service {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(15, 20, 30, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: 0.35s ease;
  padding: 0 !important; /* IMPORTANTE: elimina el padding fijo */
}

/* fondo tipo cover */
.card-service .service-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  z-index: 1;
}

/* overlay oscuro para mejorar legibilidad */
.card-service::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
      to bottom,
      rgba(0,0,0,0.40),
      rgba(0,0,0,0.55)
  );
  z-index: 2;
}

/* contenido dentro de la tarjeta */
.card-service .content {
  position: relative;
  z-index: 3;
  padding: 24px;
}

/* hover premium */
.card-service:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 32px rgba(0,114,206,0.25);
  border-color: rgba(0,114,206,0.4);
}
/*
.card-service {
  min-height: 340px;
}*/
.card-service {
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.cotizar-form {
  padding: 10px !important;
}
.cotizar-form::after {
  display: none !important;
}

a {
  text-decoration: none !important;
}

/* ICON BOX */
.icon-box {
  height: 60px;
  width: 60px;
  margin: auto;
  border-radius: 14px;
  background: linear-gradient(145deg, #0072CE 0%, #004A89 100%);
  box-shadow: 0 0 20px rgba(0,114,206,0.6);
}

/* HIGHLIGHT BOX */
.highlight-box {
  border-radius: 14px;
  background: radial-gradient(circle at top left, #1f2730, #111111);
  border: 1px solid #273445;
}

.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  backdrop-filter: blur(1px);
}

.service-photo {
  width: 20%;
  border-radius: 14px;
  box-shadow: 0 0 25px rgba(0,114,206,0.35);
  object-fit: cover;
}

.service-bg {
  background-size: cover;
  background-position: center;
  position: relative;
}

.service-bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(2px);
  border-radius: 14px;
}

/* === DESTELLO CON CHISPA EXPANSIVA === */
.footer-spark {
  position: relative;
  overflow: hidden;
}

.footer-spark::before {
  content: "";
  position: absolute;
  top: 0;
  left: -20%;
  width: 20%;
  height: 3px;
  background: radial-gradient(circle, rgba(0,255,255,1) 0%, rgba(0,120,255,0.3) 60%, rgba(0,120,255,0) 100%);
  animation: spark-move 5s ease-in-out infinite;
}

@keyframes spark-move {
  0% {
    left: -20%;
    transform: scaleX(0.3);
  }
  50% {
    transform: scaleX(1.8); /* chispa se expande */
  }
  100% {
    left: 120%;
    transform: scaleX(0.3);
  }
}

/*GALERIA DE SERVICIOS*/

/*.gallery-item img {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery-item img:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(0,0,0,0.6);
}*/
/* ===============================
   TARJETA DE IMAGEN — HILO
   =============================== */
.gallery-item {
  background: rgba(15,20,30,0.55);
  border-radius: 16px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,0.06);
  transition: all 0.35s ease;
}

.gallery-item:hover {
  border-color: rgba(0,114,206,0.45);
  box-shadow: 0 10px 35px rgba(0,114,206,0.25);
}

.gallery-item img {
  border-radius: 12px;
}


/* Destacar piezas clave automáticamente */
.gallery-item:nth-child(1),
.gallery-item:nth-child(6),
.gallery-item:nth-child(11),
.gallery-item:nth-child(16) {
  transform: scale(1.04);
}

.gallery-item:nth-child(1) img,
.gallery-item:nth-child(6) img {
  box-shadow: 0 20px 50px rgba(0,114,206,0.45);
}

.pieza-tag {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #9fb7d6;
  text-align: center;
  opacity: 0.75;
}

/* ===============================
   GALERÍA — NORMALIZACIÓN IMÁGENES
   =============================== */
.gallery-item {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item img {
  width: 80%;
  height: 80%;
  object-fit: cover; /* CLAVE */
  border-radius: 12px;
}



/* ===============================
   CATÁLOGO HILO — CONTENEDOR
   =============================== */
.catalogo-hilo {
  background: linear-gradient(
    180deg,
    rgba(10,15,25,0.65),
    rgba(15,25,45,0.55)
  );
  border-radius: 22px;
  padding: 40px 30px;
  box-shadow: inset 0 0 40px rgba(0,0,0,0.35);
}

/* ===============================
   LIGHTBOX PROFESIONAL
   =============================== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5,10,20,0.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.lightbox-img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 16px;
  box-shadow: 0 0 60px rgba(0,114,206,0.45);
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
  opacity: 0.7;
}

.lightbox-close:hover {
  opacity: 1;
}




/* ===============================
   EFECTO BISEL INDUSTRIAL
   =============================== */
.gallery-item {
  position: relative;
}

.gallery-item::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.12),
    rgba(255,255,255,0.02) 40%,
    rgba(0,0,0,0.25) 60%,
    rgba(0,0,0,0.45)
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.gallery-item:hover::before {
  opacity: 1;
}


/* ===============================
   EFECTO SCANLINE TÉCNICO
   =============================== */
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.04),
    rgba(255,255,255,0.04) 1px,
    transparent 1px,
    transparent 4px
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.gallery-item:hover::after {
  opacity: 0.35;
}


/* ===============================
   ZOOM DE PRECISIÓN
   =============================== */
.gallery-item img {
  transition: transform 0.45s cubic-bezier(.25,.8,.25,1);
}

.gallery-item:hover img {
  transform: scale(1.08);
}


/* ===============================
   GLOW INDUSTRIAL AZUL
   =============================== */
.gallery-item:hover {
  box-shadow:
    0 0 0 1px rgba(0,114,206,0.35),
    0 18px 45px rgba(0,114,206,0.25);
}


/*
.bg-cotizar {
  position: relative;
  background-image: url('/img/fondo_1.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 12px;
  overflow: hidden;
}


.bg-cotizar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

.bg-cotizar > * {
  position: relative;
  z-index: 2;
}*/

