body {
  padding-top: 0px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.9) 100%);
  z-index: 2;
}

.h1_grande {
  font-size: 5rem;
  line-height: 5rem;
}

.h2_grande {
  font-size: 5rem;
  line-height: 5rem;
}

.p_grande {
  font-size: 3.5rem;
  line-height: 4.5rem;
  font-weight: 100;
}

.servicios {
  min-height: 100vh;
  /* background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,0.5)),
              url("../img/Makro_01.jpg") center/cover no-repeat; */
}

.service-card {
  padding: 1.5rem;
  border: 2px solid #ddd;
  border-radius: 0.5rem;
  transition: transform 0.3s;

  background-color: rgba(0, 0, 0, 0.3) !important;
  backdrop-filter: blur(10px);
}

.service-card:hover {
  transform: translateY(-25px);
}

.portfolio {
  min-height: 100vh;
}

.clientes {
  min-height: 100vh;
}

.contacto {
  min-height: 100vh;
}

nav {
  height: 72px;
}

.opensans_font_nav {
  font-family: "Open Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 800 !important;
  font-style: normal;
  font-size: 1rem;
}

.bg-dark {
  background-color: rgba(0, 0, 0, 0.5) !important;
}
.py-margen_superior {
  padding-top: 6rem !important;
}

/* =========================
   NAVBAR LINKS
========================= */

/* Links comunes */
.navbar .nav-link {
  color: #9a9a9a; /* gris medio */
  font-weight: 400;
  transition: all 0.2s ease;
}

/* Hover links comunes */
.navbar .nav-link:not(.btn):hover {
  color: #ffffff;
  font-weight: 700;
}

/* Botón CONTACTO */
.navbar .nav-link.btn {
  background-color: #ffffff;
  color: #000000 !important;
  border: none;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 6px;
}

/* Hover botón contacto */
.navbar .nav-link.btn:hover {
  background-color: #eaeaea;
  color: #000000 !important;
}
/* Mantiene color del botón cuando se le pasa el mouse */
.navbar .nav-link.btn.active:hover {
  background-color: #ff6a00;
  color: #fff !important;
}

/* Link activo por sección */
.navbar .nav-link.active:not(.btn) {
  color: #ffffff;
  font-weight: 700;
}

/* BOTON CONTACTO ACTIVO (cuando se llega a la sección) */
.navbar .nav-link.btn.active {
  background-color: #ff6a00;
  color: #ffffff !important;
}

/* =========================
   HERO SLIDER (NUEVO)
========================= */

.hero-slider {
  position: relative;
  overflow: hidden;
}

.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slider .container {
  z-index: 2;
}

.hero-dots {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 3;
}

.hero-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.hero-dots .dot.active {
  background: #ffffff;
}

/* =========================
   SECCIONES FULL SCREEN
========================= */

header.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

/* ======================================
   SECCIONES GENERALES
   Se elimina display:flex porque rompe
   el layout responsive en mobile
====================================== */

section {
  min-height: 100vh;
}

/* =========================
   SECCION SERVICIOS
========================= */

#servicios {
  /* background: linear-gradient(to bottom, #ff002b 20%, #66004d 100%); */
  background:
    linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.5)),
    url("../img/office.jpg") center/cover no-repeat;
}

.espacio_cards {
  margin: 0.1rem 0 0 0.1rem;
}

/* =========================
   QUIENES SOMOS
========================= 
#q_somos {
  /* background: linear-gradient(to bottom, #66004d 60%, #00a17e 100%); 
}*/

.q_somos {
  min-height: 100vh;
  background:
    linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.5)),
    url("../img/fabrica.jpg") center/cover no-repeat;
}

/* =========================
   HERO SLIDER 100vh EN MOBILE
========================= */

header.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh; /* desktop */
}

.hero-slides .hero-slide {
  background-size: cover;
  background-position: center center;
  height: 100vh; /* desktop full screen */
}

/* Mobile: mantener 100vh */
@media (max-width: 575.98px) {
  header.hero {
    min-height: 100vh;
  }
  .hero-slides .hero-slide {
    height: 100vh;
    background-size: cover;
    background-position: center center;
  }

  /* Ajuste opcional: mover los dots un poco más arriba */
  .hero-dots {
    bottom: 10px;
  }
}

/* Tablets: altura intermedia */
@media (min-width: 576px) and (max-width: 991.98px) {
  header.hero {
    min-height: 100vh;
  }
  .hero-slides .hero-slide {
    height: 100vh;
    background-size: cover;
    background-position: center center;
  }
}

/* HERO SLIDER GENERAL */
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  height: 100vh; /* full screen */
}

.hero-slide.active {
  opacity: 1;
}

/* DOTS */
.hero-dots {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 3;
}

.hero-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.hero-dots .dot.active {
  background: #fff;
}

/* ASIGNAR IMÁGENES POR SLIDE */
.hero-slide[data-slide="0"] {
  background-image: url("../img/00_hero/hero_aerolineas_01.jpg");
}
.hero-slide[data-slide="1"] {
  background-image: url("../img/00_hero/hero_changomas_01.jpg");
}
.hero-slide[data-slide="2"] {
  background-image: url("../img/00_hero/hero_makro_01.jpg");
}
.hero-slide[data-slide="3"] {
  background-image: url("../img/00_hero/hero_vital_01.jpg");
}

/* MOBILE: imágenes especiales */
@media (max-width: 768px) {
  .hero-slide[data-slide="0"] {
    background-image: url("../img/00_hero/hero_mobile_aerolineas_01.jpg");
  }
  .hero-slide[data-slide="1"] {
    background-image: url("../img/00_hero/hero_mobile_Changomas_01.jpg");
  }
  .hero-slide[data-slide="2"] {
    background-image: url("../img/00_hero/hero_mobile_makro_01.jpg");
  }
  .hero-slide[data-slide="3"] {
    background-image: url("../img/00_hero/hero_mobile_vital_01.jpg");
  }
}

.espacio_pz {
  padding-top: 120px !important;
  padding-bottom: 120px !important;
}

.espacio_cotizar_pz {
  padding-top: 80px !important;
  padding-bottom: 250px !important;
}

#portfolio {
  background-color: rgb(255, 196, 0);
  /* background: linear-gradient(to bottom, rgb(255, 174, 0) 20%, #d8a600 100%); */
}
.portfolio-item {
  overflow: hidden;
  border-radius: 6px;
}

/* =========================
   IMAGENES PORTFOLIO
========================= */

/* imagen mantiene proporción real */
.portfolio-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

/* hace que el contenido llene la celda del grid */
.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
}

.portfolio-item:hover img {
  transform: scale(1.05);
}

/* overlay */
.portfolio-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
  color: white;
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* aparece en hover */
.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

#contacto p {
  margin-bottom: 0rem;
}

#contacto {
  /* background: linear-gradient(to bottom, #ff002b 20%, #790054 80%); */
  background:
    linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.5)),
    url("../img/contacto.jpg") center/cover no-repeat;
}

/* Espaciado de los botones del NavBAR */
.navbar-nav {
  --bs-navbar-nav-link-padding-x: 0.9rem;
}

/* =========================
   NAVBAR TRANSPARENTE → SOLIDO
   ========================= */

/* Estado inicial: navbar transparente sobre el hero */
.navbar {
  background-color: rgba(0, 0, 0, 0.5) !important;
  transition: background-color 0.3s ease; /* transición suave */
  backdrop-filter: blur(6px); /* efecto vidrio moderno */
}

/* Estado cuando el usuario hace scroll */
.navbar.scrolled {
  background-color: rgba(0, 0, 0, 0.5) !important; /* fondo oscuro */
  backdrop-filter: blur(6px); /* efecto vidrio moderno */
}

/* =========================================
   PORTFOLIO MASONRY AUTOMÁTICO
   Las imágenes se acomodan solas verticalmente
========================================= */

.portfolio-grid {
  column-count: 3;
  column-gap: 16px;
}

.portfolio-item:hover img {
  transform: scale(1.05);
}

/* RESPONSIVE DEL MASONRY
   Ajusta la cantidad de columnas según el dispositivo
   para que las imágenes mantengan buena proporción */

@media (max-width: 1024px) {
  .portfolio-grid {
    column-count: 2;
  }
}

@media (max-width: 575px) {
  .portfolio-grid {
    column-count: 1;
  }
}

@media (max-width: 768px) {
  .portfolio-grid {
    column-count: 2;
  }
}

@media (max-width: 575px) {
  .portfolio-grid {
    column-count: 1;
  }
}

/* =========================
   CELDAS DEL MASONRY
   ========================= */

.portfolio-cell {
  /* evita que el navegador corte una imagen entre columnas
     (clave para layouts masonry con column-count) */
  break-inside: avoid;

  /* compatibilidad con navegadores más viejos y motores de impresión
     evita que el elemento se parta en dos páginas/columnas */
  page-break-inside: avoid;

  /* espacio vertical entre cada imagen del portfolio */
  margin-bottom: 16px;
}

/* Ocultamos el link sin romper GLightbox */
.lightbox-only {
  display: none; /* completamente oculto */
}

/* =====================================
   GRILLA DE LOGOS DE CLIENTES
   grid automático que se adapta al ancho
===================================== */

.clientes-grid {
  display: grid;

  /* crea columnas automáticas sin romper responsive */
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));

  gap: 40px;
  margin-top: 40px;

  align-items: center;
  justify-items: center;
}

/* contenedor de cada logo */
.cliente-logo {
  opacity: 1;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

/* tamaño del logo */
.cliente-logo img {
  max-width: 165px;
  /* width: 100%; */
  height: auto;
  display: block;
}

/* pequeño efecto hover */
.cliente-logo:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* =========================
   SECCION CLIENTES
========================= */

#clientes {
  background-color: rgb(255, 196, 0);
}

/* Botón Enviar con control total de estados (evita transparencia de Bootstrap) */
.btn-enviar {
  font-size: 1.2rem;
  background-color: #ff6a00;
  border-color: #ff6a00;
  color: #ffffff;
  font-weight: 700;
  transition: all 0.2s ease;
}

.btn-enviar:hover {
  background-color: #e65f00;
  border-color: #e65f00;
  color: #ffffff;
}

.btn-enviar:active,
.btn-enviar:focus:active {
  background-color: #cc5500; /* más oscuro que hover */
  border-color: #cc5500;
  color: #ffffff;
  opacity: 1 !important; /* bloquea transparencia */
  box-shadow: none; /* evita overlay gris de Bootstrap */
}

.btn-enviar:focus {
  background-color: #ff6a00;
  border-color: #ff6a00;
  color: #ffffff;
  box-shadow: 0 0 0 0.2rem rgba(255, 106, 0, 0.25);
}

.btn-enviar:active {
  transform: translateY(1px);
}

/* =========================
   HERO SWIPE MOBILE
========================= */

.hero-slider {
  touch-action: pan-y;
}

#que_hacemos {
  background-color: rgb(255, 196, 0);
  /* background: linear-gradient(to bottom, rgb(255, 174, 0) 20%, #d8a600 100%); */
}
