/* ==========================================================================
   Aduax Landing Page - Master CSS
   100% RESPONSIVE ARMORED (Zero Horizontal Overflow, No Cropping, Fluid)
   Compatible con la arquitectura WordPress de Aduax (wp-content/themes/aduax)
   ========================================================================== */

:root {
  /* Paleta Oficial Aduax */
  --color-primary: #FF551A;          /* Naranja Corporativo Aduax */
  --color-primary-hover: #E0440E;
  --color-primary-light: #FFF1EC;
  --color-dark: #0B1924;             /* Azul marino corporativo */
  --color-dark-surface: #132533;
  --color-text-main: #17252C;
  --color-text-muted: #64748B;
  --color-text-light: #94A3B8;
  --color-bg-page: #EDF2F7;          /* Fondo grisáceo oficial de la maqueta */
  --color-white: #FFFFFF;
  --color-border: #E2E8F0;

  --font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --container-max-width: 1240px;
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 16px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.06);
}

/* ================= RESET GLOBAL BLINDADO CONTRA DESBORDES ================= */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden !important;
  position: relative;
  font-family: var(--font-family);
  color: var(--color-text-main);
  background-color: var(--color-bg-page);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}

img, picture, svg, video {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, h5, h6, p, span, li, a {
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: normal;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

/* Contenedores */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.main-content {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.section {
  padding: clamp(18px, 3vw, 32px) 0;
  width: 100%;
  box-sizing: border-box;
}

.text-center {
  text-align: center;
}

/* ================= 1. HERO SECTION ================= */
.hero-section {
  position: relative;
  width: 100%;
  min-height: clamp(500px, 72vh, 720px);
  background-image: url('../assets/images/veracruz.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-bottom: clamp(36px, 5vw, 70px);
  box-sizing: border-box;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.05) 30%, rgba(11, 25, 36, 0.30) 70%, rgba(11, 25, 36, 0.50) 100%);
  z-index: 1;
}

.floating-header-wrapper {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 10;
  box-sizing: border-box;
}

.floating-header-bar {
  width: 100%;
  background: var(--color-white);
  padding: clamp(12px, 1.8vw, 20px) clamp(16px, 2.5vw, 36px);
  border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

.header-logo-img {
  height: clamp(34px, 4.5vw, 48px);
  width: auto;
  display: block;
}

.hero-container {
  position: relative;
  z-index: 5;
  margin-top: auto;
  padding-top: 24px;
}

.hero-content {
  max-width: 560px;
  width: 100%;
}

.hero-title {
  font-size: clamp(44px, 5.6vw, 60px);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 300;
  color: #FFFFFF;
  line-height: 1.3;
  letter-spacing: 0px;
}

/* ================= 2. DESPACHO ADUANAL (2 TARJETAS SEPARADAS) ================= */
.despacho-two-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(14px, 2vw, 24px);
  align-items: stretch;
  width: 100%;
}

.despacho-info-card {
  background: var(--color-white);
  border-radius: var(--border-radius-md);
  padding: clamp(24px, 3.5vw, 40px);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}

.section-title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.section-desc {
  max-width: 440px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-main);
  margin-bottom: 22px;
  line-height: 1.5;
}

.feature-bullets {
  list-style: none;
}

.feature-bullets li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-main);
  line-height: 1.35;
}

.bullet-dot {
  position: absolute;
  left: 0;
  top: 6px;
  width: 7px;
  height: 7px;
  background-color: var(--color-primary);
  border-radius: 50%;
}

.despacho-map-card {
  background: #000000;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

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

/* ================= 3. CARRUSEL 1: SERVICIOS ================= */
.carousel-wrapper {
  position: relative;
  padding: 0 clamp(28px, 4vw, 44px);
  width: 100%;
  box-sizing: border-box;
}

.swiper {
  width: 100%;
  overflow: hidden;
}

.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  padding: clamp(24px, 2.5vw, 32px) clamp(18px, 2vw, 24px);
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  box-sizing: border-box;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #CBD5E1;
}

.service-card .card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.card-icon-img img {
  width: 44px;
  height: 44px;
}

.card-number {
  font-size: 24px;
  font-weight: 800;
  color: var(--color-text-main);
}

.service-card .card-title {
  font-size: clamp(18px, 1.8vw, 21px);
  font-weight: 600;
  color: var(--color-text-main);
  line-height: 1.25;
}

.service-card .card-subtitle {
  font-size: clamp(14px, 1.4vw, 15px);
  font-weight: 400;
  color: var(--color-text-main);
  line-height: 1.3;
  margin-top: 10px;
}

/* Botones de navegación */
.swiper-nav-btn {
  width: 38px !important;
  height: 38px !important;
  background-color: var(--color-white);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  color: var(--color-dark) !important;
  border: 1px solid var(--color-border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

.swiper-nav-btn:after {
  font-size: 12px !important;
  font-weight: 900;
}

.swiper-nav-btn:hover {
  background-color: var(--color-primary);
  color: var(--color-white) !important;
  border-color: var(--color-primary);
}

.swiper-button-prev { left: 0 !important; }
.swiper-button-next { right: 0 !important; }

/* ================= 4. CERTIFICACIONES ================= */
.cert-section-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: clamp(14px, 2vw, 24px);
  align-items: stretch;
  width: 100%;
}

.cert-banner-orange {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: clamp(28px, 3.5vw, 40px) clamp(22px, 2.5vw, 32px);
  border-radius: var(--border-radius-md);
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  box-sizing: border-box;
}

.cert-small-text {
  font-size: clamp(13px, 1.2vw, 15px);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 12px;
  font-weight: 600;
  opacity: 0.95;
  line-height: 1.35;
}

.cert-heading {
  font-size: clamp(26px, 2.8vw, 34px);
  font-weight: 800;
  line-height: 1.15;
}

.cert-right-column {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.8vw, 18px);
  justify-content: space-between;
  width: 100%;
}

.cert-logos-official {
  background: var(--color-white);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--color-border);
  padding: clamp(16px, 2vw, 22px) clamp(18px, 2.5vw, 32px);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  box-shadow: var(--shadow-sm);
  box-sizing: border-box;
}

.cert-strip-img {
  max-height: clamp(38px, 4vw, 50px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  margin-left: auto;
}

.cert-ship-image-card {
  border-radius: var(--border-radius-md);
  overflow: hidden;
  height: 100%;
  min-height: clamp(200px, 24vw, 250px);
  box-shadow: var(--shadow-sm);
  width: 100%;
}

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

/* ================= 5. CLASIFICACIÓN Y COMPLIANCE ================= */
.compliance-pills-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(10px, 1.4vw, 16px);
  margin-bottom: clamp(20px, 2.5vw, 28px);
  width: 100%;
}

.pill-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  padding: clamp(14px, 1.6vw, 18px) clamp(8px, 1.2vw, 14px);
  border-radius: var(--border-radius-md);
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  box-sizing: border-box;
}

.pill-card h4 {
  font-size: clamp(13px, 1.25vw, 16px);
  font-weight: 600;
  color: var(--color-text-main);
  line-height: 1.35;
}

.compliance-dark-box {
  position: relative;
  background-image: url('../assets/images/contenedores.jpg');
  background-size: cover;
  background-position: center right;
  border-radius: var(--border-radius-md);
  padding: clamp(36px, 4.5vw, 54px) clamp(24px, 3.5vw, 44px);
  color: var(--color-white);
  overflow: hidden;
  min-height: clamp(400px, 46vw, 490px);
  display: flex;
  align-items: center;
  box-shadow: var(--shadow-sm);
  width: 100%;
  box-sizing: border-box;
}

.compliance-dark-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(11, 25, 36, 0.92) 0%, rgba(11, 25, 36, 0.78) 45%, rgba(11, 25, 36, 0.20) 75%, rgba(11, 25, 36, 0) 100%);
  z-index: 1;
}

.compliance-content-left {
  position: relative;
  z-index: 2;
  max-width: 420px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2.5vw, 32px);
  box-sizing: border-box;
}

.compliance-list {
  list-style: none;
}

.compliance-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 12px;
  font-size: clamp(14px, 1.3vw, 16px);
  font-weight: 500;
  color: #FFFFFF;
  line-height: 1.45;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.compliance-list li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-size: 18px;
  line-height: 1;
}

.compliance-bottom-badge {
  padding-top: 6px;
  width: 100%;
}

.badge-subtitle {
  font-size: clamp(14px, 1.3vw, 16px);
  font-style: italic;
  color: #CBD5E1;
  margin-bottom: 2px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.badge-title {
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

/* ================= 6. LAREDO TEXAS ================= */
.laredo-header {
  margin-bottom: 32px;
}

.warehouse-svg-logo {
  height: clamp(42px, 4.2vw, 52px);
  width: auto;
  margin: 0 auto 12px;
}

.laredo-location {
  font-size: clamp(14px, 1.3vw, 17px);
  font-weight: 500;
  color: var(--color-text-main);
  margin-bottom: 6px;
}

.laredo-location strong {
  font-weight: 700;
}

.laredo-sqft {
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 900;
  color: var(--color-dark);
  margin: 2px 0 12px;
  letter-spacing: -1px;
}

.laredo-tags {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 860px;
  margin: 0 auto;
  font-size: clamp(13px, 1.2vw, 15px);
  font-weight: 500;
  color: var(--color-text-main);
}

.tag-separator {
  color: var(--color-primary);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 2vw, 22px);
  margin-bottom: 26px;
  width: 100%;
}

.metric-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  padding: clamp(24px, 2.5vw, 32px) clamp(12px, 1.5vw, 18px);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  box-sizing: border-box;
}

.metric-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.metric-number {
  font-size: clamp(40px, 4.5vw, 54px);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 8px;
}

.metric-label {
  font-size: clamp(13px, 1.2vw, 15px);
  font-weight: 600;
  color: var(--color-text-main);
  line-height: 1.35;
}

.laredo-banner-bottom {
  text-align: center;
  padding: 24px 0 8px;
  box-sizing: border-box;
}

.laredo-banner-bottom .banner-line-1 {
  display: block;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 800;
  color: var(--color-dark);
  line-height: 1.2;
}

.laredo-banner-bottom .banner-line-2 {
  display: block;
  font-size: clamp(14px, 1.4vw, 17px);
  font-weight: 400;
  color: var(--color-text-main);
  line-height: 1.4;
  margin-top: 6px;
}

/* ================= 7. TALENTO Y RECLUTAMIENTO (100% RESPONSIVE) ================= */
.talento-two-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(14px, 2vw, 24px);
  align-items: stretch;
  width: 100%;
}

.talento-info-card {
  background: var(--color-white);
  border-radius: var(--border-radius-md);
  padding: clamp(28px, 3.5vw, 42px);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  min-height: 520px;
  box-sizing: border-box;
}

.talento-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.talento-title {
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 700;
  color: var(--color-primary);
}

.talento-desc {
  font-size: clamp(14px, 1.3vw, 16px);
  font-weight: 500;
  color: var(--color-text-main);
  line-height: 1.4;
}

.talento-visual-card {
  position: relative;
  background-image: url('../assets/images/aduax_staff.jpg');
  background-size: cover;
  background-position: center 10%;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(480px, 50vw, 540px);
  width: 100%;
  box-sizing: border-box;
}

.talento-visual-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.08) 35%, rgba(11, 25, 36, 0.78) 75%, rgba(11, 25, 36, 0.94) 100%);
  z-index: 1;
}

.talento-visual-content {
  position: relative;
  z-index: 2;
  padding: clamp(22px, 3vw, 32px);
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
}

.talento-heading-box {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.talento-subheading {
  font-size: clamp(13px, 1.2vw, 15px);
  color: #FFFFFF;
  font-weight: 400;
}

.talento-main-heading {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.2;
}

.talento-center-box {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.talento-univ-title {
  font-size: clamp(13px, 1.2vw, 15px);
  color: #FFFFFF;
  font-weight: 400;
}

.talento-univ-heading {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.2;
}

.talento-bottom-orange-box {
  border: 1.5px solid var(--color-primary);
  border-radius: var(--border-radius-sm);
  padding: 12px 16px;
  background: rgba(11, 25, 36, 0.65);
  font-size: clamp(12px, 1.2vw, 14px);
  color: #FFFFFF;
  line-height: 1.4;
  font-weight: 500;
  box-sizing: border-box;
}

/* ================= 8. CARRUSEL 2: ADUABOOK 3 ================= */
.aduabook-carousel-wrapper {
  position: relative;
  padding: 0 clamp(28px, 4vw, 44px);
  width: 100%;
  box-sizing: border-box;
}

.adua-item-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
  box-sizing: border-box;
}

.adua-item-card:hover {
  transform: translateY(-3px);
}

.adua-img-holder {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: #000000;
}

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

.adua-item-caption {
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 500;
  color: var(--color-text-main);
  line-height: 1.3;
  padding: 0 2px;
}

/* ================= 9. FOOTER ================= */
.site-footer {
  background-color: var(--color-dark);
  padding: clamp(32px, 4vw, 44px) 0;
  color: var(--color-white);
  width: 100%;
  box-sizing: border-box;
}

.footer-svg-logo {
  height: clamp(30px, 3.5vw, 36px);
  width: auto;
  margin: 0 auto 14px;
}

.footer-copy {
  font-size: clamp(11px, 1vw, 12px);
  color: var(--color-text-light);
  line-height: 1.5;
}

/* ================= 10. MEDIA QUERIES RESPONSIVAS PROFESIONALES ================= */

/* Tablets Grandes y Laptops Pequeñas (≤ 1024px) */
@media (max-width: 1024px) {
  .compliance-pills-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablets y Pantallas Medianas (≤ 768px) */
@media (max-width: 768px) {
  .despacho-two-cards-grid,
  .cert-section-grid,
  .talento-two-cards-grid {
    grid-template-columns: 1fr;
  }

  .cert-ship-image-card {
    min-height: 200px;
  }

  .compliance-dark-box::before {
    background: linear-gradient(90deg, rgba(11, 25, 36, 0.95) 0%, rgba(11, 25, 36, 0.88) 60%, rgba(11, 25, 36, 0.35) 100%);
  }
}

/* Teléfonos Móviles Estándar (≤ 600px) */
@media (max-width: 600px) {
  .container {
    padding: 0 14px;
  }

  .floating-header-wrapper {
    padding: 0 10px;
  }

  .floating-header-bar {
    padding: 12px 16px;
  }

  .hero-section {
    min-height: 420px;
    padding-bottom: 28px;
  }

  .compliance-pills-grid {
    grid-template-columns: 1fr 1fr;
  }

  .compliance-pills-grid .pill-card:last-child {
    grid-column: span 2;
  }

  .compliance-dark-box {
    background-position: center;
    padding: 24px 16px;
    min-height: auto;
  }

  .compliance-dark-box::before {
    background: rgba(11, 25, 36, 0.88);
  }

  .metrics-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .laredo-tags {
    flex-direction: column;
    gap: 6px;
  }

  .tag-separator {
    display: none;
  }

  .carousel-wrapper,
  .aduabook-carousel-wrapper {
    padding: 0 32px;
  }

  .swiper-nav-btn {
    width: 28px !important;
    height: 28px !important;
  }
  .swiper-nav-btn:after {
    font-size: 10px !important;
  }

  .talento-visual-card {
    min-height: 380px;
    background-position: center top;
  }
}

/* Teléfonos Móviles Muy Pequeños (≤ 360px - ej. 320px o 330px) */
@media (max-width: 360px) {
  .container {
    padding: 0 10px;
  }

  .compliance-pills-grid {
    grid-template-columns: 1fr;
  }

  .compliance-pills-grid .pill-card:last-child {
    grid-column: span 1;
  }

  .carousel-wrapper,
  .aduabook-carousel-wrapper {
    padding: 0 28px;
  }
}
