/* ── IMPORTACIÓN DE FUENTES ── */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@700&family=Inter:wght@400;500;600;700&display=swap');

/* ── DISEÑO DE LA CARPETA "diseño/industrial_precision" ── */

/* ── VARIABLES GLOBALES ── */
:root {
  /* Paleta de colores oficial (Basada en el logo MAPV PROYECTOS S.A.C.) */
  --color-primary:      #0079BC;  /* Azul corporativo principal */
  --color-primary-d:    #005F94;  /* Azul oscuro para hovers */
  --color-primary-s:    #E6F4FC;  /* Azul claro para fondos/badges */
  --color-primary-b:    #B3DAF1;  /* Borde claro de azul */

  --color-accent:       #D59A18;  /* Oro de acento secundario */
  --color-accent-d:     #A97A10;  /* Oro oscuro para hovers */
  --color-accent-s:     #FBF5E8;  /* Oro claro para fondos/badges */
  --color-accent-b:     #F2E1BB;  /* Borde de oro */

  /* Mapeo de compatibilidad con variables existentes */
  --color-naranja:     var(--color-primary);
  --color-naranja-d:   var(--color-primary-d);
  --color-naranja-s:   var(--color-primary-s);
  --color-naranja-b:   var(--color-primary-b);

  /* Variables específicas para el logo */
  --color-azul:        var(--color-primary);
  --color-oro:         var(--color-accent);
  --color-oro-d:       var(--color-accent-d);
  --color-oro-s:       var(--color-accent-s);
  --color-oro-b:       var(--color-accent-b);
  --color-carbon:      #1C1F24;  /* navbar, hero, footer */
  --color-steel:       #2E3340;  /* secciones alternas, cards */
  --color-humo:        #F5F6F8;  /* fondo secciones claras */
  --color-blanco:      #FFFFFF;  /* texto sobre oscuro, cards */
  --color-gris:        #7A7F8E;  /* texto secundario, subtítulos */
  --color-verde:       #1A7A4A;  /* badges de certificación, checks */
  --color-whatsapp:    #25D366;  /* botón flotante whatsapp */

  /* Fuentes */
  --font-principal:    'Inter', sans-serif;
  --font-titulos:      'Barlow Condensed', sans-serif;

  /* Redondeado oficial (según requerimiento de identidad visual) */
  --radius-btn:        8px;
  --radius-tag:        8px;
  --radius-card:       12px;

  /* Spacing & Layout */
  --spacing-unit:      8px;
  --spacing-gutter:    24px;
  --spacing-margin-mobile: 16px;
  --spacing-margin-desktop: 64px;
  --max-width:         1280px;

  /* Colores de Borde */
  --border-oscuro:     rgba(255, 255, 255, 0.1);
  --border-claro:      #D1D5DB;
}

/* ── RESET Y CONFIGURACIÓN BASE ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-principal);
  background-color: var(--color-blanco);
  color: var(--color-carbon);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Ocultar barra de scroll predeterminada para un look más industrial */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-carbon);
}
::-webkit-scrollbar-thumb {
  background: var(--color-steel);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-naranja);
}

/* ── TIPOGRAFÍA Y JERARQUÍAS ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-titulos);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--color-carbon);
  line-height: 1.2;
}

/* Escala de Tamaños */
.display-xl {
  font-size: 72px;
  line-height: 80px;
}

h1 {
  font-size: 56px;
  line-height: 64px;
}

h2 {
  font-size: 36px;
  line-height: 44px;
}

h3 {
  font-size: 22px;
  line-height: 28px;
}

h4 {
  font-size: 18px;
  line-height: 24px;
}

p {
  color: var(--color-gris);
}

p.body-lg {
  font-size: 18px;
  line-height: 28px;
}

p.body-md {
  font-size: 16px;
  line-height: 24px;
}

p.body-sm {
  font-size: 14px;
  line-height: 20px;
}

/* ── ELEMENTOS COMUNES E INDUSTRIALES ── */
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease, border-color 0.3s ease;
}

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

.uppercase-label {
  font-family: var(--font-principal);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Pill/Tag de Servicio */
.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--color-oro-s);
  border: 1px solid var(--color-oro-b);
  color: var(--color-oro-d);
  padding: 6px 16px;
  border-radius: var(--radius-tag);
  font-family: var(--font-principal);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.pill-badge .pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-oro);
  border-radius: 50%;
  animation: pulse-sutil 1.5s infinite;
}

/* ── DISEÑO DE MAQUETACIÓN (GRID & FLEX) ── */
.container {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--spacing-margin-mobile);
  padding-right: var(--spacing-margin-mobile);
  width: 100%;
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--spacing-gutter);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--spacing-gutter);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--spacing-gutter);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--spacing-gutter);
}

/* Col spans para tablets (769px y superior) */
@media (min-width: 769px) {
  .col-span-1 { grid-column: span 1 / span 1; }
  .col-span-2 { grid-column: span 2 / span 2; }
  .col-span-3 { grid-column: span 3 / span 3; }
  .col-span-4 { grid-column: span 4 / span 4; }
  .col-span-5 { grid-column: span 5 / span 5; }
  .col-span-6 { grid-column: span 6 / span 6; }
  .col-span-7 { grid-column: span 7 / span 7; }
  .col-span-8 { grid-column: span 8 / span 8; }
  .col-span-9 { grid-column: span 9 / span 9; }
  .col-span-10 { grid-column: span 10 / span 10; }
  .col-span-11 { grid-column: span 11 / span 11; }
  .col-span-12 { grid-column: span 12 / span 12; }

  .md\:col-span-1 { grid-column: span 1 / span 1; }
  .md\:col-span-2 { grid-column: span 2 / span 2; }
  .md\:col-span-3 { grid-column: span 3 / span 3; }
  .md\:col-span-4 { grid-column: span 4 / span 4; }
  .md\:col-span-5 { grid-column: span 5 / span 5; }
  .md\:col-span-6 { grid-column: span 6 / span 6; }
  .md\:col-span-7 { grid-column: span 7 / span 7; }
  .md\:col-span-8 { grid-column: span 8 / span 8; }
  .md\:col-span-9 { grid-column: span 9 / span 9; }
  .md\:col-span-10 { grid-column: span 10 / span 10; }
  .md\:col-span-11 { grid-column: span 11 / span 11; }
  .md\:col-span-12 { grid-column: span 12 / span 12; }
}

/* Col spans para desktop (1025px y superior) */
@media (min-width: 1025px) {
  .lg\:col-span-1 { grid-column: span 1 / span 1; }
  .lg\:col-span-2 { grid-column: span 2 / span 2; }
  .lg\:col-span-3 { grid-column: span 3 / span 3; }
  .lg\:col-span-4 { grid-column: span 4 / span 4; }
  .lg\:col-span-5 { grid-column: span 5 / span 5; }
  .lg\:col-span-6 { grid-column: span 6 / span 6; }
  .lg\:col-span-7 { grid-column: span 7 / span 7; }
  .lg\:col-span-8 { grid-column: span 8 / span 8; }
  .lg\:col-span-9 { grid-column: span 9 / span 9; }
  .lg\:col-span-10 { grid-column: span 10 / span 10; }
  .lg\:col-span-11 { grid-column: span 11 / span 11; }
  .lg\:col-span-12 { grid-column: span 12 / span 12; }
}

/* Secciones alternas */
section {
  padding: 120px 0;
  position: relative;
  border-bottom: 1px solid var(--border-claro);
}

section.bg-carbon {
  background-color: var(--color-carbon);
  color: var(--color-blanco);
  border-bottom: 1px solid var(--border-oscuro);
}

section.bg-carbon h1,
section.bg-carbon h2,
section.bg-carbon h3 {
  color: var(--color-blanco);
}

section.bg-carbon p {
  color: var(--color-gris);
}

section.bg-steel {
  background-color: var(--color-steel);
  color: var(--color-blanco);
  border-bottom: 1px solid var(--border-oscuro);
}

section.bg-steel h1,
section.bg-steel h2,
section.bg-steel h3 {
  color: var(--color-blanco);
}

section.bg-steel p {
  color: var(--color-gris);
}

section.bg-humo {
  background-color: var(--color-humo);
  color: var(--color-carbon);
}

section.bg-humo p {
  color: var(--color-gris);
}

section.hero {
  min-height: 80dvh;
  padding-top: 160px;
  padding-bottom: 120px;
  display: flex;
  align-items: center;
}

/* ── COMPONENTE NAVBAR ── */
.navbar {
  background-color: var(--color-carbon);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 100;
  border-bottom: 1px solid var(--border-oscuro);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  background-color: #121417;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

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

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-titulos);
  font-size: 24px;
  font-weight: 700;
  color: var(--color-blanco);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.navbar-logo svg {
  width: 24px;
  height: 24px;
  fill: var(--color-naranja);
}

.navbar-logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.navbar-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 32px;
}

.navbar-item {
  position: relative;
}

.navbar-link {
  font-family: var(--font-principal);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  padding: 8px 0;
}

.navbar-link:hover,
.navbar-link.active {
  color: var(--color-naranja);
}

/* Dropdown de Servicios */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background-color: var(--color-carbon);
  border: 1px solid var(--border-oscuro);
  width: 240px;
  list-style: none;
  padding: 12px 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 100;
}

.navbar-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-link {
  display: block;
  padding: 10px 24px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  transition: all 0.2s ease;
}

.dropdown-link:hover {
  background-color: var(--color-steel);
  color: var(--color-naranja);
  padding-left: 28px;
}

.navbar-cta {
  display: flex;
  align-items: center;
}

/* Botón menú móvil */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-blanco);
  cursor: pointer;
  padding: 8px;
}

.mobile-nav-toggle svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* Drawer Lateral Móvil */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  height: 100dvh;
  background-color: var(--color-carbon);
  border-left: 1px solid var(--border-oscuro);
  z-index: 99;
  padding: 100px 24px 40px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: right 0.4s cubic-bezier(0.32, 0.72, 0, 1);
  overflow-y: auto;
}

.mobile-drawer.open {
  right: 0;
}

.mobile-drawer-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-drawer-link {
  font-family: var(--font-principal);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  display: block;
  padding: 8px 0;
}

.mobile-drawer-link.active,
.mobile-drawer-link:hover {
  color: var(--color-naranja);
}

.mobile-drawer-submenu {
  list-style: none;
  padding-left: 16px;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-left: 1px solid var(--color-steel);
}

.mobile-drawer-sublink {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.mobile-drawer-sublink:hover {
  color: var(--color-naranja);
}

.mobile-drawer-cta {
  margin-top: 32px;
}

.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 98;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ── COMPONENTE BOTONES ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-principal);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.32, 0.72, 0, 1);
  border: 1px solid transparent;
  outline: none;
}

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

.btn-primary {
  background-color: var(--color-naranja);
  color: var(--color-blanco);
}

.btn-primary:hover {
  background-color: var(--color-naranja-d);
}

.btn-secondary {
  background-color: transparent;
  border: 1px solid var(--color-blanco);
  color: var(--color-blanco);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.btn-secondary-dark {
  background-color: transparent;
  border: 1px solid var(--color-carbon);
  color: var(--color-carbon);
}

.btn-secondary-dark:hover {
  background-color: rgba(28, 31, 36, 0.05);
}

.btn-ghost {
  background-color: transparent;
  color: var(--color-naranja);
  padding: 8px 0;
  border-radius: 0;
}

.btn-ghost:hover {
  color: var(--color-naranja-d);
}

.btn-ghost svg {
  transition: transform 0.2s ease;
}

.btn-ghost:hover svg {
  transform: translateX(4px);
}

/* ── COMPONENTE CARDS ── */
.card {
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.card-service {
  background-color: var(--color-steel);
  border: 1px solid var(--border-oscuro);
  padding: 40px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-service:hover {
  border-color: var(--color-naranja);
}

.card-service-icon {
  width: 56px;
  height: 56px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--color-blanco);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.card-service:hover .card-service-icon {
  background-color: rgba(0, 121, 188, 0.1);
  color: var(--color-naranja);
}

.card-service-icon svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.card-service-icon svg.icon-stroke {
  fill: none !important;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-service h3 {
  margin-bottom: 12px;
  color: var(--color-blanco);
}

.card-service p {
  margin-bottom: 24px;
  flex-grow: 1;
}

.card-service-light {
  background-color: var(--color-blanco);
  border: 1px solid #E5E7EB;
  border-radius: 4px;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-service-light:hover {
  border-color: var(--color-naranja);
}

.card-service-light .card-service-icon {
  background-color: #EEF2FF;
  color: var(--color-carbon);
  border-radius: 4px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.card-service-light:hover .card-service-icon {
  background-color: rgba(0, 121, 188, 0.1);
  color: var(--color-naranja);
}

.card-service-light h3 {
  color: var(--color-carbon);
  text-transform: none;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
}

.btn-ghost-link {
  font-family: var(--font-principal);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-naranja);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  transition: color 0.2s ease, transform 0.2s ease;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
}

.btn-ghost-link:hover {
  color: var(--color-naranja-d);
}

/* Tarjeta de Proyecto */
.card-project {
  background-color: var(--color-humo);
  border: 1px solid var(--border-claro);
  position: relative;
  display: flex;
  flex-direction: column;
}

.card-project-img {
  height: 240px;
  overflow: hidden;
}

.card-project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.card-project-info {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-project-tag {
  align-self: flex-start;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-naranja-d);
  background-color: var(--color-naranja-s);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.card-project h3 {
  margin-bottom: 8px;
  color: var(--color-carbon);
}

.card-project-client {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-gris);
}

.card-project-client svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.card-project-overlay-border {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 2px solid transparent;
  pointer-events: none;
  border-radius: var(--radius-card);
  transition: border-color 0.3s ease;
}

.card-project:hover .card-project-overlay-border {
  border-color: var(--color-naranja);
}

/* ── SECCIÓN CONTADORES ── */
.stats-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
}

.stat-item {
  flex: 1 1 200px;
  text-align: center;
  padding: 16px;
}

.stat-item:not(:first-child) {
  border-left: 1px solid var(--border-oscuro);
}

.stat-number {
  font-family: var(--font-titulos);
  font-size: 48px;
  font-weight: 700;
  color: var(--color-naranja);
  margin-bottom: 8px;
  line-height: 1;
}

.stat-label {
  font-family: var(--font-principal);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-gris);
  text-transform: uppercase;
}

/* ── POR QUÉ ELEGIRNOS ── */
.why-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 64px auto;
}

.diferenciador-item {
  display: flex;
  gap: 20px;
}

.diferenciador-icon {
  width: 48px;
  height: 48px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-naranja);
  flex-shrink: 0;
}

.diferenciador-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.diferenciador-info h4 {
  margin-bottom: 8px;
  color: var(--color-blanco);
}

/* ── CERTIFICACIONES / CLIENTES ── */
.clients-grid {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 48px;
  opacity: 0.7;
}

.client-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  filter: grayscale(100%);
  transition: filter 0.3s ease, opacity 0.3s ease;
  color: var(--color-gris);
}

.client-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

.client-logo svg {
  width: 36px;
  height: 36px;
  fill: currentColor;
}

.client-logo span {
  font-family: var(--font-titulos);
  font-size: 20px;
  font-weight: 700;
}

/* ── FORMULARIO Y CONTACTO ── */
.contacto-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 48px;
}

.contacto-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contacto-info-card {
  background-color: var(--color-humo);
  border: 1px solid var(--border-claro);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  border-radius: var(--radius-card);
}

.contacto-item {
  display: flex;
  gap: 16px;
}

.contacto-item-icon {
  width: 40px;
  height: 40px;
  background-color: rgba(28, 31, 36, 0.05);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-carbon);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.contacto-item:hover .contacto-item-icon {
  color: var(--color-naranja);
  background-color: rgba(232, 98, 10, 0.1);
}

.contacto-item-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.contacto-item-text p:first-child {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-gris);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.contacto-item-text p:last-child {
  font-size: 15px;
  color: var(--color-carbon);
  font-weight: 500;
}

.contacto-map {
  height: 260px;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--border-claro);
  position: relative;
}

.contacto-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.contacto-redes {
  display: flex;
  gap: 16px;
}

.contacto-red-link {
  width: 48px;
  height: 48px;
  background-color: var(--color-humo);
  border: 1px solid var(--border-claro);
  border-radius: var(--radius-btn);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gris);
  transition: all 0.3s ease;
}

.contacto-red-link:hover {
  border-color: var(--color-naranja);
  color: var(--color-naranja);
  background-color: var(--color-naranja-s);
}

.contacto-red-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Formulario */
.contacto-form-container {
  background-color: var(--color-carbon);
  border-radius: var(--radius-card);
  padding: 48px;
  color: var(--color-blanco);
}

.contacto-form-header {
  border-bottom: 1px solid var(--border-oscuro);
  padding-bottom: 24px;
  margin-bottom: 32px;
}

.contacto-form-header h3 {
  color: var(--color-blanco);
  margin-bottom: 8px;
}

.form-group {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

label.form-label {
  font-family: var(--font-principal);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  height: 48px;
  background-color: var(--color-steel);
  border: 1px solid var(--border-oscuro);
  color: var(--color-blanco);
  font-family: var(--font-principal);
  font-size: 15px;
  padding: 0 16px;
  border-radius: 4px;
  transition: all 0.3s ease;
  outline: none;
}

.form-textarea {
  height: 120px;
  padding: 16px;
  resize: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-naranja);
  box-shadow: 0 0 0 2px rgba(232, 98, 10, 0.2);
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

/* ── CONTACT FORM SUCCESS CARD & ANIMATIONS ── */
@keyframes slideDownFade {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-down-fade {
  animation: slideDownFade 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.contacto-success-card {
  text-align: center;
  padding: 48px 24px;
  background-color: var(--color-steel);
  border: 1px solid var(--border-oscuro);
  border-radius: 8px;
  animation: slideDownFade 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.contacto-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: rgba(26, 122, 74, 0.1);
  color: var(--color-verde);
  margin-bottom: 24px;
}

.contacto-success-card h4 {
  font-family: var(--font-titulos);
  font-size: 28px;
  font-weight: 700;
  color: var(--color-blanco);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contacto-success-card p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  max-width: 480px;
  margin: 0 auto 24px auto;
}

/* ── FILTROS DE PROYECTOS ── */
.filtros-container {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  border-bottom: 1px solid var(--border-claro);
  padding-bottom: 24px;
  margin-bottom: 48px;
}

.filtro-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--color-gris);
  font-family: var(--font-principal);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: all 0.3s ease;
}

.filtro-btn:hover {
  border-color: var(--border-claro);
  color: var(--color-carbon);
}

.filtro-btn.active {
  background-color: var(--color-naranja);
  color: var(--color-blanco);
  border-color: var(--color-naranja);
}

/* Ocultar proyectos */
.card-project.hidden,
.hidden {
  display: none !important;
}

/* ── COMPONENTE FOOTER ── */
.footer {
  background-color: var(--color-carbon);
  color: var(--color-blanco);
  border-top: 1px solid var(--border-oscuro);
  padding: 80px 0 32px 0;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--spacing-margin-mobile);
  padding-right: var(--spacing-margin-mobile);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-titulos);
  font-size: 24px;
  font-weight: 700;
  color: var(--color-blanco);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}

.footer-logo svg {
  width: 24px;
  height: 24px;
  fill: var(--color-naranja);
}

.footer-logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.footer-column h4 {
  font-size: 14px;
  color: var(--color-blanco);
  margin-bottom: 24px;
  letter-spacing: 0.08em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s ease, opacity 0.3s ease;
}

.footer-link:hover {
  color: var(--color-naranja);
  opacity: 1;
}

.footer-socials {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}

.footer-social-link {
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s ease;
}

.footer-social-link:hover {
  color: var(--color-naranja);
}

.footer-social-link svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.footer-bottom {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--border-oscuro);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

/* ── BOTÓN WHATSAPP FLOTANTE ── */
.whatsapp-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background-color: var(--color-whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-blanco);
  z-index: 900;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s ease;
  animation: pulse-whatsapp 2s infinite;
}

.whatsapp-fab:hover {
  transform: scale(1.1);
}

.whatsapp-fab svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.whatsapp-tooltip {
  position: absolute;
  right: 72px;
  background-color: var(--color-carbon);
  color: var(--color-blanco);
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateX(10px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.whatsapp-fab:hover .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* ── MODALES Y LIGHTBOX ── */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(12, 14, 17, 0.9);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: var(--color-carbon);
  border: 1px solid var(--border-oscuro);
  max-width: 1100px;
  width: 100%;
  max-height: 90vh;
  border-radius: var(--radius-card);
  overflow: hidden;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
  color: var(--color-blanco);
  display: flex;
  flex-direction: column;
}

.modal.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--color-steel);
  border: none;
  color: var(--color-blanco);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
  z-index: 15;
}

.modal-close:hover {
  background-color: var(--color-naranja);
  transform: scale(1.05);
}

.modal-close svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Grilla del Modal de 2 columnas */
.modal-grid {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
  min-height: 0;
}

@media (min-width: 769px) {
  .modal-grid {
    grid-template-columns: 1.2fr 1fr;
    height: 100%;
  }
}

@media (max-width: 768px) {
  .modal {
    padding: 16px 12px;
  }
  .modal-content {
    max-height: 85vh;
  }
  .modal-grid {
    overflow-y: auto;
    flex: 1;
    -webkit-overflow-scrolling: touch;
  }
}

/* Izquierda: Carrusel de imágenes */
.modal-carousel-section {
  background-color: #0b0c0e;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 32px 16px;
  border-bottom: 1px solid var(--border-oscuro);
}

@media (min-width: 769px) {
  .modal-carousel-section {
    border-bottom: none;
    border-right: 1px solid var(--border-oscuro);
    padding: 40px 24px;
    height: 100%;
    min-height: 520px;
  }
}

.carousel-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-track-wrapper {
  overflow: hidden;
  width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.carousel-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.carousel-slide {
  flex-shrink: 0;
  width: 100%;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000;
  overflow: hidden;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(46, 51, 64, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-blanco);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 5;
  backdrop-filter: blur(4px);
}

.carousel-nav-btn:hover {
  background-color: var(--color-naranja);
  border-color: var(--color-naranja-b);
  transform: translateY(-50%) scale(1.08);
}

.carousel-nav-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.prev-btn {
  left: 12px;
}

.next-btn {
  right: 12px;
}

.carousel-indicators {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  max-width: 100%;
  padding: 0 10px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.25);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.carousel-dot:hover {
  background-color: rgba(255, 255, 255, 0.6);
}

.carousel-dot.active {
  background-color: var(--color-naranja);
  transform: scale(1.2);
}

/* Derecha: Panel de información */
.modal-info-section {
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media (min-width: 769px) {
  .modal-info-section {
    padding: 40px;
    height: 100%;
    overflow-y: auto;
  }
}

.modal-header-info {
  margin-bottom: 20px;
}

.modal-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-oro-d);
  background-color: var(--color-oro-s);
  border: 1px solid var(--color-oro-b);
  padding: 4px 12px;
  border-radius: var(--radius-tag);
  margin-bottom: 12px;
}

.modal-title {
  font-size: 28px;
  color: var(--color-blanco);
  line-height: 1.25;
  margin-bottom: 0;
}

.modal-description-block {
  margin-bottom: 24px;
}

.modal-desc {
  color: #a0a5b5;
  font-size: 15px;
  line-height: 1.6;
}

/* Ficha técnica B2B */
.modal-spec-block {
  border-top: 1px solid var(--border-oscuro);
  padding-top: 24px;
}

.modal-spec-block h4 {
  font-size: 14px;
  letter-spacing: 0.05em;
  color: var(--color-oro);
  margin-bottom: 16px;
  text-transform: uppercase;
}

.spec-table {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.spec-row {
  display: grid;
  grid-template-columns: 1fr;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

@media (min-width: 480px) {
  .spec-row {
    grid-template-columns: 130px 1fr;
    gap: 16px;
  }
}

.spec-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.spec-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-gris);
  margin-bottom: 4px;
}

@media (min-width: 480px) {
  .spec-label {
    margin-bottom: 0;
  }
}

.spec-value {
  font-size: 14px;
  color: var(--color-blanco);
  font-weight: 500;
  line-height: 1.4;
}

/* Lightbox para imágenes individuales */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(12, 14, 17, 0.95);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-img {
  max-width: 90%;
  max-height: 80vh;
  object-fit: contain;
  border: 1px solid var(--border-oscuro);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.lightbox.active .lightbox-img {
  transform: scale(1);
}

.lightbox-caption {
  position: absolute;
  bottom: 40px;
  color: var(--color-blanco);
  font-family: var(--font-titulos);
  font-size: 20px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-align: center;
}

/* ── ANIMACIONES CSS ── */
@keyframes pulse-sutil {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(232, 98, 10, 0.5);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(232, 98, 10, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(232, 98, 10, 0);
  }
}

@keyframes pulse-whatsapp {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* ── MEDIA QUERIES (RESPONSIVIDAD) ── */

/* Viewport Laptop/Desktop Base (1280px+) */
@media (min-width: 1280px) {
  .container {
    padding-left: 0;
    padding-right: 0;
  }
}

/* Viewport Tablet (hasta 1024px) */
@media (max-width: 1024px) {
  .navbar-menu {
    gap: 20px;
  }
}

/* Viewport Tablet (hasta 768px) */
@media (max-width: 768px) {
  section {
    padding: 80px 0;
  }

  .display-xl {
    font-size: 48px;
    line-height: 56px;
  }

  h1 {
    font-size: 36px;
    line-height: 44px;
  }

  h2 {
    font-size: 28px;
    line-height: 36px;
  }

  .grid-12, .grid-4, .grid-3, .grid-2 {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* Clases de col-span para resetear a 1 */
  .md\:col-span-8, .md\:col-span-6, .md\:col-span-4, .lg\:col-span-5, .lg\:col-span-7, .md\:col-span-12 {
    grid-column: span 1 / span 1 !important;
  }

  .navbar-menu,
  .navbar-cta {
    display: none;
  }

  .mobile-nav-toggle {
    display: block;
  }

  .stats-row {
    flex-direction: column;
    align-items: stretch;
  }

  .stat-item:not(:first-child) {
    border-left: none;
    border-top: 1px solid var(--border-oscuro);
    padding-top: 24px;
  }

  .contacto-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

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

  .whatsapp-fab {
    bottom: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
  }

  .whatsapp-fab svg {
    width: 24px;
    height: 24px;
  }

  .whatsapp-tooltip {
    display: none !important; /* Desactivar tooltip en móviles */
  }
}

/* Viewport Mobile (hasta 375px) */
@media (max-width: 375px) {
  .container {
    padding-left: var(--spacing-margin-mobile);
    padding-right: var(--spacing-margin-mobile);
  }

  .display-xl {
    font-size: 36px;
    line-height: 42px;
  }

  h1 {
    font-size: 30px;
    line-height: 38px;
  }

  .btn {
    width: 100%; /* Botones de ancho completo para mejor tap-target */
  }

  .contacto-form-container {
    padding: 24px;
  }
}

/* ── PREFERS REDUCED MOTION (A11Y) ── */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-delay: 0s !important;
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
    scroll-behavior: auto !important;
  }
  .whatsapp-fab {
    animation: none;
  }
}

/* ── SECCIÓN CONTADORES (CLARO) ── */
.stats-section-light {
  background-color: var(--color-blanco);
  border-bottom: 1px solid var(--border-claro);
  padding: 60px 0;
}

.stats-section-light .stat-item {
  text-align: center;
  padding: 16px;
}

.stats-section-light .stat-item:not(:first-child) {
  border-left: 1px solid var(--border-claro);
}

.stats-section-light .stat-number {
  font-family: var(--font-titulos);
  font-size: 48px;
  font-weight: 700;
  color: var(--color-naranja);
  margin-bottom: 8px;
  line-height: 1;
}

.stats-section-light .stat-label {
  font-family: var(--font-principal);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-gris);
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .stats-section-light .stats-row {
    flex-direction: column;
    align-items: stretch;
  }
  .stats-section-light .stat-item:not(:first-child) {
    border-left: none;
    border-top: 1px solid var(--border-claro);
    padding-top: 24px;
  }
}

/* ── SECCIÓN CTA FINAL ── */
.final-cta-section {
  background-color: var(--color-carbon);
  color: var(--color-blanco);
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0;
  border-bottom: none;
}

.final-cta-bg {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMTAiIGN5PSIxMCIgcj0iMiIgZmlsbD0iI2ZmZmZmZiIgZmlsbC1vcGFjaXR5PSIwLjA1Ii8+PC9zdmc+");
  opacity: 0.2;
  pointer-events: none;
  z-index: 1;
}

.final-cta-section .container {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.final-cta-section h2 {
  color: var(--color-blanco);
  font-size: 48px;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.final-cta-section p {
  color: var(--color-gris);
  margin-bottom: 40px;
}

/* ── ICONOS ACENTO NARANJA ── */
.icon-accent-orange {
  font-size: 40px;
  color: var(--color-naranja);
  margin-bottom: 16px;
  display: inline-block;
}

/* ── TARJETA DE EQUIPO (TEAM CARD) ── */
.team-card {
  background-color: var(--color-steel);
  border: 1px solid transparent;
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.team-card:hover {
  border-color: var(--color-naranja);
}

.team-card-img-container {
  height: 280px;
  overflow: hidden;
  position: relative;
}

.team-card-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.5s ease, transform 0.5s ease;
}

.team-card:hover .team-card-img-container img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

.team-card-info {
  padding: 24px;
  flex-grow: 1;
}

.team-card-info h3 {
  color: var(--color-blanco);
  margin-bottom: 4px;
  font-size: 20px;
  text-transform: uppercase;
}

.team-card-role {
  font-family: var(--font-principal);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-naranja);
  margin-bottom: 16px;
}

.team-card-bio {
  font-size: 14px;
  color: var(--color-gris);
}

/* ── LOGOS DE CERTIFICACIÓN ── */
.cert-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-gris);
  transition: color 0.3s ease;
}

.cert-item:hover {
  color: var(--color-naranja);
}

.cert-item span.material-symbols-outlined {
  font-size: 36px;
}

.cert-item span.cert-label {
  font-family: var(--font-titulos);
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
}

/* ── TARJETA DE VALOR (VALUE CARD) ── */
.value-card {
  padding: 32px 24px;
  border: 1px solid var(--border-claro);
  background-color: var(--color-blanco);
  border-radius: 4px;
  text-align: center;
  transition: border-color 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.value-card:hover {
  border-color: var(--color-naranja);
}

.value-card h4 {
  font-family: var(--font-titulos);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-carbon);
  text-transform: uppercase;
}

.value-card p {
  font-size: 14px;
  color: var(--color-gris);
}

/* ══════════════════════════════════════════════════
   ── SISTEMA DE ANIMACIONES PREMIUM ──
   Implementación pura CSS + IntersectionObserver
   Sin dependencias externas
   ══════════════════════════════════════════════════ */

/* ── 1. KEYFRAMES GLOBALES ── */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeSlideLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes lineExpand {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

@keyframes heroZoomIn {
  from { transform: scale(1.06); }
  to   { transform: scale(1); }
}

/* ── 2. ESTADOS BASE (elementos ocultos antes de animar) ── */
.anim-ready {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.65s ease, transform 0.65s ease;
  will-change: opacity, transform;
}

.anim-ready.anim-from-left {
  transform: translateX(-30px);
}

/* Al dispararse la animación (JS añade .anim-visible) */
.anim-ready.anim-visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* Stagger delay automático para hijos directos */
.anim-stagger > *:nth-child(1)  { transition-delay: 0.00s; }
.anim-stagger > *:nth-child(2)  { transition-delay: 0.10s; }
.anim-stagger > *:nth-child(3)  { transition-delay: 0.20s; }
.anim-stagger > *:nth-child(4)  { transition-delay: 0.30s; }
.anim-stagger > *:nth-child(5)  { transition-delay: 0.40s; }
.anim-stagger > *:nth-child(6)  { transition-delay: 0.50s; }
.anim-stagger > *:nth-child(7)  { transition-delay: 0.60s; }
.anim-stagger > *:nth-child(8)  { transition-delay: 0.70s; }

/* ── 3. ZOOM HERO EN CARGA ── */
.hero-bg-zoom {
  animation: heroZoomIn 8s ease-out forwards;
  will-change: transform;
}

/* ── 4. LÍNEA DECORATIVA BAJO h2 DE SECCIÓN ── */
.section-heading {
  position: relative;
  display: inline-block;
}

.section-heading::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--color-naranja);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.6s ease 0.3s;
}

.section-heading.anim-visible::after {
  transform: scaleX(1);
}

/* Centrado (cuando el heading está centrado) */
.section-heading.centered::after {
  left: 50%;
  transform: scaleX(0) translateX(-50%);
  transform-origin: center;
}
.section-heading.centered.anim-visible::after {
  transform: scaleX(1) translateX(-50%);
}

/* ── 5. HOVER 3D CARDS ── */
.card-3d {
  transform-style: preserve-3d;
  transition:
    transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  will-change: transform;
}

.card-3d:hover {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18), 0 8px 20px rgba(0, 121, 188, 0.12);
}

/* ── 6. PARALLAX HERO ── */
.parallax-bg {
  will-change: transform;
  transition: transform 0.1s linear;
}

/* ── 7. RESPECT MOTION PREFERENCES ── */
@media (prefers-reduced-motion: reduce) {
  .anim-ready,
  .anim-ready.anim-from-left {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-bg-zoom {
    animation: none;
  }
  .section-heading::after {
    transform: scaleX(1);
    transition: none;
  }
  .card-3d {
    transition: none;
  }
  .parallax-bg {
    transform: none !important;
  }
}

