/* ==========================================================================
   TERRA-SOS — Corporate Website Stylesheet
   Environmental Waste Management · Premium Dark Corporate
   ========================================================================== */

/* ========== GOOGLE FONTS ========== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,500&display=swap');

/* ========== CSS RESET ========== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

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

ul,
ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
  line-height: 1.2;
}

p {
  overflow-wrap: break-word;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* ========== DESIGN TOKENS (Custom Properties) ========== */
:root {
  /* --- Colors --- */
  --petrol-blue:    #163B4D;
  --petrol-deep:    #0F2A38;
  --green-primary:  #5A8C1E;
  --green-hover:    #4A7518;
  --green-light:    #7DB33A;
  --sage:           #B5C9A0;
  --gray-warm:      #8A8A7A;
  --white:          #FAFAFA;
  --gray-light:     #F2F2F0;
  --gray-medium:    #D4D4D0;
  --text-dark:      #1A1A1A;
  --text-light:     #E8E8E8;
  --text-muted:     #A0A0A0;
  --overlay-dark:   rgba(15, 42, 56, 0.75);
  --overlay-card:   rgba(15, 42, 56, 0.85);

  /* --- Typography --- */
  --font-primary:   'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --fs-h1:          3.5rem;
  --fs-h2:          2.5rem;
  --fs-h3:          1.5rem;
  --fs-h4:          1.25rem;
  --fs-body:        1rem;
  --fs-small:       0.875rem;
  --fs-xs:          0.75rem;
  --fw-regular:     400;
  --fw-medium:      500;
  --fw-semibold:    600;
  --fw-bold:        700;
  --fw-extrabold:   800;
  --lh-body:        1.6;
  --lh-heading:     1.2;
  --ls-body:        0;
  --ls-caps:        0.08em;

  /* --- Spacing --- */
  --section-padding:    120px 0;
  --section-padding-sm: 80px 0;
  --container-width:    1200px;
  --container-padding:  0 24px;
  --gap-xs:   4px;
  --gap-sm:   8px;
  --gap-md:   16px;
  --gap-lg:   24px;
  --gap-xl:   32px;
  --gap-2xl:  48px;
  --gap-3xl:  64px;

  /* --- Shadows --- */
  --shadow-sm:    0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md:    0 4px 20px rgba(0, 0, 0, 0.12);
  --shadow-lg:    0 8px 40px rgba(0, 0, 0, 0.16);
  --shadow-hover: 0 12px 48px rgba(0, 0, 0, 0.20);
  --shadow-glow:  0 0 20px rgba(90, 140, 30, 0.3);

  /* --- Transitions --- */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* --- Border Radius --- */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-full: 50%;

  /* --- Z-index Scale --- */
  --z-base:     1;
  --z-dropdown: 100;
  --z-sticky:   200;
  --z-nav:      500;
  --z-overlay:  800;
  --z-modal:    1000;
}


/* ========== BASE TYPOGRAPHY ========== */
body {
  font-family: var(--font-primary);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
  color: var(--text-dark);
  background-color: var(--white);
}

h1 {
  font-size: var(--fs-h1);
  font-weight: var(--fw-bold);
  line-height: var(--lh-heading);
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  line-height: var(--lh-heading);
  letter-spacing: -0.01em;
}

h3 {
  font-size: var(--fs-h3);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-heading);
}

h4 {
  font-size: var(--fs-h4);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-heading);
}

p {
  margin-bottom: 1em;
}

p:last-child {
  margin-bottom: 0;
}

strong, b {
  font-weight: var(--fw-semibold);
}

small {
  font-size: var(--fs-small);
}


/* ========== LAYOUT: CONTAINER ========== */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding: var(--container-padding);
}

.container--narrow {
  max-width: 900px;
}

.container--wide {
  max-width: 1440px;
}


/* ========== SECTION HEADER ========== */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--gap-3xl);
}

.section-header h2 {
  color: var(--petrol-blue);
  margin-bottom: var(--gap-md);
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--green-primary);
  margin: var(--gap-md) auto 0;
  border-radius: 2px;
}

.section-header p {
  color: var(--gray-warm);
  font-size: 1.125rem;
  line-height: var(--lh-body);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Dark section variant */
.section-header--light h2 {
  color: var(--white);
}

.section-header--light h2::after {
  background-color: var(--green-light);
}

.section-header--light p {
  color: var(--text-muted);
}


/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--gap-sm);
  padding: 14px 32px;
  font-family: var(--font-primary);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: var(--ls-caps);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition:
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast);
  white-space: nowrap;
  text-align: center;
}

.btn:active {
  transform: scale(0.97);
}

/* Primary: green bg */
.btn-primary {
  background-color: var(--green-primary);
  color: #fff;
  border-color: var(--green-primary);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: var(--green-hover);
  border-color: var(--green-hover);
  box-shadow: var(--shadow-glow);
}

/* Outline: white border (for dark backgrounds) */
.btn-outline {
  background-color: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background-color: var(--green-primary);
  border-color: var(--green-primary);
  color: #fff;
}

/* Outline Dark: petrol border (for light backgrounds) */
.btn-outline-dark {
  background-color: transparent;
  color: var(--petrol-blue);
  border-color: var(--petrol-blue);
}

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

/* Small button variant */
.btn--sm {
  padding: 10px 24px;
  font-size: var(--fs-xs);
}

/* Large button variant */
.btn--lg {
  padding: 18px 40px;
  font-size: var(--fs-body);
}


/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-nav);
  height: 80px;
  display: flex;
  align-items: center;
  transition:
    background-color var(--transition-base),
    box-shadow var(--transition-base);
  background-color: transparent;
}

/* Solid state: added via JS on scroll */
.navbar.scrolled {
  background-color: var(--petrol-blue);
  box-shadow: var(--shadow-md);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.navbar__logo img {
  height: 45px;
  width: auto;
}

/* Desktop Navigation Links */
.navbar__menu {
  display: flex;
  align-items: center;
  gap: var(--gap-xl);
}

.navbar__link {
  color: #fff;
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  letter-spacing: 0.02em;
  padding: 8px 0;
  position: relative;
  transition: color var(--transition-fast);
}

.navbar__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--green-light);
  transition: width var(--transition-base);
}

.navbar__link:hover::after,
.navbar__link.active::after {
  width: 100%;
}

.navbar__link:hover {
  color: var(--green-light);
}

/* CTA Button in Nav */
.navbar__cta {
  margin-left: var(--gap-md);
}

/* Hamburger (mobile) */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  z-index: calc(var(--z-overlay) + 1);
}

.navbar__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #fff;
  border-radius: 2px;
  transition:
    transform var(--transition-base),
    opacity var(--transition-base);
}

/* Hamburger active (X) */
.navbar__hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar__hamburger.active span:nth-child(2) {
  opacity: 0;
}

.navbar__hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile overlay menu */
.navbar__mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background-color: var(--petrol-deep);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--gap-xl);
  transition: right var(--transition-slow);
  z-index: var(--z-overlay);
  padding: var(--gap-2xl);
}

.navbar__mobile-menu.open {
  right: 0;
}

.navbar__mobile-menu .navbar__link {
  font-size: 1.25rem;
  font-weight: var(--fw-semibold);
}

.navbar__mobile-menu .navbar__cta {
  margin-left: 0;
  margin-top: var(--gap-lg);
}

/* Mobile overlay backdrop */
.navbar__backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: calc(var(--z-overlay) - 1);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--transition-base),
    visibility var(--transition-base);
}

.navbar__backdrop.visible {
  opacity: 1;
  visibility: visible;
}


/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero__background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Dark gradient overlay */
.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(15, 42, 56, 0.85) 0%,
    var(--overlay-dark) 50%,
    rgba(22, 59, 77, 0.60) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding-top: 80px; /* clear fixed nav */
}

.hero__title {
  color: #fff;
  margin-bottom: var(--gap-lg);
}

.hero__subtitle {
  color: var(--text-light);
  font-size: 1.125rem;
  font-weight: var(--fw-regular);
  max-width: 600px;
  margin-bottom: var(--gap-2xl);
  opacity: 0.9;
  line-height: var(--lh-body);
}

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-md);
}

/* Scroll indicator at bottom */
.hero__scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap-sm);
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: var(--ls-caps);
}

.hero__scroll-indicator span {
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  position: relative;
}

.hero__scroll-indicator span::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background-color: rgba(255, 255, 255, 0.6);
  border-radius: 2px;
  animation: scrollBounce 1.8s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  50%      { transform: translateX(-50%) translateY(12px); opacity: 0.3; }
}


/* ==========================================================================
   ABOUT / NOSOTROS SECTION
   ========================================================================== */
.about {
  padding: var(--section-padding);
  background-color: var(--white);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 0.7fr;
  gap: var(--gap-3xl);
  align-items: center;
}

.about__text h2 {
  color: var(--petrol-blue);
  margin-bottom: var(--gap-lg);
  position: relative;
}

.about__text h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background-color: var(--green-primary);
  margin-top: var(--gap-md);
  border-radius: 2px;
}

.about__text p {
  color: var(--gray-warm);
  margin-bottom: var(--gap-lg);
  font-size: 1.0625rem;
}

/* Key points list with green check icons */
.about__checklist {
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
  margin-top: var(--gap-lg);
}

.about__checklist li {
  display: flex;
  align-items: flex-start;
  gap: var(--gap-md);
  color: var(--text-dark);
  font-weight: var(--fw-medium);
  line-height: 1.5;
}

.about__checklist li::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background-color: var(--green-primary);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  margin-top: 1px;
}

/* Image side */
.about__image {
  position: relative;
}

.about__image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  object-fit: cover;
}

/* Optional decorative accent behind image */
.about__image::before {
  content: '';
  position: absolute;
  top: -16px;
  right: -16px;
  width: 100%;
  height: 100%;
  border: 3px solid var(--sage);
  border-radius: var(--radius-md);
  z-index: -1;
}


/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.services {
  padding: var(--section-padding);
  background-color: var(--white);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-xl);
}

.service-card {
  background-color: #fff;
  border: 1px solid var(--gray-medium);
  border-radius: var(--radius-md);
  padding: var(--gap-2xl) var(--gap-xl);
  text-align: center;
  transition:
    box-shadow var(--transition-base),
    transform var(--transition-base),
    border-color var(--transition-base);
  position: relative;
  overflow: hidden;
}

/* Green top border on hover */
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--green-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

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

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--gap-lg);
  color: var(--petrol-blue);
}

.service-card__icon img,
.service-card__icon svg {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.service-card__title {
  color: var(--petrol-blue);
  margin-bottom: var(--gap-sm);
}

.service-card__desc {
  color: var(--gray-warm);
  font-size: var(--fs-small);
  line-height: var(--lh-body);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* ==========================================================================
   SECTORS SECTION (Dark)
   ========================================================================== */
.sectors {
  padding: var(--section-padding);
  background-color: var(--petrol-blue);
}

.sectors__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-xl);
}

.sector-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
}

.sector-card__image {
  aspect-ratio: 4 / 3;
  width: 100%;
}

.sector-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.sector-card__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    transparent 30%,
    var(--overlay-card) 100%
  );
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: var(--gap-xl);
  transition: background-color var(--transition-base);
}

.sector-card__name {
  color: #fff;
  font-size: var(--fs-h4);
  font-weight: var(--fw-semibold);
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.sector-card:hover .sector-card__image img {
  transform: scale(1.05);
}

.sector-card:hover .sector-card__overlay {
  background: linear-gradient(
    180deg,
    transparent 20%,
    rgba(15, 42, 56, 0.70) 100%
  );
}


/* ==========================================================================
   OPERATIONS / TIMELINE SECTION
   ========================================================================== */
.operations {
  padding: var(--section-padding);
  background-color: var(--white);
}

/* --- Horizontal Desktop Timeline --- */
.timeline {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-top: var(--gap-2xl);
}

/* Connecting line */
.timeline::before {
  content: '';
  position: absolute;
  top: 75px; /* aligns with center of step circles */
  left: 5%;
  width: 90%;
  height: 2px;
  background-color: var(--gray-medium);
  z-index: 0;
}

/* Green progress fill (width set by JS) */
.timeline__progress {
  position: absolute;
  top: 75px;
  left: 5%;
  width: 0%;
  height: 2px;
  background-color: var(--green-primary);
  z-index: 1;
  transition: width 0.8s ease;
}

.timeline__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  width: 18%;
  text-align: center;
}

/* Number circle */
.timeline__number {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  background-color: var(--petrol-blue);
  color: #fff;
  font-size: 1.125rem;
  font-weight: var(--fw-bold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--gap-md);
  transition:
    background-color var(--transition-base),
    box-shadow var(--transition-base);
  flex-shrink: 0;
}

.timeline__step.active .timeline__number,
.timeline__step:hover .timeline__number {
  background-color: var(--green-primary);
  box-shadow: 0 0 0 6px rgba(90, 140, 30, 0.2);
}

/* Step image */
.timeline__image {
  width: 200px;
  height: 150px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--gap-md);
  box-shadow: var(--shadow-sm);
}

.timeline__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.timeline__title {
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  color: var(--petrol-blue);
  margin-bottom: var(--gap-xs);
}

.timeline__desc {
  font-size: var(--fs-small);
  color: var(--gray-warm);
  line-height: 1.5;
}


/* ==========================================================================
   TRACEABILITY SECTION
   ========================================================================== */
.traceability {
  padding: var(--section-padding);
  background-color: var(--gray-light);
}

.traceability__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-3xl);
  align-items: center;
}

.traceability__text h2 {
  color: var(--petrol-blue);
  margin-bottom: var(--gap-lg);
  position: relative;
}

.traceability__text h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background-color: var(--green-primary);
  margin-top: var(--gap-md);
  border-radius: 2px;
}

.traceability__text > p {
  color: var(--gray-warm);
  margin-bottom: var(--gap-lg);
  font-size: 1.0625rem;
}

/* Compliance checklist */
.traceability__list {
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
}

.traceability__list li {
  display: flex;
  align-items: flex-start;
  gap: var(--gap-md);
  font-weight: var(--fw-medium);
  color: var(--text-dark);
  line-height: 1.5;
}

.traceability__list li::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background-color: var(--green-primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: var(--fw-bold);
  margin-top: 2px;
}

/* Dashboard image with glow */
.traceability__image img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow:
    var(--shadow-lg),
    0 0 60px rgba(90, 140, 30, 0.1);
}


/* ==========================================================================
   FLEET / STATS SECTION
   ========================================================================== */
.fleet {
  position: relative;
  width: 100%;
  padding: var(--section-padding);
  overflow: hidden;
}

.fleet__background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.fleet__background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fleet__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(15, 42, 56, 0.80) 0%,
    rgba(15, 42, 56, 0.90) 100%
  );
  z-index: 1;
}

.fleet__content {
  position: relative;
  z-index: 2;
}

.fleet__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap-xl);
  text-align: center;
}

.fleet__stat {
  padding: var(--gap-xl);
}

.fleet__stat-number {
  font-size: 3.5rem;
  font-weight: var(--fw-extrabold);
  color: #fff;
  line-height: 1;
  margin-bottom: var(--gap-sm);
}

.fleet__stat-label {
  color: var(--text-muted);
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: var(--ls-caps);
  font-weight: var(--fw-medium);
}

/* Divider between stats */
.fleet__stat + .fleet__stat {
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}


/* ==========================================================================
   TESTIMONIALS SECTION
   ========================================================================== */
.testimonials {
  padding: var(--section-padding);
  background-color: var(--gray-light);
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-xl);
}

.testimonial-card {
  background-color: #fff;
  border-radius: var(--radius-md);
  padding: var(--gap-2xl);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition-base);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-md);
}

.testimonial-card__logo {
  height: 32px;
  width: auto;
  margin-bottom: var(--gap-lg);
  filter: grayscale(1) opacity(0.5);
  transition: filter var(--transition-base);
  object-fit: contain;
}

.testimonial-card:hover .testimonial-card__logo {
  filter: grayscale(0) opacity(1);
}

.testimonial-card__quote {
  color: var(--text-dark);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-style: italic;
  flex-grow: 1;
  margin-bottom: var(--gap-lg);
  position: relative;
  padding-left: var(--gap-lg);
}

.testimonial-card__quote::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background-color: var(--green-primary);
  border-radius: 2px;
}

.testimonial-card__author {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.testimonial-card__name {
  font-weight: var(--fw-semibold);
  font-size: var(--fs-small);
  color: var(--petrol-blue);
}

.testimonial-card__position {
  font-size: var(--fs-xs);
  color: var(--gray-warm);
}


/* ==========================================================================
   BLOG SECTION
   ========================================================================== */
.blog {
  padding: var(--section-padding);
  background-color: var(--white);
}

.blog__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-xl);
}

.blog-card {
  background-color: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition:
    box-shadow var(--transition-base),
    transform var(--transition-base);
}

.blog-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

/* Image container */
.blog-card__image {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.blog-card:hover .blog-card__image img {
  transform: scale(1.05);
}

/* Card body */
.blog-card__body {
  padding: var(--gap-xl);
}

/* Meta: date + category */
.blog-card__meta {
  display: flex;
  align-items: center;
  gap: var(--gap-md);
  margin-bottom: var(--gap-md);
}

.blog-card__date {
  font-size: var(--fs-xs);
  color: var(--gray-warm);
  font-weight: var(--fw-medium);
}

.blog-card__category {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--green-primary);
  background-color: rgba(90, 140, 30, 0.1);
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.blog-card__title {
  color: var(--petrol-blue);
  margin-bottom: var(--gap-sm);
  font-size: var(--fs-h4);
  transition: color var(--transition-fast);
}

.blog-card:hover .blog-card__title {
  color: var(--green-primary);
}

.blog-card__excerpt {
  color: var(--gray-warm);
  font-size: var(--fs-small);
  line-height: var(--lh-body);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: var(--gap-md);
}

.blog-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--gap-sm);
  color: var(--green-primary);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: gap var(--transition-fast);
}

.blog-card__link::after {
  content: '→';
  transition: transform var(--transition-fast);
}

.blog-card__link:hover::after {
  transform: translateX(4px);
}


/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact {
  padding: var(--section-padding);
  background-color: var(--white);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--gap-3xl);
}

/* --- Contact Form --- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--gap-lg);
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-lg);
}

.form-group {
  position: relative;
}

.form-group label {
  display: block;
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  color: var(--petrol-blue);
  margin-bottom: var(--gap-sm);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 0;
  font-size: var(--fs-body);
  color: var(--text-dark);
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--gray-medium);
  outline: none;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-bottom-color: var(--petrol-blue);
  box-shadow: 0 2px 0 0 var(--petrol-blue);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-warm);
  opacity: 0.7;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Select dropdown arrow */
.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238A8A7A' d='M1.41.59L6 5.17 10.59.59 12 2 6 8 0 2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 24px;
}

/* --- Contact Info Panel --- */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--gap-xl);
}

.contact-info h3 {
  color: var(--petrol-blue);
  margin-bottom: var(--gap-md);
}

.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: var(--gap-md);
}

.contact-info__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background-color: rgba(22, 59, 77, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--petrol-blue);
}

.contact-info__icon svg {
  width: 18px;
  height: 18px;
}

.contact-info__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-info__label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-caps);
  color: var(--gray-warm);
}

.contact-info__value {
  color: var(--text-dark);
  font-weight: var(--fw-medium);
}

.contact-info__value a {
  color: var(--text-dark);
  transition: color var(--transition-fast);
}

.contact-info__value a:hover {
  color: var(--green-primary);
}

/* WhatsApp link */
.contact-info__whatsapp {
  display: inline-flex;
  align-items: center;
  gap: var(--gap-sm);
  color: #25D366 !important;
  font-weight: var(--fw-semibold);
}

.contact-info__whatsapp:hover {
  color: #1DA855 !important;
}

/* Social icons row */
.contact-info__socials {
  display: flex;
  gap: var(--gap-md);
  margin-top: var(--gap-md);
}

.contact-info__social {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 1px solid var(--gray-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--petrol-blue);
  transition:
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast);
}

.contact-info__social:hover {
  background-color: var(--green-primary);
  border-color: var(--green-primary);
  color: #fff;
}

.contact-info__social svg {
  width: 16px;
  height: 16px;
}


/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background-color: var(--petrol-deep);
  padding: 80px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--gap-2xl);
  padding-bottom: 60px;
}

/* Column: brand */
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--gap-lg);
}

.footer__logo img {
  height: 40px;
  width: auto;
}

.footer__tagline {
  color: var(--text-muted);
  font-size: var(--fs-small);
  line-height: var(--lh-body);
  max-width: 280px;
}

/* Column headings */
.footer__heading {
  color: var(--white);
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--gap-lg);
  position: relative;
}

.footer__heading::after {
  content: '';
  display: block;
  width: 30px;
  height: 2px;
  background-color: var(--green-primary);
  margin-top: var(--gap-sm);
  border-radius: 2px;
}

/* Link lists */
.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
}

.footer__link {
  color: var(--text-muted);
  font-size: var(--fs-small);
  transition: color var(--transition-fast);
  padding: 2px 0;
}

.footer__link:hover {
  color: #fff;
}

/* Contact info in footer */
.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--gap-sm);
  color: var(--text-muted);
  font-size: var(--fs-small);
  margin-bottom: var(--gap-md);
  line-height: 1.5;
}

.footer__contact-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
  opacity: 0.6;
}

/* Bottom bar */
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--gap-lg) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--gap-md);
}

.footer__copyright {
  color: var(--text-muted);
  font-size: var(--fs-xs);
}

.footer__badges {
  display: flex;
  align-items: center;
  gap: var(--gap-md);
}

.footer__badges img {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.5;
  transition: opacity var(--transition-fast);
}

.footer__badges img:hover {
  opacity: 0.9;
}

/* ==========================================================================
   HERO / ABOUT / SECTIONS — HTML CLASS COMPATIBILITY
   The HTML uses flat class names; these map them to the design system.
   ========================================================================== */

/* --- NAVBAR FIX: Semi-transparent background so it doesn't get lost --- */
.navbar {
  background-color: rgba(15, 42, 56, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.navbar.scrolled {
  background-color: var(--petrol-blue);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* --- HERO SECTION (flat class names from index.html) --- */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(15, 42, 56, 0.88) 0%,
    rgba(15, 42, 56, 0.75) 50%,
    rgba(22, 59, 77, 0.60) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding-top: 100px;
  padding-bottom: 80px;
}

.hero-section h1 {
  color: #fff;
  font-size: 2.5rem;
  font-weight: var(--fw-bold);
  line-height: 1.2;
  margin-bottom: var(--gap-lg);
}

.hero-subtitle {
  color: var(--text-light);
  font-size: 1.1rem;
  font-weight: var(--fw-regular);
  max-width: 560px;
  margin-bottom: var(--gap-2xl);
  opacity: 0.9;
  line-height: var(--lh-body);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-md);
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255, 255, 255, 0.5);
  animation: scrollBounce 1.8s ease-in-out infinite;
}

/* --- ABOUT SECTION (flat class names from index.html) --- */
.about-preview {
  padding: var(--section-padding);
  background-color: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--gap-3xl);
  align-items: center;
}

.about-text {
  display: flex;
  flex-direction: column;
}

.about-text .section-header {
  text-align: left;
  margin: 0 0 var(--gap-sm);
  max-width: none;
}

.about-text .section-line {
  display: inline-block;
  width: 40px;
  height: 3px;
  background-color: var(--green-primary);
  vertical-align: middle;
  margin-right: var(--gap-sm);
  border-radius: 2px;
}

.about-text .section-subtitle {
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  color: var(--green-primary);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
}

.about-text h2 {
  color: var(--petrol-blue);
  font-size: 2rem;
  margin-bottom: var(--gap-md);
}

.about-text > p {
  color: var(--gray-warm);
  font-size: 1rem;
  line-height: var(--lh-body);
  margin-bottom: var(--gap-lg);
}

.about-checklist {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
  margin-bottom: var(--gap-xl);
  list-style: none;
}

.about-checklist li {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
  color: var(--text-dark);
  font-weight: var(--fw-medium);
  font-size: 0.95rem;
  line-height: 1.5;
}

.about-checklist .check-icon {
  flex-shrink: 0;
}

/* Center the "Conocer más" button */
.about-text > .btn {
  align-self: center;
  margin-top: var(--gap-md);
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  object-fit: cover;
}

/* --- SERVICES SECTION (flat class) --- */
.services-preview {
  padding: var(--section-padding);
  background-color: var(--white);
}

.services-preview .section-header-center {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--gap-3xl);
}

.services-preview .section-subtitle,
.testimonials-section .section-subtitle {
  display: block;
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  color: var(--green-primary);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  margin-bottom: var(--gap-sm);
}

.services-preview .section-header-center h2,
.testimonials-section .section-header-center h2 {
  color: var(--petrol-blue);
  position: relative;
  display: inline-block;
}

.services-preview .section-header-center h2::after,
.testimonials-section .section-header-center h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--green-primary);
  margin: var(--gap-md) auto 0;
  border-radius: 2px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-xl);
  margin-bottom: var(--gap-2xl);
}

.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--gap-lg);
}

.section-cta {
  text-align: center;
  margin-top: var(--gap-xl);
}

/* --- SECTORS SECTION (flat class) --- */
.section-dark {
  background-color: var(--petrol-blue);
}

.sectors-preview {
  padding: var(--section-padding);
}

.sectors-preview .section-header-light h2 {
  color: var(--white);
}

.sectors-preview .section-header-light h2::after {
  background-color: var(--green-light);
}

.sectors-preview .section-subtitle {
  display: block;
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  color: var(--green-light);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  margin-bottom: var(--gap-sm);
}

.sectors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-xl);
  margin-bottom: var(--gap-2xl);
}

.sector-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
}

.sector-image {
  aspect-ratio: 4 / 3;
  width: 100%;
  background-size: cover;
  background-position: center;
  transition: transform var(--transition-slow);
}

.sector-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 30%, rgba(15, 42, 56, 0.85) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: var(--gap-xl);
}

.sector-overlay h3 {
  color: #fff;
  font-size: var(--fs-h4);
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.sector-card:hover .sector-image {
  transform: scale(1.05);
}

/* --- STATS BAR --- */
.stats-bar {
  position: relative;
  padding: 80px 0;
  background-color: var(--petrol-blue);
  overflow: hidden;
}

.stats-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.15;
}

.stats-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap-xl);
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  color: #fff;
  font-size: 2.8rem;
  font-weight: var(--fw-bold);
  line-height: 1;
}

.stat-suffix {
  color: var(--green-light);
  font-size: 2rem;
  font-weight: var(--fw-bold);
}

.stat-label {
  color: var(--text-muted);
  font-size: var(--fs-small);
  margin-top: var(--gap-sm);
  text-transform: uppercase;
  letter-spacing: var(--ls-caps);
}

/* --- TESTIMONIALS SECTION --- */
.testimonials-section {
  padding: var(--section-padding);
  background-color: var(--gray-light);
}

.testimonials-section .section-header-center {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--gap-3xl);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-xl);
}

.testimonial-card {
  background-color: #fff;
  border-radius: var(--radius-md);
  padding: var(--gap-2xl);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--gap-lg);
}

.testimonial-card blockquote p {
  color: var(--text-dark);
  font-size: 1rem;
  line-height: var(--lh-body);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--gap-md);
  margin-top: auto;
}

.testimonial-name {
  display: block;
  font-style: normal;
  font-weight: var(--fw-semibold);
  color: var(--petrol-blue);
  font-size: var(--fs-small);
}

.testimonial-role {
  display: block;
  color: var(--gray-warm);
  font-size: var(--fs-xs);
}

/* --- CTA BANNER --- */
.cta-banner {
  padding: 80px 0;
  background-color: var(--petrol-blue);
  text-align: center;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.cta-banner h2 { color: #fff; margin-bottom: var(--gap-md); }
.cta-banner p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: var(--gap-xl); }

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: var(--gap-md);
  flex-wrap: wrap;
}

/* --- RESPONSIVE: Hero & About (mobile) --- */
@media (max-width: 767px) {
  .hero-section h1 { font-size: 1.75rem; }
  .hero-subtitle { font-size: 0.95rem; }
  .hero-content { padding-top: 120px; padding-bottom: 100px; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; }
  .about-grid { grid-template-columns: 1fr; gap: var(--gap-xl); }
  .about-image { order: -1; }
  .services-grid { grid-template-columns: 1fr; }
  .sectors-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-number { font-size: 2rem; }
  .testimonials-grid { grid-template-columns: 1fr; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hero-section h1 { font-size: 2.2rem; }
  .about-grid { grid-template-columns: 1fr 1fr; gap: var(--gap-xl); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .sectors-grid { grid-template-columns: repeat(2, 1fr); }
}


/* ==========================================================================
   NAV / FOOTER CLASS ALIASES
   Maps the simplified HTML class names to the existing BEM styles
   ========================================================================== */

/* Nav aliases */
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 45px;
  width: auto;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  z-index: calc(var(--z-overlay) + 1);
  background: none;
  border: none;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #fff;
  border-radius: 2px;
  transition:
    transform var(--transition-base),
    opacity var(--transition-base);
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--gap-xl);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--gap-xl);
  list-style: none;
}

.nav-links a {
  color: #fff;
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  letter-spacing: 0.02em;
  padding: 8px 0;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--green-light);
  transition: width var(--transition-base);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--green-light);
}

.nav-cta {
  margin-left: var(--gap-md);
}

/* Footer aliases */
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--gap-2xl);
  padding-bottom: 60px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
}

.footer-col:first-child {
  gap: var(--gap-lg);
}

.footer-logo {
  height: auto;
  max-height: 50px;
  max-width: 180px;
  width: auto;
  display: block;
  object-fit: contain;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: var(--fs-small);
  line-height: var(--lh-body);
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: var(--gap-md);
  margin-top: var(--gap-sm);
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition:
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast);
}

.footer-social a:hover {
  background-color: var(--green-primary);
  border-color: var(--green-primary);
  color: #fff;
}

.footer-social a svg {
  width: 16px;
  height: 16px;
  display: block;
}

.footer-col h4 {
  color: var(--white);
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--gap-md);
  position: relative;
}

.footer-col h4::after {
  content: '';
  display: block;
  width: 30px;
  height: 2px;
  background-color: var(--green-primary);
  margin-top: var(--gap-sm);
  border-radius: 2px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li a {
  color: var(--text-muted);
  font-size: var(--fs-small);
  transition: color var(--transition-fast);
  padding: 2px 0;
  display: inline-block;
}

.footer-col ul li a:hover {
  color: #fff;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: var(--gap-sm);
  color: var(--text-muted);
  font-size: var(--fs-small);
  margin-bottom: var(--gap-md);
  line-height: 1.5;
}

.footer-contact li svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
  opacity: 0.6;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--gap-lg) 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--gap-md);
  text-align: center;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: var(--fs-xs);
}

.footer-certs span {
  color: var(--text-muted);
  font-size: var(--fs-xs);
  opacity: 0.6;
}


/* ==========================================================================
   PAGE HERO BANNER (interior pages)
   ========================================================================== */
.page-hero {
  position: relative;
  width: 100%;
  padding: 160px 0 80px;
  background-color: var(--petrol-blue);
  background-image:
    linear-gradient(
      135deg,
      var(--petrol-deep) 0%,
      var(--petrol-blue) 50%,
      rgba(22, 59, 77, 0.95) 100%
    );
  overflow: hidden;
}

.page-hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(90, 140, 30, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(90, 140, 30, 0.05) 0%, transparent 40%);
  z-index: 0;
}

.page-hero__content {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  color: #fff;
  margin-bottom: var(--gap-md);
}

.page-hero__subtitle {
  color: var(--text-light);
  font-size: 1.125rem;
  opacity: 0.85;
  margin-bottom: var(--gap-lg);
}

/* Breadcrumb */
.breadcrumb ol {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
  list-style: none;
}

.breadcrumb li {
  font-size: var(--fs-small);
  color: var(--text-muted);
}

.breadcrumb li a {
  color: var(--sage);
  transition: color var(--transition-fast);
}

.breadcrumb li a:hover {
  color: #fff;
}

.breadcrumb li + li::before {
  content: '›';
  margin-right: var(--gap-sm);
  color: var(--text-muted);
  opacity: 0.6;
}

.breadcrumb li[aria-current="page"] {
  color: var(--text-light);
  font-weight: var(--fw-medium);
}


/* ==========================================================================
   SECTION SUBTITLE (small label above h2)
   ========================================================================== */
.section-subtitle {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-caps);
  color: var(--green-primary);
  margin-bottom: var(--gap-sm);
}


/* ==========================================================================
   CTA BANNER (full-width call to action)
   ========================================================================== */
.cta-banner {
  padding: 100px 0;
  background-color: var(--petrol-blue);
  background-image:
    linear-gradient(
      135deg,
      var(--petrol-deep) 0%,
      var(--petrol-blue) 100%
    );
  text-align: center;
}

.cta-banner__content {
  max-width: 700px;
  margin: 0 auto;
}

.cta-banner__content h2 {
  color: #fff;
  margin-bottom: var(--gap-md);
}

.cta-banner__content p {
  color: var(--text-muted);
  font-size: 1.125rem;
  margin-bottom: var(--gap-xl);
}

.cta-banner__buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--gap-md);
}


/* ==========================================================================
   NEWSLETTER SECTION
   ========================================================================== */
.newsletter {
  padding: 80px 0;
  background-color: var(--gray-light);
}

.newsletter__content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.newsletter__content h2 {
  color: var(--petrol-blue);
  margin-bottom: var(--gap-md);
  font-size: var(--fs-h3);
}

.newsletter__content p {
  color: var(--gray-warm);
  margin-bottom: var(--gap-xl);
}

.newsletter__form {
  width: 100%;
}

.newsletter__input-group {
  display: flex;
  gap: var(--gap-sm);
  max-width: 480px;
  margin: 0 auto;
}

.newsletter__input-group input {
  flex: 1;
  padding: 14px 16px;
  font-size: var(--fs-body);
  color: var(--text-dark);
  background-color: #fff;
  border: 2px solid var(--gray-medium);
  border-radius: var(--radius-sm);
  outline: none;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.newsletter__input-group input:focus {
  border-color: var(--petrol-blue);
  box-shadow: 0 0 0 3px rgba(22, 59, 77, 0.1);
}

.newsletter__input-group input::placeholder {
  color: var(--gray-warm);
  opacity: 0.7;
}


/* ==========================================================================
   WHATSAPP BUTTON
   ========================================================================== */
.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--gap-sm);
  width: 100%;
  padding: 14px 24px;
  background-color: #25D366;
  color: #fff;
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-caps);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition:
    background-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.btn-whatsapp:hover {
  background-color: #1DA855;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
  color: #fff;
}

.btn-whatsapp svg {
  width: 20px;
  height: 20px;
  display: inline-block;
}


/* ==========================================================================
   CONTACT SCHEDULE
   ========================================================================== */
.contact-info__schedule h3 {
  color: var(--petrol-blue);
  margin-bottom: var(--gap-md);
}

.contact-info__schedule ul {
  list-style: none;
}

.contact-info__schedule li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-medium);
  font-size: var(--fs-small);
  color: var(--text-dark);
}

.contact-info__schedule li:last-child {
  border-bottom: none;
}

.contact-info__emergency span:last-child {
  font-weight: var(--fw-bold);
  color: var(--green-primary);
}


/* ==========================================================================
   CONTACT FORM EXTRAS
   ========================================================================== */
.contact-form__title {
  color: var(--petrol-blue);
  margin-bottom: var(--gap-xl);
  position: relative;
}

.contact-form__title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background-color: var(--green-primary);
  margin-top: var(--gap-md);
  border-radius: 2px;
}

.contact-form__note {
  color: var(--gray-warm);
  margin-top: 0;
}

.contact-form__note small {
  font-size: var(--fs-xs);
}

/* Mensaje de éxito */
.contact-form__success {
  display: flex;
  align-items: flex-start;
  gap: var(--gap-md);
  padding: var(--gap-lg);
  background-color: rgba(90, 140, 30, 0.08);
  border: 1px solid rgba(90, 140, 30, 0.3);
  border-radius: var(--radius-md);
  margin-top: var(--gap-lg);
}

.contact-form__success svg {
  color: var(--green-primary);
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

.contact-form__success p {
  color: var(--text-dark);
  font-size: var(--fs-small);
  margin: 0;
}

/* Validación: estado de error */
.form-group--error input,
.form-group--error select,
.form-group--error textarea {
  border-bottom-color: #dc3545;
}

.form-group__error {
  display: block;
  color: #dc3545;
  font-size: var(--fs-xs);
  margin-top: var(--gap-xs);
  font-weight: var(--fw-medium);
}


/* ==========================================================================
   NAVIGATION — Compatibility with nav-* class naming
   ========================================================================== */
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 45px;
  width: auto;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  z-index: calc(var(--z-overlay) + 1);
  background: none;
  border: none;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #fff;
  border-radius: 2px;
  transition:
    transform var(--transition-base),
    opacity var(--transition-base);
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--gap-xl);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--gap-xl);
}

.nav-links a {
  color: #fff;
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  letter-spacing: 0.02em;
  padding: 8px 0;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--green-light);
  transition: width var(--transition-base);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--green-light);
}

.nav-cta {
  margin-left: var(--gap-md);
}


/* ==========================================================================
   FOOTER — Compatibility with footer-* class naming
   ========================================================================== */
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--gap-2xl);
  padding-bottom: 60px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
}

.footer-col:first-child {
  gap: var(--gap-lg);
}

.footer-logo {
  height: auto;
  max-height: 50px;
  max-width: 180px;
  width: auto;
  object-fit: contain;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: var(--fs-small);
  line-height: var(--lh-body);
  max-width: 280px;
}

.footer-col h4 {
  color: var(--white);
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--gap-md);
  position: relative;
}

.footer-col h4::after {
  content: '';
  display: block;
  width: 30px;
  height: 2px;
  background-color: var(--green-primary);
  margin-top: var(--gap-sm);
  border-radius: 2px;
}

.footer-col ul a {
  color: var(--text-muted);
  font-size: var(--fs-small);
  transition: color var(--transition-fast);
  padding: 2px 0;
  display: inline-block;
}

.footer-col ul a:hover {
  color: #fff;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: var(--gap-sm);
  color: var(--text-muted);
  font-size: var(--fs-small);
  margin-bottom: var(--gap-sm);
  line-height: 1.5;
}

.footer-contact svg {
  flex-shrink: 0;
  margin-top: 3px;
  opacity: 0.6;
}

.footer-social {
  display: flex;
  gap: var(--gap-md);
  margin-top: var(--gap-sm);
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition:
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast);
}

.footer-social a:hover {
  background-color: var(--green-primary);
  border-color: var(--green-primary);
  color: #fff;
}

.footer-social svg {
  width: 16px;
  height: 16px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--gap-lg) 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--gap-md);
  text-align: center;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: var(--fs-xs);
  margin-bottom: 0;
}

.footer-certs {
  color: var(--text-muted);
  font-size: var(--fs-xs);
  opacity: 0.6;
}


/* ==========================================================================
   PAGE HERO (Interior Pages)
   ========================================================================== */
.page-hero {
  background: linear-gradient(135deg, var(--petrol-deep) 0%, var(--petrol-blue) 60%, #1e4f65 100%);
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(90, 140, 30, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero__title {
  color: #fff;
  margin-bottom: var(--gap-md);
  font-size: var(--fs-h1);
}

.page-hero__breadcrumb ol {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
}

.page-hero__breadcrumb li {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
  font-size: var(--fs-small);
  color: var(--text-muted);
}

.page-hero__breadcrumb li a {
  color: var(--sage);
  transition: color var(--transition-fast);
}

.page-hero__breadcrumb li a:hover {
  color: #fff;
}

.page-hero__breadcrumb li + li::before {
  content: '›';
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-right: var(--gap-xs);
}


/* ==========================================================================
   ABOUT FULL (Nosotros page)
   ========================================================================== */
.about-full {
  padding: var(--section-padding);
  background-color: var(--white);
}

.about-full__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--gap-3xl);
  align-items: center;
}

.about-full__text h2 {
  color: var(--petrol-blue);
  margin-bottom: var(--gap-lg);
  position: relative;
}

.about-full__text h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background-color: var(--green-primary);
  margin-top: var(--gap-md);
  border-radius: 2px;
}

.about-full__text p {
  color: var(--gray-warm);
  margin-bottom: var(--gap-lg);
  font-size: 1.0625rem;
  line-height: var(--lh-body);
}

.about-full__stats {
  display: flex;
  gap: var(--gap-2xl);
  margin-top: var(--gap-2xl);
  padding-top: var(--gap-xl);
  border-top: 1px solid var(--gray-medium);
}

.about-full__stat {
  display: flex;
  flex-direction: column;
  gap: var(--gap-xs);
}

.about-full__stat-number {
  font-size: 2.5rem;
  font-weight: var(--fw-extrabold);
  color: var(--petrol-blue);
  line-height: 1;
}

.about-full__stat-label {
  font-size: var(--fs-small);
  color: var(--gray-warm);
  font-weight: var(--fw-medium);
}

.about-full__image {
  position: relative;
}

.about-full__image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  object-fit: cover;
}

.about-full__image::before {
  content: '';
  position: absolute;
  top: -16px;
  right: -16px;
  width: 100%;
  height: 100%;
  border: 3px solid var(--sage);
  border-radius: var(--radius-md);
  z-index: -1;
}


/* ==========================================================================
   VALUES SECTION (Nosotros page)
   ========================================================================== */
.values {
  padding: var(--section-padding);
  background-color: var(--gray-light);
}

.values__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap-xl);
}

.value-card {
  background-color: #fff;
  border-radius: var(--radius-md);
  padding: var(--gap-2xl) var(--gap-xl);
  text-align: center;
  transition:
    box-shadow var(--transition-base),
    transform var(--transition-base);
  position: relative;
  overflow: hidden;
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--green-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.value-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.value-card:hover::before {
  transform: scaleX(1);
}

.value-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--gap-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background-color: rgba(22, 59, 77, 0.06);
  color: var(--petrol-blue);
}

.value-card__icon svg {
  width: 32px;
  height: 32px;
}

.value-card__title {
  color: var(--petrol-blue);
  margin-bottom: var(--gap-md);
  font-size: var(--fs-h4);
}

.value-card__desc {
  color: var(--gray-warm);
  font-size: var(--fs-small);
  line-height: var(--lh-body);
}


/* ==========================================================================
   TEAM SECTION (Nosotros page)
   ========================================================================== */
.team {
  padding: var(--section-padding);
  background-color: var(--white);
}

.team__body {
  max-width: 800px;
  margin: 0 auto;
}

.team__body > p {
  color: var(--gray-warm);
  font-size: 1.0625rem;
  line-height: var(--lh-body);
  text-align: center;
  margin-bottom: var(--gap-2xl);
}

.team__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-lg);
}

.team__feature {
  display: flex;
  align-items: flex-start;
  gap: var(--gap-md);
  padding: var(--gap-lg);
  background-color: var(--gray-light);
  border-radius: var(--radius-md);
  transition: box-shadow var(--transition-base);
}

.team__feature:hover {
  box-shadow: var(--shadow-sm);
}

.team__feature svg {
  flex-shrink: 0;
  color: var(--green-primary);
  margin-top: 2px;
}

.team__feature span {
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  color: var(--text-dark);
  line-height: 1.5;
}


/* ==========================================================================
   CTA BANNER (Shared across pages)
   ========================================================================== */
.cta-banner {
  position: relative;
  padding: 100px 0;
  background: linear-gradient(135deg, var(--petrol-deep) 0%, var(--petrol-blue) 100%);
  text-align: center;
  overflow: hidden;
}

.cta-banner__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 50%, rgba(90, 140, 30, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(90, 140, 30, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.cta-banner__content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

.cta-banner__content h2 {
  color: #fff;
  margin-bottom: var(--gap-md);
}

.cta-banner__content p {
  color: var(--text-muted);
  font-size: 1.125rem;
  margin-bottom: var(--gap-2xl);
  line-height: var(--lh-body);
}

.cta-banner__buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--gap-md);
}


/* ==========================================================================
   SERVICES FULL (Servicios page)
   ========================================================================== */
.services-full {
  padding: var(--section-padding);
  background-color: var(--white);
}

.services-full__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-xl);
}

.service-detail-card {
  background-color: #fff;
  border: 1px solid var(--gray-medium);
  border-radius: var(--radius-md);
  padding: var(--gap-2xl);
  transition:
    box-shadow var(--transition-base),
    transform var(--transition-base),
    border-color var(--transition-base);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-detail-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--green-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

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

.service-detail-card:hover::before {
  transform: scaleX(1);
}

.service-detail-card__icon {
  width: 64px;
  height: 64px;
  margin-bottom: var(--gap-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background-color: rgba(22, 59, 77, 0.06);
  color: var(--petrol-blue);
}

.service-detail-card__icon svg {
  width: 32px;
  height: 32px;
}

.service-detail-card__title {
  color: var(--petrol-blue);
  margin-bottom: var(--gap-md);
}

.service-detail-card__desc {
  color: var(--gray-warm);
  font-size: var(--fs-small);
  line-height: var(--lh-body);
  margin-bottom: var(--gap-lg);
}

.service-detail-card__features {
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
  margin-bottom: var(--gap-xl);
  flex-grow: 1;
}

.service-detail-card__features li {
  display: flex;
  align-items: flex-start;
  gap: var(--gap-sm);
  font-size: var(--fs-small);
  color: var(--text-dark);
  font-weight: var(--fw-medium);
  line-height: 1.5;
}

.service-detail-card__features li svg {
  flex-shrink: 0;
  color: var(--green-primary);
  margin-top: 2px;
}

.service-detail-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--gap-sm);
  color: var(--green-primary);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: gap var(--transition-fast);
  margin-top: auto;
}

.service-detail-card__link:hover {
  gap: var(--gap-md);
}

.service-detail-card__link span {
  transition: transform var(--transition-fast);
}

.service-detail-card__link:hover span {
  transform: translateX(4px);
}


/* ==========================================================================
   WHY CHOOSE US (Servicios page)
   ========================================================================== */
.why-us {
  padding: var(--section-padding);
  background-color: var(--petrol-blue);
}

.why-us__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-xl);
  text-align: center;
}

.why-us__item {
  padding: var(--gap-2xl);
}

.why-us__number {
  display: block;
  font-size: 4rem;
  font-weight: var(--fw-extrabold);
  color: #fff;
  line-height: 1;
  margin-bottom: var(--gap-md);
}

.why-us__label {
  display: block;
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  color: var(--green-light);
  text-transform: uppercase;
  letter-spacing: var(--ls-caps);
  margin-bottom: var(--gap-md);
}

.why-us__desc {
  color: var(--text-muted);
  font-size: var(--fs-small);
  line-height: var(--lh-body);
  max-width: 280px;
  margin: 0 auto;
}

.why-us__item + .why-us__item {
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}


/* ==========================================================================
   SECTOR DETAIL (Sectores page)
   ========================================================================== */
.sector-detail {
  padding: var(--section-padding);
}

.sector-detail--normal {
  background-color: var(--white);
}

.sector-detail--reverse {
  background-color: var(--gray-light);
}

.sector-detail__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-3xl);
  align-items: center;
}

.sector-detail__image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.sector-detail__icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background-color: rgba(22, 59, 77, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--petrol-blue);
  margin-bottom: var(--gap-lg);
}

.sector-detail__icon svg {
  width: 32px;
  height: 32px;
}

.sector-detail__title {
  color: var(--petrol-blue);
  font-size: var(--fs-h2);
  margin-bottom: var(--gap-md);
  position: relative;
}

.sector-detail__title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background-color: var(--green-primary);
  margin-top: var(--gap-md);
  border-radius: 2px;
}

.sector-detail__desc {
  color: var(--gray-warm);
  font-size: 1.0625rem;
  line-height: var(--lh-body);
  margin-bottom: var(--gap-xl);
}

.sector-detail__capabilities {
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
}

.sector-detail__capabilities li {
  display: flex;
  align-items: flex-start;
  gap: var(--gap-md);
  font-size: var(--fs-body);
  color: var(--text-dark);
  font-weight: var(--fw-medium);
  line-height: 1.5;
}

.sector-detail__capabilities li svg {
  flex-shrink: 0;
  color: var(--green-primary);
  margin-top: 3px;
}


/* ==========================================================================
   SCROLL ANIMATIONS (IntersectionObserver)
   ========================================================================== */
.fade-in,
.slide-left,
.slide-right,
.scale-in {
  opacity: 0;
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  will-change: opacity, transform;
}

.fade-in {
  transform: translateY(30px);
}

.slide-left {
  transform: translateX(-50px);
}

.slide-right {
  transform: translateX(50px);
}

.scale-in {
  transform: scale(0.95);
}

/* Visible state — triggered by JS */
.fade-in.visible,
.slide-left.visible,
.slide-right.visible,
.scale-in.visible {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

/* Stagger children */
.stagger-children > *:nth-child(1) { transition-delay: 0.0s; }
.stagger-children > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children > *:nth-child(3) { transition-delay: 0.15s; }
.stagger-children > *:nth-child(4) { transition-delay: 0.2s; }
.stagger-children > *:nth-child(5) { transition-delay: 0.25s; }
.stagger-children > *:nth-child(6) { transition-delay: 0.3s; }


/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

/* Text alignment */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

/* Margin bottom */
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }

/* Margin top */
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }

/* Visibility */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Color utilities */
.text-white  { color: #fff; }
.text-petrol { color: var(--petrol-blue); }
.text-green  { color: var(--green-primary); }
.text-muted  { color: var(--gray-warm); }

.bg-white   { background-color: var(--white); }
.bg-gray    { background-color: var(--gray-light); }
.bg-petrol  { background-color: var(--petrol-blue); }
.bg-dark    { background-color: var(--petrol-deep); }


/* ==========================================================================
   RESPONSIVE: TABLET (768px — 1023px)
   ========================================================================== */
@media (max-width: 1023px) {

  :root {
    --fs-h1: 2.75rem;
    --fs-h2: 2rem;
    --fs-h3: 1.375rem;
  }

  /* Sections */
  .about,
  .services,
  .sectors,
  .operations,
  .traceability,
  .testimonials,
  .blog,
  .contact {
    padding: var(--section-padding-sm);
  }

  .section-header {
    margin-bottom: var(--gap-2xl);
  }

  /* Nav */
  .navbar__menu {
    display: none;
  }

  .navbar__hamburger {
    display: flex;
  }

  /* Nav aliases (mobile) */
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--petrol-deep);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--gap-xl);
    transition: right var(--transition-slow);
    z-index: var(--z-overlay);
    padding: var(--gap-2xl);
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-links {
    flex-direction: column;
    gap: var(--gap-xl);
  }

  .nav-links a {
    font-size: 1.25rem;
    font-weight: var(--fw-semibold);
  }

  .nav-cta {
    margin-left: 0;
    margin-top: var(--gap-lg);
  }

  /* Page hero */
  .page-hero {
    padding: 140px 0 60px;
  }

  /* Hero */
  .hero__content {
    max-width: 580px;
  }

  /* About */
  .about__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--gap-2xl);
  }

  /* Services */
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Sectors */
  .sectors__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Timeline → vertical on tablet */
  .timeline {
    flex-direction: column;
    gap: var(--gap-2xl);
    padding-left: 40px;
  }

  .timeline::before {
    top: 0;
    left: 20px;
    width: 2px;
    height: 100%;
  }

  .timeline__progress {
    top: 0;
    left: 20px;
    width: 2px !important;
    height: 0%;
  }

  .timeline__step {
    flex-direction: row;
    text-align: left;
    width: 100%;
    gap: var(--gap-lg);
  }

  .timeline__number {
    width: 44px;
    height: 44px;
    font-size: 1rem;
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .timeline__image {
    width: 160px;
    height: 120px;
    flex-shrink: 0;
  }

  /* Traceability */
  .traceability__grid {
    grid-template-columns: 1fr;
    gap: var(--gap-2xl);
  }

  /* Fleet stats */
  .fleet__stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .fleet__stat + .fleet__stat {
    border-left: none;
  }

  .fleet__stat:nth-child(odd) {
    border-right: 1px solid rgba(255, 255, 255, 0.15);
  }

  /* Testimonials */
  .testimonials__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Blog */
  .blog__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Contact */
  .contact__grid {
    grid-template-columns: 1fr;
    gap: var(--gap-2xl);
  }

  /* Newsletter */
  .newsletter__input-group {
    flex-direction: column;
  }

  /* CTA Banner */
  .cta-banner {
    padding: 80px 0;
  }

  .cta-banner__buttons {
    flex-direction: column;
    align-items: center;
  }

  /* About Full (Nosotros) */
  .about-full,
  .values,
  .team,
  .services-full,
  .sector-detail {
    padding: var(--section-padding-sm);
  }

  .about-full__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--gap-2xl);
  }

  .about-full__stats {
    gap: var(--gap-xl);
  }

  /* Values */
  .values__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Services Full */
  .services-full__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Why Us */
  .why-us {
    padding: var(--section-padding-sm);
  }

  .why-us__number {
    font-size: 3rem;
  }

  /* Sector Detail */
  .sector-detail__grid {
    gap: var(--gap-2xl);
  }

  /* Footer */
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* ==========================================================================
   RESPONSIVE: MOBILE (up to 767px)
   ========================================================================== */
@media (max-width: 767px) {

  :root {
    --fs-h1: 2.25rem;
    --fs-h2: 1.75rem;
    --fs-h3: 1.25rem;
    --fs-h4: 1.125rem;
    --section-padding-sm: 64px 0;
  }

  /* Container */
  .container {
    padding: 0 16px;
  }

  /* Nav */
  .navbar {
    height: 64px;
  }

  .navbar__logo img {
    height: 36px;
  }

  .navbar__mobile-menu {
    max-width: 100%;
  }

  .nav-logo img {
    height: 36px;
  }

  .nav-menu {
    max-width: 100%;
  }

  /* Page hero */
  .page-hero {
    padding: 120px 0 48px;
  }

  .page-hero h1 {
    font-size: var(--fs-h1);
  }

  /* Hero */
  .hero {
    min-height: 100svh; /* safe viewport height */
  }

  .hero__content {
    padding-top: 64px;
    max-width: 100%;
  }

  .hero__title {
    font-size: var(--fs-h1);
  }

  .hero__subtitle {
    font-size: 1rem;
  }

  .hero__buttons {
    flex-direction: column;
  }

  .hero__buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .hero__scroll-indicator {
    bottom: 24px;
  }

  /* About */
  .about__grid {
    grid-template-columns: 1fr;
    gap: var(--gap-2xl);
  }

  .about__image {
    order: -1; /* image first on mobile */
  }

  .about__image::before {
    display: none;
  }

  /* Services */
  .services__grid {
    grid-template-columns: 1fr;
  }

  /* Sectors */
  .sectors__grid {
    grid-template-columns: 1fr;
  }

  /* Timeline */
  .timeline {
    padding-left: 32px;
    gap: var(--gap-xl);
  }

  .timeline::before {
    left: 14px;
  }

  .timeline__progress {
    left: 14px;
  }

  .timeline__step {
    flex-direction: column;
    text-align: center;
  }

  .timeline__image {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
  }

  /* Traceability */
  .traceability__grid {
    grid-template-columns: 1fr;
  }

  /* Fleet */
  .fleet {
    padding: var(--section-padding-sm);
  }

  .fleet__stats {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--gap-md);
  }

  .fleet__stat {
    padding: var(--gap-md);
  }

  .fleet__stat-number {
    font-size: 2.5rem;
  }

  .fleet__stat:nth-child(odd) {
    border-right: 1px solid rgba(255, 255, 255, 0.15);
  }

  /* Testimonials */
  .testimonials__grid {
    grid-template-columns: 1fr;
  }

  /* Blog */
  .blog__grid {
    grid-template-columns: 1fr;
  }

  /* Contact form */
  .contact-form__row {
    grid-template-columns: 1fr;
  }

  /* About Full (Nosotros) */
  .about-full__grid {
    grid-template-columns: 1fr;
    gap: var(--gap-2xl);
  }

  .about-full__image {
    order: -1;
  }

  .about-full__image::before {
    display: none;
  }

  .about-full__stats {
    flex-wrap: wrap;
    gap: var(--gap-xl);
  }

  .about-full__stat-number {
    font-size: 2rem;
  }

  /* Values */
  .values__grid {
    grid-template-columns: 1fr;
  }

  /* Team */
  .team__features {
    grid-template-columns: 1fr;
  }

  /* Services Full */
  .services-full__grid {
    grid-template-columns: 1fr;
  }

  /* Why Us */
  .why-us__grid {
    grid-template-columns: 1fr;
  }

  .why-us__item + .why-us__item {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .why-us__number {
    font-size: 2.5rem;
  }

  /* Sector Detail */
  .sector-detail__grid {
    grid-template-columns: 1fr;
    gap: var(--gap-xl);
  }

  .sector-detail--reverse .sector-detail__grid {
    direction: ltr;
  }

  .sector-detail__image {
    order: -1;
  }

  /* CTA Banner */
  .cta-banner {
    padding: 64px 0;
  }

  .cta-banner__buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-banner__buttons .btn {
    width: 100%;
    justify-content: center;
  }

  /* Footer */
  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--gap-2xl);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--gap-2xl);
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  /* Buttons */
  .btn {
    padding: 12px 24px;
  }

  .btn--lg {
    padding: 14px 32px;
    font-size: var(--fs-small);
  }

  /* Section header */
  .section-header p {
    font-size: 1rem;
  }
}


/* ==========================================================================
   RESPONSIVE: LARGE SCREENS (1440px+)
   ========================================================================== */
@media (min-width: 1440px) {

  :root {
    --fs-h1: 4rem;
    --fs-h2: 3rem;
  }

  .container {
    padding: 0 40px;
  }

  .hero__content {
    max-width: 800px;
  }

  .hero__subtitle {
    font-size: 1.25rem;
  }
}


/* ==========================================================================
   ACCESSIBILITY & FOCUS STYLES
   ========================================================================== */
:focus-visible {
  outline: 2px solid var(--green-primary);
  outline-offset: 2px;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background-color: var(--green-primary);
  color: #fff;
  padding: 12px 24px;
  font-weight: var(--fw-semibold);
  border-radius: var(--radius-sm);
  z-index: calc(var(--z-modal) + 1);
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 16px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .fade-in,
  .slide-left,
  .slide-right,
  .scale-in {
    opacity: 1;
    transform: none;
  }
}


/* ==========================================================================
   PRINT STYLES
   ========================================================================== */
@media print {
  .navbar,
  .hero__scroll-indicator,
  .navbar__backdrop,
  .navbar__mobile-menu,
  .footer {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
    font-size: 12pt;
  }

  a {
    text-decoration: underline;
  }

  .container {
    max-width: 100%;
    padding: 0;
  }

  .hero {
    min-height: auto;
    padding: 2rem 0;
  }
}
