/* =========================================
   GLOBAL
========================================= */
img-fluid, video { 
  max-width: 100%; 
  height: auto; 
}

.section-landing-hero, 
.section-landing-quality { 
  scroll-margin-top: 80px; 
}

hr.my-5 { opacity: .15; }
.text-justify { text-align: justify; }

/* =========================================
   FOOTER
========================================= */
footer {
  position: relative;
  width: 100%;
  background: #fff;
  min-height: 100px;
  padding: 20px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

footer .social_icon,
footer .menu {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 10px 0;
}

footer .social_icon li,
footer .menu li { list-style: none; }

footer .social_icon li a {
  font-size: 2em;
  color: #ccc;
  margin: 0 10px;
  transition: 0.5s;
}
footer .social_icon li a:hover {
  transform: translateY(-15px);
  color: blue;
}

footer .menu li a {
  font-size: 1.2em;
  color: #ccc;
  margin: 0 10px;
  transition: 0.5s;
  text-decoration: none;
  opacity: 0.75;
}
footer .menu li a:hover { 
  opacity: 1; 
  color: #000; 
}

.footer-title {
  font-size: .9rem;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #6c757d;
  margin-bottom: .75rem;
}

.footer-links li + li { margin-top: .35rem; }
.footer-links a { color: #343a40; text-decoration: none; }
.footer-links a:hover { color: #0d6efd; text-decoration: underline; }

@media (max-width: 576px) {
  .footer .row > [class*="col"] { margin-bottom: .5rem; }
}

/* =========================================
   NAVBAR
========================================= */
.brand-logo {
  height: 56px;
  width: auto;
  max-width: none;
  display: block;
}

.nav-link {
  color: #333;
  position: relative;
  transition: color 0.2s ease, border-bottom 0.2s ease;
}
.nav-link:hover { color: #007bff; }
.nav-link::after {
  content: "";
  position: absolute; 
  left: 0; 
  bottom: 0;
  width: 0%; 
  height: 2px; 
  background-color: #007bff;
  transition: width 0.25s ease-in-out;
}
.nav-link:hover::after { width: 100%; }

.active-link {
  color: #0d6efd !important;
  font-weight: 600;
}
.active-link::after { width: 100%; }

@media (min-width: 992px) {
  header .nav { margin-left: 1.5rem; justify-content: flex-start; }
}

.mobile-primary .nav-link {
  padding-top: .25rem; 
  padding-bottom: .25rem; 
  font-size: .95rem;
}

/* Hamburger button */
.menu-toggle {
  background: transparent; 
  border: none;
  display: flex; 
  flex-direction: column; 
  justify-content: center; 
  align-items: center;
  gap: 5px; 
  width: 42px; 
  height: 42px; 
  border-radius: 8px; 
  cursor: pointer;
  transition: all 0.25s ease;
}
.menu-toggle .bar {
  width: 24px; 
  height: 2.5px; 
  background-color: #222; 
  border-radius: 2px;
  transition: all 0.3s ease;
}
.menu-toggle:hover { 
  background-color: rgba(0,0,0,0.05); 
  box-shadow: 0 0 0 1px rgba(0,0,0,0.08); 
}
.menu-toggle:hover .bar { background-color: #0d6efd; }
.menu-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================
   HERO (Full-bleed video)
========================================= */
.hero.hero--video {
  position: relative;
  width: 100%;
  min-height: min(90vh, 900px);
  display: grid;
  place-items: center;
  overflow: hidden;
  margin-bottom: 20px;
  z-index: 0;
}

.hero__video {
  position: absolute; 
  inset: 0; 
  width: 100%; 
  height: 100%;
  object-fit: cover; 
  object-position: center; 
  z-index: 0;
}

.hero__overlay {
  position: absolute; 
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.45) 60%, rgba(0,0,0,0.55) 100%);
  z-index: 1;
}

.hero__content { 
  position: relative; 
  z-index: 2; 
  padding-top: 6rem; 
  padding-bottom: 6rem; 
}

@media (min-width: 992px) { 
  .hero__content .display-3 { font-size: clamp(2.5rem, 4vw, 4rem); } 
}

@media (prefers-reduced-motion: reduce) {
  .hero__video { display: none; }
  .hero.hero--video { background: url('/imgs/hero-poster.jpg') center/cover no-repeat; }
}

/* =========================================
   CAROUSEL (Landing Page)
========================================= */
.carousel-inner,
.carousel-item,
.carousel-img { height: 100%; }

.carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-indicators [data-bs-target] {
  width: .75rem; 
  height: .75rem; 
  border-radius: 50%;
}

.ratio-9x16 {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
}
.ratio-9x16::before {
  content: "";
  display: block;
  padding-top: 177.7778% !important;
}
.ratio-9x16 > * {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* =========================================
   MAQUILAS (Cards)
========================================= */
.dot {
  display: inline-block; 
  width: .6rem; 
  height: .6rem; 
  border-radius: 50%;
  background: #22c55e; 
  box-shadow: 0 0 0 .15rem rgba(34,197,94,.25);
  margin-right: .5rem; 
  animation: pulse 1.2s ease-in-out infinite;
}
@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 .15rem rgba(34,197,94,.25); }
  50%{ transform: scale(1.2); box-shadow: 0 0 0 .35rem rgba(34,197,94,.10); }
  100%{ transform: scale(1); box-shadow: 0 0 0 .15rem rgba(34,197,94,.25); }
}

.thumb-wrap { flex: 0 0 auto; width: clamp(120px, 28%, 160px); }
.maquila-thumb {
  width: 100%; 
  aspect-ratio: 16 / 9; 
  object-fit: cover;
  border-radius: .5rem; 
  display: block;
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}

.maquila-card { 
  border: none; 
  border-radius: .75rem; 
  overflow: hidden; 
  transition: transform .25s ease, box-shadow .25s ease; 
}
.maquila-card:hover { 
  transform: translateY(-4px); 
  box-shadow: 0 10px 24px rgba(0,0,0,0.12); 
}
.maquila-card:hover .maquila-thumb { 
  transform: scale(1.04) translateY(-2px); 
  box-shadow: 0 10px 24px rgba(0,0,0,.12); 
  filter: saturate(1.05); 
}

.kv { margin: 0; }
.kv + .kv { margin-top: .25rem; }

.contact-icons a img { transition: transform 0.3s ease, filter 0.3s ease; }
.contact-icons a:hover img { transform: scale(1.1); filter: brightness(1.2); }

.availability-dot {
  display: inline-block; 
  width: 12px; 
  height: 12px; 
  margin-left: 6px; 
  border-radius: 50%;
  background-color: #00c851; 
  animation: pulse2 1.5s infinite;
}
@keyframes pulse2 {
  0% { box-shadow: 0 0 0 0 rgba(0,200,81,0.6); }
  70% { box-shadow: 0 0 0 10px rgba(0,200,81,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,200,81,0); }
}

.card, .card .btn { 
  transition: transform 0.2s ease, box-shadow 0.2s ease; 
}
.card:hover { transform: translateY(-5px); box-shadow: 0 6px 20px rgba(0,0,0,0.1); }
.card .btn:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,0.1); }

.inline-video {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 70vh;
}
@media (min-width: 992px) {
  .inline-video { max-height: 75vh; }
}

.card-img-top {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
  height: auto;
}

/* =========================================
   FEATURED ARTICLE OVERLAY
========================================= */
.featured-article {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: .5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.featured-article img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.featured-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 40%, rgba(0,0,0,0) 100%);
  color: #fff;
}
.featured-overlay h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}
.featured-overlay p {
  font-size: 1.05rem;
  margin-top: .5rem;
  color: rgba(255,255,255,0.85);
}
.featured-article:hover img { transform: scale(1.05); }

/* =========================================
   SECTION 2: Calidad Garantizada
========================================= */
.section-landing-quality {
  position: relative;
  z-index: 1;
  margin-top: 26px !important;
  margin-bottom: 26px !important;
}

.section-landing-quality .container-xxl {
  padding-top: 35px !important;
  padding-bottom: 35px !important;
}

.section-landing-quality .row {
  padding-top: 35px !important;
  padding-bottom: 35px !important;
}

.section-landing-quality .col-12.col-lg-5 {
  margin: 0 !important;
}

@media (max-width: 576px) {
  .section-landing-quality {
    margin-top: 20px !important;
    margin-bottom: 20px !important;
  }
}

