/* ============/* ============================
   VARIABLES & RESET
   ============================ */
:root {
  --blue-dark:   #1a3a8c;
  --blue-main:   #1e52b8;
  --blue-light:  #2d6fd4;
  --blue-pale:   #e8f0fc;
  --white:       #ffffff;
  --gray-light:  #f4f6fb;
  --gray-text:   #5a6475;
  --text-dark:   #0d1c3a;
  --orange:      #e87e2a;
  --yellow:      #f5c400;

  --font-display: 'Montserrat', sans-serif;
  --font-body:    'Lato', sans-serif;

  --radius:    12px;
  --shadow-sm: 0 4px 16px rgba(30, 82, 184, 0.10);
  --shadow-md: 0 8px 32px rgba(30, 82, 184, 0.16);
  --shadow-lg: 0 16px 48px rgba(30, 82, 184, 0.22);
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.7;
}

img { max-width: 100%; display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================
   NAVBAR
   ============================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 20px rgba(30, 82, 184, 0.08);
  transition: var(--transition);
  padding: 0;
}

.navbar.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 72px;
}

.nav-logo {
  flex-shrink: 0;
}

.nav-logo img {
  height: 52px;
  width: auto;
  transition: var(--transition);
}

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
  margin-left: auto;
}

.nav-links a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  color: var(--text-dark);
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--blue-main);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.nav-links a:hover { color: var(--blue-main); }
.nav-links a:hover::after { width: 100%; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--blue-dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================
   HERO – two-column with photo
   ============================ */
.hero {
  display: flex;
  min-height: 100vh;
  overflow: hidden;
  background: var(--white);
}

/* Columna izquierda (texto) */
.hero-left {
  flex: 0 0 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 56px 80px 56px;
  text-align: left;
  background: linear-gradient(145deg, #0d1f5a 0%, #1a3a8c 55%, #1e52b8 100%);
  position: relative;
  z-index: 1;
}

/* Corte diagonal hacia la derecha */
.hero-left::after {
  content: '';
  position: absolute;
  right: -48px;
  top: 0;
  bottom: 0;
  width: 96px;
  background: #1a3a8c;
  clip-path: polygon(0 0, 30% 0, 100% 100%, 0 100%);
  z-index: 2;
}

.hero-left-inner {
  max-width: 520px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Textos adaptados al fondo azul */
.hero-badge {
  color: var(--yellow) !important;
  background: rgba(255,255,255,0.12) !important;
  border-color: rgba(255,255,255,0.2) !important;
}
.hero-badge::before { background: var(--yellow) !important; }
.hero-title { color: var(--white) !important; text-align: left; }
.hero-title span { color: var(--yellow) !important; }
.hero-title span::after { background: var(--yellow); opacity: 0.2; }
.hero-subtitle { color: rgba(255,255,255,0.78) !important; text-align: left; }
.hero-trust {
  background: rgba(255,255,255,0.1) !important;
  border: 1px solid rgba(255,255,255,0.15);
}
.trust-num   { color: var(--white) !important; }
.trust-label { color: rgba(255,255,255,0.65) !important; }
.trust-divider { background: rgba(255,255,255,0.2) !important; }
.btn-hero-outline {
  color: var(--white) !important;
  border-color: rgba(255,255,255,0.4) !important;
}
.btn-hero-outline:hover {
  background: rgba(255,255,255,0.12) !important;
  border-color: var(--white) !important;
}

/* Columna derecha (foto) */
.hero-right {
  flex: 1;
  position: relative;
  overflow: hidden;
}
.hero-right .hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
.hero-right .hero-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(26,58,140,0.45) 0%, transparent 45%);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-main);
  background: var(--blue-pale);
  border: 1.5px solid rgba(30, 82, 184, 0.15);
  padding: 7px 18px;
  border-radius: 50px;
  margin-bottom: 24px;
}

.hero-badge::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--blue-main);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  color: var(--text-dark);
  line-height: 1.12;
  margin-bottom: 22px;
  letter-spacing: -0.03em;
}

.hero-title span {
  color: var(--blue-main);
  position: relative;
}

.hero-title span::after {
  content: '';
  position: absolute;
  left: 0; bottom: 2px;
  width: 100%; height: 6px;
  background: var(--yellow);
  opacity: 0.4;
  border-radius: 3px;
  z-index: -1;
}

.hero-subtitle {
  font-size: 1.08rem;
  color: var(--gray-text);
  line-height: 1.75;
  margin-bottom: 40px;
  max-width: 520px;
  text-align: center;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 52px;
}

.btn-hero-main {
  display: inline-block;
  background: var(--blue-main);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  padding: 15px 36px;
  border-radius: 50px;
  transition: var(--transition);
  box-shadow: 0 6px 20px rgba(30, 82, 184, 0.3);
}

.btn-hero-main:hover {
  background: var(--blue-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(30, 82, 184, 0.38);
}

.btn-hero-outline {
  display: inline-block;
  background: transparent;
  color: var(--blue-main);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  padding: 15px 36px;
  border-radius: 50px;
  border: 2px solid rgba(30, 82, 184, 0.25);
  transition: var(--transition);
}

.btn-hero-outline:hover {
  border-color: var(--blue-main);
  background: var(--blue-pale);
  transform: translateY(-3px);
}

/* Trust bar */
.hero-trust {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 22px 28px;
  background: var(--gray-light);
  border-radius: 16px;
  width: fit-content;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.trust-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--blue-dark);
  line-height: 1;
}

.trust-label {
  font-size: 0.72rem;
  color: var(--gray-text);
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.trust-divider {
  width: 1px;
  height: 36px;
  background: rgba(30, 82, 184, 0.15);
}



/* ============================
   SECTION COMMON
   ============================ */
.section-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-main);
  background: var(--blue-pale);
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.section-tag.light {
  color: var(--yellow);
  background: rgba(255,255,255,0.15);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 12px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--gray-text);
  max-width: 520px;
  margin-bottom: 56px;
}

/* ============================
   SERVICIOS
   ============================ */
.servicios {
  padding: 96px 0;
  background: var(--gray-light);
}

.servicios-header {
  text-align: center;
  margin-bottom: 56px;
}

.servicios-header .section-sub {
  margin: 8px auto 0;
}

.servicios-slider-wrap {
  display: block;
  position: relative;
}

.servicios-slider {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 6px 2px;
}

.servicios-slider::-webkit-scrollbar {
  display: none;
}

.srv-nav-btn {
  position: relative;
  z-index: 5;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 4px;
  background: #c49d57;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.srv-nav-btn:hover {
  transform: translateY(-2px);
  background: #b78b3d;
}

.srv-slide {
  position: relative;
  min-width: 0;
  width: 100%;
  height: 470px;
  border-radius: 0;
  overflow: hidden;
  padding: 24px 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 8px 28px rgba(13, 28, 58, 0.2);
}

.srv-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 20, 40, 0.18) 0%, rgba(10, 20, 40, 0.8) 72%, rgba(10, 20, 40, 0.9) 100%);
  z-index: 1;
  pointer-events: none;
}

.srv-bg-1 { background: linear-gradient(135deg, #d4d9e3 0%, #98a6ba 100%); }
.srv-bg-2 { background: linear-gradient(135deg, #bed8ee 0%, #7da9c6 100%); }
.srv-bg-3 { background: linear-gradient(135deg, #c9d4df 0%, #8197ac 100%); }
.srv-bg-4 { background: linear-gradient(135deg, #ced6df 0%, #8ea2b5 100%); }
.srv-bg-5 { background: linear-gradient(135deg, #bfd2e7 0%, #6e8ead 100%); }

.srv-slide-logo,
.srv-slide-content {
  position: relative;
  z-index: 2;
}

.srv-slide-logo {
  width: 170px;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
}

.srv-slide-content h3 {
  font-family: var(--font-display);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1.2;
  margin-bottom: 10px;
}

.srv-slide-details {
  opacity: 0;
  transform: translateY(10px);
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.35s ease, transform 0.35s ease, max-height 0.35s ease;
}

.srv-slide-details p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.92rem;
  line-height: 1.4;
  margin-bottom: 6px;
}

.srv-slide-details ul {
  margin: 2px 0 0 16px;
  padding: 0;
}

.srv-slide-details li {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.83rem;
  line-height: 1.3;
  margin-bottom: 3px;
}

.srv-slide:hover .srv-slide-details {
  opacity: 1;
  transform: translateY(0);
  max-height: 280px;
}

.servicios-cta {
  margin-top: 40px;
  text-align: center;
}

.galeria {
  padding: 96px 0;
  background: #fff;
}

.galeria-header {
  text-align: center;
  margin-bottom: 56px;
}

.galeria-header .section-sub {
  margin: 8px auto 0;
  max-width: 520px;
}

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.galeria-item {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(23, 45, 72, 0.12);
  background: #f7f8fb;
  position: relative;
  aspect-ratio: 4 / 3;
  min-height: 220px;
}

.galeria-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(26,58,140,0.85) 0%, transparent 100%);
  color: #fff;
  padding: 18px 16px 14px;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.galeria-item:hover .galeria-overlay {
  opacity: 1;
  transform: translateY(0);
}

.galeria-item img {
  width: 100%;
  height: auto;
  flex: 1 1 auto;
  min-height: 0;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.galeria-item:hover img {
  transform: scale(1.03);
}

/* ── Slideshow dentro de galería ── */
.galeria-slideshow {
  position: relative;
  width: 100%;
  height: 100%;
}

.galeria-slideshow .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.galeria-slideshow .slide.active {
  opacity: 1;
}

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

/* Botones prev/next del slideshow */
.galeria-slideshow .slide-prev,
.galeria-slideshow .slide-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(30, 82, 184, 0.75);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  backdrop-filter: blur(4px);
}

.galeria-slideshow .slide-prev { left: 10px; }
.galeria-slideshow .slide-next { right: 10px; }

.galeria-slideshow .slide-prev:hover,
.galeria-slideshow .slide-next:hover {
  background: rgba(26, 58, 140, 0.95);
}

/* Dots de paginación */
.galeria-slideshow .slide-dots {
  position: absolute;
  bottom: 44px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}

.galeria-slideshow .slide-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.galeria-slideshow .slide-dots span.active {
  background: #fff;
  transform: scale(1.3);
}

/* Placeholder cuando no hay imagen */
.galeria-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e8f0fc 0%, #c7d8f5 100%);
  color: var(--blue-main);
  opacity: 0.5;
}

.galeria-placeholder svg {
  width: 48px;
  height: 48px;
}

.srv-card {
  background: var(--white);
  border: 1.5px solid rgba(30, 82, 184, 0.1);
  border-radius: 20px;
  padding: 36px 32px;
  text-align: left;
  transition: var(--transition);
  opacity: 0;
  transform: translateY(28px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.srv-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.srv-card:hover {
  border-color: var(--blue-main);
  box-shadow: var(--shadow-md);
  transform: translateY(-6px);
}

.srv-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.srv-card-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(30, 82, 184, 0.4);
}

.card-icon {
  width: 52px; height: 52px;
  background: var(--blue-pale);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-main);
  transition: var(--transition);
  flex-shrink: 0;
}

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

.srv-card:hover .card-icon {
  background: var(--blue-main);
  color: var(--white);
}

.srv-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-dark);
  line-height: 1.3;
}

.srv-card p {
  font-size: 0.95rem;
  color: var(--gray-text);
  line-height: 1.65;
}

/* Tags de espacios */
.srv-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.srv-tags span {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--blue-main);
  background: var(--blue-pale);
  border: 1px solid rgba(30, 82, 184, 0.15);
  padding: 4px 12px;
  border-radius: 50px;
  letter-spacing: 0.02em;
  transition: var(--transition);
}

.srv-card:hover .srv-tags span {
  background: rgba(30, 82, 184, 0.12);
  border-color: rgba(30, 82, 184, 0.25);
}


/* ============================
   NOSOTROS – diseño nuevo
   ============================ */
.nosotros {
  padding: 0 0 96px;
  background: #f0f4fb;
  position: relative;
}

/* Franja cabecera azul oscura */
.nosotros-header-wrap {
  background: linear-gradient(135deg, #0d1f5a 0%, #1a3a8c 60%, #1e52b8 100%);
  padding: 72px 0 80px;
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.nosotros-header-wrap::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 60px;
  background: #f0f4fb;
  clip-path: ellipse(55% 100% at 50% 100%);
}

.nosotros-header-wrap .section-tag {
  color: var(--yellow);
  background: rgba(255,255,255,0.12);
  margin-bottom: 20px;
}

.nosotros-main-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.9rem, 3.5vw, 3rem) !important;
  color: var(--white) !important;
  line-height: 1.2 !important;
  margin-bottom: 0 !important;
  text-align: center;
}

.nosotros-main-title em {
  font-style: normal;
  color: var(--yellow);
}

/* Grid principal */
.nosotros-main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  padding-top: 64px;
  margin-bottom: 56px;
}

/* Columna texto */
.nosotros-text-col {
  display: flex;
  flex-direction: column;
}

.nosotros-intro-text {
  font-size: 1.1rem;
  color: var(--text-dark);
  line-height: 1.8;
  margin-bottom: 20px;
}

.nosotros-intro-text strong {
  color: var(--blue-main);
  font-weight: 700;
}

.nosotros-body-text {
  font-size: 0.97rem;
  color: var(--gray-text);
  line-height: 1.85;
  margin-bottom: 20px;
}

/* Chips de servicios */
.nosotros-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.nosotros-chips span {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--blue-main);
  background: var(--white);
  border: 1.5px solid rgba(30,82,184,0.2);
  padding: 6px 14px;
  border-radius: 50px;
  transition: var(--transition);
}

.nosotros-chips span:hover {
  background: var(--blue-main);
  color: var(--white);
  border-color: var(--blue-main);
}

/* Cita destacada */
.nosotros-quote {
  position: relative;
  background: var(--white);
  border-left: 4px solid var(--blue-main);
  border-radius: 0 14px 14px 0;
  padding: 20px 24px 20px 28px;
  margin: 0 0 32px;
  font-size: 0.97rem;
  color: var(--text-dark);
  line-height: 1.75;
  box-shadow: 0 4px 20px rgba(30,82,184,0.08);
}

.nosotros-quote svg {
  color: var(--blue-main);
  display: block;
  margin-bottom: 8px;
  opacity: 0.4;
}

.nosotros-quote strong { color: var(--blue-dark); }

.nosotros-btn { align-self: flex-start; }

/* Columna imagen */
.nosotros-img-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Marco de foto */
.nosotros-frame {
  position: relative;
  border-radius: 24px;
  overflow: visible;
}

.nosotros-frame-accent {
  position: absolute;
  top: 16px; left: 16px;
  right: -16px; bottom: -16px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--blue-main), var(--blue-dark));
  z-index: 0;
  opacity: 0.18;
}

.nosotros-photo-new {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 20px 56px rgba(13,28,58,0.2);
  display: block;
}

/* Pill flotante */
.nosotros-pill {
  position: absolute;
  bottom: 20px; left: 20px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  padding: 9px 18px;
  border-radius: 50px;
  box-shadow: 0 8px 24px rgba(13,28,58,0.18);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue-main);
}

.nosotros-pill-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34,197,94,0.25);
  animation: pillPulse 2s ease-in-out infinite;
}

@keyframes pillPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34,197,94,0.25); }
  50%       { box-shadow: 0 0 0 6px rgba(34,197,94,0.1); }
}

/* Mini tarjetas 2x2 */
.nosotros-cards-mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ncm-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--white);
  border: 1.5px solid rgba(30,82,184,0.1);
  border-radius: 14px;
  padding: 16px;
  transition: var(--transition);
}

.ncm-card:hover {
  border-color: var(--blue-main);
  box-shadow: 0 6px 20px rgba(30,82,184,0.1);
  transform: translateY(-3px);
}

.ncm-icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  background: var(--blue-pale);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-main);
  transition: var(--transition);
}

.ncm-icon svg { width: 16px; height: 16px; }

.ncm-card:hover .ncm-icon {
  background: var(--blue-main);
  color: var(--white);
}

.ncm-card > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ncm-card strong {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
}

.ncm-card span {
  font-size: 0.75rem;
  color: var(--gray-text);
  line-height: 1.4;
}

/* Responsive nosotros */
@media (max-width: 900px) {
  .nosotros-main-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 48px;
  }
  .nosotros-img-col { order: -1; }
  .nosotros-photo-new { height: 280px; }
  .nosotros-header-wrap { padding: 56px 0 72px; }
}

@media (max-width: 640px) {
  .nosotros-cards-mini { grid-template-columns: 1fr; }
  .nosotros-photo-new { height: 220px; }
  .nosotros-main-title { font-size: clamp(1.6rem, 5vw, 2.2rem) !important; }
}

/* Stats row */
/* Stats row */
.nosotros-stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0d1f5a 0%, #1e52b8 100%);
  border-radius: 20px;
  padding: 40px 48px;
  margin-bottom: 0;
  gap: 0;
  opacity: 1;
  transform: none;
}

.nosotros-stats-row.visible {
  opacity: 1;
  transform: translateY(0);
}

.nstat {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.nstat-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.8rem;
  color: var(--yellow);
  line-height: 1;
  letter-spacing: -0.02em;
}

.nstat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.nstat-div {
  width: 1px;
  height: 52px;
  background: rgba(255,255,255,0.15);
  flex-shrink: 0;
}

/* Pilares */
.pilares-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 0;
}

.pilar {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 32px;
  border-radius: var(--radius);
  border: 1.5px solid rgba(30, 82, 184, 0.1);
  background: var(--white);
  transition: var(--transition);
  opacity: 1;
  transform: none;
  position: relative;
  overflow: hidden;
}

.pilar::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--blue-main), var(--yellow));
  opacity: 0;
  transition: var(--transition);
}

.pilar.visible {
  opacity: 1;
  transform: translateY(0);
}

.pilar:hover {
  border-color: transparent;
  box-shadow: 0 8px 32px rgba(30, 82, 184, 0.12);
  transform: translateY(-4px);
}

.pilar:hover::before { opacity: 1; }

.pilar-num {
  position: absolute;
  top: 16px;
  right: 20px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 3rem;
  color: rgba(30, 82, 184, 0.06);
  line-height: 1;
  pointer-events: none;
}

.pilar-icon {
  width: 56px; height: 56px;
  min-width: 56px;
  background: var(--blue-pale);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-main);
  transition: var(--transition);
}

.pilar-icon svg { width: 28px; height: 28px; }

.pilar:hover .pilar-icon {
  background: var(--blue-main);
  color: var(--white);
}

.pilar-text h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.pilar-text p {
  font-size: 0.92rem;
  color: var(--gray-text);
  line-height: 1.7;
}

/* Stats bar antigua — oculta, reemplazada por nosotros-stats-row */
.stats-bar { display: none; }


/* ============================
   TRABAJA CON NOSOTROS
   ============================ */
.trabaja {
  padding: 96px 0;
  background: var(--gray-light);
}

.trabaja-inner {
  background: var(--white);
  border-radius: 24px;
  padding: 56px 52px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.trabaja-inner.visible {
  opacity: 1;
  transform: translateY(0);
}

.trabaja-header {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  margin-bottom: 44px;
}

.trabaja-icon {
  width: 64px; height: 64px;
  min-width: 64px;
  background: var(--blue-pale);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-main);
  margin-top: 6px;
}

.trabaja-icon svg { width: 32px; height: 32px; }

.trabaja-sub {
  font-size: 1rem;
  color: var(--gray-text);
  line-height: 1.7;
  max-width: 600px;
}

/* Grid formulario */
.cv-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}

.cv-fields { display: flex; flex-direction: column; gap: 18px; }

/* Drop zone */
.cv-upload-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.drop-zone {
  display: block;
  border: 2px dashed rgba(30, 82, 184, 0.3);
  border-radius: 16px;
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--white);
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drop-zone:hover,
.drop-zone.drag-over {
  border-color: var(--blue-main);
  background: var(--blue-pale);
}

.drop-zone-idle,
.drop-zone-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.drop-icon {
  width: 56px; height: 56px;
  background: var(--blue-pale);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-main);
  margin-bottom: 4px;
}

.drop-icon svg { width: 32px; height: 32px; }

.drop-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-dark);
}

.drop-sub {
  font-size: 0.9rem;
  color: var(--gray-text);
}

.drop-link {
  color: var(--blue-main);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.drop-hint {
  font-size: 0.78rem;
  color: rgba(90,100,117,0.65);
  letter-spacing: 0.03em;
}

/* Success state */
.drop-file-icon {
  width: 52px; height: 52px;
  background: rgba(30, 182, 100, 0.1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1eb664;
  margin-bottom: 6px;
}

.drop-file-icon svg { width: 30px; height: 30px; }

.drop-filename {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-dark);
  word-break: break-all;
  padding: 0 12px;
}

.drop-remove {
  background: none;
  border: 1.5px solid rgba(220, 60, 60, 0.3);
  color: #c0392b;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 6px 16px;
  border-radius: 50px;
  cursor: pointer;
  pointer-events: all;
  transition: var(--transition);
  margin-top: 4px;
}

.drop-remove:hover {
  background: rgba(220,60,60,0.07);
  border-color: #c0392b;
}

.btn-cv-send {
  width: 100%;
  text-align: center;
  padding: 16px;
  border-radius: 12px;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
}

.cv-success {
  display: none;
  padding: 14px 18px;
  background: rgba(30, 182, 100, 0.1);
  border-radius: 10px;
  color: #1a7a46;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: center;
}

.cv-success.show { display: block; }

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

.cta-banner h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--blue-dark);
  margin-bottom: 12px;
}

.cta-banner p {
  color: var(--gray-text);
  font-size: 1.05rem;
  margin-bottom: 36px;
}

.btn-white {
  display: inline-block;
  background: var(--blue-main);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 16px 40px;
  border-radius: 50px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.btn-white:hover {
  background: var(--blue-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* ============================
   CONTACTO
   ============================ */
.servicio-contacto {
  padding: 96px 0;
  background: #f8f9fd;
}

.servicio-contacto .servicio-contacto-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.servicio-contacto .section-sub {
  margin-bottom: 0;
}

.contacto {
  padding: 96px 0;
  background: var(--gray-light);
}

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contacto-info h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--text-dark);
  margin: 12px 0 16px;
}

.contacto-info > p {
  color: var(--gray-text);
  font-size: 1rem;
  margin-bottom: 36px;
  line-height: 1.7;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.info-icon {
  width: 44px; height: 44px;
  background: var(--blue-pale);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-main);
  flex-shrink: 0;
}

.info-icon svg { width: 22px; height: 22px; }

.info-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.info-item p {
  font-size: 0.97rem;
  color: var(--gray-text);
  margin: 0;
}

/* Form */
.contacto-form {
  background: var(--white);
  border-radius: 20px;
  padding: 48px 40px;
  box-shadow: var(--shadow-md);
}

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

.form-group label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid rgba(30, 82, 184, 0.15);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.97rem;
  color: var(--text-dark);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--blue-main);
  box-shadow: 0 0 0 3px rgba(30, 82, 184, 0.1);
}

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

.btn-primary.full-width {
  width: 100%;
  text-align: center;
  padding: 16px;
  background: var(--blue-main);
  color: var(--white);
  border-radius: 10px;
  font-size: 0.95rem;
}

.btn-primary.full-width:hover {
  background: var(--blue-dark);
  color: var(--white);
}

.form-success {
  display: none;
  margin-top: 16px;
  padding: 14px 18px;
  background: rgba(30, 82, 184, 0.08);
  border-radius: 10px;
  color: var(--blue-dark);
  font-size: 0.92rem;
  font-weight: 600;
  text-align: center;
}

.form-success.show { display: block; }


/* ============================
   FOOTER
   ============================ */
.footer {
  background: #080f24;
  position: relative;
}

/* Línea superior decorativa */
.footer::before {
  content: '';
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-dark), var(--blue-main), var(--yellow));
}

/* Zona principal del footer */
.footer-top {
  padding: 72px 0 56px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 48px;
  align-items: start;
}

/* Columna marca */
.footer-brand {}

.footer-logo {
  height: 52px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  margin-bottom: 20px;
  display: block;
}

.footer-desc {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.75;
  margin-bottom: 24px;
  max-width: 280px;
}

/* Redes sociales */
.footer-social {
  display: flex;
  gap: 10px;
}

.fsoc-btn {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.55);
  transition: var(--transition);
}

.fsoc-btn svg { width: 16px; height: 16px; }

.fsoc-btn:hover {
  background: var(--blue-main);
  border-color: var(--blue-main);
  color: var(--white);
  transform: translateY(-3px);
}

/* Títulos de columna */
.footer-heading {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 22px;
  position: relative;
  padding-bottom: 12px;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 28px; height: 2px;
  background: var(--yellow);
  border-radius: 2px;
}

/* Listas de navegación */
.footer-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-list a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-list a::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--blue-main);
  opacity: 0;
  flex-shrink: 0;
  transition: var(--transition);
}

.footer-list a:hover {
  color: var(--white);
  padding-left: 4px;
}

.footer-list a:hover::before { opacity: 1; }

/* Lista de contacto */
.footer-contact-list {
  list-style: none;
  padding: 0; margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.87rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
}

.footer-contact-list a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-contact-list a:hover {
  color: var(--yellow);
}

.fci {
  width: 34px; height: 34px;
  flex-shrink: 0;
  background: rgba(30,82,184,0.25);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-light);
}

.fci svg { width: 14px; height: 14px; }

/* Botón CTA footer */
.footer-cta-btn {
  display: inline-block;
  background: var(--blue-main);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  padding: 12px 24px;
  border-radius: 50px;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(30,82,184,0.35);
}

.footer-cta-btn:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(30,82,184,0.45);
}

/* Barra inferior */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 22px 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.3);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.3);
  transition: var(--transition);
}

.footer-legal a:hover { color: var(--yellow); }

/* Responsive footer */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-desc { max-width: 100%; }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-top { padding: 48px 0 40px; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-legal { flex-wrap: wrap; gap: 16px; }
}



/* ============================
   ANIMATIONS
   ============================ */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  animation: fadeUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.5s; }

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

.fade-left {
  opacity: 0;
  transform: translateX(-36px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-right {
  opacity: 0;
  transform: translateX(36px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-left.visible,
.fade-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 900px) {
  .nosotros-grid,
  .contacto-grid { grid-template-columns: 1fr; gap: 48px; }
  .pilares-grid  { grid-template-columns: 1fr; }
  .servicios-grid { grid-template-columns: 1fr; }
  .servicios-slider { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .galeria-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .srv-slide { height: 420px; }
  .srv-slide-content h3 { font-size: 1.45rem; }
  .srv-slide-details {
    opacity: 1;
    transform: none;
    max-height: 280px;
  }
  .stats-bar { flex-direction: column; gap: 28px; padding: 36px 24px; }
  .stats-bar-sep { width: 60px; height: 1px; }
  .nosotros-stats-row { flex-direction: column; gap: 28px; padding: 36px 24px; }
  .nstat-div { width: 60px; height: 1px; }
  .cv-form-grid { grid-template-columns: 1fr; }
  .trabaja-inner { padding: 36px 24px; }
  .trabaja-header { flex-direction: column; gap: 16px; }

  /* Hero responsive */
  .hero { flex-direction: column; min-height: auto; }
  .hero-left {
    flex: none;
    justify-content: center;
    padding: 100px 32px 56px;
    text-align: center;
  }
  .hero-left::after { display: none; }
  .hero-left-inner { align-items: center; }
  .hero-title, .hero-subtitle { text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-right { height: 300px; flex: none; }
}

@media (max-width: 640px) {
  .servicios-slider { grid-template-columns: 1fr; gap: 14px; }
  .srv-slide { width: 100%; }

  .nav-links {
    display: none;
    position: fixed;
    top: 72px; left: 0; right: 0; bottom: 0;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.4rem; color: var(--text-dark) !important; }

  .hamburger { display: flex; z-index: 1001; }

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

  .hero-right { height: 220px; }
  .hero-left { padding: 80px 20px 48px; }
  .hero-trust { flex-direction: column; gap: 16px; width: 100%; }
  .trust-divider { width: 60px; height: 1px; }
  .nosotros-stats { grid-template-columns: 1fr 1fr; }
  .contacto-form { padding: 32px 24px; }
  .cards-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .btn-hero-main, .btn-hero-outline { text-align: center; }
}
