/* ============================================================
   CDI SRL — Main Stylesheet
   Metodología: BEM | Variables CSS | Mobile-First
   ============================================================ */

/* ============================================================
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================================ */
:root {
  /* Colores primarios */
  --color-navy:        #0d1b2a;
  --color-navy-mid:    #162844;
  --color-navy-light:  #1e3a5f;
  --color-navy-faded:  rgba(13, 27, 42, 0.06);

  /* Acento rojo */
  --color-red:         #c1121f;
  --color-red-hover:   #a00e18;
  --color-red-light:   rgba(193, 18, 31, 0.08);

  /* Dorado (toque premium) */
  --color-gold:        #c9a84c;
  --color-gold-light:  rgba(201, 168, 76, 0.15);

  /* Neutros */
  --color-white:       #ffffff;
  --color-off-white:   #f8f6f2;
  --color-gray-50:     #f5f5f5;
  --color-gray-100:    #eeeeee;
  --color-gray-200:    #dddddd;
  --color-gray-400:    #9e9e9e;
  --color-gray-600:    #5a5a5a;
  --color-text:        #1a1a1a;
  --color-text-mid:    #3d3d3d;
  --color-text-light:  #6b6b6b;

  /* Tipografía */
  --font-display:  'Cormorant Garamond', Georgia, serif;
  --font-body:     'DM Sans', system-ui, sans-serif;
  --font-mono:     'DM Mono', monospace;

  /* Tamaños tipográficos (fluid) */
  --text-xs:    0.75rem;
  --text-sm:    0.875rem;
  --text-base:  1rem;
  --text-lg:    1.125rem;
  --text-xl:    1.25rem;
  --text-2xl:   1.5rem;
  --text-3xl:   1.875rem;
  --text-4xl:   2.25rem;
  --text-5xl:   3rem;
  --text-6xl:   3.75rem;
  --text-7xl:   4.5rem;

  /* Espaciado */
  --space-1:   0.25rem;
  --space-2:   0.5rem;
  --space-3:   0.75rem;
  --space-4:   1rem;
  --space-5:   1.25rem;
  --space-6:   1.5rem;
  --space-8:   2rem;
  --space-10:  2.5rem;
  --space-12:  3rem;
  --space-16:  4rem;
  --space-20:  5rem;
  --space-24:  6rem;
  --space-32:  8rem;

  /* Radios */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 9999px;

  /* Sombras */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md:  0 4px 12px rgba(0,0,0,0.10), 0 2px 6px rgba(0,0,0,0.06);
  --shadow-lg:  0 10px 30px rgba(0,0,0,0.12), 0 4px 10px rgba(0,0,0,0.08);
  --shadow-xl:  0 20px 50px rgba(0,0,0,0.15), 0 8px 20px rgba(0,0,0,0.10);
  --shadow-navy: 0 8px 30px rgba(13, 27, 42, 0.25);
  --shadow-red:  0 8px 30px rgba(193, 18, 31, 0.25);

  /* Transiciones */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   400ms ease;
  --transition-spring: 400ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --container-max:  1280px;
  --navbar-height:  80px;
  --section-py:     var(--space-24);
}


/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

input, select, textarea {
  font-family: var(--font-body);
}

::selection {
  background: var(--color-navy);
  color: var(--color-white);
}


/* ============================================================
   3. TIPOGRAFÍA
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--color-navy);
}

.display-xl {
  font-size: clamp(2.8rem, 8vw, var(--text-7xl));
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.display-lg {
  font-size: clamp(2.2rem, 5vw, var(--text-6xl));
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.display-md {
  font-size: clamp(1.8rem, 4vw, var(--text-5xl));
  font-weight: 600;
  line-height: 1.1;
}

.display-sm {
  font-size: clamp(1.4rem, 3vw, var(--text-4xl));
  font-weight: 600;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, var(--text-5xl));
  font-weight: 600;
  color: var(--color-navy);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-light);
  line-height: 1.7;
  max-width: 560px;
}

.overline {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-red);
}

.body-lg   { font-size: var(--text-lg); line-height: 1.7; }
.body-base { font-size: var(--text-base); line-height: 1.7; }
.body-sm   { font-size: var(--text-sm); line-height: 1.6; }


/* ============================================================
   4. LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

@media (min-width: 768px) {
  .container { padding-inline: var(--space-8); }
}

@media (min-width: 1200px) {
  .container { padding-inline: var(--space-12); }
}

.section {
  padding-block: var(--section-py);
}

.section--light  { background-color: var(--color-off-white); }
.section--dark   { background-color: var(--color-navy); color: var(--color-white); }
.section--gray   { background-color: var(--color-gray-50); }

.section__header {
  margin-bottom: var(--space-16);
}

.section__header--center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.section__header--center .section-subtitle {
  text-align: center;
}

.section__header--left {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.divider {
  width: 48px;
  height: 3px;
  background: var(--color-red);
  border-radius: var(--radius-full);
}

.divider--center { margin-inline: auto; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}


/* ============================================================
   5. BOTONES (BEM)
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-8);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
  text-decoration: none;
}

.btn--primary {
  background: var(--color-red);
  color: var(--color-white);
  border-color: var(--color-red);
  box-shadow: var(--shadow-red);
}

.btn--primary:hover {
  background: var(--color-red-hover);
  border-color: var(--color-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(193, 18, 31, 0.35);
}

.btn--secondary {
  background: var(--color-navy);
  color: var(--color-white);
  border-color: var(--color-navy);
  box-shadow: var(--shadow-navy);
}

.btn--secondary:hover {
  background: var(--color-navy-mid);
  border-color: var(--color-navy-mid);
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(13, 27, 42, 0.35);
}

.btn--outline {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn--outline:hover {
  background: var(--color-white);
  color: var(--color-navy);
  border-color: var(--color-white);
}

.btn--outline-dark {
  background: transparent;
  color: var(--color-navy);
  border-color: var(--color-navy);
}

.btn--outline-dark:hover {
  background: var(--color-navy);
  color: var(--color-white);
}

.btn--lg {
  padding: var(--space-4) var(--space-10);
  font-size: var(--text-base);
}

.btn__icon {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-base);
}

.btn:hover .btn__icon {
  transform: translateX(3px);
}


/* ============================================================
   6. NAVBAR (BEM)
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--navbar-height);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-gray-100);
  transition: all var(--transition-base);
}

.navbar--scrolled {
  height: 66px;
  box-shadow: var(--shadow-md);
}

.navbar__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.navbar__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  flex-shrink: 0;
}

.navbar__logo {
  height: 44px;
  width: auto;
  transition: transform var(--transition-base);
}

.navbar__brand:hover .navbar__logo {
  transform: scale(1.03);
}

/* Menú desktop */
.navbar__menu {
  display: none;
  align-items: center;
  gap: var(--space-8);
}

@media (min-width: 1024px) {
  .navbar__menu { display: flex; }
}

.navbar__link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-mid);
  text-decoration: none;
  position: relative;
  padding-block: var(--space-1);
  transition: color var(--transition-fast);
  letter-spacing: 0.01em;
}

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

.navbar__link:hover,
.navbar__link--active {
  color: var(--color-navy);
}

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

.navbar__cta {
  margin-left: var(--space-2);
}

/* Hamburger */
.navbar__hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  padding: var(--space-2);
  cursor: pointer;
  background: none;
  border: none;
}

@media (min-width: 1024px) {
  .navbar__hamburger { display: none; }
}

.navbar__hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-navy);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  transform-origin: center;
}

.navbar__hamburger--open .navbar__hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.navbar__hamburger--open .navbar__hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.navbar__hamburger--open .navbar__hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.navbar__mobile {
  display: none;
  position: fixed;
  top: var(--navbar-height);
  left: 0;
  right: 0;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-gray-100);
  padding: var(--space-6);
  box-shadow: var(--shadow-lg);
  flex-direction: column;
  gap: var(--space-4);
  z-index: 999;
}

.navbar__mobile--open {
  display: flex;
}

.navbar__mobile-link {
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text-mid);
  padding-block: var(--space-2);
  border-bottom: 1px solid var(--color-gray-100);
  transition: color var(--transition-fast);
}

.navbar__mobile-link:hover {
  color: var(--color-red);
}

.navbar__mobile-link:last-child {
  border-bottom: none;
}


/* ============================================================
   7. HERO SLIDER (BEM)
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  background-size: cover;
  background-position: center;
}

.hero__slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(13, 27, 42, 0.85) 0%,
    rgba(13, 27, 42, 0.60) 50%,
    rgba(13, 27, 42, 0.75) 100%
  );
}

.hero__slide--active {
  opacity: 1;
  z-index: 2;
}

.hero__content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  height: 100%;
  padding-top: var(--navbar-height);
}

.hero__overline {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-4);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.7s ease 0.2s;
}

.hero__slide--active .hero__overline {
  opacity: 1;
  transform: translateY(0);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-5);
  max-width: 720px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease 0.35s;
}

.hero__slide--active .hero__title {
  opacity: 1;
  transform: translateY(0);
}

.hero__text {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.80);
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: var(--space-8);
  opacity: 0;
  transform: translateY(25px);
  transition: all 0.8s ease 0.5s;
}

.hero__slide--active .hero__text {
  opacity: 1;
  transform: translateY(0);
}

.hero__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease 0.65s;
}

.hero__slide--active .hero__actions {
  opacity: 1;
  transform: translateY(0);
}

/* Dots */
.hero__dots {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-3);
  z-index: 20;
}

.hero__dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: all var(--transition-base);
  border: none;
  padding: 0;
}

.hero__dot--active {
  background: var(--color-white);
  width: 28px;
  border-radius: var(--radius-full);
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: var(--space-8);
  right: var(--space-8);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255,255,255,0.6);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: scrollBounce 2s infinite;
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.5));
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

@media (max-width: 767px) {
  .hero__scroll { display: none; }
}


/* ============================================================
   8. STATS BAR
   ============================================================ */
.stats-bar {
  background: var(--color-navy);
  padding-block: var(--space-10);
}

.stats-bar__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .stats-bar__grid { grid-template-columns: repeat(4, 1fr); }
}

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

.stats-bar__number {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stats-bar__number span {
  color: var(--color-gold);
}

.stats-bar__label {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.stats-bar__divider {
  width: 1px;
  background: rgba(255,255,255,0.1);
  display: none;
}

@media (min-width: 768px) {
  .stats-bar__divider { display: block; }
}


/* ============================================================
   9. SERVICE CARDS (BEM)
   ============================================================ */
.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
  cursor: default;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-red), var(--color-gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-slow);
}

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

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

.service-card__icon {
  width: 56px;
  height: 56px;
  background: var(--color-navy-faded);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-6);
  transition: background var(--transition-base);
}

.service-card:hover .service-card__icon {
  background: var(--color-red-light);
}

.service-card__icon svg {
  width: 26px;
  height: 26px;
  color: var(--color-navy);
  transition: color var(--transition-base);
}

.service-card:hover .service-card__icon svg {
  color: var(--color-red);
}

.service-card__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: var(--space-3);
}

.service-card__text {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: var(--space-5);
}

.service-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.tag {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: var(--space-1) var(--space-3);
  background: var(--color-navy-faded);
  color: var(--color-navy);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-gray-200);
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-red);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: gap var(--transition-base);
}

.service-card__link:hover {
  gap: var(--space-3);
}

.service-card__link svg {
  width: 16px;
  height: 16px;
}


/* ============================================================
   10. ABOUT SECTION
   ============================================================ */
.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-16);
  align-items: center;
}

@media (min-width: 1024px) {
  .about__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.about__image-wrap {
  position: relative;
}

.about__image {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

.about__badge {
  position: absolute;
  bottom: -var(--space-6);
  right: -var(--space-6);
  background: var(--color-red);
  color: var(--color-white);
  padding: var(--space-5) var(--space-6);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-red);
  text-align: center;
}

@media (min-width: 1024px) {
  .about__badge {
    bottom: calc(-1 * var(--space-6));
    right: calc(-1 * var(--space-6));
  }
}

.about__badge-number {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  line-height: 1;
  display: block;
}

.about__badge-text {
  font-size: var(--text-sm);
  opacity: 0.9;
}

.about__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.about__lead {
  font-size: var(--text-lg);
  color: var(--color-text-mid);
  line-height: 1.75;
}

.about__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-2);
}

.about__feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--color-off-white);
  border-radius: var(--radius-md);
}

.about__feature-icon {
  width: 20px;
  height: 20px;
  color: var(--color-red);
  flex-shrink: 0;
  margin-top: 2px;
}

.about__feature-text {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-mid);
  line-height: 1.4;
}


/* ============================================================
   11. VALUES SECTION
   ============================================================ */
.value-card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  transition: all var(--transition-base);
}

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

.value-card__number {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: 700;
  color: var(--color-gray-100);
  line-height: 1;
  margin-bottom: var(--space-3);
}

.value-card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: var(--space-3);
}

.value-card__text {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  line-height: 1.7;
}


/* ============================================================
   12. CLIENTS SECTION
   ============================================================ */
.clients {
  background: var(--color-navy);
  padding-block: var(--space-20);
}

.clients__title {
  color: var(--color-white);
  text-align: center;
  margin-bottom: var(--space-12);
}

.clients__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-12);
}

@media (min-width: 640px) {
  .clients__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .clients__grid { grid-template-columns: repeat(6, 1fr); }
}

.client-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4) var(--space-5);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.05em;
  text-align: center;
  transition: all var(--transition-base);
}

.client-item:hover {
  background: rgba(255, 255, 255, 0.10);
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.2);
}

.clients__certs {
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  padding-top: var(--space-10);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-8);
}

.cert-badge {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: rgba(255, 255, 255, 0.7);
}

.cert-badge__icon {
  width: 20px;
  height: 20px;
  color: var(--color-gold);
}

.cert-badge__text {
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}


/* ============================================================
   13. GALLERY (BEM)
   ============================================================ */
.gallery__filter {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-10);
}

.gallery__filter-btn {
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  border: 2px solid var(--color-gray-200);
  color: var(--color-text-light);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition-base);
}

.gallery__filter-btn:hover,
.gallery__filter-btn--active {
  background: var(--color-navy);
  border-color: var(--color-navy);
  color: var(--color-white);
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

@media (min-width: 640px) {
  .gallery__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .gallery__grid { grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
}

.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  aspect-ratio: 4/3;
  cursor: pointer;
  background: var(--color-gray-100);
}

.gallery__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery__item:hover .gallery__img {
  transform: scale(1.08);
}

.gallery__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,27,42,0.75) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-slow);
  display: flex;
  align-items: flex-end;
  padding: var(--space-4);
}

.gallery__item:hover .gallery__overlay {
  opacity: 1;
}

.gallery__overlay-icon {
  width: 32px;
  height: 32px;
  color: var(--color-white);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform var(--transition-spring);
}

.gallery__item:hover .gallery__overlay-icon {
  transform: translate(-50%, -50%) scale(1);
}

.gallery__caption {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  letter-spacing: 0.04em;
}


/* ============================================================
   14. CONTACT SECTION
   ============================================================ */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: var(--color-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

@media (min-width: 768px) {
  .contact__grid { grid-template-columns: 2fr 3fr; }
}

.contact__info {
  background: var(--color-navy);
  padding: var(--space-10) var(--space-8);
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.contact__info-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-white);
}

.contact__info-text {
  color: rgba(255,255,255,0.65);
  font-size: var(--text-sm);
  line-height: 1.7;
  margin-top: calc(-1 * var(--space-4));
}

.contact__detail {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.contact__detail-icon {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact__detail-icon svg {
  width: 18px;
  height: 18px;
  color: var(--color-gold);
}

.contact__detail-label {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-1);
}

.contact__detail-value {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.85);
  font-weight: 500;
}

.contact__social {
  display: flex;
  gap: var(--space-3);
  margin-top: auto;
}

.contact__social-link {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-base);
}

.contact__social-link:hover {
  background: var(--color-red);
}

.contact__social-link svg {
  width: 18px;
  height: 18px;
  color: var(--color-white);
}

/* Formulario */
.contact__form-wrap {
  padding: var(--space-10) var(--space-8);
}

.contact__form-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: var(--color-navy);
  margin-bottom: var(--space-6);
}

.form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

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

@media (min-width: 640px) {
  .form__row { grid-template-columns: 1fr 1fr; }
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form__label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-mid);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.form__input,
.form__select,
.form__textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--color-gray-50);
  border: 1.5px solid var(--color-gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text);
  transition: all var(--transition-fast);
  outline: none;
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  border-color: var(--color-navy);
  background: var(--color-white);
  box-shadow: 0 0 0 3px rgba(13, 27, 42, 0.08);
}

.form__input::placeholder,
.form__textarea::placeholder {
  color: var(--color-gray-400);
}

.form__select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239e9e9e' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: var(--space-10);
}

.form__textarea {
  resize: vertical;
  min-height: 120px;
}

.form__submit {
  width: 100%;
  padding: var(--space-4);
  background: var(--color-red);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-red);
}

.form__submit:hover {
  background: var(--color-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(193, 18, 31, 0.35);
}

.form__submit:active {
  transform: translateY(0);
}


/* ============================================================
   15. POLICY SECTION
   ============================================================ */
.policy-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-12);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-gray-100);
}

.policy-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--color-gray-100);
  margin-bottom: var(--space-8);
}

.policy-card__icon {
  width: 56px;
  height: 56px;
  background: var(--color-red-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.policy-card__icon svg {
  width: 28px;
  height: 28px;
  color: var(--color-red);
}

.policy-card__meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.policy-card__code {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--color-text-light);
  text-transform: uppercase;
}

.policy-card__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-navy);
}

.policy-card__commitments {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.policy-commitment {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--color-off-white);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--color-red);
}

.policy-commitment__num {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-gray-200);
  line-height: 1;
  flex-shrink: 0;
  width: 32px;
}

.policy-commitment__text {
  font-size: var(--text-sm);
  color: var(--color-text-mid);
  line-height: 1.75;
}


/* ============================================================
   16. PAGE HERO (interior pages)
   ============================================================ */
.page-hero {
  background: var(--color-navy);
  padding-top: calc(var(--navbar-height) + var(--space-16));
  padding-bottom: var(--space-16);
  position: relative;
  overflow: hidden;
}

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

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(193, 18, 31, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-5);
}

.page-hero__breadcrumb a {
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.page-hero__breadcrumb a:hover {
  color: rgba(255,255,255,0.8);
}

.page-hero__breadcrumb-sep {
  color: rgba(255,255,255,0.2);
}

.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.1;
  margin-bottom: var(--space-4);
  position: relative;
  z-index: 1;
}

.page-hero__text {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.65);
  max-width: 520px;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}


/* ============================================================
   17. FOOTER
   ============================================================ */
.footer {
  background: var(--color-navy);
  padding-block: var(--space-16) var(--space-8);
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}

@media (min-width: 640px) {
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.footer__logo {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.footer__tagline {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  max-width: 280px;
}

.footer__col-title {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: var(--space-4);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__link {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: var(--color-white);
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.footer__contact-icon {
  width: 16px;
  height: 16px;
  color: var(--color-gold);
  margin-top: 2px;
  flex-shrink: 0;
}

.footer__contact-text {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: var(--space-8);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.footer__copy {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.35);
}

.footer__social {
  display: flex;
  gap: var(--space-3);
}

.footer__social-link {
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-base);
}

.footer__social-link:hover {
  background: var(--color-red);
}

.footer__social-link svg {
  width: 16px;
  height: 16px;
  color: rgba(255,255,255,0.7);
}


/* ============================================================
   18. ANIMATIONS & AOS OVERRIDES
   ============================================================ */
[data-aos] {
  pointer-events: none;
}

[data-aos].aos-animate {
  pointer-events: auto;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}


/* ============================================================
   19. TOAST / NOTIFICATIONS
   ============================================================ */
.toast {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: 9999;
  background: var(--color-navy);
  color: var(--color-white);
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  box-shadow: var(--shadow-xl);
  transform: translateY(20px);
  opacity: 0;
  transition: all var(--transition-base);
  max-width: 320px;
  border-left: 3px solid var(--color-gold);
}

.toast--show {
  transform: translateY(0);
  opacity: 1;
}

.toast--success { border-color: #22c55e; }
.toast--error   { border-color: var(--color-red); }


/* ============================================================
   20. UTILITY CLASSES
   ============================================================ */
.text-center  { text-align: center; }
.text-left    { text-align: left; }
.text-white   { color: var(--color-white); }
.text-navy    { color: var(--color-navy); }
.text-red     { color: var(--color-red); }
.text-gold    { color: var(--color-gold); }
.text-light   { color: var(--color-text-light); }

.mt-2  { margin-top: var(--space-2); }
.mt-4  { margin-top: var(--space-4); }
.mt-6  { margin-top: var(--space-6); }
.mt-8  { margin-top: var(--space-8); }
.mt-10 { margin-top: var(--space-10); }
.mt-12 { margin-top: var(--space-12); }

.mb-4  { margin-bottom: var(--space-4); }
.mb-6  { margin-bottom: var(--space-6); }
.mb-8  { margin-bottom: var(--space-8); }

.hidden { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* Smooth page transitions */
.page-transition {
  animation: fadeIn 0.4s ease;
}


/* ============================================================
   21. RESPONSIVE HELPERS
   ============================================================ */
@media (max-width: 767px) {
  :root { --section-py: var(--space-16); }
  
  .contact__form-wrap,
  .contact__info { padding: var(--space-8) var(--space-6); }

  .policy-card { padding: var(--space-8); }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .about__grid { grid-template-columns: 1fr; }
}

/* Print */
@media print {
  .navbar, .footer, .hero__dots { display: none; }
  .hero { height: auto; padding: var(--space-10); }
}
