/* =======================================================
   LOGÍSTICA 21 — Custom Design System
   Paleta: Naranjas #CE7A22 / #DB8838 / #F19F56
           Grises  #787878 / #3E3D3B / #2E2E2E
   ======================================================= */

/* -------------------------------------------------------
   0. Web Fonts — Locales
   ------------------------------------------------------- */
@font-face {
  font-family: "MADE Waffle Soft";
  src: url("../fonts/made-waffle-soft/MADEWaffleSoft.woff2") format("woff2"),
       url("../fonts/made-waffle-soft/MADEWaffleSoft.woff")  format("woff");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Comfortaa";
  src: url("../fonts/comfortaa/Comfortaa-Light.woff2") format("woff2"),
       url("../fonts/comfortaa/Comfortaa-Light.woff")  format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Comfortaa";
  src: url("../fonts/comfortaa/Comfortaa-Regular.woff2") format("woff2"),
       url("../fonts/comfortaa/Comfortaa-Regular.woff")  format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Comfortaa";
  src: url("../fonts/comfortaa/Comfortaa-Bold.woff2") format("woff2"),
       url("../fonts/comfortaa/Comfortaa-Bold.woff")  format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* -------------------------------------------------------
   1. Variables & Tokens
   ------------------------------------------------------- */
:root {
  --orange-dark:   #CE7A22;
  --orange-mid:    #DB8838;
  --orange-light:  #F19F56;
  --gray-light:    #787878;
  --gray-mid:      #3E3D3B;
  --gray-dark:     #2E2E2E;
  --white:         #ffffff;
  --off-white:     #F7F5F2;
  --text-body:     #3E3D3B;
  --transition:    .3s ease;
}

/* -------------------------------------------------------
   2. Global Reset / Base
   ------------------------------------------------------- */
body {
  font-family: "Comfortaa", "Poppins", Arial, sans-serif;
  background: var(--white);
  color: var(--text-body);
  font-size: 15px;
  line-height: 1.75;
  font-weight: 400;
}

/* -------------------------------------------------------
   2b. Display Typography — MADE Waffle Soft
   Aplica en titulares grandes de impacto: hero, CTA banner
   y títulos de sección. Body text y párrafos en Comfortaa.
   ------------------------------------------------------- */

/* Hero — titular principal */
#hero h1, #hero h2 {
  font-family: "MADE Waffle Soft", "Comfortaa", sans-serif;
}

/* Banner CTA naranja */
.cta h2,
.cta h3 {
  font-family: "MADE Waffle Soft", "Comfortaa", sans-serif;
}

/* Títulos de sección */
.heading-section h2,
.section-title h2 {
  font-family: "MADE Waffle Soft", "Comfortaa", sans-serif;
  letter-spacing: -0.01em;
}

/* Navbar — Comfortaa Bold para los links */
.ftco-navbar-light .navbar-nav > .nav-item > .nav-link {
  font-family: "Comfortaa", sans-serif;
  font-weight: 700;
}

/* Subheadings / etiquetas de sección */
.subheading,
.heading-section .subheading {
  font-family: "Comfortaa", sans-serif;
  font-weight: 300;
}

/* Párrafos y texto descriptivo — Light para mayor elegancia */
p, .services.services-2 p, .faq-item p, .about-stat .stat-label {
  font-family: "Comfortaa", sans-serif;
  font-weight: 300;
}

/* Botones — Regular para legibilidad */
.btn, button {
  font-family: "Comfortaa", sans-serif;
  font-weight: 700;
}

a {
  color: var(--orange-mid);
  transition: color var(--transition);
}
a:hover, a:focus {
  color: var(--orange-dark);
  text-decoration: none;
  outline: none;
}

h1, h2, h3, h4, h5,
.h1, .h2, .h3, .h4, .h5 {
  line-height: 1.3;
  color: var(--gray-dark);
  font-weight: 600;
}

p { margin-bottom: 1rem; }

/* -------------------------------------------------------
   3. Navbar
   ------------------------------------------------------- */
.ftco-navbar-light {
  background: transparent !important;
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  padding: 12px 0;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}

/* Scrolled state */
.ftco-navbar-light.scrolled {
  background: var(--gray-dark) !important;
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
  padding: 6px 0;
  margin-top: 0;
}

/* Logo de marca en navbar */
.ftco-navbar-light .navbar-brand img#img-logo {
  width: 64px;
  height: auto;
  display: block;
  transition: width var(--transition);
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.25));
}
.ftco-navbar-light.scrolled .navbar-brand img#img-logo {
  width: 52px;
}

/* Navbar 3-column grid layout (desktop) */
@media (min-width: 992px) {
  .ftco-navbar-light .container {
    display: grid;
    grid-template-columns: 260px 1fr 260px;
    align-items: center;
  }
  .ftco-navbar-light .navbar-brand   { grid-column: 1; }
  .ftco-navbar-light .navbar-collapse {
    grid-column: 2;
    display: flex !important;
    justify-content: center;
    align-items: center;
    flex-basis: unset;
    flex-grow: unset;
  }
  .ftco-navbar-light .navbar-cta-btn {
    grid-column: 3;
    justify-self: end;
  }
}

@media (max-width: 991.98px) {
  .ftco-navbar-light .navbar-brand img#img-logo { width: 54px; }
}
@media (max-width: 575.98px) {
  .ftco-navbar-light .navbar-brand img#img-logo { width: 44px; }
}

/* Nest Hub y pantallas ~1024×600: navbar compacta */
@media (min-width: 900px) and (max-width: 1100px) and (max-height: 700px) {
  .ftco-navbar-light {
    padding: 6px 0;
  }
  .ftco-navbar-light .container {
    grid-template-columns: 160px 1fr 190px;
    gap: 8px;
  }
  .ftco-navbar-light .navbar-brand img#img-logo {
    width: 46px;
  }
  .ftco-navbar-light .navbar-nav > .nav-item > .nav-link {
    padding: 6px 10px !important;
    font-size: 13px !important;
  }
  .navbar-cta-btn {
    padding: 7px 14px !important;
    font-size: 12px !important;
  }
}

/* Nav links */
.ftco-navbar-light .navbar-nav {
  position: relative;
}
/* Sliding active bar — single element that glides between nav items */
.ftco-navbar-light .navbar-nav::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: var(--nav-bar-left, 0px);
  width: var(--nav-bar-width, 0px);
  height: 2px;
  background: var(--orange-light);
  transition: left 0.35s ease, width 0.35s ease;
  pointer-events: none;
}
.ftco-navbar-light .navbar-nav > .nav-item > .nav-link {
  color: rgba(255,255,255,0.92) !important;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
  padding: 8px 16px !important;
}
/* Active item: orange text */
.ftco-navbar-light .navbar-nav > .nav-item.active > .nav-link {
  color: var(--orange-light) !important;
}
.ftco-navbar-light .navbar-nav > .nav-item > .nav-link:hover {
  color: var(--orange-light) !important;
}

/* CTA button in navbar */
.navbar-cta-btn,
.navbar-cta-mobile {
  background: var(--orange-mid) !important;
  border: 2px solid var(--orange-mid) !important;
  color: #fff !important;
  border-radius: 25px !important;
  padding: 8px 22px !important;
  font-size: 13px !important;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none !important;
  transition: background var(--transition), border-color var(--transition);
}
.navbar-cta-btn:hover,
.navbar-cta-mobile:hover {
  background: var(--orange-dark) !important;
  border-color: var(--orange-dark) !important;
  color: #fff !important;
}
@media (max-width: 991.98px) {
  .navbar-cta-mobile {
    display: inline-block;
    margin-top: 14px;
    margin-bottom: 6px;
  }
}

/* Scrolled nav links */
.ftco-navbar-light.scrolled .nav-link {
  color: rgba(255,255,255,0.88) !important;
}
.ftco-navbar-light.scrolled .nav-link:hover {
  color: var(--orange-light) !important;
}

/* Mobile nav */
@media (max-width: 991.98px) {
  .ftco-navbar-light {
    background: var(--gray-dark) !important;
    position: relative !important;
  }
  .ftco-navbar-light .navbar-nav > .nav-item > .nav-link {
    padding: 8px 0 !important;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  /* Hide sliding bar on mobile — use left border for active state instead */
  .ftco-navbar-light .navbar-nav::after {
    display: none;
  }
  .ftco-navbar-light .navbar-nav > .nav-item.active > .nav-link {
    color: var(--orange-light) !important;
    border-left: 3px solid var(--orange-light);
    padding-left: 12px !important;
  }
  .ftco-navbar-light .navbar-toggler {
    color: rgba(255,255,255,0.7) !important;
    border: 1px solid rgba(255,255,255,0.3) !important;
    padding: 4px 10px;
  }
}

/* -------------------------------------------------------
   4. Hero Section
   ------------------------------------------------------- */
#hero {
  width: 100%;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

#hero .carousel,
#hero .carousel-inner,
#hero .carousel-item {
  height: 100vh;
  min-height: 500px;
}

#hero .carousel-item {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* Dark overlay */
#hero .carousel-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(46,46,46,0.80) 0%, rgba(62,61,59,0.55) 100%);
}

#hero .carousel-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  bottom: 0;
  top: 0;
  left: 0;
  right: 0;
  padding: 5vh 15px 0;
}

#hero .carousel-container .container {
  text-align: center;
}

#hero h1, #hero h2 {
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
  text-transform: uppercase;
}

#hero h1 span, #hero h2 span {
  color: var(--orange-light);
}

#hero p {
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  color: rgba(255,255,255,0.88);
  max-width: 640px;
  /* Increased bottom margin creates a visible gap where the bg logo sits */
  margin: 0 auto 5rem auto;
  line-height: 1.7;
}

/* Hero badge/tag */
.hero-tag {
  display: inline-block;
  background: var(--orange-mid);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
}

/* Hero CTA buttons
   Usamos #hero .btn-get-started para igualar la especificidad de style.css (ID + clase) */
.btn-get-started,
#hero .btn-get-started {
  display: inline-block;
  background: var(--orange-mid) !important;
  color: #fff !important;
  padding: 14px 36px;
  border: 2px solid transparent;
  border-radius: 30px !important;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.5px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none !important;
  box-shadow: 0 4px 20px rgba(219,136,56,0.40);
}
.btn-get-started:hover,
#hero .btn-get-started:hover {
  background: var(--orange-dark) !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(206,122,34,0.50);
}

.btn-hero-secondary {
  display: inline-block;
  box-sizing: border-box;
  background: transparent;
  color: #fff !important;
  padding: 14px 36px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  border: 2px solid rgba(255,255,255,0.6);
  margin-left: 14px;
  transition: background var(--transition), border-color var(--transition);
  text-decoration: none !important;
}
.btn-hero-secondary:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
}

/* Hero scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  color: rgba(255,255,255,0.6);
  font-size: 28px;
  z-index: 5;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* Stats bar inside hero */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.hero-stat {
  text-align: center;
  color: #fff;
}
.hero-stat strong {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--orange-light);
  line-height: 1;
}
.hero-stat span {
  font-size: 12px;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 575.98px) {
  #hero p { margin-bottom: 3rem; }
  .hero-stats { gap: 24px; }
  .hero-stat strong { font-size: 1.4rem; }
  .btn-hero-secondary { margin-left: 0; margin-top: 12px; }
}

/* -------------------------------------------------------
   5. Section Common Styles
   ------------------------------------------------------- */
.section-title {
  text-align: center;
  padding-bottom: 40px;
}
.section-title h2 {
  font-size: 13px;
  letter-spacing: 3px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--orange-mid);
  margin-bottom: 8px;
}
.section-title p {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--gray-dark);
  margin-bottom: 0;
  line-height: 1.25;
}

.heading-section .subheading {
  font-size: 11px;
  display: block;
  margin-bottom: 8px;
  color: var(--orange-mid);
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.heading-section h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--gray-dark);
  line-height: 1.25;
}
.heading-section.heading-section-white .subheading {
  color: rgba(255,255,255,0.85);
}
.heading-section.heading-section-white h2 {
  color: #fff;
}
.heading-section.heading-section-white p {
  color: rgba(255,255,255,0.85);
}

/* -------------------------------------------------------
   6. Services Section
   ------------------------------------------------------- */
.services-section.img {
  position: relative;
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
}
.services-section .overlay {
  background: linear-gradient(135deg, rgba(46,46,46,0.90), rgba(62,61,59,0.85));
  opacity: 1;
}

.services.services-2 {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 32px 24px;
  margin-bottom: 24px;
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
  backdrop-filter: blur(4px);
  width: 100%;
}
.services.services-2:hover {
  transform: translateY(-6px);
  background: rgba(255,255,255,0.12);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}

.services.services-2 .icon {
  border: 2px solid var(--orange-mid) !important;
  background: rgba(219,136,56,0.15);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 20px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.services.services-2:hover .icon {
  background: var(--orange-mid);
}
.services.services-2 .icon span {
  color: var(--orange-light) !important;
  font-size: 32px;
  transition: color var(--transition);
}
.services.services-2:hover .icon span {
  color: #fff !important;
}
.services.services-2 h3 {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}
.services.services-2 .media-body {
  color: rgba(255,255,255,0.8);
}
.services.services-2 .media-body p {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 0;
  text-align: center;
}

/* -------------------------------------------------------
   7. Clients / Logo Marquee (CSS-only, no JS)
   ------------------------------------------------------- */
#Clientes {
  background: var(--off-white);
  padding: 70px 0 60px;
}

#Clientes .heading-section h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
}

/* Wrapper clips the overflowing track */
.logos-marquee {
  overflow: hidden;
  padding: 12px 0;
  width: 100%;
  position: relative;
  /* Fade edges */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

/* The track holds two copies of all logos for seamless loop */
.logos-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: logos-scroll 45s linear infinite;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.logos-track:hover {
  animation-play-state: paused;
}

/* Each logo slide */
.logos-track .slide {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 48px;
}
.logos-track .slide img {
  height: 58px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  filter: grayscale(55%) opacity(0.72);
  transition: filter var(--transition);
  /* Oculta el texto alt si la imagen aún no cargó */
  color: transparent;
  font-size: 0;
}
.logos-track .slide img:hover {
  filter: grayscale(0%) opacity(1);
}

@keyframes logos-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

.row2 hr {
  border-color: rgba(62,61,59,0.15);
  margin: 10px 0;
}

/* Legacy slick elements — hidden if they somehow render */
.customer-logos.slick-initialized { display: none; }

/* -------------------------------------------------------
   8. CTA Section
   ------------------------------------------------------- */
.cta {
  background: linear-gradient(135deg, var(--orange-dark) 0%, var(--orange-mid) 100%);
  padding: 64px 0;
}
.cta h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.cta p {
  color: rgba(255,255,255,0.88);
  font-size: 15px;
  max-width: 650px;
  margin: 0 auto 24px auto;
}
/* .cta .cta-btn iguala la especificidad de style.css (2 clases) */
.cta-btn,
.cta .cta-btn {
  display: inline-block;
  background: #fff !important;
  color: var(--orange-dark) !important;
  padding: 14px 38px;
  border-radius: 30px !important;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
  border: none !important;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.cta-btn:hover,
.cta .cta-btn:hover {
  background: var(--gray-dark) !important;
  color: #fff !important;
  border: none !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.25);
}

/* -------------------------------------------------------
   9. About Section
   ------------------------------------------------------- */
#about {
  background: var(--white);
  padding: 90px 0;
}
#about .section-title h2 {
  color: var(--orange-mid);
}
#about .content p {
  color: var(--gray-mid);
  font-size: 15px;
  line-height: 1.8;
}
#about .content ul {
  list-style: none;
  padding: 0;
}
#about .content ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 18px;
  color: var(--gray-mid);
  font-size: 15px;
  line-height: 1.7;
}
#about .content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 14px;
  height: 14px;
  background: var(--orange-mid);
  border-radius: 50%;
}
#about .content ul li i {
  display: none;
}

.btn-learn-more {
  display: inline-block;
  background: var(--orange-mid);
  color: #fff !important;
  padding: 12px 30px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition);
  text-decoration: none !important;
}
.btn-learn-more:hover {
  background: var(--orange-dark);
  color: #fff !important;
  transform: translateY(-2px);
}

/* Numbers/badges in about */
.about-stat {
  display: flex;
  align-items: center;
  background: var(--off-white);
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 16px;
  border-left: 4px solid var(--orange-mid);
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  transition: box-shadow var(--transition), transform var(--transition);
}
.about-stat:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.09);
  transform: translateY(-2px);
}
.about-stat .stat-num {
  font-size: 1.95rem;
  font-weight: 800;
  color: var(--orange-mid);
  line-height: 1;
  flex: 0 0 80px;
  text-align: center;
}
.about-stat .stat-sep {
  width: 1.5px;
  height: 40px;
  background: rgba(219, 136, 56, 0.28);
  flex-shrink: 0;
  margin: 0 18px;
  border-radius: 1px;
}
.about-stat .stat-label {
  font-size: 14px;
  color: var(--gray-mid);
  line-height: 1.6;
}
.about-stat .stat-label strong {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-dark);
  display: block;
  margin-bottom: 2px;
}

/* -------------------------------------------------------
   10. FAQ Section
   ------------------------------------------------------- */
#faq {
  background: var(--off-white);
  padding: 90px 0;
}
#faq .section-title h2 {
  margin-bottom: 10px;
}
#faq .section-title p {
  color: var(--gray-dark);
}
#faq .section-title h2::after {
  display: none;
}

.faq-item {
  background: var(--white);
  border-radius: 12px;
  padding: 28px 32px;
  margin-bottom: 16px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  transition: box-shadow var(--transition), transform var(--transition);
  border-left: 4px solid var(--orange-light);
}
.faq-item:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.10);
  transform: translateY(-2px);
}
.faq-question {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.faq-item i.icon-chat {
  font-size: 28px;
  color: var(--orange-mid);
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  float: none;
  line-height: 1;
  margin: 0;
  padding: 0;
}
.faq .faq-item h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-dark);
  margin: 0;
  line-height: 1.35;
  transform: translateY(-2px);
}
.faq-item p {
  color: var(--gray-light);
  font-size: 14px;
  margin-bottom: 0;
}

@media (min-width: 992px) {
  .faq-item .col-lg-5 { padding-right: 24px; }
}

/* -------------------------------------------------------
   11. Contact Section
   ------------------------------------------------------- */
#contact {
  padding: 90px 0;
  background-size: cover;
  background-attachment: fixed;
  position: relative;
}
#contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(46,46,46,0.92), rgba(62,61,59,0.88));
}
#contact .container {
  position: relative;
  z-index: 1;
}
#contact .section-title h2 { color: var(--orange-light); }
#contact .section-title p   { color: #fff; }

.php-email-form input,
.php-email-form textarea {
  background: rgba(255,255,255,0.08) !important;
  border: 1px solid rgba(255,255,255,0.20) !important;
  color: #fff !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  height: 48px !important;
  transition: border-color var(--transition), background var(--transition);
}
.php-email-form textarea {
  height: 130px !important;
}
.php-email-form input::placeholder,
.php-email-form textarea::placeholder {
  color: rgba(255,255,255,0.50) !important;
}
.php-email-form input:focus,
.php-email-form textarea:focus {
  border-color: var(--orange-light) !important;
  background: rgba(255,255,255,0.14) !important;
  outline: none;
  box-shadow: none !important;
}
.php-email-form button[type="submit"] {
  background: var(--orange-mid);
  color: #fff;
  border: none;
  padding: 13px 40px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  width: 100%;
}
.php-email-form button[type="submit"]:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
}

.php-email-form .loading,
.php-email-form .error-message,
.php-email-form .sent-message {
  display: none;
  background: rgba(255,255,255,0.1);
  padding: 10px 16px;
  border-radius: 6px;
  margin-bottom: 10px;
  font-size: 14px;
}
.php-email-form .sent-message { color: #6af09b; border: 1px solid #6af09b; display: none; }
.php-email-form .error-message { color: #f96060; border: 1px solid #f96060; display: none; }

/* Contact info sidebar */
.contact-info-box {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px !important;
  border-top-left-radius: 16px !important;
  border-top-right-radius: 16px !important;
  border-bottom-left-radius: 16px !important;
  border-bottom-right-radius: 16px !important;
  overflow: hidden;
  padding: 36px 32px;
  backdrop-filter: blur(6px);
}
.contact-info-box h4 {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 28px;
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
  color: rgba(255,255,255,0.82);
  font-size: 14px;
}
.contact-info-item i {
  font-size: 20px;
  color: var(--orange-light);
  min-width: 24px;
  margin-top: 2px;
}
.contact-info-item a {
  color: rgba(255,255,255,0.82);
  text-decoration: none;
}
.contact-info-item a:hover {
  color: var(--orange-light);
}
.contact-whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #25d366;
  color: #fff !important;
  padding: 13px 24px;
  border-radius: 25px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none !important;
  margin-top: 28px;
  transition: background var(--transition), transform var(--transition);
}
.contact-whatsapp-btn:hover {
  background: #1ebc5b;
  transform: translateY(-2px);
}

/* -------------------------------------------------------
   12. Footer
   ------------------------------------------------------- */
.ftco-footer {
  background: #161616 !important;
  padding: 32px 0 0;
  font-size: 14px;
  border-top: 3px solid var(--orange-mid);
}

/* Heading — full-width subtle rule + short orange accent */
.ftco-footer .ftco-footer-widget h2.ftco-heading-2 {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: relative;
  display: block;
}
.ftco-footer .ftco-footer-widget h2.ftco-heading-2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 32px;
  height: 2px;
  background: var(--orange-mid);
  border-radius: 2px;
}

.ftco-footer p {
  color: rgba(255,255,255,0.52);
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 0;
}
.ftco-footer a {
  color: rgba(255,255,255,0.58);
  transition: color var(--transition);
}
.ftco-footer a:hover {
  color: var(--orange-light);
}
.ftco-footer ul li {
  margin-bottom: 8px;
}
.ftco-footer .row.mb-5 {
  margin-bottom: 1rem !important;
}
.ftco-footer .col-md-6.mb-4 {
  margin-bottom: 0.5rem !important;
}

/* Social icons */
.ftco-footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  align-items: center;
}
.ftco-footer-social li {
  display: flex !important;
  margin: 0 !important;
  padding: 0;
  flex-shrink: 0;
}
.ftco-footer-social li a {
  box-sizing: border-box;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px;
  min-height: 36px;
  background: rgba(255,255,255,0.05) !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  float: none !important;
  position: static !important;
  color: rgba(255,255,255,0.65) !important;
  text-decoration: none;
  line-height: 1;
  transition: background var(--transition), border-color var(--transition),
              color var(--transition), transform var(--transition);
}
.ftco-footer-social li a i {
  display: block;
  line-height: 1;
  font-size: 15px;
  margin: 0;
  padding: 0;
}
.ftco-footer-social li a:hover {
  background: var(--orange-mid) !important;
  border-color: var(--orange-mid) !important;
  color: #fff !important;
  transform: translateY(-2px);
}

/* Contact block */
.ftco-footer .block-23 ul {
  padding: 0;
  margin: 0;
}
.ftco-footer .block-23 ul li {
  display: flex !important;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  padding: 0;
  line-height: 1.4;
}
.ftco-footer .block-23 ul li > a {
  display: flex !important;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-bottom: 0 !important;
  padding: 0;
  line-height: 1.4;
  text-decoration: none;
}
.ftco-footer .block-23 ul li .icon {
  box-sizing: border-box;
  flex-shrink: 0;
  width: 32px !important;
  height: 32px !important;
  background: rgba(219,136,56,0.10);
  border-radius: 7px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  color: var(--orange-mid) !important;
  font-size: 14px;
  line-height: 1;
  padding: 0;
  margin: 0;
}
.ftco-footer .block-23 ul li .text {
  display: block !important;
  color: rgba(255,255,255,0.55);
  font-size: 14px;
  line-height: 1.4;
  padding: 0;
  margin: 0;
}
.ftco-footer .block-23 ul li > a:hover .text {
  color: var(--orange-light);
}
.ftco-footer .block-23 ul li > a:hover .icon {
  background: rgba(219,136,56,0.20);
  color: var(--orange-light) !important;
}

/* Bottom bar */
.footer-bottom {
  background: #0d0d0d;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 14px 0;
  margin-top: 0;
  text-align: center;
}
.footer-bottom p {
  margin: 0;
  color: rgba(255,255,255,0.30);
  font-size: 13px;
}
.footer-bottom a {
  color: var(--orange-light);
}

/* Responsive stack */
@media (max-width: 767px) {
  .ftco-footer {
    padding-top: 28px;
  }
  .ftco-footer .col-md-6:first-child {
    border-bottom: 1px solid rgba(255,255,255,0.07);
    padding-bottom: 18px;
    margin-bottom: 24px !important;
  }
}

/* -------------------------------------------------------
   13. WhatsApp Floating Button
   ------------------------------------------------------- */
.whatsapp {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  width: 58px;
  height: 58px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: transform var(--transition), box-shadow var(--transition);
}
.whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.60);
}
.whatsapp .fa-whatsapp {
  color: #fff;
  font-size: 30px;
}

/* -------------------------------------------------------
   14. Loader
   ------------------------------------------------------- */
#ftco-loader circle.path {
  stroke: var(--orange-mid) !important;
}

/* -------------------------------------------------------
   15. Scroll animations (ftco-animate)
   ------------------------------------------------------- */
.ftco-animate {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.ftco-animate.ftco-animated {
  opacity: 1;
  visibility: visible;
}

/* -------------------------------------------------------
   16. Buttons global
   ------------------------------------------------------- */
.btn.btn-primary {
  background: var(--orange-mid) !important;
  border: 2px solid var(--orange-mid) !important;
  color: #fff !important;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 28px;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.btn.btn-primary:hover {
  background: var(--orange-dark) !important;
  border-color: var(--orange-dark) !important;
  transform: translateY(-1px);
}

/* -------------------------------------------------------
   17. Misc utility
   ------------------------------------------------------- */
.bg-primary { background: var(--orange-mid) !important; }
.text-primary { color: var(--orange-mid) !important; }

/* Divider accent line */
.accent-line {
  width: 56px;
  height: 4px;
  background: var(--orange-mid);
  border-radius: 2px;
  margin: 0 auto 24px auto;
}
.accent-line.left { margin: 0 0 24px 0; }

/* -------------------------------------------------------
   18. Mobile-first fixes
   ------------------------------------------------------- */
@media (max-width: 767.98px) {
  #hero {
    height: 100svh;
    min-height: 480px;
  }
  #hero .carousel-item,
  #hero .carousel,
  #hero .carousel-inner {
    height: 100svh;
    min-height: 480px;
  }
  #hero h1, #hero h2 { font-size: 1.6rem; }
  #hero p  { font-size: 0.95rem; }
  .btn-get-started { padding: 12px 28px; font-size: 14px; }

  .cta h3 { font-size: 1.3rem; }
  .cta-btn { padding: 12px 28px; font-size: 14px; }

  .faq-item { padding: 20px 18px; }
  .contact-info-box { margin-top: 32px; padding: 24px 20px; }

  .ftco-footer { padding: 40px 0 0; }
}

@media (max-width: 991.98px) {
  .services.services-2 { margin-bottom: 20px; }
  #about { padding: 60px 0; }
  #faq   { padding: 60px 0; }
}

/* =================================================================
   BUG FIXES — override legacy red colors & square shapes from
   style.css  (all !important needed to beat that file's rules)
   ================================================================= */

/* ---- Red → Orange color replacements ---- */

/* Global link color (style.css line ~7916: a { color: #d93523 }) */
a { color: var(--orange-mid) !important; }
a:hover, a:focus { color: var(--orange-dark) !important; }

/* Navbar brand span accent color */
.ftco-navbar-light .navbar-brand span { color: var(--orange-mid) !important; }

/* Nav link hover & active states */
.ftco-navbar-light .navbar-nav > .nav-item > .nav-link:hover,
.ftco-navbar-light .navbar-nav > .nav-item > .nav-link:focus {
  color: var(--orange-light) !important;
}
.ftco-navbar-light .navbar-nav > .nav-item.active > a,
.ftco-navbar-light .navbar-nav > .nav-item.active > .nav-link {
  color: var(--orange-light) !important;
}
/* Scrolled navbar active link */
.ftco-navbar-light.scrolled .nav-item.active > a,
.ftco-navbar-light.scrolled .nav-item > a.active {
  color: var(--orange-light) !important;
}

/* CTA section background (style.css line 9909: .cta { background: #d93523 !important }) */
/* Must use double !important trick via a more specific selector */
section.cta,
div.cta,
.cta {
  background: linear-gradient(135deg, var(--orange-dark) 0%, var(--orange-mid) 100%) !important;
}

/* Service icon border (line ~8849: border: 2px solid #e81d1d) */
.services.services-2 .icon {
  border-color: var(--orange-mid) !important;
}

/* Subheading color (line ~9118) — extra specificity */
.heading-section .subheading,
span.subheading {
  color: var(--orange-mid) !important;
}

/* Debug leftover red borders in style.css */
.request-form .form-group .icon  { border: none !important; }
.owl-custom-nav                   { border: none !important; }

/* Footer background extra override */
.ftco-footer {
  background: var(--gray-dark) !important;
}

/* Primary button background */
.btn.btn-primary,
a.btn.btn-primary {
  background: var(--orange-mid) !important;
  border-color: var(--orange-mid) !important;
  color: #fff !important;
}
.btn.btn-primary:hover,
a.btn.btn-primary:hover {
  background: var(--orange-dark) !important;
  border-color: var(--orange-dark) !important;
}

/* ---- Rounded shapes (style.css sets border-radius: 3px on .btn) ---- */

/* All Bootstrap buttons get pill-like rounding */
.btn        { border-radius: 25px !important; }
.btn-sm     { border-radius: 20px !important; }
.btn-lg     { border-radius: 30px !important; }

/* Form inputs */
.form-control,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="search"],
textarea,
select {
  border-radius: 8px !important;
}

/* Cards that might render square due to Bootstrap reset */
.card { border-radius: 12px !important; }

/* Navbar toggler */
.navbar-toggler { border-radius: 6px !important; }

/* ---- Elementos faltantes — red round 2 ---- */

/* Línea decorativa de section-title (h2::after tiene background: #d93523) */
.section-title h2::after {
  background: var(--orange-mid) !important;
}

/* Subtítulo de section-title (p tiene color: #d93523 y font-size: 36px en style.css) */
.section-title p {
  color: var(--gray-light) !important;
  font-size: 1rem !important;
  font-weight: 400 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

/* Ícono de ítem FAQ */
.faq .faq-item i {
  color: var(--orange-mid) !important;
}

/* Focus de inputs del formulario (border-color: #ed502e en style.css) */
.contact .php-email-form input:focus,
.contact .php-email-form textarea:focus,
.php-email-form input:focus,
.php-email-form textarea:focus {
  border-color: var(--orange-mid) !important;
  outline: none !important;
}

/* Botón submit del formulario — style.css usa .contact .php-email-form button
   (especificidad 0,2,1) que gana sobre nuestra regla (0,1,1+1).
   Igualamos especificidad + !important para garantizar override. */
.contact .php-email-form button[type=submit],
.contact .php-email-form button[type="submit"] {
  background: var(--orange-mid) !important;
  border-radius: 30px !important;
  font-family: "Comfortaa", sans-serif !important;
  font-weight: 700 !important;
}
.contact .php-email-form button[type=submit]:hover,
.contact .php-email-form button[type="submit"]:hover {
  background: var(--orange-dark) !important;
}

/* Scrolled navbar active link (#fc983c en style.css) */
.ftco-navbar-light.scrolled .nav-link.active,
.ftco-navbar-light.scrolled .nav-link:active {
  color: var(--orange-light) !important;
}

/* .btn-primary hover: style.css lo pone transparente con borde #fc983c.
   Forzamos que siga sólido y en nuestro palette. */
.btn.btn-primary:hover,
.btn.btn-primary:focus,
a.btn.btn-primary:hover,
a.btn.btn-primary:focus {
  background: var(--orange-dark) !important;
  border-color: var(--orange-dark) !important;
  color: #fff !important;
  border-width: 2px !important;
}

/* =======================================================
   19. Mobile Improvements — carruseles y espaciado
   Solo breakpoints generales. Sin cambios en desktop.
   ======================================================= */

/* ---- Evitar overflow-x accidental en la página ---- */
@media (max-width: 768px) {
  html,
  body {
    overflow-x: hidden;
  }
  /* Los contenedores de carrusel necesitan poder desbordar */
  .mobile-carousel {
    overflow-x: auto !important;
  }
}

/* ---- KPIs / hero-stats: fila de 3 columnas, compacta ---- */
@media (max-width: 768px) {
  .hero-stats {
    flex-wrap: nowrap;
    gap: 0;
    margin-top: 1.5rem;
    align-items: flex-start;
    width: 100%;
  }
  .hero-stat {
    flex: 1 1 0;
    min-width: 0;
    padding: 0 6px;
    text-align: center;
  }
  .hero-stat:not(:last-child) {
    border-right: 1px solid rgba(255,255,255,0.22);
  }
  .hero-stat strong {
    font-size: 1.2rem;
  }
  .hero-stat span {
    font-size: 9px;
    letter-spacing: 0;
    white-space: normal;
    line-height: 1.3;
    display: block;
  }
}

/* ---- Hero title: 2 líneas limpias ---- */
@media (max-width: 768px) {
  #hero h1,
  #hero h2 {
    font-size: 1.55rem;
    line-height: 1.2;
  }
}

/* ---- Carruseles horizontales deslizables ---- */
@media (max-width: 768px) {
  .mobile-carousel {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    /* padding inferior para que el scrollbar fino no tape contenido */
    padding-bottom: 14px !important;
    /* Resetear justify-content para que las cards no se centren
       y aparezcan correctamente una detrás de otra */
    justify-content: flex-start !important;
  }

  /* Scrollbar fino estilizado */
  .mobile-carousel::-webkit-scrollbar {
    height: 3px;
  }
  .mobile-carousel::-webkit-scrollbar-track {
    background: transparent;
  }
  .mobile-carousel::-webkit-scrollbar-thumb {
    background: var(--orange-mid);
    border-radius: 3px;
  }

  /* Cada columna-card: ancho fijo para mostrar que hay más contenido */
  .mobile-carousel > [class*="col-"] {
    flex: 0 0 82% !important;
    max-width: 82% !important;
    scroll-snap-align: start;
    /* Asegurar que las cards rellenen el col en mobile */
    display: flex !important;
    flex-direction: column !important;
  }

  /* FAQ: cards de texto más anchas para mejor legibilidad */
  #faq .mobile-carousel > [class*="col-"] {
    flex: 0 0 88% !important;
    max-width: 88% !important;
  }

  /* Cards de servicios: mismo alto (la más alta marca la altura del carrusel) */
  .mobile-carousel .services.services-2 {
    width: 100%;
    flex: 1;
  }
  /* El col es flex-column; el card crece para llenar todo el espacio */
  .mobile-carousel > [class*="col-"] > .media.block-6.services.services-2 {
    display: flex;
    flex-direction: column;
  }
  .mobile-carousel .services.services-2 .media-body {
    display: flex;
    flex-direction: column;
    flex: 1;
  }

  /* Los items de FAQ dentro del carrusel: sin margin-bottom extra */
  .mobile-carousel .faq-item {
    height: 100%;
  }
}

/* ---- Reducir espaciado vertical en mobile ---- */
@media (max-width: 768px) {
  /* Secciones principales */
  .services-section.img         { padding: 50px 0 !important; }
  #about                        { padding: 50px 0 !important; }
  #faq                          { padding: 50px 0 !important; }
  #contact                      { padding: 50px 0 !important; }
  #Clientes                     { padding: 40px 0 !important; }
  .cta                          { padding: 40px 0 !important; }

  /* Encabezados de sección */
  .section-title                { padding-bottom: 22px; }
  .heading-section.mb-5         { margin-bottom: 1.5rem !important; }
  .row.justify-content-center.mb-5 { margin-bottom: 1.5rem !important; }

  /* Cards de servicios: más compactas */
  .services.services-2          { padding: 22px 16px !important; }
  .services.services-2 .icon    { width: 64px !important; height: 64px !important; margin-bottom: 12px !important; }
  .services.services-2 .icon span { font-size: 26px !important; }
  .services.services-2 h3       { font-size: 16px; margin-bottom: 8px; }
  .services.services-2 .media-body p { font-size: 13px !important; }

  /* Items de FAQ: más compactos */
  .faq-item                     { padding: 16px 14px !important; margin-bottom: 10px !important; }
  .faq .faq-item h4             { font-size: 14px; }
  .faq-item p                   { font-size: 13px; }

  /* Caja de info de contacto */
  .contact-info-box             { padding: 22px 18px !important; }

  /* Título cartera de clientes: forzar 2 líneas */
  #Clientes .heading-section h2 { font-size: 1.1rem !important; }

  /* Título nuestros servicios: 1 línea */
  #cta .heading-section h2 { font-size: 1.7rem !important; }
}

/* ---- Ajustes extra en pantallas muy pequeñas (<480px) ---- */
@media (max-width: 480px) {
  #hero h1,
  #hero h2          { font-size: 1.35rem; }
  #hero p           { font-size: 0.88rem; margin-bottom: 1.5rem; }
  .hero-stat strong { font-size: 1.1rem; }
  .hero-stat span   { font-size: 8px; }
  .btn-get-started,
  #hero .btn-get-started { padding: 11px 22px; font-size: 13px; }
  .btn-hero-secondary    { padding: 11px 22px; font-size: 13px; margin-left: 0; margin-top: 10px; }
}

/* ---- Quiénes somos: estadísticas deslizables en mobile ---- */
@media (max-width: 768px) {
  .about-stats-carousel {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding-bottom: 12px;
    /* Evitar que el padding del col parent interfiera */
    margin-left: -4px;
    margin-right: -4px;
    padding-left: 4px;
    padding-right: 4px;
  }
  .about-stats-carousel::-webkit-scrollbar       { height: 3px; }
  .about-stats-carousel::-webkit-scrollbar-track { background: transparent; }
  .about-stats-carousel::-webkit-scrollbar-thumb { background: var(--orange-mid); border-radius: 3px; }

  .about-stats-carousel .about-stat {
    flex: 0 0 82%;
    max-width: 82%;
    scroll-snap-align: start;
    margin-bottom: 0;
    flex-shrink: 0;
    /* Layout vertical centrado dentro del carrusel */
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 20px;
  }
  .about-stats-carousel .about-stat .stat-num {
    flex: none;
    width: auto;
    font-size: 2.4rem;
    margin-bottom: 10px;
  }
  .about-stats-carousel .about-stat .stat-sep {
    /* Separador horizontal en vez de vertical */
    width: 40px;
    height: 2px;
    margin: 0 0 12px 0;
  }
  .about-stats-carousel .about-stat .stat-label {
    text-align: center;
    font-size: 14px;
    line-height: 1.5;
  }
  .about-stats-carousel .about-stat .stat-label strong {
    display: block;
    margin-bottom: 4px;
  }
}
