/* ========================================
   IMPACTO DESIGN SYSTEM - CONSOLIDADO
   Sistema de diseño unificado para Impacto Ingeniería y Construcción
   Incluye: design-system.css + style.css + styles.css + estilos inline
   ======================================== */

/* ========================================
   FUENTES
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&display=swap');

/* ========================================
/* ========================================
   VARIABLES CSS PERSONALIZADAS Y RESET
   ======================================== */
* {}

:root {
  /* Colores principales (versión 2025-09-28) */
  --color-primary: #2a6a7d;
  --color-primary-light: #4d8a9b;
  --color-primary-dark: #265f70;
  --color-secondary: #808080;
  --color-accent: #f3a84d;
  --color-accent-light: #ffb964;


  /* Colores de texto */
  --color-text-primary: #2a6a7d;
  --color-text-secondary: #1a1a1a;
  --color-text-white: #F3F4F6;

  /* Colores de fondo */
  --color-bg-white: #F3F4F6;
  --color-bg-gray-light: #E5E7EB;
  --color-bg-gray-100: #f3f4f6;
  --color-bg-gray-50: #f9fafb;

  /* Colores de borde */
  --color-border-light: #e5e7eb;
  --color-border-gray: #d1d5db;

  /* Fuentes */
  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Tamaños de fuente */
  --text-mega: clamp(2.5rem, 5vw, 6.5rem);
  --text-super: clamp(1.75rem, 3.5vw, 4.5rem);
  --text-section-title: clamp(1.5rem, 3vw, 3rem);
  --text-card-title: clamp(1rem, 2vw, 1.25rem);
  --text-body: clamp(0.875rem, 1.5vw, 1rem);
  --text-body-sm: clamp(0.75rem, 1.2vw, 0.875rem);
  --text-section-number: clamp(3rem, 6vw, 14rem);

  /* Espaciado */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;

  /* Sombras */
  --shadow-custom: 0 2px 6px #0000000a;
  --shadow-nav: 2px 4px 12px #00000014;
  --shadow-card: 0 8px 25px rgba(0, 0, 0, 0.1);
  --shadow-button: 0 4px 12px rgba(60, 109, 124, 0.3);
  --shadow-button-sm: 0 2px 6px rgba(60, 109, 124, 0.2);

  /* Fondos Especiales */
  --color-hero-bg: #3d3d3d;
  --color-hero-overlay: rgba(49, 49, 49, 0.452);


  /* Transiciones */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}


/* ========================================
   COMPONENTES REUTILIZABLES
   ======================================== */

/* Botón primario unificado */
.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-text-white);
  padding: 0.5rem 1rem;
  font-weight: 600;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  display: inline-block;
  text-align: center;
  letter-spacing: 0.025em;
  font-family: var(--font-body);
  min-height: 2.25rem;
  line-height: 1.25rem;
}

.btn-primary:hover {
  color: var(--color-accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(60, 109, 124, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(60, 109, 124, 0.2);
}

/* Botón secundario unificado */
.btn-secondary {
  background-color: transparent;
  color: var(--color-primary);
  padding: 0.5rem 1rem;
  font-weight: 600;
  font-size: 0.875rem;
  border: 1px solid var(--color-primary);
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  display: inline-block;
  text-align: center;
  letter-spacing: 0.025em;
  font-family: var(--font-body);
  min-height: 2.25rem;
  line-height: 1.25rem;
}

.btn-secondary:hover {
  background-color: var(--color-primary);
  color: var(--color-text-white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-button);
}

.btn-secondary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-button-sm);
}

/* Botón outline (solo contorno 2px, sin relleno) solicitado para CTA servicios */
.btn-outline-primary {
  background: transparent;
  color: var(--color-primary);
  padding: 0.75rem 1.5rem;
  /* similar a btn-lg spacing del ejemplo */
  font-weight: 600;
  font-size: 0.875rem;
  border: 2px solid var(--color-primary);
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(.25, .6, .2, 1), color var(--transition-normal), border-color var(--transition-normal) !important;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  min-height: 2.75rem;
  /* alineado a btn-lg */
  line-height: 1.25rem;
  font-family: var(--font-display) !important;
}

.btn-outline-primary svg {
  width: 1.25rem;
  height: 1.25rem;
}

.btn-outline-primary:hover {
  /* Mantener sin relleno y sin cambiar color de texto */
  transform: translateY(-2px) scale(1.035) !important;
  color: var(--color-primary);
}

.btn-outline-primary:active {
  transform: translateY(0) scale(1);
}

.btn-outline-primary:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* CTA Servicios (sin contorno, solo texto + icono con animación de flecha) */
.cta-services {
  background: none;
  border: none;
  padding: 0.75rem 0;
  font-size: 12px;
  /* 12px */
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  font-family: var(--font-display) !important;
  position: relative;
  transition: color var(--transition-normal);
}

.cta-services svg {
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 0.45s cubic-bezier(.65, .05, .36, 1);
}

@keyframes arrowNudge {
  0% {
    transform: translateX(0);
  }

  40% {
    transform: translateX(6px);
  }

  60% {
    transform: translateX(6px);
  }

  100% {
    transform: translateX(0);
  }
}

.cta-services:hover svg {
  animation: arrowNudge 0.7s ease-out;
}

.cta-services:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* Botón pequeño */
.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  min-height: 1.875rem;
  line-height: 1rem;
}

/* Botón grande */
.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  min-height: 2.75rem;
  line-height: 1.5rem;
}

/* Botón de ancho completo */
.btn-full {
  width: 100%;
}

/* Botón redondeado */
.btn-rounded {}

/* Botón con icono */
.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Estados especiales */
.btn-primary:disabled,
.btn-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-primary:disabled:hover,
.btn-secondary:disabled:hover {
  transform: none;
  box-shadow: none;
}

/* Botón CONTACTAR del navbar y CTA (unificado sin brillo) */
a.btn-contactar-navbar {
  background-color: var(--color-accent);
  color: var(--color-primary) !important;
  padding: 0.75rem 1.5rem;
  font-weight: 700 !important;
  font-size: 12px !important;
  line-height: 16px !important;
  transition: all var(--transition-normal);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  letter-spacing: 0.05em;
  font-family: var(--font-display) !important;
}

a.btn-contactar-navbar i {
  color: inherit;
  transition: color var(--transition-normal), transform var(--transition-normal);
  display: inline-block;
}

a.btn-contactar-navbar:hover {
  background-color: var(--color-accent-light);
  color: var(--color-primary) !important;
  transform: translateY(-2px);
}

a.btn-contactar-navbar:hover i {
  color: inherit;
  transform: translate(2px, -3px);
}

/* Animación del icono en el botón contactar del navbar */
header nav a.bg-gradient-to-r i,
header nav a[href*="contacto.html"] i {
  transition: transform var(--transition-normal), color var(--transition-normal);
  display: inline-block;
}

header nav a.bg-gradient-to-r:hover i,
header nav a[href*="contacto.html"]:hover i {
  transform: translate(2px, -3px);
}

/* Navbar flotante */
.nav-floating {
  background: #ffffff !important;

  border-radius: 0 !important;
  box-shadow: none !important;
  transition: all var(--transition-normal);
}

/* Sombra coherente para cualquier header fijo que contenga un nav principal */
header.fixed nav.nav-floating,
header.fixed .nav-floating {
  box-shadow: none !important;
}

/* Variante móvil: asegurar sombra también en contenedor mobile */
header.fixed .md\:hidden nav,
header.fixed .md\:hidden .custom-shadow {
  box-shadow: none !important;
  border-bottom: 2px solid var(--color-primary) !important;
  border-radius: 0 !important;
}

/* Tarjeta */
.card {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border-light);
  padding: 2rem;
  transition: all var(--transition-normal);
}

.card:hover {
  background: var(--color-bg-gray-50);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

/* Hero background */
.hero-bg {
  background: var(--color-hero-bg);
  position: relative;
  overflow: hidden;
}

.hero-bg-lines {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image: repeating-linear-gradient(-12deg,
      rgba(255, 255, 255, 0.04) 0px,
      rgba(255, 255, 255, 0.04) 1px,
      transparent 1px,
      transparent 12px);
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: var(--color-hero-overlay);
  z-index: 1;
  pointer-events: none;
}

/* Gradientes */
.gradient-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
}

.gradient-accent {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
}

/* Sombras personalizadas */
.custom-shadow {
  box-shadow: var(--shadow-custom);
}

/* ========================================
   LOGOS DE CLIENTES
   ======================================== */
.logo-item {
  position: relative;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1.5rem;
  background: #fff;
  border: none;
  overflow: hidden;
}

.logo-item img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  filter: saturate(0.85) contrast(1.05);
  user-select: none;
  pointer-events: none;
}

/* ========================================
   ANIMACIONES
   ======================================== */
@keyframes fadeUpSmooth {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInSmooth {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes scaleSubtle {
  from {
    opacity: 0;
    transform: scale(0.98);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ========================================
   OVERRIDE GLOBAL BOTONES (Sin sombra en hover)
   Requerimiento: eliminar sombra en hover y usar animación de ligero crecimiento.
   Se aplica a: .btn-primary, .btn-secondary, .btn, enlaces con clases bg-accent/bg-primary, .service-button, a[class*="bg-primary"], a[class*="bg-accent"].
   Mantiene botón navbar especial con su propio hover.
   ======================================== */
/* Base transition unify */
.btn-primary,
.btn-secondary,
button.btn,
a.btn,
.btn,
a.bg-accent,
a.bg-primary,
a[class*="bg-primary"],
a[class*="bg-accent"],
button[class*="bg-primary"],
button[class*="bg-accent"] {
  transition: transform 0.25s cubic-bezier(.25, .6, .2, 1), background-color var(--transition-normal), color var(--transition-normal), border-color var(--transition-normal) !important;
  box-shadow: none !important;
  will-change: transform;
}

/* Hover: scale sutil (similar al botón contactar pero sin sombra) */
.btn-primary:hover,
.btn-secondary:hover,
button.btn:hover,
a.btn:hover,
.btn:hover,
a.bg-accent:hover,
a.bg-primary:hover,
a[class*="bg-primary"]:hover,
a[class*="bg-accent"]:hover,
button[class*="bg-primary"]:hover,
button[class*="bg-accent"]:hover {
  transform: translateY(-2px) scale(1.035) !important;
  box-shadow: none !important;
}

/* Active: vuelve a posición */
.btn-primary:active,
.btn-secondary:active,
button.btn:active,
a.btn:active,
.btn:active,
a.bg-accent:active,
a.bg-primary:active,
a[class*="bg-primary"]:active,
a[class*="bg-accent"]:active,
button[class*="bg-primary"]:active,
button[class*="bg-accent"]:active {
  transform: translateY(0) scale(1.0) !important;
  box-shadow: none !important;
}

/* Focus accesible */
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
button.btn:focus-visible,
a.btn:focus-visible,
.btn:focus-visible,
a.bg-accent:focus-visible,
a.bg-primary:focus-visible,
a[class*="bg-primary"]:focus-visible,
a[class*="bg-accent"]:focus-visible,
button[class*="bg-primary"]:focus-visible,
button[class*="bg-accent"]:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  box-shadow: none !important;
}

/* Eliminar sombras heredadas de definiciones previas */
.btn-primary:hover,
.btn-primary:active,
.btn-secondary:hover,
.btn-secondary:active,
.btn-contactar-navbar:hover {
  box-shadow: none;
}

/* Reintroducir sombra SOLO para botón navbar si se desea conservarla (comentado) */
/* .btn-contactar-navbar:hover { box-shadow: 0 4px 12px rgba(240,172,43,.3); } */


.will-animate {
  opacity: 0;
}

.animate-fade-up-smooth {
  animation: fadeUpSmooth 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.animate-fade-in-smooth {
  animation: fadeInSmooth 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* ========================================
   UTILIDADES GENERALES
   ======================================== */
.smooth-scroll {
  scroll-behavior: smooth;
}

.selection-custom::selection {
  background: rgba(240, 172, 43, 0.25);
}

.font-smoothing {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   RESPONSIVE BREAKPOINTS
   ======================================== */
@media (max-width: 640px) {
  :root {
    --text-mega: clamp(2rem, 8vw, 4rem);
    --text-super: clamp(1.5rem, 6vw, 3rem);
    --text-section-title: clamp(1.25rem, 5vw, 2.5rem);
  }
}

@media (max-width: 480px) {
  :root {
    --text-mega: clamp(1.75rem, 10vw, 3.5rem);
    --text-super: clamp(1.25rem, 8vw, 2.5rem);
    --text-section-title: clamp(1rem, 6vw, 2rem);
  }
}

/* ========================================
   ESTILOS BASE CONSOLIDADOS
   ======================================== */
body {
  font-family: var(--font-body);
  color: var(--color-text-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
}

/* ========================================
   ESTILOS ESPECÍFICOS DEL SITIO (desde style.css)
   ======================================== */

/* Estilos unificados para headings de secciones */
.section-heading {
  font-weight: 800;
  font-size: 2.5rem;
  color: #252d39;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-subheading {
  font-size: 1.1rem;
  color: #6c757d;
  margin-bottom: 3rem;
  line-height: 1.5;
  opacity: 0.75;
}

@media (max-width: 768px) {
  .section-heading {
    font-size: 2rem;
  }

  .section-subheading {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
}

/* Header Navigation */
.header-nav {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-nav .navbar {
  min-height: 80px;
}

.header-nav .navbar-brand {
  padding: 0;
}

.header-nav .navbar-toggler {
  border: none;
  padding: 0.5rem;
  transition: all 0.3s ease;
}

.header-nav .navbar-toggler:focus {
  box-shadow: none;
}

.header-nav .nav-link {
  color: #000;
  opacity: 0.7;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
}

.header-nav .nav-link:hover,
.header-nav .nav-link:focus,
.header-nav .nav-link.active {
  color: #000;
  opacity: 1;
}

/* Header Principal */
.header-principal {
  background: radial-gradient(circle at right top, #1d4361 0%, #000 70%);
  padding: 60px 0 0;
  position: relative;
  overflow: hidden;
  color: #fff;
}

.header-principal-heading {
  font-weight: 700;
  font-size: 45px;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.header-principal-sub-heading {
  font-size: 24px;
  line-height: 1.5;
  opacity: 0.8;
  margin-bottom: 2rem;
}

.header-principal-content {
  padding: 40px 0 60px;
}

/* Botón principal unificado */
.header-principal-btn,
.navbar .header-principal-btn {
  padding: 12px 30px;
  background-color: #2a6a7d;
  border-color: #2a6a7d;
  color: #fff;
  transition: all 0.3s ease;
}

.header-principal-btn:hover,
.navbar .header-principal-btn:hover,
.header-principal-btn:focus,
.navbar .header-principal-btn:focus,
.header-principal-btn:active,
.navbar .header-principal-btn:active {
  background-color: #2a6a7d !important;
  border-color: #2a6a7d !important;
  color: #fff !important;
}

/* Formas decorativas */
.header-principal-shape-1 {
  position: absolute;
  left: 0;
  top: 0;
}

.header-principal-shape-2 {
  position: absolute;
  bottom: 0;
  left: 25%;
  top: 0;
}

/* Media Queries para header */
@media (max-width: 576px) {
  .header-principal-heading {
    font-size: 42px;
    line-height: 1.2;
  }

  .header-principal-sub-heading {
    font-size: 16px;
  }

  .header-principal-content {
    padding: 30px 0 40px;
  }
}

@media (max-width: 991.98px) {
  .header-nav .navbar-nav {
    padding: 1rem 0;
  }

  .header-nav .nav-link {
    padding: 0.75rem 0;
  }

  .header-nav .header-principal-btn {
    margin: 1rem 0;
    width: 100%;
  }
}

@media (min-width: 768px) {
  .header-principal-heading {
    font-size: 55px;
  }
}

@media (min-width: 992px) {
  .header-nav .navbar-nav {
    margin-right: auto;
    margin-left: 0;
  }

  .header-nav .nav-link {
    margin: 0 0.5rem;
  }

  .header-principal-heading {
    font-size: 70px;
    line-height: 1.2;
  }

  .header-principal-content {
    padding-top: 60px;
    padding-bottom: 130px;
  }

  .header-principal-shape-2 {
    left: 45%;
  }
}

@media (min-width: 1200px) {
  .header-principal-heading {
    font-size: 75px;
  }
}

/* Sección Medallas */
.section-medals {
  background: #F2F6FE;
  padding: 60px 0;
}

.section-medals-card {
  padding: 2rem 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.icon-container {
  background: white;
  width: 100px;
  height: 100px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.icon-green {
  color: #2a6a7d;
  font-size: 2.8rem;
}

.medals-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #252d39;
  margin-bottom: 1rem;
}

.medals-description {
  color: #6c757d;
  font-size: 1rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .section-medals {
    padding: 40px 0;
  }
}

/* Sección Tabulador */
.section-tabulador {
  background: #FFF;
  padding: 60px 0 0;
}

.tabulador-container {
  background: white;
  border: 1px solid #e0e0e0;
  overflow: hidden;
}

.tabulador-tabs {
  display: flex;
  justify-content: space-between;
  width: 100%;
  border: none;
  background: #f8f9fa;
  padding: 1rem;
}

.tabulador-tabs .nav-item {
  flex: 1;
  margin: 0 5px;
}

.tabulador-tabs .nav-link {
  width: 100%;
  text-align: center;
  padding: 1rem 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  transition: all 0.3s ease;
  border: 1px solid #e0e0e0;
}

.tabulador-tabs .nav-link i {
  margin-right: 8px;
}

.tabulador-tabs .nav-link.active {
  background: #2a6a7d;
  color: white;
  border-color: #2a6a7d;
}

.tabulador-tabs .nav-link:hover:not(.active) {
  background: #f1f1f1;
  transform: none;
}

.tabulador-content {
  padding: 2rem;
}

.tabulador-form .form-floating {
  position: relative;
}

.tabulador-form .form-control,
.tabulador-form .form-select {
  border: 2px solid #e0e0e0;
  height: 60px;
  font-size: 1.1rem;
  padding: 1rem 1.25rem;
  transition: all 0.3s ease;
}

.tabulador-form .form-control:focus,
.tabulador-form .form-select:focus {
  border-color: #2a6a7d;
}

.tabulador-form .form-floating label {
  padding: 1rem 1.25rem;
  color: #6c757d;
}

.tabulador-result {
  margin-top: 2rem;
  padding: 1.5rem;
  background: #f8f9fa;
  border-left: 4px solid #2a6a7d;
}

@media (max-width: 768px) {
  .section-tabulador {
    padding: 40px 0;
  }

  .tabulador-tabs .nav-link {
    padding: 0.75rem;
  }

  .tabulador-content {
    padding: 1.5rem;
  }
}

/* Sección Productos */
.section-products {
  background: #F2F6FE;
  color: #2b323c;
  padding: 60px 0;
}

.section-products-item {
  background-color: #fff;
}

.section-products-title {
  color: #252d39;
}

.border-lg-end {
  border-color: rgba(0, 0, 0, 0.08) !important;
}

.text-primary {
  color: #2a6a7d !important;
}

@media (min-width: 768px) {
  .section-products {
    padding: 100px 0;
  }
}

@media (min-width: 991px) {
  .border-lg-end {
    border-right: 1px solid;
  }
}

/* Sección About */
.section-about {
  background: #fff;
  padding: 100px 0;
}

.section-about-heading {
  font-weight: 800;
  font-size: 45px;
  line-height: 1.2;
  margin-bottom: 2rem;
  color: #252d39;
}

.section-about-text {
  font-size: 22px;
  line-height: 1.5;
  letter-spacing: 0.5px;
  opacity: 0.75;
}

.section-about-image {
  text-align: center;
}

@media (max-width: 768px) {
  .section-about {
    padding: 60px 0;
  }

  .section-about-text {
    font-size: 16px;
  }

  .section-about-image {
    margin-top: 2rem;
  }
}

/* CTA Section */
.ezy__cta9_ZqITPOpc {
  background-color: #2a6a7d;
  color: #F3F4F6;
  overflow: hidden;
  padding: 0;
}

.ezy__cta9_ZqITPOpc-heading {
  font-weight: bold;
  font-size: 25px;
  line-height: 25px;
  color: #F3F4F6;
}

@media (min-width: 768px) {
  .ezy__cta9_ZqITPOpc-heading {
    font-size: 40px;
    line-height: 40px;
  }
}

.ezy__cta9_ZqITPOpc .form-control {
  min-height: 48px;
  line-height: 26px;
  border: none;
  background: rgba(255, 255, 255, 1);
  color: #000000;
}

.ezy__cta9_ZqITPOpc .form-control:focus {
  box-shadow: none;
}

.ezy__cta9_ZqITPOpc-btn {
  padding: 12px 30px;
  min-width: 110px;
  height: 48px;
}

/* Footer Section */
.section-footer {
  background-color: #f8f9fa;
  color: #2a6a7d;
  padding: 60px 0;
  margin-top: 20px;
}

.section-footer-links li {
  margin-bottom: 8px;
}

.section-footer-links li a {
  color: #2a6a7d;
  opacity: 0.7;
  text-decoration: none;
}

.section-footer-links li a:hover {
  opacity: 1;
}

.section-footer-nav .nav-link {
  color: #2a6a7d;
}

.section-footer-nav .nav-link:hover {
  opacity: 0.8;
}

.section-footer hr {
  background-color: #989898;
}

@media (min-width: 768px) {
  .section-footer {
    padding: 80px 0;
  }
}

/* ========================================
   ESTILOS ESPECÍFICOS DE IMÁGENES (desde styles.css)
   ======================================== */
.imagen-portada {
  width: 150%;
  max-width: none;
  height: auto;
}

@media (max-width: 767px) {
  .imagen-portada {
    width: 100%;
    max-width: 100%;
  }
}

/* ========================================
   COMPONENTES PERSONALIZADOS: SERVICIOS
   ======================================== */

/* Tarjeta de Servicio con Acanto Lateral */
.card-service-accent {
  /* Utiliza el fondo blanco y radio definidos */
  background: var(--color-bg-white);
  padding: 2rem;
  transition: all var(--transition-normal);

  /* Nuevo concepto: Sin borde, solo una sombra sutil */
  box-shadow: var(--shadow-custom);

  /* Acanto visual: una barra lateral con el color principal */
  border-left: 5px solid var(--color-primary);
}

/* Efecto hover modificado para mantener la distinción */
.card-service-accent:hover {
  /* No cambia el fondo a gris claro */
  background: var(--color-bg-white);
  /* Usa una ligera escala en lugar de traslación para un efecto más sutil */
  transform: scale(1.005);
  /* Sombra más marcada al pasar el mouse, usando un color derivado del primario */
  box-shadow: 0 4px 12px rgba(60, 109, 124, 0.2);
}

/* ========================================
   FOOTER TEXT SIZE
   ======================================== */
.footer-text {
  font-size: 12px;
}

/* ========================================
   ESTILOS UNIVERSALES PARA CUADROS - NUEVO DISEÑO
   ======================================== */
/* Estilos universales para todos los cuadros/cards de la aplicación */
.card-universal {
  /* Esquinas más pronunciadas */
  border: none !important;
  /* Sin líneas de contorno */
}

/* Eliminar todos los bordes existentes */
.border-gray-200,
.border-gray-300,
.border-primary,
.border-accent,
.border-white {
  border: none !important;
}

/* Asegurar que todos los cuadros tengan esquinas más pronunciadas */
.rounded-lg {}

.rounded-xl {}

.rounded-md {}

/* ========================================
   LÓGICA DE CONTRASTE MEJORADA
   ======================================== */

/* Secciones con fondo gris claro (#F5F5F7) - Cuadros blancos */
[style*="background-color: #F5F5F7"] .bg-white,
[style*="background-color: #f5f5f7"] .bg-white,
section[style*="background-color: #F5F5F7"] .bg-white,
section[style*="background-color: #f5f5f7"] .bg-white {
  background-color: #F3F4F6 !important;
  /* actualizado desde white para contraste con gris claro */
  border: none !important;
}

/* Secciones con fondo blanco - Cuadros grises */
.bg-white .bg-white.rounded-lg,
.bg-white .bg-white.rounded-xl,
.bg-white .bg-white.rounded-md {
  background-color: #f3f4f6 !important;
  /* Gris claro para contraste con blanco */
  border: none !important;
}

/* Cuadros grises en secciones blancas - Mantener blancos */
.bg-white .bg-gray-100,
.bg-white .bg-gray-50 {
  background-color: #F3F4F6 !important;
  /* actualizado desde white para contraste */
  border: none !important;
}

/* Cuadros grises en secciones grises - Mantener blancos */
[style*="background-color: #F5F5F7"] .bg-gray-100,
[style*="background-color: #f5f5f7"] .bg-gray-100,
section[style*="background-color: #F5F5F7"] .bg-gray-100,
section[style*="background-color: #f5f5f7"] .bg-gray-100 {
  background-color: #F3F4F6 !important;
  /* actualizado desde white para contraste */
  border: none !important;
}

/* Estilos específicos para botones de servicios */
.service-button {
  border: none !important;
}

/* Cuadros de contenido principal */
#service-content,
.project-item,
.card-content {
  border: none !important;
}

/* Casos específicos que necesitan contraste mejorado */
.bg-white.rounded-lg:not([style*="background-color: #F5F5F7"]):not([style*="background-color: #f5f5f7"]) {
  background-color: #f3f4f6 !important;
  /* Gris claro por defecto */
  border: none !important;
}

/* Selectores adicionales para casos específicos */
.bg-white.rounded-lg.p-6,
.bg-white.rounded-xl.p-6,
.bg-white.rounded-md.p-6 {
  border: none !important;
}

/* Asegurar que los cuadros en secciones específicas tengan el contraste correcto */
#compromiso .bg-white,
#servicios .bg-white,
#nosotros .bg-white {
  background-color: #F3F4F6 !important;
  /* actualizado desde white */
  border: none !important;
}

/* ========================================
   ESTILOS ESPECÍFICOS DE PÁGINAS (desde HTML inline)
   ======================================== */

/* Carrusel de Hero - Estilos Optimizados */
.hero-carousel-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1);
  will-change: opacity, transform;
  z-index: 1;
}

.hero-carousel-slide.active {
  opacity: 1;
  z-index: 3;
  animation: slowZoomSmooth 4s linear forwards;
}

.hero-carousel-slide.entering {
  opacity: 0;
  z-index: 2;
  animation: fadeInSmooth 1.2s ease-out forwards;
}

.hero-carousel-slide.background {
  opacity: 1;
  z-index: 1;
  animation: slowZoomContinue 4s linear forwards;
}

/* Animación principal con zoom continuado */
@keyframes slowZoomSmooth {
  0% {
    transform: scale(1.01);
    opacity: 1;
  }

  100% {
    transform: scale(1.05);
    opacity: 1;
  }
}

/* Animación de entrada gradual CON zoom */
@keyframes fadeInSmooth {
  0% {
    opacity: 0;
    transform: scale(1);
  }

  100% {
    opacity: 1;
    transform: scale(1.01);
  }
}

/* Animación para slide de fondo */
@keyframes slowZoomContinue {
  0% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1.05);
  }
}

/* Optimización para reducción de movimiento */
@media (prefers-reduced-motion: reduce) {
  .hero-carousel-slide.active {
    transform: scale(1) !important;
    animation: fadeInOnly 0.8s ease-out forwards !important;
  }

  @keyframes fadeInOnly {
    from {
      opacity: 0;
    }

    to {
      opacity: 1;
    }
  }
}

/* Optimización de rendimiento */
.hero-carousel-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.1);
  pointer-events: none;
}

/* ===== Carrusel Experiencia (más grande y responsivo) ===== */
.experience-carousel-container {
  position: relative;
  background: #f8f9fa;
  overflow: hidden;
}

.experience-carousel-track {
  display: flex;
  gap: 0;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  transition: transform 700ms cubic-bezier(.22, .61, .36, 1);
}

.experience-slide {
  position: relative;
  flex: 0 0 100%;
  min-width: 100%;
  overflow: hidden;

}

.slide-media {
  width: 100%;
  height: clamp(18rem, 50vh, 40rem);
}

.slide-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: translateZ(0) scale(1);
  transition: transform .6s ease;
}

.experience-carousel-container:hover .slide-media img {
  transform: translateZ(0) scale(1.035);
}

.slide-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: clamp(1rem, 2.5vw, 2.25rem);
  color: #F3F4F6;
  background: linear-gradient(to top, rgba(0, 0, 0, .8), rgba(0, 0, 0, .45), transparent);
  pointer-events: none;
  backdrop-filter: saturate(115%) blur(2px);
}

.slide-overlay h3 {
  font-weight: 800;
  font-size: clamp(1rem, 2vw, 1.875rem);
  margin: 0 0 .6rem;
}

@media (min-width: 640px) {
  .slide-overlay h3 {
    font-size: clamp(1.25rem, 2.2vw, 1.875rem);
  }
}

@media (min-width: 1024px) {
  .slide-overlay h3 {
    font-size: clamp(1.5rem, 2.2vw, 1.875rem);
  }
}

.slide-overlay p {
  font-size: clamp(0.875rem, 1.1vw, 1.075rem);
  line-height: 1.65;
  margin: 0;
}

@media (min-width: 640px) {
  .slide-overlay p {
    font-size: clamp(0.95rem, 1.2vw, 1.075rem);
  }
}

@media (min-width: 1024px) {
  .slide-overlay p {
    font-size: clamp(1rem, 1.2vw, 1.075rem);
  }
}

.experience-indicators {
  display: flex;
  justify-content: center;
  gap: .75rem;
  margin-top: 1.75rem;
}

.experience-indicator {
  width: 12px;
  height: 12px;
  cursor: pointer;
  background: #d1d5db;
  border: none;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.experience-indicator:hover {
  transform: scale(1.25);
  background: #f3a84d;
}

.experience-indicator.active {
  background: #f3a84d;
  transform: scale(1.35);
  box-shadow: 0 2px 8px rgba(240, 172, 43, .4);
}

.slide-overlay h3,
.slide-overlay p {
  animation: fadeInUp .6s ease-out .2s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

@media (prefers-reduced-motion: reduce) {
  .experience-carousel-track {
    transition: none !important
  }

  .slide-media img {
    transition: none !important
  }
}

/* SVG con scroll (logo Impacto) - sección compacta */
:root {
  --stroke-color: #2c515c65;
  --stroke-width: 1;
}

.svg-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F3F4F6;
  padding: 2rem 0;
}

.svg-wrap {
  width: 100%;
  max-width: min(80vw, 600px);
  margin-inline: auto;
}

.svg-wrap svg {
  width: 100%;
  height: auto;
  display: block;
}

.scroll-stroke {
  fill: none !important;
  stroke: var(--stroke-color) !important;
  stroke-width: var(--stroke-width) !important;
  stroke-linecap: butt !important;
  stroke-linejoin: miter !important;
  stroke-miterlimit: 4 !important;
  vector-effect: non-scaling-stroke;
}

.scroll-stroke[data-accent="true"] {
  stroke: var(--accent-color) !important;
}

.runner-stroke {
  fill: none !important;
  stroke: var(--stroke-color) !important;
  stroke-width: var(--stroke-width) !important;
  stroke-linecap: butt !important;
  stroke-linejoin: miter !important;
  opacity: .8;
  pointer-events: none;
  vector-effect: non-scaling-stroke;
}

.meter {
  position: fixed;
  left: 12px;
  bottom: 12px;
  width: 160px;
  height: 6px;
  background: #e5e7eb;
  overflow: hidden;
  z-index: 10;
}

.meter>i {
  display: block;
  height: 100%;
  width: 0%;
  background: #0ea5e9;
}

/* Estilos para botones seleccionados (Sincronizado con HTML) */
.service-button[aria-selected="true"] p,
.filter-btn[aria-selected="true"] p {
  color: var(--color-primary-dark) !important;
  border-bottom: 3px solid var(--color-accent) !important;
  padding-bottom: 4px !important;
  display: inline-block !important;
}

.filter-btn:hover p {
  color: var(--color-accent);
}



/* Mejoras de responsividad móvil para servicios */
@media (max-width: 768px) {
  .service-button {
    padding: 1rem 1.25rem;
    min-height: 60px;
    display: flex;
    align-items: center;
  }

  .service-button p {
    font-size: 1rem;
    line-height: 1.4;
  }

  /* Mejorar espaciado en móvil */
  #servicios-navegacion {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  /* Ajustar altura de imagen en móvil */
  #service-image {
    height: 12rem !important;
  }

  /* Mejorar texto en móvil */
  #service-title {
    margin-bottom: 0.75rem !important;
  }

  #service-description p {
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
  }

  #service-description ul {
    font-size: 0.875rem !important;
  }
}

@media (max-width: 480px) {

  /* Optimizaciones para móviles muy pequeños */
  .service-button {
    padding: 0.875rem 1rem;
    min-height: 56px;
  }

  .service-button p {
    font-size: 0.9375rem;
    line-height: 1.3;
  }

  #service-image {
    height: 10rem !important;
  }

  /* Reducir espaciado en móviles pequeños */
  #servicios-navegacion {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  /* Mejorar legibilidad del texto */
  #service-description p {
    font-size: 0.8125rem !important;
  }

  #service-description ul {
    font-size: 0.8125rem !important;
  }
}

/* Vertical rhythm helpers */
.mb-section-head {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

/* ========================================
   ESTILOS DE GALERÍA DE PROYECTOS
   Consolidados desde proyectos.html
   ======================================== */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.project-item {
  background: #F3F4F6;
  overflow: hidden;
  border: 1px solid #d1d5db;
  transition: all 0.3s ease;
  cursor: pointer;
}

.project-item:hover {
  border-color: var(--color-primary) !important;
}

.project-item img {
  transition: transform 0.3s ease;
}

.project-item:hover img {
  transform: scale(1.02);
}

/* Estilos para filtrado de proyectos */
.project-item.hidden {
  display: none;
}

.filter-btn.active {
  background-color: var(--color-primary) !important;
  color: white !important;
}

/* Estilos de Badges para proyectos */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-vialidades {
  background: #e0f2fe;
  color: #0369a1;
}

.badge-residencial {
  background: #ecfdf5;
  color: #059669;
}

.badge-infraestructura {
  background: #fef2f2;
  color: #dc2626;
}

.badge-industrial {
  background: #fef3c7;
  color: #d97706;
}

/* ========================================
   ESTILOS DE OVERFLOW MÓVIL
   Consolidados desde contacto.html
   ======================================== */
/* Prevent horizontal overflow on mobile (complementa estilos base) */
html {
  max-width: 100vw;
}

body {
  max-width: 100vw;
}

/* Ensure all containers respect viewport width */
* {
  box-sizing: border-box;
}

/* Fix for long text elements */
.break-words {
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

/* Ensure forms don't overflow */
input,
textarea,
select {
  max-width: 100%;
  box-sizing: border-box;
}

/* Mobile-specific adjustments */
@media (max-width: 640px) {

  .container,
  .max-w-7xl,
  .max-w-6xl,
  .max-w-4xl {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  /* Reduce spacing on very small screens */
  .space-y-2>*+*,
  .space-y-3>*+* {
    margin-top: 0.5rem !important;
  }
}

/* ========================================
   ESTILOS DE INDICADORES DE CARRUSEL
   Consolidados desde index.html
   ======================================== */
/* Override: indicadores del carrusel sin sombra ni glow */
.experience-indicator,
.experience-indicator:hover,
.experience-indicator:focus,
.experience-indicator.active,
.experience-indicator::before,
.experience-indicator::after {
  box-shadow: none !important;
  filter: none !important;
  text-shadow: none !important;
}

/* ========================================
   MENSAJE DE CRÉDITO (OCULTO VISUALMENTE)
   Visible solo en el código fuente / inspección
   ======================================== */
.credit-message {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Nota: Para modo CDN de Tailwind no se usan @apply. 
   Utiliza directamente en HTML clases como:
   font-display text-display-1, text-heading-xl, text-heading-lg, text-body, text-body-sm,
   y espaciados py-section md:py-section-lg, pt-section, py-section-sm. */