/* ==============================
   CUSTOM.CSS - BagSack Redesign
   Bootstrap 5 + Roboto
============================== */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

/* ==============================
   ROOT VARIABLES
============================== */
:root {
  --red:         #ed2024;
  --dark-blue:   #262b44;
  --white:       #ffffff;
  --light-gray:  #f8f9fa;
  --gray:        #6c757d;
  --transition:  all 0.3s ease;
  --shadow-sm:   0 2px 15px rgba(0,0,0,0.07);
  --shadow-md:   0 5px 25px rgba(0,0,0,0.10);
  --shadow-lg:   0 15px 40px rgba(0,0,0,0.15);
  --radius:      6px;
}

/* ==============================
   BASE RESET
============================== */
*,
*::before,
*::after { box-sizing: border-box; }

body {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  color: #444;
  overflow-x: hidden;
  line-height: 1.7;
}

html,
body {
  max-width: 100%;
  overflow-x: clip;
}

@supports not (overflow: clip) {
  html,
  body {
    overflow-x: hidden;
  }
}

a {
  text-decoration: none;
  transition: var(--transition);
}

img { max-width: 100%; }

/* ==============================
   PRELOADER
============================== */
#preloader {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}

#preloader.fade-out {
  opacity: 0;
  pointer-events: none;
}

.preloader-spinner {
  width: 52px;
  height: 52px;
  border: 4px solid #f0f0f0;
  border-top: 4px solid var(--red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ==============================
   NAVBAR PRINCIPAL
============================== */
.main-navbar {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1050;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.main-navbar .navbar-brand img {
  height: 72px;
  width: auto;
  transition: var(--transition);
}

.main-navbar .nav-link {
  color: var(--dark-blue) !important;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.4px;
  padding: 10px 9px !important;
  text-transform: uppercase;
  transition: var(--transition);
  position: relative;
}

.main-navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  right: 50%;
  height: 2px;
  background: var(--red);
  transition: var(--transition);
}

.main-navbar .nav-link:hover::after,
.main-navbar .nav-link.active-link::after {
  left: 9px;
  right: 9px;
}

.main-navbar .nav-link:hover,
.main-navbar .nav-link.active-link {
  color: var(--red) !important;
}

.main-navbar .nav-cta {
  background: var(--red);
  color: #fff !important;
  border-radius: var(--radius);
  padding: 8px 18px !important;
  font-weight: 600;
  transition: var(--transition);
}

.main-navbar .nav-cta:hover {
  background: #c81a1d;
  color: #fff !important;
}

.main-navbar .nav-cta::after { display: none; }

.toggler-icon {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark-blue);
  margin: 5px 0;
  transition: var(--transition);
  border-radius: 2px;
}

.navbar-toggler {
  border: none;
  background: none;
  padding: 6px;
  cursor: pointer;
}

/* ==============================
   SUB-NAVBAR ROJO
============================== */
/* Zero-height wrapper — hero starts flush below the navbar.
   The red bar floats over the hero via absolute positioning. */
.sub-navbar-wrapper {
  position: relative;
  height: 0;
  overflow: visible;
  z-index: 1040;
  width: 100%;
  pointer-events: none;
}

/* Red bar: RIGHT side, diagonal cut on the LEFT side */
.sub-navbar {
  background: var(--red);
  clip-path: polygon(0% 0, 100% 0, 100% 100%, 8% 100%);
  padding: 7px clamp(24px, calc((100vw - 1320px) / 2 + 12px), 220px) 7px 70px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  width: min(35%, 950px);
  position: absolute;
  top: 0;
  right: 0;
  pointer-events: all;
  box-sizing: border-box;
}

.sub-navbar > .d-flex {
  margin-right: auto;
}

.sub-navbar-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.70);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 16px;
  border-radius: 20px;           /* pill shape like screenshot */
  text-transform: uppercase;
  letter-spacing: 0.6px;
  transition: var(--transition);
  margin-right: 8px;
  cursor: pointer;
  font-family: 'Roboto', sans-serif;
}

.sub-navbar-btn:hover { background: rgba(255,255,255,0.22); color: #fff; }

/* Vertical separator | before social icons */
.sub-navbar-sep {
  display: inline-block;
  width: 1px;
  height: 18px;
  background: rgba(255,255,255,0.50);
  margin: 0 14px;
  flex-shrink: 0;
  align-self: center;
}

.sub-navbar-social a {
  color: rgba(255,255,255,0.85);
  font-size: 20px;
  margin-left: 10px;
  transition: var(--transition);
}

.sub-navbar-social {
  margin-left: auto;
}

.sub-navbar-social a:hover { color: #fff; transform: translateY(-2px); display: inline-block; }

/* ==============================
   HERO CAROUSEL
============================== */
.hero-carousel {
  position: relative;   /* anchors the absolutely-positioned sub-navbar */
}

.hero-carousel .carousel-item {
  height: 100vh;
  min-height: 620px;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  position: relative;
}

.hero-carousel .carousel-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.38) 45%, transparent 100%);
  z-index: 1;
}

.hero-carousel .carousel-caption {
  position: absolute;
  bottom: auto;
  top: 50%;
  left: 8%;
  right: 15%;
  transform: translateY(-50%);
  text-align: left;
  z-index: 2;
  padding: 0;
  pointer-events: none;
}

.hero-carousel .carousel-caption a,
.hero-carousel .carousel-caption button {
  pointer-events: auto;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 18px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.hero-text {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.88);
  max-width: 530px;
  margin-bottom: 32px;
  font-weight: 300;
}

.btn-hero {
  background: var(--red);
  color: #fff;
  border: none;
  padding: 13px 36px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(237,32,36,0.35);
  cursor: pointer;
}

.btn-hero:hover {
  background: #c81a1d;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(237,32,36,0.5);
}

.carousel-control-prev,
.carousel-control-next {
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.12);
  border: 2px solid rgba(255,255,255,0.45);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  bottom: auto;
  transition: var(--transition);
  opacity: 1;
  z-index: 3;
}

.carousel-control-prev { left: 25px; }
.carousel-control-next { right: 25px; }

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: var(--red);
  border-color: var(--red);
}

.carousel-indicators { bottom: 28px; }

.carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.8);
  background: transparent;
  opacity: 1;
  transition: var(--transition);
}

.carousel-indicators .active {
  background: var(--red);
  border-color: var(--red);
}

/* ==============================
   SECTION HEADERS
============================== */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.section-label::before {
  content: '';
  width: 32px;
  height: 2px;
  background: var(--red);
  flex-shrink: 0;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--dark-blue);
  line-height: 1.2;
  margin-bottom: 18px;
}

.section-desc {
  font-size: 1rem;
  color: var(--gray);
  line-height: 1.8;
}

/* ==============================
   ABOUT SECTION
============================== */
.about-section {
  padding: 100px 0;
  background: #fff;
}

.about-images-wrapper {
  position: relative;
  padding-bottom: 40px;
  padding-right: 40px;
}

.about-img-main {
  width: 100%;
  height: 410px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  box-shadow: var(--shadow-md);
}

.about-img-secondary {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  border: 5px solid #fff;
  box-shadow: var(--shadow-md);
  display: block;
}

.about-badge {
  position: absolute;
  top: 28px;
  left: -22px;
  background: var(--red);
  color: #fff;
  padding: 22px 18px;
  border-radius: 8px;
  text-align: center;
  min-width: 130px;
  box-shadow: 0 10px 30px rgba(237,32,36,0.35);
  z-index: 3;
}

.about-badge-num {
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1;
  display: block;
}

.about-badge-text {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.4;
  display: block;
  margin-top: 6px;
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.about-feature-icon {
  width: 50px;
  height: 50px;
  background: #fff4f4;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--red);
  font-size: 20px;
  transition: var(--transition);
}

.about-feature:hover .about-feature-icon {
  background: var(--red);
  color: #fff;
}

.about-feature h6 {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark-blue);
  margin: 0 0 5px;
}

.about-feature p {
  font-size: 13.5px;
  color: var(--gray);
  margin: 0;
}

/* ==============================
   BUTTONS
============================== */
.btn-red {
  background: var(--red);
  color: #fff;
  border: none;
  padding: 13px 36px;
  border-radius: var(--radius);
  font-size: 13.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: inline-block;
  transition: var(--transition);
  cursor: pointer;
}

.btn-red:hover {
  background: #c81a1d;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(237,32,36,0.4);
}

.btn-outline-dark {
  background: transparent;
  color: var(--dark-blue);
  border: 2px solid var(--dark-blue);
  padding: 11px 32px;
  border-radius: var(--radius);
  font-size: 13.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: inline-block;
  transition: var(--transition);
}

.btn-outline-dark:hover {
  background: var(--dark-blue);
  color: #fff;
}

/* ==============================
   METRICS / COUNTER
============================== */
.metrics-section {
  background: var(--dark-blue);
  padding: 85px 0;
}

.metric-item { text-align: center; padding: 20px 15px; }

.metric-icon-wrap {
  width: 72px;
  height: 72px;
  background: rgba(237,32,36,0.14);
  border: 2px solid rgba(237,32,36,0.28);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  transition: var(--transition);
}

.metric-item:hover .metric-icon-wrap {
  background: rgba(237,32,36,0.28);
  border-color: var(--red);
}

.metric-icon-wrap i { font-size: 26px; color: var(--red); }

.metric-num {
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 700;
  color: #fff;
  line-height: 1;
  display: block;
}

.metric-suffix {
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--red);
}

.metric-lbl {
  font-size: 11.5px;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 10px;
  display: block;
}

.metric-sep {
  width: 1px;
  background: rgba(255,255,255,0.10);
  height: 100px;
  margin: auto;
}

/* ==============================
   SERVICES
============================== */
.services-section {
  padding: 100px 0;
  background: var(--light-gray);
}

.service-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.service-img-wrap {
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.service-img-wrap img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.service-card:hover .service-img-wrap img { transform: scale(1.06); }

.service-num {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark-blue);
  margin-bottom: 10px;
}

.service-text {
  font-size: 13.5px;
  color: var(--gray);
  flex: 1;
  line-height: 1.65;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--red);
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 18px;
  transition: var(--transition);
}

.service-link i { font-size: 11px; transition: var(--transition); }
.service-link:hover { color: #c81a1d; gap: 10px; }

/* ==============================
   CTA / CONTACT SECTION
============================== */
/* ==============================
   CTA BAND
============================== */
.cta-band {
  display: flex;
  align-items: stretch;
  min-height: 280px;
  overflow: visible;
  background: #f2f2f0;        /* fondo blanco/crema */
  position: relative;
  z-index: 2;
}

/* ---- Bloque izquierdo ---- */
.cta-left {
  position: relative;
  width: 360px;
  flex-shrink: 0;
  overflow: visible;
}

/* Polígono rojo: apunta hacia la DERECHA — el corte diagonal queda en el borde derecho */
.cta-polygon {
  position: absolute;
  inset: 0;
  background: var(--red);
  clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%);
  z-index: 1;
}

/* Persona PNG encima del polígono, desborda hacia arriba y derecha */
.cta-person {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 130%;
  width: auto;
  max-width: none;
  z-index: 2;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(6px 0 16px rgba(0,0,0,0.30));
}

/* ---- Bloque derecho ---- */
.cta-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 50px 80px 50px 60px;
}

.cta-title {
  font-size: clamp(1.9rem, 3.5vw, 2.9rem);
  font-weight: 700;
  color: var(--dark-blue);
  margin-bottom: 16px;
  line-height: 1.15;
}

.cta-desc {
  color: #666;
  font-size: 15px;
  line-height: 1.8;
  max-width: 560px;
  margin-bottom: 30px;
}

/* Ajuste exclusivo para CTA del index */
.cta-band--index {
  position: relative;
}

.cta-band--index .cta-left {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 2;
}

.cta-band--index .cta-right {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  max-width: none;
  margin: 0;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 50px 24px;
  gap: 0;
}

.cta-band--index .cta-desc {
  margin-left: auto;
  margin-right: auto;
}

.cta-band--index .btn-cta-band {
  align-self: center !important;
  margin-left: auto;
  margin-right: auto;
  margin-top: 6px;
  position: relative;
  z-index: 4;
  display: inline-flex !important;
  height: auto !important;
  min-height: 46px !important;
  overflow: visible;
}

.cta-band--index .btn-cta-band > span:first-child {
  padding: 12px 24px !important;
}

.cta-band--index .btn-cta-arrow {
  padding: 12px 16px 12px 8px;
}

.cta-band--index .cta-person {
  left: 40px;
}

/* Botón: texto en rojo + caja oscura para la flecha */
.btn-cta-band {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: var(--red);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
  overflow: hidden;
  transition: var(--transition);
  align-self: flex-end;
  width: fit-content;
  text-decoration: none;
}

.btn-cta-band:hover { background: #c81a1d; color: #fff; }

.btn-cta-band > span:first-child {
  padding: 13px 24px;
}

.btn-cta-arrow {
  background: transparent;
  padding: 13px 16px 13px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  color: #fff;
}

/* Responsive */
@media (max-width: 991.98px) {
  .cta-left  { width: 280px; }
  .cta-right { padding: 40px 40px 40px 48px; }
  .cta-person { height: 110%; }
}

@media (max-width: 767.98px) {
  .cta-band  {
    flex-direction: column;
    overflow-x: clip;
  }

  .cta-left  {
    width: 100%;
    height: 220px;
    overflow-x: clip;
  }

  .cta-polygon { clip-path: polygon(0 0, 100% 0, 100% 78%, 0 100%); }
  .cta-person  { height: 140%; left: 30%; transform: translateX(-30%); }
  .cta-right   { padding: 36px 24px; }
  .btn-cta-band { align-self: flex-start; }

  .cta-band--index .cta-right {
    position: relative;
    inset: auto;
    z-index: auto;
    align-items: center;
    text-align: center;
  }

  .cta-band--index .cta-left {
    position: relative;
    left: auto;
    top: auto;
    bottom: auto;
    z-index: auto;
  }

  .cta-band--index .btn-cta-band {
    align-self: center !important;
    margin-left: auto;
    margin-right: auto;
  }

  .cta-band--index .cta-person {
    left: 50%;
    transform: translateX(-50%);
  }
}

/* ==============================
   FOOTER
============================== */
.main-footer {
  background: #141828;
  padding: 75px 0 0;
  color: rgba(255,255,255,0.7);
}

.footer-logo { max-width: 185px; margin-bottom: 22px; }

.footer-address p {
  font-size: 13.5px;
  line-height: 1.9;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0;
}

.footer-address p i { color: var(--red); margin-right: 8px; }

.footer-section-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #fff;
  margin-bottom: 22px;
  padding-bottom: 12px;
  position: relative;
  display: block;
  text-align: center;
}

.footer-section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 38px;
  height: 2px;
  background: var(--red);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links a {
  color: rgba(255,255,255,0.55);
  font-size: 13.5px;
  line-height: 2.3;
  display: block;
  transition: var(--transition);
}

.footer-links a:hover { color: var(--red); padding-left: 6px; }

.footer-info p {
  font-size: 13.5px;
  line-height: 1.9;
  color: rgba(255,255,255,0.55);
  margin-bottom: 8px;
}

.footer-info a {
  color: rgba(255,255,255,0.55);
  transition: var(--transition);
}

.footer-info a,
.footer-address p,
.footer-bottom p,
.footer-bottom a,
.contact-info-card a,
.contact-addr-item span {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.footer-info a:hover { color: var(--red); }
.footer-info i { color: var(--red); margin-right: 8px; width: 16px; }

.footer-social { display: flex; gap: 10px; margin-top: 22px; justify-content: center; }

.footer-social a {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.65);
  font-size: 14px;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  transform: translateY(-3px);
}

.footer-cert img { max-width: 350px; margin-top: 22px; opacity: 0.8; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 22px 0;
  margin-top: 50px;
}

.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.3); margin: 0; }
.footer-bottom a { color: rgba(255,255,255,0.3); transition: var(--transition); }
.footer-bottom a:hover { color: var(--red); }

@media (min-width: 992px) {
  .footer-social { justify-content: flex-start; }
  .footer-col-right .footer-section-title { text-align: right; }
  .footer-col-right .footer-section-title::after { left: auto; right: 0; transform: none; }
  .footer-col-right .footer-links a { text-align: right; }
}

/* ==============================
   SCROLL TO TOP
============================== */
.scroll-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 46px;
  height: 46px;
  background: var(--red);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: 0 5px 20px rgba(237,32,36,0.4);
  border: none;
  cursor: pointer;
}

.scroll-top-btn.visible { opacity: 1; visibility: visible; }

.scroll-top-btn:hover {
  background: #c81a1d;
  color: #fff;
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(237,32,36,0.55);
}

/* ==============================
   RESPONSIVE
============================== */
@media (min-width: 1700px) {
  .main-navbar .navbar-nav {
    gap: 8px;
  }

  .main-navbar .nav-link {
    font-size: 14px;
    padding: 10px 14px !important;
  }

  .main-navbar .nav-link:hover::after,
  .main-navbar .nav-link.active-link::after {
    left: 14px;
    right: 14px;
  }
}

@media (max-width: 1199.98px) {
  .main-navbar .nav-link { font-size: 11.5px; padding: 10px 7px !important; }
}

/* Extiende el layout de escritorio hasta 901px para que el menu movil aparezca en 900px */
@media (min-width: 900.02px) and (max-width: 991.98px) {
  .navbar-expand-lg {
    flex-wrap: nowrap;
    justify-content: flex-start;
  }

  .navbar-expand-lg .navbar-toggler {
    display: none;
  }

  .navbar-expand-lg .navbar-collapse {
    display: flex !important;
    flex-basis: auto;
    background: transparent;
    padding: 0;
    border-top: 0;
    box-shadow: none;
  }

  .navbar-expand-lg .navbar-nav {
    flex-direction: row;
  }
}

@media (max-width: 900px) {
  .main-navbar .nav-link {
    font-size: 15px !important;
  }
}

@media (max-width: 991.98px) {
  .hero-carousel .carousel-caption {
    left: 5%;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
  }

  .hero-title { font-size: 2rem; }
  .hero-text { font-size: 0.95rem; display: none; }

  .about-section { padding: 70px 0; }

  .about-images-wrapper {
    padding-bottom: 20px;
    padding-right: 20px;
    margin-bottom: 50px;
  }

  .about-badge {
    left: auto;
    right: 5px;
    top: auto;
    bottom: -18px;
  }

  .about-img-secondary { display: none; }

  .services-section { padding: 70px 0; }

  .navbar-collapse {
    background: #fff;
    padding: 15px 20px;
    border-top: 1px solid #eee;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
  }

  .main-navbar .nav-link::after { display: none; }

  /* Mobile: sub-navbar full width, no diagonal, compact layout */
  .sub-navbar {
    clip-path: none;
    left: 0;
    right: 0;
    width: auto;
    padding: 8px 16px;
    justify-content: space-between;
  }

  /* Social icons visible on mobile — smaller size */
  .sub-navbar-social a { font-size: 14px; margin-left: 12px; }
  .sub-navbar-sep { margin: 0 10px; }
}

@media (max-width: 767.98px) {
  .cta-band--index .cta-left {
    display: none;
  }

  .about-section .row.align-items-center.g-5 {
    --bs-gutter-x: 1.5rem;
  }

  .hero-carousel .carousel-item {
    height: 55vh;
    min-height: 55vh;
  }

  .carousel-control-prev,
  .carousel-control-next {
    top: auto;
    bottom: 20px;
    transform: none;
    z-index: 3;
  }

  .carousel-control-prev { left: 16px; }
  .carousel-control-next { right: 16px; }

  .metrics-section { padding: 60px 0; }
  .metric-sep { display: none; }
  .metric-item { margin-bottom: 35px; }
  .cta-img-wrap { margin-bottom: 30px; }
}

@media (max-width: 575.98px) {
  .hero-title { font-size: 1.7rem; }

  .about-badge {
    position: static;
    display: inline-block;
    margin-top: 20px;
    left: auto;
    bottom: auto;
  }

  .about-images-wrapper {
    padding: 0;
    margin-bottom: 30px;
  }

  .cta-dark-panel { padding: 30px 22px; }
}

/* ==============================
   INTERIOR PAGE HERO (all interior pages)
============================== */
.page-hero {
  position: relative;
  height: 380px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.50) 55%, rgba(0,0,0,0.30) 100%);
  z-index: 1;
}

.page-hero .container { position: relative; z-index: 2; }

.page-hero-content { padding-left: 4px; }

.page-hero-title {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 16px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}

/* Breadcrumb sobre el hero */
.page-breadcrumb {
  background: transparent;
  padding: 0;
  margin: 0;
}

.page-breadcrumb .breadcrumb-item,
.page-breadcrumb .breadcrumb-item a {
  font-size: 12.5px;
  color: rgba(255,255,255,0.70);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  transition: var(--transition);
}

.page-breadcrumb .breadcrumb-item a:hover { color: var(--red); }
.page-breadcrumb .breadcrumb-item.active { color: var(--red); }
.page-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.40); }

/* ==============================
   SERVICES QUICK-NAV (sticky jump links)
============================== */
.services-quicknav {
  background: #fff;
  border-bottom: 2px solid #eee;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  position: sticky;
  top: 80px;   /* debajo del main-navbar con espacio visible */
  z-index: 900;
  display: none;            /* oculto por defecto (mobile) */
}

/* Solo visible en desktop ≥992px */
@media (min-width: 992px) {
  .services-quicknav { display: block; }
}

.services-quicknav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 8px;
}

.services-quicknav-inner::-webkit-scrollbar { display: none; }

.sqn-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 18px 26px;          /* más alto para que se vea bien */
  color: var(--dark-blue);
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: var(--transition);
  flex-shrink: 0;
}

.sqn-item i { font-size: 15px; color: var(--red); }
.sqn-item:hover { color: var(--red); border-bottom-color: var(--red); }
.sqn-item.active { color: var(--red); border-bottom-color: var(--red); }

/* ==============================
   SERVICE DETAIL SECTIONS (servicios.php)
============================== */
.svc-detail-section {
  padding: 90px 0;
  background: #fff;
}

/* Secciones alternas con fondo gris claro */
.svc-alt { background: var(--light-gray); }

/* Contenedor de imagen del servicio */
/* overflow: visible para que el badge no quede recortado */
.svc-img-wrap {
  position: relative;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  overflow: visible;
}

/* La imagen lleva su propio clip para el zoom en hover */
.svc-img-wrap img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
  border-radius: 10px;
  overflow: hidden;
}

/* Contenedor interior que sí recorta la imagen en hover */
.svc-img-inner {
  border-radius: 10px;
  overflow: hidden;
  display: block;
}

.svc-img-wrap:hover .svc-img-inner img { transform: scale(1.04); }
.svc-img-wrap:hover img { transform: scale(1.04); }

/* Ícono badge — completamente dentro del área visible */
.svc-img-badge {
  position: absolute;
  bottom: 18px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  box-shadow: 0 8px 24px rgba(237,32,36,0.45);
  border: 4px solid #fff;
  z-index: 3;
}

/* Lista de características del servicio */
.svc-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 20px;
}

.svc-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13.5px;
  color: #444;
  line-height: 1.5;
}

.svc-feature-list li i {
  color: var(--red);
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ==============================
   NOSOTROS – ABOUT FULL SECTION
============================== */
.about-full-section {
  padding: 100px 0;
  background: #fff;
}

.about-full-img-wrap {
  position: relative;
}

.about-full-img-main {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  box-shadow: var(--shadow-lg);
}

/* Fila botón + reCAPTCHA en formulario de contacto */
.contact-submit-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: nowrap;
}

.contact-submit-row .btn-red {
  flex: 1 1 auto;
  white-space: nowrap;
}

.contact-submit-row .g-recaptcha {
  flex-shrink: 0;
}

/* Logos de certificación */
.about-cert-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.about-cert-logo {
  height: 96px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.12));
  transition: var(--transition);
}

.about-cert-logo:hover {
  transform: scale(1.06);
}

/* Barra de acento roja decorativa */
.about-full-accent-bar {
  position: absolute;
  bottom: -18px;
  left: 40px;
  right: -18px;
  height: 100%;
  border: 4px solid var(--red);
  border-radius: 10px;
  z-index: -1;
  opacity: 0.25;
}

/* Mini grid de estadísticas bajo el texto */
.about-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 30px;
}

.about-info-item {
  background: var(--light-gray);
  border-radius: 8px;
  padding: 20px 18px;
  text-align: center;
}

.about-info-num {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark-blue);
  line-height: 1;
}

.about-info-num sup {
  font-size: 1.1rem;
  vertical-align: super;
}

.about-info-lbl {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray);
  margin-top: 6px;
}

/* ==============================
   NOSOTROS – MISIÓN / VISIÓN / VALORES
============================== */
.mvv-section {
  padding: 90px 0;
  background: var(--light-gray);
}

.mvv-card {
  background: #fff;
  border-radius: 10px;
  padding: 40px 32px;
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: var(--transition);
  border-top: 4px solid transparent;
}

.mvv-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--red);
}

/* Tarjeta central destacada (Visión) */
.mvv-card--featured {
  background: var(--dark-blue);
  border-top-color: var(--red);
}

.mvv-card--featured .mvv-icon { background: rgba(237,32,36,0.18); }
.mvv-card--featured .mvv-title { color: #fff; }
.mvv-card--featured .mvv-text { color: rgba(255,255,255,0.70); }

.mvv-icon {
  width: 70px;
  height: 70px;
  background: #fff4f4;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.mvv-icon i {
  font-size: 28px;
  color: var(--red);
}

.mvv-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark-blue);
  margin-bottom: 14px;
}

.mvv-text {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.8;
  margin: 0;
}

/* Lista de valores en tarjeta */
.mvv-values-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mvv-values-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--gray);
  padding: 5px 0;
  border-bottom: 1px solid #f0f0f0;
}

.mvv-values-list li:last-child { border-bottom: none; }
.mvv-values-list li i { color: var(--red); font-size: 11px; flex-shrink: 0; }

/* ==============================
   NOSOTROS – ¿POR QUÉ ELEGIRNOS?
============================== */
.why-us-section {
  padding: 90px 0;
  background: #fff;
}

.why-us-img-wrap {
  position: relative;
  border-radius: 10px;
  overflow: visible;
}

.why-us-img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  box-shadow: var(--shadow-lg);
}

/* Badge de certificación sobre la imagen */
.why-us-cert-badge {
  position: absolute;
  bottom: 30px;
  left: -24px;
  background: #fff;
  border-radius: 8px;
  padding: 16px 20px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 200px;
}

.why-us-cert-badge img { max-width: 90px; }

.why-us-cert-badge span {
  font-size: 12px;
  font-weight: 700;
  color: var(--dark-blue);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Features lista de puntos clave */
.why-us-features { display: flex; flex-direction: column; gap: 22px; margin-top: 28px; }

.why-us-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.why-us-icon {
  width: 52px;
  height: 52px;
  background: #fff4f4;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--red);
  font-size: 20px;
  transition: var(--transition);
}

.why-us-item:hover .why-us-icon {
  background: var(--red);
  color: #fff;
}

.why-us-item h5 {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark-blue);
  margin: 0 0 5px;
}

.why-us-item p {
  font-size: 13.5px;
  color: var(--gray);
  margin: 0;
  line-height: 1.6;
}

/* ==============================
   CONTACTO – INFO CARDS
============================== */
.contact-info-section {
  padding: 70px 0 50px;
  background: #fff;
}

.contact-info-card {
  background: var(--light-gray);
  border-radius: 10px;
  padding: 36px 24px;
  text-align: center;
  transition: var(--transition);
  border-bottom: 3px solid transparent;
  height: 100%;
}

.contact-info-card:hover {
  background: #fff;
  border-bottom-color: var(--red);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.contact-info-icon {
  width: 62px;
  height: 62px;
  background: #fff4f4;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  color: var(--red);
  font-size: 24px;
  transition: var(--transition);
}

.contact-info-card:hover .contact-info-icon {
  background: var(--red);
  color: #fff;
}

.contact-info-card h5 {
  font-size: 13px;
  font-weight: 700;
  color: var(--dark-blue);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.contact-info-card a,
.contact-info-card p {
  font-size: 14px;
  color: var(--gray);
  margin: 0;
  line-height: 1.6;
  transition: var(--transition);
}

.contact-info-card a:hover { color: var(--red); }

/* ==============================
   CONTACTO – FORMULARIO + MAPA
============================== */
.contact-form-section {
  padding: 60px 0 100px;
  background: var(--light-gray);
}

/* Campos del formulario */
.contact-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-field label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--dark-blue);
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  background: #fff;
  border: 1.5px solid #e0e0e0;
  border-radius: var(--radius);
  padding: 12px 16px;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  color: #444;
  transition: var(--transition);
  outline: none;
}

.contact-field input:focus,
.contact-field textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(237,32,36,0.10);
}

.contact-field textarea { resize: vertical; min-height: 120px; }

/* Grupo de checkboxes de servicios */
.contact-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 12px 16px;
  background: #fff;
  border: 1.5px solid #e0e0e0;
  border-radius: var(--radius);
}

.contact-check-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  color: #444;
  cursor: pointer;
}

.contact-check-item input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--red);
  cursor: pointer;
}

/* Mapa de Google Maps */
.contact-map-wrap {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid #e8e8e8;
}

.contact-map-wrap iframe {
  display: block;
  width: 100%;
}

/* Detalle de dirección bajo el mapa */
.contact-address-detail {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-addr-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13.5px;
  color: #555;
}

.contact-addr-item i {
  color: var(--red);
  font-size: 15px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ==============================
   RESPONSIVE – INTERIOR PAGES
============================== */
@media (max-width: 991.98px) {
  .page-hero { height: 300px; }
  .page-hero-title { font-size: 2.2rem; }
  /* quick-nav ya está oculto en mobile vía display:none en la regla base */
  .svc-detail-section { padding: 65px 0; }
  .svc-img-wrap img { height: 320px; }
  .svc-feature-list { grid-template-columns: 1fr; }
  .about-full-section { padding: 70px 0; }
  .about-full-img-main { height: 360px; }
  .about-full-accent-bar { display: none; }
  .mvv-section { padding: 65px 0; }
  .why-us-section { padding: 65px 0; }
  .why-us-img { height: 380px; }
  .why-us-cert-badge { left: 0; bottom: 16px; min-width: 170px; }
}

@media (max-width: 767.98px) {
  .page-hero { height: 260px; }
  .about-info-grid { grid-template-columns: 1fr 1fr; }
  .about-info-num { font-size: 1.6rem; }
  .contact-info-section { padding: 50px 0 30px; }
  .contact-form-section { padding: 40px 0 70px; }
  .svc-img-badge { width: 50px; height: 50px; font-size: 18px; bottom: -14px; right: 16px; }
}

@media (max-width: 575.98px) {
  .services-quicknav-inner { justify-content: flex-start; }
  .sqn-item { padding: 12px 16px; }
  .svc-feature-list { grid-template-columns: 1fr; }
}

/* ==============================
   ENSACADO – INTRO SPLIT (image left / texto right)
============================== */
.ensacado-intro {
  padding: 90px 0;
  background: #fff;
}

.ensacado-main-img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  box-shadow: var(--shadow-lg);
}

/* Estadísticas en línea bajo el texto */
.ensacado-stats {
  display: flex;
  gap: 0;
  margin-top: 32px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.ensacado-stat {
  flex: 1;
  background: var(--dark-blue);
  color: #fff;
  text-align: center;
  padding: 20px 10px;
  border-right: 1px solid rgba(255,255,255,0.08);
  transition: var(--transition);
}

.ensacado-stat:last-child { border-right: none; }
.ensacado-stat:hover { background: var(--red); }

.ensacado-stat-num {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.ensacado-stat-lbl {
  display: block;
  font-size: 10.5px;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 5px;
}

/* ==============================
   ENSACADO – FEATURES GRID
============================== */
.ensacado-features {
  padding: 80px 0;
  background: var(--light-gray);
}

.ensacado-feat-card {
  background: #fff;
  border-radius: 10px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: var(--transition);
  border-bottom: 3px solid transparent;
}

.ensacado-feat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-bottom-color: var(--red);
}

.ensacado-feat-icon {
  width: 68px;
  height: 68px;
  background: #fff4f4;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--red);
  font-size: 26px;
  transition: var(--transition);
}

.ensacado-feat-card:hover .ensacado-feat-icon {
  background: var(--red);
  color: #fff;
}

.ensacado-feat-card h5 {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark-blue);
  margin-bottom: 10px;
  line-height: 1.3;
}

.ensacado-feat-card p {
  font-size: 13.5px;
  color: var(--gray);
  margin: 0;
  line-height: 1.7;
}

/* ==============================
   PHOTO GALLERY + LIGHTBOX
============================== */
.gallery-section {
  padding: 80px 0;
  background: #fff;
}

/* Grid responsive de la galería */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* Ítem de galería */
.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4 / 3;
  background: #eee;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

/* Overlay hover */
.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.35s ease;
  z-index: 2;
}

.gallery-item:hover .gallery-item-overlay {
  background: rgba(0,0,0,0.48);
}

.gallery-item:hover img {
  transform: scale(1.07);
}

.gallery-zoom-icon {
  width: 54px;
  height: 54px;
  background: var(--red);
  border-radius: 50%;
  color: #fff;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 16px rgba(237,32,36,0.45);
}

.gallery-item:hover .gallery-zoom-icon {
  opacity: 1;
  transform: scale(1);
}

/* Ítem destacado grande (primera imagen) */
.gallery-item--featured {
  grid-row: span 1;
}

/* ==============================
   LIGHTBOX
============================== */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 99990;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
}

.lightbox-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-box {
  position: relative;
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 6px;
  display: block;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  object-fit: contain;
  transition: opacity 0.25s ease;
}

.lightbox-img.loading { opacity: 0.3; }

/* Caption */
.lightbox-caption {
  color: rgba(255,255,255,0.70);
  font-size: 13px;
  margin-top: 14px;
  text-align: center;
  letter-spacing: 0.3px;
}

/* Conteo */
.lightbox-counter {
  color: rgba(255,255,255,0.45);
  font-size: 12px;
  margin-top: 6px;
  text-align: center;
}

/* Botón cerrar */
.lightbox-close {
  position: absolute;
  top: -48px;
  right: 0;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  transition: color 0.2s;
}

.lightbox-close:hover { color: var(--red); }

/* Botones prev / next */
.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font-size: 22px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  z-index: 99991;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--red);
  border-color: var(--red);
}

/* Thumbnails strip */
.lightbox-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 18px;
  justify-content: center;
}

.lightbox-thumb {
  width: 54px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
  opacity: 0.5;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}

.lightbox-thumb.active,
.lightbox-thumb:hover {
  opacity: 1;
  border-color: var(--red);
}

/* ==============================
   ENSACADO – CERO PELLETS CALLOUT
============================== */
.cero-pellets {
  padding: 80px 0;
  background: #fff;
  border-top: 1px solid #efefef;
}

.cero-pellets-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(237,32,36,0.08);
  border: 1px solid rgba(237,32,36,0.30);
  border-radius: 30px;
  padding: 6px 20px;
  margin-bottom: 20px;
}

.cero-pellets-badge i { color: var(--red); font-size: 14px; }
.cero-pellets-badge span { color: var(--dark-blue); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

.cero-pellets-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--dark-blue);
  line-height: 1.2;
  margin-bottom: 16px;
}

.cero-pellets-text {
  font-size: 14.5px;
  color: var(--gray);
  line-height: 1.8;
  max-width: 540px;
}

.cero-pellets-logos {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

/* ==============================
   VIDEO CTA SECTION (ensacado.php)
============================== */
.video-cta-section {
  position: relative;
  overflow: hidden;
  min-height: 480px;
  display: flex;
  align-items: center;
  background: var(--dark-blue);
}

/* Video de fondo en loop/mute */
.video-cta-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

/* Overlay azul oscuro semitransparente */
.video-cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(38,43,68,0.82) 0%,
    rgba(0,60,120,0.65) 100%
  );
  z-index: 1;
}

/* Iframe YouTube de fondo (escala pointerless) */
.video-cta-iframe-wrap {
  position: absolute;
  inset: -60px -100px;   /* oversized para cubrir sin bordes */
  z-index: 0;
  pointer-events: none;
}

.video-cta-iframe-wrap iframe {
  width: 100%;
  height: calc(100% + 120px);
  border: none;
  transform: scale(1.1);
  transform-origin: center center;
}

/* Contenido sobre el video */
.video-cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 80px 20px;
}

.video-cta-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 14px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.video-cta-desc {
  font-size: 15px;
  color: rgba(255,255,255,0.75);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.8;
}

/* Botón play — círculo grande con animación pulse */
.video-play-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: var(--red);
  border-radius: 50%;
  color: #fff;
  font-size: 28px;
  margin-bottom: 32px;
  box-shadow: 0 0 0 0 rgba(237,32,36,0.55);
  animation: pulse-play 2s infinite;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  text-decoration: none;
  position: relative;
}

.video-play-btn::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.30);
}

.video-play-btn:hover {
  background: #c81a1d;
  color: #fff;
  transform: scale(1.10);
}

@keyframes pulse-play {
  0%   { box-shadow: 0 0 0 0   rgba(237,32,36,0.60); }
  70%  { box-shadow: 0 0 0 22px rgba(237,32,36,0); }
  100% { box-shadow: 0 0 0 0   rgba(237,32,36,0); }
}

/* Botón CTA bajo el play */
.video-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,0.12);
  border: 2px solid rgba(255,255,255,0.55);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
  padding: 12px 28px;
  transition: var(--transition);
  text-decoration: none;
}

.video-cta-btn:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

/* Modal del video */
.video-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.90);
  z-index: 99995;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.video-modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.video-modal-box {
  position: relative;
  width: 100%;
  max-width: 900px;
}

.video-modal-ratio {
  position: relative;
  padding-bottom: 56.25%;   /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.video-modal-ratio iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
}

.video-modal-close {
  position: absolute;
  top: -44px;
  right: 0;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  transition: color 0.2s;
}

.video-modal-close:hover { color: var(--red); }

/* Responsive */
@media (max-width: 767.98px) {
  .video-cta-content { padding: 60px 16px; }
  .video-play-btn { width: 66px; height: 66px; font-size: 22px; }
  .video-cta-iframe-wrap { display: none; }  /* en móvil solo usa el fondo color */
}

/* ==============================
   RESPONSIVE – GALLERY
============================== */
@media (max-width: 991.98px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .ensacado-intro { padding: 65px 0; }
  .ensacado-main-img { height: 350px; }
  .ensacado-stats { flex-wrap: wrap; }
  .ensacado-stat { flex: 1 1 45%; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .ensacado-features { padding: 60px 0; }
  .gallery-section { padding: 60px 0; }
  .cero-pellets { padding: 55px 0; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

@media (max-width: 575.98px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item { aspect-ratio: 16 / 9; }
  .ensacado-stat { flex: 1 1 100%; }
  .lightbox-thumbs { gap: 5px; }
  .lightbox-thumb { width: 44px; height: 32px; }
}