:root {
  /* Paleta Exacta Fading Perú (Extraída del Logotipo Oficial) */
  --primary: #0A3A84;          /* Azul Real Logotipo Fading */
  --primary-hover: #072B68;
  --primary-dark: #051838;     /* Azul Marino Profundo / Fondo Oscuro */
  --primary-navy: #092F76;
  --primary-light: #0F4E9D;

  /* Color Amarillo / Dorado de Marca */
  --brand-yellow: #FACC15;     /* Amarillo Brillante para Info y Acentos */
  --brand-yellow-hover: #EAB308;
  --brand-amber: #F59E0B;
  --brand-yellow-glow: rgba(250, 204, 21, 0.4);

  /* Color Verde Ecológico / Industrial (Matizado con moderación) */
  --accent-green: #10B981;
  --accent-green-dark: #059669;
  --accent-green-light: #D1FAE5;

  --secondary: #1E293B;
  --text-main: #0F172A;
  --text-muted: #475569;
  --text-light: #CBD5E1;
  --bg-page: #F8FAFC;
  --bg-card: #FFFFFF;
  --border-light: #E2E8F0;
  
  --shadow-sm: 0 2px 5px rgba(10, 58, 132, 0.05);
  --shadow-md: 0 8px 24px rgba(10, 58, 132, 0.08);
  --shadow-lg: 0 16px 40px rgba(5, 24, 56, 0.16);
  --shadow-yellow: 0 4px 20px var(--brand-yellow-glow);
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden; /* Prevenir scroll horizontal en todo el documento */
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-page);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw; /* Nunca exceder el ancho del viewport */
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

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

.container {
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==================== TOP BAR (AMARILLO EN NEGRITA) ==================== */
.topbar {
  background: var(--primary-dark);
  color: #FFFFFF;
  font-size: 0.88rem;
  padding: 10px 0;
  border-bottom: 2px solid rgba(250, 204, 21, 0.3);
}

.topbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800; /* Negrita */
}

.topbar-item i {
  color: var(--brand-yellow); /* Amarillo */
  font-size: 1rem;
}

.topbar-item a, .topbar-item span {
  color: var(--brand-yellow); /* Amarillo */
  font-weight: 800;
  letter-spacing: 0.3px;
  transition: var(--transition);
}

.topbar-item a:hover {
  color: #FFFFFF;
  text-shadow: 0 0 8px var(--brand-yellow);
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(250, 204, 21, 0.15);
  color: var(--brand-yellow);
  font-size: 0.85rem;
  font-weight: 800;
  border: 1px solid rgba(250, 204, 21, 0.3);
  transition: var(--transition);
}

.social-icon:hover {
  background: var(--brand-yellow);
  color: var(--primary-dark);
  transform: translateY(-2px) scale(1.1);
  box-shadow: var(--shadow-yellow);
}

/* ==================== HEADER & NAVBAR CON LOGO DESTACADO ==================== */
.header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(14px);
  z-index: 1000;
  transition: var(--transition);
  box-shadow: 0 4px 25px rgba(10, 58, 132, 0.08);
  border-bottom: 1px solid var(--border-light);
}

.header.scrolled {
  padding: 4px 0;
  box-shadow: 0 10px 30px rgba(5, 24, 56, 0.14);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 110px;
  padding: 6px 0;
}

/* LOGO MÁS GRANDE CON ANIMACIÓN ELEGANTE */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  perspective: 1000px;
}

.brand-logo img {
  height: 100px; /* Logo notablemente más grande y de máxima visibilidad */
  max-height: 105px;
  width: auto;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  transform: translateZ(0);
  filter: drop-shadow(0 4px 12px rgba(10, 58, 132, 0.22));
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.4s ease;
  animation: logoGentlePulse 4s ease-in-out infinite;
}

.brand-logo:hover img {
  transform: scale(1.08) rotate(-1deg);
  filter: drop-shadow(0 8px 20px rgba(10, 58, 132, 0.35)) drop-shadow(0 0 12px rgba(250, 204, 21, 0.4));
}

@keyframes logoGentlePulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.025); }
  100% { transform: scale(1); }
}

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

.nav-link {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--primary-dark);
  position: relative;
  padding: 8px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--brand-amber);
  transition: var(--transition);
  border-radius: 3px;
}

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

/* BOTONES */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 28px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-align: center;
  letter-spacing: 0.3px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  box-shadow: 0 5px 18px rgba(10, 58, 132, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(10, 58, 132, 0.45);
  color: #fff;
}

.btn-accent {
  background: linear-gradient(135deg, var(--brand-yellow) 0%, var(--brand-amber) 100%);
  color: var(--primary-dark);
  box-shadow: 0 4px 18px var(--brand-yellow-glow);
  font-weight: 800;
}

.btn-accent:hover {
  background: linear-gradient(135deg, var(--brand-amber) 0%, var(--brand-yellow) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.55);
  color: var(--primary-dark);
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.8);
}

.btn-outline-white:hover {
  background: #fff;
  color: var(--primary-dark);
  border-color: #fff;
}

/* ==================== NAV CTA DESKTOP ==================== */
.nav-cta-desktop {
  display: inline-flex;
  padding: 11px 22px;
  font-size: 0.9rem;
}

/* ==================== HAMBURGER BUTTON (ANIMADO) ==================== */
.mobile-toggle {
  display: none;
  background: var(--primary);
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1001;
  flex-shrink: 0;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(10, 58, 132, 0.25);
}

.mobile-toggle:hover {
  background: var(--primary-dark);
  transform: scale(1.04);
}

.hamburger-box {
  width: 24px;
  height: 18px;
  display: block;
  position: relative;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
  display: block;
  width: 24px;
  height: 2.5px;
  background: #fff;
  border-radius: 4px;
  position: absolute;
  transition: transform 0.35s cubic-bezier(0.645, 0.045, 0.355, 1.000), opacity 0.2s ease, top 0.3s ease;
}

.hamburger-inner { top: 7px; }
.hamburger-inner::before { content:''; top: -7px; }
.hamburger-inner::after  { content:''; top: 7px;  }

/* Estado X (cuando el menú está abierto) */
.mobile-toggle.is-active .hamburger-inner { transform: rotate(45deg); background: var(--brand-yellow); }
.mobile-toggle.is-active .hamburger-inner::before { top: 0; opacity: 0; }
.mobile-toggle.is-active .hamburger-inner::after  { top: 0; transform: rotate(-90deg); background: var(--brand-yellow); }

/* ==================== DRAWER OVERLAY (FONDO OSCURO) ==================== */
.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: rgba(5, 24, 56, 0.78);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 999998 !important;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.drawer-overlay.active {
  display: block;
  opacity: 1;
}

/* ==================== MOBILE DRAWER (NAV FLOTANTE EXTERNO) ==================== */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: min(340px, 86vw);
  height: 100vh;
  height: 100dvh;
  background: linear-gradient(180deg, #051838 0%, #0A2048 60%, #06142B 100%);
  color: #fff;
  z-index: 999999 !important;
  transform: translateX(-105%);
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 10px 0 50px rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mobile-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: rgba(0, 0, 0, 0.28);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.drawer-brand-wrap {
  display: flex;
  align-items: center;
}

.drawer-logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.drawer-close-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.drawer-close-btn:hover {
  background: var(--brand-amber);
  color: var(--primary-dark);
  border-color: var(--brand-amber);
}

.drawer-body {
  flex-grow: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px 0 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.drawer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.drawer-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 22px;
  color: #E2E8F0;
  font-size: 0.98rem;
  font-weight: 600;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
  text-decoration: none;
}

.drawer-link i {
  width: 20px;
  text-align: center;
  color: var(--brand-amber);
  font-size: 1rem;
}

.drawer-link:hover,
.drawer-link.active {
  background: rgba(250, 204, 21, 0.12);
  border-left-color: var(--brand-yellow);
  color: #fff;
  padding-left: 26px;
}

.drawer-link.active i {
  color: var(--brand-yellow);
}

.drawer-cta-wrap {
  padding: 0 20px;
}

.btn-drawer-quote {
  width: 100%;
  justify-content: center;
  padding: 13px 18px;
  font-size: 0.92rem;
}

.drawer-contacts-section {
  padding: 12px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.drawer-contact-title {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #94A3B8;
  font-weight: 800;
  margin-bottom: 2px;
}

.drawer-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.2s ease;
}

.drawer-contact-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.drawer-contact-item i {
  font-size: 1.2rem;
  width: 22px;
  text-align: center;
}

.drawer-contact-item.wa i { color: #25D366; }
.drawer-contact-item.tel i { color: var(--brand-yellow); }
.drawer-contact-item.mail i { color: #38BDF8; }

.d-label {
  display: block;
  font-size: 0.72rem;
  color: #94A3B8;
  text-transform: uppercase;
  font-weight: 700;
}

.d-val {
  display: block;
  font-size: 0.88rem;
  color: #fff;
  font-weight: 700;
}

.drawer-trust-footer {
  padding: 0 20px;
  margin-top: auto;
}

.drawer-sgs-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(250, 204, 21, 0.08);
  border: 1px solid rgba(250, 204, 21, 0.25);
  padding: 10px 14px;
  border-radius: 10px;
  color: #E2E8F0;
  font-size: 0.78rem;
}

.drawer-sgs-badge i {
  font-size: 1.4rem;
  color: var(--brand-yellow);
}

.drawer-sgs-badge strong {
  color: var(--brand-yellow);
  display: block;
  font-size: 0.84rem;
}

/* ==================== BODY LOCK cuando drawer abierto ==================== */
body.drawer-open {
  overflow: hidden !important;
  touch-action: none;
}


/* ==================== HERO SLIDER ==================== */
.hero-slider-section {
  position: relative;
  width: 100%;
  height: 66vh; /* Slider más compacto para ganar espacio en pantalla */
  min-height: 480px;
  max-height: 590px;
  background: var(--primary-dark);
  overflow: hidden;
}

.slider-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), visibility 1s ease;
  display: flex;
  align-items: center;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 7s ease-out;
}

.slide.active .slide-bg {
  transform: scale(1);
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(5, 24, 56, 0.94) 0%, rgba(10, 58, 132, 0.78) 55%, rgba(5, 24, 56, 0.45) 100%);
}

.slide-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  color: #fff;
  padding: 40px 0;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(250, 204, 21, 0.18);
  border: 1.5px solid var(--brand-yellow);
  color: var(--brand-yellow);
  padding: 7px 18px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 22px;
  backdrop-filter: blur(8px);
}

.slide-title {
  font-size: 2.6rem; /* Proporción equilibrada para el slider compacto */
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 15px;
  letter-spacing: -0.5px;
}

.slide-subtitle {
  font-size: 1.1rem;
  color: #E2E8F0;
  margin-bottom: 25px;
  line-height: 1.5;
  font-weight: 400;
}

.slide-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.slider-arrows {
  position: absolute;
  bottom: 40px;
  right: 50px;
  z-index: 10;
  display: flex;
  gap: 12px;
}

.arrow-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: var(--transition);
}

.arrow-btn:hover {
  background: var(--brand-yellow);
  color: var(--primary-dark);
  border-color: var(--brand-yellow);
  transform: scale(1.08);
}

.slider-dots {
  position: absolute;
  bottom: 40px;
  left: 50px;
  z-index: 10;
  display: flex;
  gap: 8px;
}

.dot {
  width: 32px;
  height: 5px;
  background: rgba(255,255,255,0.3);
  border-radius: 3px;
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background: var(--brand-yellow);
  width: 52px;
}

/* ==================== STATS BAR ==================== */
.stats-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #fff;
  padding: 40px 0;
  position: relative;
  z-index: 20;
  margin-top: -35px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(250, 204, 21, 0.2);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  align-items: center;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 18px;
  border-right: 1px solid rgba(255,255,255,0.12);
}

.stat-card:last-child {
  border-right: none;
}

.stat-icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: rgba(250, 204, 21, 0.18);
  color: var(--brand-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  flex-shrink: 0;
  border: 1px solid rgba(250, 204, 21, 0.3);
}

.stat-number {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--brand-yellow); /* Amarillo de impacto */
  line-height: 1;
}

.stat-label {
  font-size: 0.88rem;
  color: #E2E8F0;
  margin-top: 4px;
  font-weight: 600;
}

/* ==================== SECTION BASICS ==================== */
.section {
  padding: 95px 0;
}

.section-dark {
  background: var(--primary-dark);
  color: #fff;
}

.section-header {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 55px auto;
}

.section-subtitle {
  color: var(--brand-amber);
  font-weight: 800;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  margin-bottom: 10px;
  display: inline-block;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.25;
  margin-bottom: 15px;
}

.section-dark .section-title {
  color: #fff;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
}

.section-dark .section-desc {
  color: var(--text-light);
}

/* ==================== ABOUT SUMMARY ==================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 55px;
  align-items: center;
}

.about-img-box {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

/* ==================== ABOUT SLIDER ==================== */
.about-img-slider {
  position: relative;
  width: 100%;
  height: 490px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.about-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.about-slide.active { opacity: 1; }

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

/* Dots del about-slider */
.about-slider-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}

.about-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
  padding: 0;
}

.about-dot.active {
  background: var(--brand-yellow);
  transform: scale(1.3);
}

/* Compatibilidad con img directo (nosotros.php) */
.about-img-box > img {
  width: 100%;
  height: 490px;
  object-fit: cover;
}


.about-experience-badge {
  position: absolute;
  bottom: 25px;
  right: 25px;
  background: linear-gradient(135deg, var(--brand-yellow) 0%, var(--brand-amber) 100%);
  color: var(--primary-dark);
  padding: 18px 26px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  gap: 14px;
}

.about-experience-badge .years {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
}

.values-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 25px 0;
}

.value-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.value-item i {
  color: var(--brand-amber);
  font-size: 1.2rem;
  margin-top: 3px;
}

/* ==================== SERVICES SECTION ==================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

.service-img-wrapper {
  position: relative;
  height: 220px;
  overflow: hidden;
}

/* ==================== SERVICE IMAGE SLIDER (2 fotos por tarjeta) ==================== */
.service-img-slider {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.svc-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease-in-out;
}

.svc-slide.active { opacity: 1; }

.svc-slide img,
.service-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.service-card:hover .svc-slide.active img,
.service-card:hover .service-img-wrapper img {
  transform: scale(1.06);
}


.service-division-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--primary-dark);
  color: var(--brand-yellow);
  font-weight: 800;
  font-size: 0.8rem;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(250, 204, 21, 0.4);
}

.service-body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-icon-box {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(10, 58, 132, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.service-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 10px;
  line-height: 1.3;
}

.service-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-grow: 1;
}

.service-footer {
  border-top: 1px solid var(--border-light);
  padding-top: 16px;
}

.btn-service-detail {
  color: var(--primary);
  font-weight: 800;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  background: transparent;
  border: none;
}

.btn-service-detail:hover {
  color: var(--brand-amber);
  gap: 10px;
}

/* ==================== TRUST & HOMOLOGATION BANNER ==================== */
.trust-banner {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  border-radius: var(--radius-lg);
  padding: 55px;
  color: #fff;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  box-shadow: var(--shadow-lg);
  border: 2px solid rgba(250, 204, 21, 0.25);
}

.trust-badge-large {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(250, 204, 21, 0.15);
  border: 1px solid var(--brand-yellow);
  color: var(--brand-yellow);
  padding: 6px 18px;
  border-radius: var(--radius-full);
  margin-bottom: 15px;
  font-size: 0.92rem;
  font-weight: 800;
}

.trust-title {
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 15px;
}

.trust-score-card {
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(250, 204, 21, 0.3);
  backdrop-filter: blur(12px);
  padding: 35px;
  border-radius: var(--radius-md);
  text-align: center;
}

.score-number {
  font-size: 3.6rem;
  font-weight: 800;
  color: var(--brand-yellow);
  line-height: 1;
}

.score-desc {
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 5px;
  color: #FFFFFF;
}

/* ==================== PROJECTS TIMELINE ==================== */
.projects-table-wrapper {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.corporate-table {
  width: 100%;
  border-collapse: collapse;
}

.corporate-table th {
  background: var(--primary-dark);
  color: var(--brand-yellow);
  padding: 16px 20px;
  font-size: 0.88rem;
  text-align: left;
  font-weight: 800;
}

.corporate-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.92rem;
}

.corporate-table tr:hover {
  background: #F1F5F9;
}

.client-tag {
  font-weight: 800;
  color: var(--primary);
}

.oc-badge {
  background: #E2E8F0;
  color: var(--primary-dark);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.82rem;
  font-family: monospace;
  font-weight: 700;
}

/* ==================== CONTACT & QUOTE FORM ==================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 50px;
}

.contact-info-card {
  background: var(--primary-dark);
  color: #fff;
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(250, 204, 21, 0.2);
}

.contact-info-item {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
}

.contact-info-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(250, 204, 21, 0.15);
  color: var(--brand-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  border: 1px solid rgba(250, 204, 21, 0.3);
}

.quote-form-card {
  background: var(--bg-card);
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
}

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

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--secondary);
}

.form-label span.req {
  color: #EF4444;
}

.form-control {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-light);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
  background: #FAFAFA;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(10, 58, 132, 0.15);
}

.captcha-box {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #F1F5F9;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  border-left: 4px solid var(--brand-amber);
}

.captcha-question {
  font-weight: 800;
  color: var(--primary-dark);
  font-size: 1.1rem;
}

.btn-refresh-captcha {
  background: transparent;
  border: none;
  color: var(--brand-amber);
  cursor: pointer;
  font-size: 1.2rem;
}

/* ==================== FOOTER ==================== */
.footer {
  background: var(--primary-dark);
  color: var(--text-light);
  padding: 75px 0 25px 0;
  border-top: 3px solid var(--brand-amber);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand img {
  height: 60px;
  margin-bottom: 20px;
}

.footer-title {
  font-size: 1.15rem;
  color: #fff;
  font-weight: 800;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--brand-yellow);
}

.footer-links {
  list-style: none;
}

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

.footer-links a:hover {
  color: var(--brand-yellow);
  padding-left: 6px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 0.88rem;
}

/* ==================== WHATSAPP EN EL LADO IZQUIERDO ==================== */
.whatsapp-float-container {
  position: fixed;
  bottom: 30px;
  left: 30px; /* LADO IZQUIERDO */
  right: auto;
  z-index: 999;
}

.whatsapp-float-btn {
  width: 64px;
  height: 64px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2.3rem;
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.5);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  animation: pulseGreen 2.5s infinite;
}

.whatsapp-float-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.7);
}

@keyframes pulseGreen {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-badge {
  position: absolute;
  top: 0;
  right: 0;
  width: 18px;
  height: 18px;
  background: var(--brand-amber);
  border: 2px solid #fff;
  border-radius: 50%;
}

.whatsapp-popup-card {
  position: absolute;
  bottom: 80px;
  left: 0; /* Popup desplegado hacia la derecha del botón izquierdo */
  right: auto;
  width: 330px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: none;
  animation: fadeIn 0.3s ease;
}

.whatsapp-popup-card.open {
  display: block;
}

.wa-card-header {
  background: #075E54;
  color: #fff;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.wa-card-body {
  padding: 16px;
  font-size: 0.92rem;
  color: var(--text-main);
}

/* ==================== BARRA LATERAL FLOTANTE DE REDES SOCIALES (LADO DERECHO) ==================== */
.social-floating-bar {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 998;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 18px rgba(0,0,0,0.15);
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
  overflow: hidden;
}

.social-bar-item {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.25rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.social-bar-item:hover {
  width: 60px;
  padding-right: 8px;
  transform: translateX(-5px);
}

.social-bar-item.linkedin { background: #0077B5; }
.social-bar-item.facebook { background: #1877F2; }
.social-bar-item.instagram { background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF, #515BD4); }
.social-bar-item.tiktok { background: #000000; }
.social-bar-item.youtube { background: #FF0000; }
.social-bar-item.whatsapp { background: #25D366; }

/* ==================== MODAL ==================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 24, 56, 0.8);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-card {
  background: #fff;
  width: 100%;
  max-width: 680px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  animation: modalScale 0.3s ease;
}

.modal-header {
  background: var(--primary-dark);
  color: var(--brand-yellow);
  padding: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--brand-amber);
}

.modal-body {
  padding: 28px;
  overflow-y: auto;
}

.modal-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
}

@keyframes modalScale {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

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

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust-banner { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .mobile-toggle { display: block; }
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 80%;
    height: calc(100vh - 80px);
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 30px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
  }
  .nav-menu.open { left: 0; }
  .topbar { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .slide-title { font-size: 2.2rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .social-floating-bar { display: none; } /* En móviles se usa el footer y whatsapp */
  .brand-logo img { height: 56px; }
}

/* ==================== 3D MEDALLION & BRAND LOCKUP ==================== */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  transition: var(--transition);
}

.brand-medallion {
  height: 96px;
  width: 96px;
  object-fit: contain;
  border-radius: 50%;
  display: block;
  image-rendering: auto;
  transform: none;
  filter: none;
  transition: transform 0.3s ease;
}

.brand-logo:hover .brand-medallion {
  transform: scale(1.08) rotate(-2deg);
  filter: drop-shadow(0 8px 22px rgba(10, 58, 132, 0.45)) drop-shadow(0 0 14px rgba(250, 204, 21, 0.5));
}

.brand-titles {
  display: flex;
  flex-direction: column;
}

.brand-title-main {
  font-size: 1.85rem;
  font-weight: 900;
  color: #0A3A84;
  line-height: 1;
  letter-spacing: 0.5px;
}

.brand-title-accent {
  color: #F59E0B;
}

.brand-title-sub {
  font-size: 0.72rem;
  font-weight: 800;
  color: #64748B;
  letter-spacing: 1.8px;
  margin-top: 4px;
}

/* ==================== METALLIC SHEEN EFFECT FOR MEDALLION ==================== */
.brand-medallion-box {
  position: relative;
  display: inline-block;
  overflow: hidden;
  border-radius: 50%;
  width: 80px;
  height: 80px;
}

.brand-medallion-box::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.65) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg);
  animation: logoMetallicSheen 6s infinite ease-in-out;
  pointer-events: none;
}

@keyframes logoMetallicSheen {
  0% { left: -150%; }
  20% { left: 200%; }
  100% { left: 200%; }
}

/* ==================== CLIENTS & TRUST CAROUSEL / GRID ==================== */
.clients-grid-showcase {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin-bottom: 45px;
}

.client-logo-card {
  background: #ffffff;
  border: 1.5px solid #E2E8F0;
  border-radius: 14px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  transition: var(--transition);
}

.client-logo-card:hover {
  transform: translateY(-6px);
  border-color: var(--brand-amber);
  box-shadow: 0 10px 25px rgba(10, 58, 132, 0.12);
}

.client-logo-card img {
  height: 48px;
  max-width: 100%;
  object-fit: contain;
  margin-bottom: 10px;
}

/* ==================== INTERACTIVE PROJECTS EXPERIENCE SECTION ==================== */
.projects-experience-container {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 35px;
  box-shadow: var(--shadow-md);
}

.view-switcher-tabs {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 30px;
  border-bottom: 2px solid #F1F5F9;
  padding-bottom: 18px;
}

.category-filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-pill {
  background: #F1F5F9;
  color: #475569;
  border: 1px solid #E2E8F0;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.filter-pill:hover, .filter-pill.active {
  background: #0A3A84;
  color: #FFFFFF;
  border-color: #0A3A84;
}

.view-mode-buttons {
  display: flex;
  gap: 8px;
}

.btn-view-toggle {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  color: #64748B;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-view-toggle:hover, .btn-view-toggle.active {
  background: #0A3A84;
  color: var(--brand-yellow);
  border-color: #0A3A84;
}

/* CARDS VIEW */
.project-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.project-dynamic-card {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.03);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.project-dynamic-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: #0A3A84;
  transition: var(--transition);
}

.project-dynamic-card:hover {
  transform: translateY(-6px);
  border-color: var(--brand-amber);
  box-shadow: 0 12px 30px rgba(10, 58, 132, 0.1);
}

.project-dynamic-card:hover::before {
  background: var(--brand-amber);
  width: 8px;
}

.project-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.project-client-name {
  font-weight: 800;
  font-size: 0.88rem;
  color: #0A3A84;
  display: flex;
  align-items: center;
  gap: 6px;
}

.project-date-badge {
  background: #FEF3C7;
  color: #B45309;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
}

.project-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 8px;
  line-height: 1.35;
}

.project-card-desc {
  font-size: 0.88rem;
  color: #64748B;
  margin-bottom: 18px;
  line-height: 1.55;
  flex-grow: 1;
}

.project-card-footer {
  border-top: 1px solid #F1F5F9;
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* TIMELINE VIEW */
.projects-timeline {
  position: relative;
  padding: 20px 0;
}

.projects-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 24px;
  width: 3px;
  background: linear-gradient(180deg, #0A3A84 0%, #F59E0B 100%);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 30px;
  padding-left: 60px;
}

.timeline-dot {
  position: absolute;
  top: 15px;
  left: 14px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 4px solid #0A3A84;
  box-shadow: 0 0 0 4px rgba(10, 58, 132, 0.15);
}

.timeline-content-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

/* ==================== TEXT JUSTIFICATION ==================== */
p, 
.about-content p, 
.service-desc, 
.project-card-desc, 
.trust-banner p, 
.timeline-content-card p,
.modal-body p {
  text-align: justify;
  text-justify: inter-word;
}

/* ==================== RESPONSIVE: TABLET 1024px ==================== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust-banner { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .project-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .clients-grid-showcase { grid-template-columns: repeat(2, 1fr); }
}

/* ==================== RESPONSIVE: MOBILE 768px ==================== */
@media (max-width: 768px) {
  /* === PREVENCIÓN DE SCROLL HORIZONTAL (SIN CLIPPED CONTAINERS) === */
  .container {
    padding: 0 16px;
    width: 100%;
    max-width: 100%;
  }

  /* === NAVEGACIÓN MÓVIL === */
  .mobile-toggle { 
    display: flex !important; 
  }
  
  .nav-menu { 
    display: none !important; /* Ocultar menú desktop en móvil */
  }

  .nav-cta-desktop { 
    display: none !important; 
  }

  .topbar { 
    display: none; 
  }


  /* === HEADER MÓVIL === */
  .header { padding: 0; }
  .navbar { padding: 10px 16px; height: 72px; }
  .brand-medallion {
    height: 58px !important;
    width: 58px !important;
  }

  /* === HERO SLIDER === */
  .hero-slider-section {
    height: 55vh;
    min-height: 340px;
    max-height: 460px;
  }
  .slide-title { 
    font-size: 1.6rem !important; 
    line-height: 1.25;
  }
  .slide-subtitle {
    font-size: 0.9rem;
    margin-bottom: 18px;
  }
  .slide-content {
    padding: 20px 0;
  }
  .slide-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .slide-buttons .btn {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
    font-size: 0.9rem;
  }
  .badge-tag {
    font-size: 0.75rem;
    padding: 5px 12px;
    margin-bottom: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }
  .slider-arrows { bottom: 16px; right: 16px; }
  .slider-dots { bottom: 16px; left: 16px; }
  .arrow-btn { width: 38px; height: 38px; }

  /* === SECCIONES GENERALES === */
  .section { padding: 55px 0; }
  .section-title { font-size: 1.8rem; }
  .section-header { margin-bottom: 35px; }

  /* === STATS BAR === */
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stats-section {
    margin-top: -20px;
    border-radius: 12px;
    padding: 28px 0;
  }
  .stat-card {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 14px;
    gap: 12px;
  }
  .stat-card:last-child { border-bottom: none; }
  .stat-icon { width: 44px; height: 44px; font-size: 1.3rem; }
  .stat-number { font-size: 1.7rem; }
  .stat-label { font-size: 0.78rem; }

  /* === ABOUT/NOSOTROS === */
  .about-grid { grid-template-columns: 1fr; gap: 30px; }
  .about-img-box img { height: 260px; }

  /* === SERVICIOS === */
  .services-grid { grid-template-columns: 1fr; }

  /* === TRUST / HOMOLOGACIÓN BANNER === */
  .trust-banner {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 30px 20px; /* Reducir padding para que no desborde */
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
  }
  .trust-title { font-size: 1.6rem; }
  .trust-badge-large {
    font-size: 0.8rem;
    padding: 5px 12px;
    white-space: normal;
    word-break: break-word;
  }
  .trust-score-card { padding: 20px; }
  .score-number { font-size: 2.6rem; }

  /* === CLIENTES === */
  .clients-grid-showcase { grid-template-columns: repeat(2, 1fr); gap: 15px; }
  .client-logo-card { padding: 16px; }

  /* === PROYECTOS: VISTA COMPACTA EN MÓVIL === */
  .projects-experience-container {
    padding: 20px 16px;
    border-radius: 12px;
  }
  .view-switcher-tabs {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  /* Ocultar botones de vista timeline y tabla en móvil, solo tarjetas */
  .view-mode-buttons .btn-view-toggle[data-view="timeline"],
  .view-mode-buttons .btn-view-toggle[data-view="table"] {
    display: none;
  }
  /* Forzar vista de 1 columna compacta */
  .project-cards-grid { 
    grid-template-columns: 1fr; 
    gap: 14px;
  }
  .project-dynamic-card {
    padding: 16px 16px 16px 20px;
  }
  .project-card-title { font-size: 1rem; }
  .project-card-desc { 
    font-size: 0.84rem; 
    /* Limitar la descripción a 3 líneas en móvil */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
  }
  /* Ocultar vista timeline y tabla en móvil - solo tarjetas */
  #viewTimeline, #viewTable { display: none !important; }
  #viewCards { display: grid !important; }
  
  /* Filtros compactos */
  .category-filter-pills {
    gap: 6px;
  }
  .filter-pill {
    font-size: 0.78rem;
    padding: 5px 12px;
  }

  /* === TABLA DE PROYECTOS (ocultar en móvil, muy ancha) === */
  .projects-table-wrapper { display: none; }
  .projects-timeline { padding: 12px 0; }
  .timeline-item { padding-left: 46px; margin-bottom: 18px; }
  .projects-timeline::before { left: 18px; }
  .timeline-dot { left: 9px; width: 18px; height: 18px; }

  /* === FORMULARIO DE CONTACTO === */
  .contact-grid { grid-template-columns: 1fr; gap: 25px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-info-card { padding: 25px 20px; }
  .quote-form-card { padding: 25px 20px; }
  .captcha-box { flex-wrap: wrap; gap: 10px; }

  /* === FOOTER === */
  .footer-grid { grid-template-columns: 1fr; gap: 25px; }
  .footer { padding: 45px 0 20px 0; }
  .footer-bottom { 
    flex-direction: column; 
    text-align: center; 
    font-size: 0.8rem;
  }

  /* === WHATSAPP FLOTANTE === */
  .whatsapp-float-container { 
    bottom: 18px; 
    left: 18px; 
  }
  .whatsapp-float-btn { 
    width: 52px; 
    height: 52px; 
    font-size: 1.8rem; 
  }
  .whatsapp-popup-card { 
    width: calc(100vw - 50px); 
    max-width: 300px;
  }

  /* === BARRA SOCIAL (ocultar en móvil) === */
  .social-floating-bar { display: none; }

  /* === MODALES === */
  .modal-overlay { padding: 12px; }
  .modal-body { padding: 18px; }
}

/* ==================== RESPONSIVE: MÓVIL PEQUEÑO 480px ==================== */
@media (max-width: 480px) {
  .slide-title { font-size: 1.35rem !important; }
  .section-title { font-size: 1.55rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .clients-grid-showcase { grid-template-columns: 1fr 1fr; }
  .trust-banner { padding: 22px 14px; }
  .trust-title { font-size: 1.4rem; }

  /* Botones del hero más pequeños */
  .slide-buttons .btn { font-size: 0.85rem; padding: 10px 16px; }

  /* Proyectos: limitar a 2 líneas en pantallas muy pequeñas */
  .project-card-desc { -webkit-line-clamp: 2; }
  .project-card-title { font-size: 0.95rem; }
}

/* ==================== MÓVIL: COLAPSO DE PROYECTOS ==================== */
/* Por defecto, .mobile-hidden-card es visible en desktop */
.mobile-hidden-card { display: flex; }

/* Botón "Ver más" oculto en desktop */
.mobile-show-more-btn { display: none; }

@media (max-width: 768px) {
  /* En móvil, ocultar tarjetas extra */
  .mobile-hidden-card { display: none !important; }
  /* Mostrar botón Ver más en móvil */
  .mobile-show-more-btn {
    display: block;
    margin-top: 18px;
  }
  /* Ocultar label de texto en botones de vista en móvil (solo iconos) */
  .view-btn-label { display: none; }
  .btn-view-toggle { padding: 8px 12px; }
}
