/* =============================================
   GPSC · Grupo Procourval Servicios Corporativos
   Hoja de estilos principal
   ============================================= */

/* --- Variables corporativas --- */
:root {
  --blue-dark:    #0d2060;
  --blue-main:    #1a3a9f;
  --blue-mid:     #1e5cb3;
  --blue-light:   #5ba3d9;
  --blue-pale:    #ddeaf8;
  --white:        #ffffff;
  --grey-light:   #f4f7fc;
  --grey-mid:     #e8eef7;
  --grey-text:    #5a6a85;
  --dark-text:    #0d1f4e;
  --shadow:       0 4px 24px rgba(13, 32, 96, 0.10);
  --shadow-hover: 0 12px 40px rgba(13, 32, 96, 0.20);
  --radius:       12px;
  --transition:   0.3s ease;
  --max-width:    1200px;
}

/* --- Reset base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; font-size: 16px; }
body  { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; color: var(--dark-text); background: var(--white); line-height: 1.65; overflow-x: hidden; }
img   { max-width: 100%; height: auto; display: block; }
a     { text-decoration: none; color: inherit; }
ul    { list-style: none; }

/* --- Utilidades --- */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-tag {
  display: inline-block;
  background: var(--blue-pale);
  color: var(--blue-main);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .34rem 1rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--blue-dark);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--grey-text);
  max-width: 640px;
  line-height: 1.7;
}

.section-header        { margin-bottom: 3.5rem; }
.section-header.center { text-align: center; }
.section-header.center .section-subtitle { margin: 0 auto; }

/* Botones */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: var(--blue-main);
  color: var(--white);
  padding: .9rem 2.2rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: .95rem;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 20px rgba(26, 58, 159, .35);
}
.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(26, 58, 159, .5);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  border: 2px solid rgba(255,255,255,.65);
  color: var(--white);
  padding: .9rem 2.2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: .95rem;
  transition: all var(--transition);
  backdrop-filter: blur(4px);
}
.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,.12);
  transform: translateY(-2px);
}

/* =============================================
   NAVEGACIÓN
   ============================================= */
#navbar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
  padding: 1rem 0;
}

#navbar.scrolled {
  background: rgba(255,255,255,.97);
  box-shadow: var(--shadow);
  padding: .7rem 0;
}

#navbar .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo en navbar */
.nav-logo {
  display: flex;
  align-items: center;
  padding: 4px 0;
  border-radius: 0;
  transition: opacity var(--transition);
}
.nav-logo img {
  height: 62px;
  width: auto;
  transition: height var(--transition), filter var(--transition);
  filter: drop-shadow(0 2px 12px rgba(0,0,0,.55)) brightness(1.15) drop-shadow(0 0 20px rgba(255,255,255,.4));
}
#navbar.scrolled .nav-logo img {
  height: 50px;
  filter: none;
}

/* Menú */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-menu a {
  font-size: .88rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: .02em;
  position: relative;
  transition: color var(--transition);
}
#navbar.scrolled .nav-menu a { color: var(--blue-dark); }
.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--blue-light);
  transition: width var(--transition);
}
.nav-menu a:hover::after,
.nav-menu a.active::after { width: 100%; }

.btn-nav {
  background: var(--blue-main) !important;
  color: var(--white) !important;
  padding: .55rem 1.5rem;
  border-radius: 7px;
  font-size: .86rem !important;
  transition: background var(--transition), transform var(--transition) !important;
  border: none !important;
}
.btn-nav:hover { background: var(--blue-dark) !important; transform: translateY(-1px); }
.btn-nav::after { display: none !important; }

/* Hamburguesa */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: rgba(255,255,255,.15);
  border-radius: 7px;
  border: 1px solid rgba(255,255,255,.25);
  padding: 8px 10px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}
#navbar.scrolled .nav-toggle { background: var(--grey-light); border-color: var(--grey-mid); }
#navbar.scrolled .nav-toggle span { background: var(--blue-dark); }
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* =============================================
   HERO
   ============================================= */
#hero {
  min-height: 100vh;
  background: url('assets/img/fondo.jpg') center center / cover no-repeat;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 24, 80, 0.58) 0%,
    rgba(13, 40, 110, 0.44) 55%,
    rgba(30, 92, 179, 0.25) 100%
  );
}

/* Partículas flotantes */
.hero-particles { position: absolute; inset: 0; pointer-events: none; }
.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(91, 163, 217, .18);
  animation: float linear infinite;
}
.p1 { width:220px; height:220px; top:10%; left:5%;  animation-duration:18s; animation-delay:0s; }
.p2 { width:140px; height:140px; top:60%; left:80%; animation-duration:14s; animation-delay:-5s; }
.p3 { width: 80px; height: 80px; top:30%; left:70%; animation-duration:20s; animation-delay:-9s; }
.p4 { width:180px; height:180px; top:75%; left:20%; animation-duration:16s; animation-delay:-3s; }
.p5 { width: 60px; height: 60px; top:15%; left:50%; animation-duration:22s; animation-delay:-7s; }

@keyframes float {
  0%   { transform: translateY(0)  rotate(0deg);   opacity: .6; }
  50%  { transform: translateY(-40px) rotate(180deg); opacity: .3; }
  100% { transform: translateY(0)  rotate(360deg); opacity: .6; }
}

/* Hero container */
.hero-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 90%;
  max-width: var(--max-width);
  padding-top: 100px;
  padding-bottom: 160px;
}

/* Logo hero grande */
.hero-logo-wrap {
  margin-bottom: 2.8rem;
  display: inline-flex;
  align-items: center;
  animation: fadeDown .9s ease both;
}
.hero-logo-img {
  height: 110px;
  width: auto;
  filter:
    brightness(0) invert(1)
    drop-shadow(0 4px 24px rgba(91,163,217,.5))
    drop-shadow(0 0 40px rgba(255,255,255,.15));
}

/* Contenido hero */
.hero-content {
  max-width: 680px;
  animation: fadeUp 1s ease .2s both;
}

.hero-eyebrow {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 1.2rem;
  opacity: .9;
  text-shadow: 0 1px 8px rgba(0,0,0,.5);
  display: flex;
  align-items: center;
  gap: .8rem;
}
.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 2px;
  background: var(--blue-light);
  border-radius: 2px;
  flex-shrink: 0;
}

.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.08;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.hero-title-accent {
  color: var(--blue-light);
  position: relative;
}
.hero-title-accent::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 0; right: 0;
  height: 3px;
  background: var(--blue-light);
  opacity: .5;
  border-radius: 2px;
}

.hero-desc {
  font-size: 1.12rem;
  color: rgba(255,255,255,.88);
  margin-bottom: 2.8rem;
  max-width: 560px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

/* Stats strip */
.hero-stats {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(8, 18, 60, 0.72);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255,255,255,.1);
  z-index: 2;
}
.hero-stats .container {
  display: flex;
  justify-content: center;
}
.stat-item {
  flex: 1;
  max-width: 230px;
  text-align: center;
  padding: 1.6rem 1rem;
  border-right: 1px solid rgba(255,255,255,.1);
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}
.stat-label {
  font-size: .76rem;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-top: .4rem;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 110px;
  right: 5%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.scroll-indicator span {
  display: block;
  width: 2px;
  height: 60px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.6));
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,100% { opacity: .3; transform: scaleY(1); }
  50%      { opacity: 1;  transform: scaleY(1.2); }
}

/* =============================================
   QUIÉNES SOMOS
   ============================================= */
#quienes-somos {
  padding: 110px 0;
  background: var(--white);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-img-main {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(13, 32, 96, .16);
  object-fit: cover;
  aspect-ratio: 4/3;
  transition: transform .5s ease;
}
.about-img-main:hover { transform: scale(1.02); }

.about-visual { position: relative; }
.about-badge {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: var(--blue-dark);
  color: var(--white);
  border-radius: 14px;
  padding: 1.2rem 1.8rem;
  box-shadow: 0 8px 30px rgba(13, 32, 96, .3);
  text-align: center;
}
.about-badge .badge-num { font-size: 2.2rem; font-weight: 900; color: var(--blue-light); line-height: 1; }
.about-badge .badge-text { font-size: .76rem; color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: .08em; margin-top: .3rem; }

.about-text .section-subtitle { margin-bottom: 2rem; }

.about-pillars {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.2rem;
}
.pillar {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  padding: 1.1rem 1.3rem;
  background: var(--grey-light);
  border-radius: var(--radius);
  border-left: 4px solid var(--blue-main);
  transition: box-shadow var(--transition), transform var(--transition);
}
.pillar:hover { box-shadow: var(--shadow); transform: translateX(4px); }
.pillar-num {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--blue-main);
  opacity: .35;
  line-height: 1;
  min-width: 34px;
  padding-top: 2px;
}
.pillar-text strong { display: block; font-size: .92rem; font-weight: 700; color: var(--blue-dark); margin-bottom: .2rem; }
.pillar-text p { font-size: .84rem; color: var(--grey-text); }

/* =============================================
   SERVICIOS
   ============================================= */
#servicios {
  padding: 110px 0;
  background: var(--grey-light);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: var(--white);
  border-radius: 16px;
  padding: 2.2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--grey-mid);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
  animation-delay: var(--delay, 0s);
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--blue-main), var(--blue-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 58px; height: 58px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.4rem;
  background: linear-gradient(135deg, var(--blue-main), var(--blue-mid));
  color: var(--white);
  box-shadow: 0 6px 20px rgba(26, 58, 159, .25);
  transition: transform var(--transition);
}
.service-card:hover .service-icon { transform: scale(1.08) rotate(-3deg); }

.service-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--blue-dark); margin-bottom: .7rem; }
.service-card p  { font-size: .87rem; color: var(--grey-text); line-height: 1.65; }
.service-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-top: 1.3rem;
  font-size: .84rem;
  font-weight: 700;
  color: var(--blue-main);
  transition: gap var(--transition), color var(--transition);
}
.service-link:hover { gap: .8rem; color: var(--blue-dark); }

/* =============================================
   CARRUSEL
   ============================================= */
.carousel-section {
  position: relative;
  height: 80vh;
  min-height: 520px;
  overflow: hidden;
  background: var(--blue-dark);
}

.carousel-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity .9s ease;
}
.carousel-slide.active { opacity: 1; z-index: 1; }
.carousel-slide.prev   { z-index: 0; }

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 6s ease;
}
.carousel-slide.active img { transform: scale(1.0); }

/* Overlay gradiente en slides */
.carousel-slide::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    to right,
    rgba(10, 24, 80, 0.50) 0%,
    rgba(10, 24, 80, 0.15) 60%,
    transparent 100%
  );
  z-index: 1;
}

/* Caption */
.slide-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 2;
  padding: 4rem 6% 7rem;
  background: linear-gradient(transparent, rgba(8, 18, 60, 0.72));
  transform: translateY(10px);
  opacity: 0;
  transition: transform .7s ease .3s, opacity .7s ease .3s;
}
.carousel-slide.active .slide-caption {
  transform: translateY(0);
  opacity: 1;
}
.slide-tag {
  display: inline-block;
  background: var(--blue-main);
  color: var(--white);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .3rem .9rem;
  border-radius: 20px;
  margin-bottom: .8rem;
}
.slide-caption h3 {
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: .5rem;
  text-shadow: 0 2px 14px rgba(0,0,0,.4);
}
.slide-caption p {
  font-size: .95rem;
  color: rgba(255,255,255,.82);
  max-width: 520px;
}

/* Flechas */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition);
  border: 1px solid rgba(255,255,255,.25);
}
.carousel-btn:hover { background: rgba(255,255,255,.35); transform: translateY(-50%) scale(1.08); }
.carousel-prev { left: 28px; }
.carousel-next { right: 28px; }

/* Dots */
.carousel-dots {
  position: absolute;
  bottom: 2.5rem;
  right: 6%;
  z-index: 10;
  display: flex;
  gap: 8px;
}
.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
}
.dot.active {
  background: var(--white);
  width: 28px;
  border-radius: 5px;
}

/* Barra de progreso */
.carousel-progress {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(255,255,255,.15);
  z-index: 10;
}
.carousel-progress-bar {
  height: 100%;
  background: var(--blue-light);
  width: 0%;
  transition: width linear;
}

/* =============================================
   METODOLOGÍA
   ============================================= */
#metodologia {
  padding: 110px 0;
  background: var(--white);
}
.method-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
}
.method-intro { position: sticky; top: 120px; }

.steps-track {
  position: relative;
  display: flex;
  flex-direction: column;
}
.steps-track::before {
  content: '';
  position: absolute;
  left: 26px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--blue-main), var(--blue-light));
}
.step-item {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  padding: 1.6rem 0;
  position: relative;
}
.step-num {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--blue-main);
  color: var(--white);
  font-size: 1rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative; z-index: 1;
  box-shadow: 0 4px 18px rgba(26, 58, 159, .35);
  transition: transform var(--transition), box-shadow var(--transition);
}
.step-item:hover .step-num {
  transform: scale(1.12);
  box-shadow: 0 8px 28px rgba(26, 58, 159, .5);
}
.step-body { flex: 1; padding-top: .9rem; }
.step-body h3 { font-size: 1.05rem; font-weight: 700; color: var(--blue-dark); margin-bottom: .4rem; }
.step-body p  { font-size: .88rem; color: var(--grey-text); line-height: 1.65; }

/* =============================================
   POR QUÉ ELEGIRNOS
   ============================================= */
#por-que {
  padding: 110px 0;
  background: linear-gradient(140deg, var(--blue-dark) 0%, #0e2878 60%, #1a3a9f 100%);
  position: relative;
  overflow: hidden;
}
#por-que::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(91,163,217,.12) 0%, transparent 70%);
  border-radius: 50%;
  animation: breathe 8s ease-in-out infinite;
}
#por-que::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(91,163,217,.08) 0%, transparent 70%);
  border-radius: 50%;
  animation: breathe 10s ease-in-out infinite reverse;
}
@keyframes breathe {
  0%,100% { transform: scale(1); }
  50%      { transform: scale(1.15); }
}

#por-que .section-title    { color: var(--white); }
#por-que .section-subtitle { color: rgba(255,255,255,.72); }

.reasons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.reason-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: background var(--transition), transform var(--transition), border-color var(--transition);
  animation-delay: var(--delay, 0s);
}
.reason-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(91,163,217,.1), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.reason-card:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.2);
  transform: translateY(-5px);
}
.reason-card:hover::before { opacity: 1; }

.reason-line {
  width: 36px; height: 3px;
  background: var(--blue-light);
  border-radius: 2px;
  margin-bottom: 1.3rem;
  transition: width var(--transition);
}
.reason-card:hover .reason-line { width: 56px; }

.reason-card h3 { font-size: 1.02rem; font-weight: 700; color: var(--white); margin-bottom: .6rem; }
.reason-card p  { font-size: .87rem; color: rgba(255,255,255,.7); line-height: 1.65; }

/* =============================================
   SECTORES
   ============================================= */
#sectores {
  padding: 110px 0;
  background: var(--grey-light);
}
.sectors-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.sector-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .7rem;
}
.sector-item {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .9rem 1.1rem;
  background: var(--white);
  border-radius: 9px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--blue-dark);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  border-left: 3px solid transparent;
}
.sector-item:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-hover);
  border-left-color: var(--blue-main);
}
.sector-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--blue-main);
  flex-shrink: 0;
}

/* =============================================
   CONTACTO
   ============================================= */
#contacto {
  padding: 110px 0;
  background: var(--white);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 4rem;
  align-items: start;
}
.contact-info h3 { font-size: 1.5rem; font-weight: 700; color: var(--blue-dark); margin-bottom: 1rem; }
.contact-info > p { color: var(--grey-text); margin-bottom: 2.2rem; font-size: .95rem; line-height: 1.7; }

.contact-detail { display: flex; flex-direction: column; gap: 1.3rem; }
.detail-item { display: flex; align-items: flex-start; gap: 1rem; }
.detail-icon {
  width: 46px; height: 46px;
  border-radius: 10px;
  background: var(--blue-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--blue-main);
  transition: background var(--transition);
}
.detail-item:hover .detail-icon { background: var(--blue-main); color: var(--white); }
.detail-item h4 { font-size: .8rem; font-weight: 700; color: var(--blue-dark); text-transform: uppercase; letter-spacing: .07em; margin-bottom: .2rem; }
.detail-item p, .detail-item a { font-size: .92rem; color: var(--grey-text); transition: color var(--transition); }
.detail-item a:hover { color: var(--blue-main); }

/* Formulario */
.contact-form {
  background: var(--grey-light);
  border-radius: 20px;
  padding: 2.8rem;
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.3rem; }
.form-group label { font-size: .8rem; font-weight: 700; color: var(--blue-dark); letter-spacing: .05em; }
.form-group input,
.form-group select,
.form-group textarea {
  padding: .85rem 1.1rem;
  border: 1.5px solid var(--grey-mid);
  border-radius: 9px;
  font-size: .9rem;
  font-family: inherit;
  color: var(--dark-text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue-main);
  box-shadow: 0 0 0 3px rgba(26, 58, 159, .1);
}
.form-group textarea { resize: vertical; min-height: 130px; }

.form-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.form-legal { font-size: .76rem; color: var(--grey-text); }
.form-legal a { color: var(--blue-main); }

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: var(--blue-main);
  color: var(--white);
  border: none;
  padding: .95rem 2.2rem;
  border-radius: 9px;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  font-family: inherit;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 18px rgba(26, 58, 159, .3);
}
.btn-submit:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(26, 58, 159, .4);
}
.btn-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* Éxito formulario */
.form-success {
  display: none;
  text-align: center;
  padding: 3rem 2rem;
}
.form-success.visible { display: block; }
.success-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--blue-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.4rem;
  color: var(--blue-main);
}
.form-success h4 { font-size: 1.3rem; color: var(--blue-dark); margin-bottom: .5rem; }
.form-success p  { color: var(--grey-text); font-size: .92rem; }

/* =============================================
   FOOTER
   ============================================= */
#footer {
  background: var(--blue-dark);
  color: rgba(255,255,255,.72);
  padding: 70px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 3.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand img {
  height: 46px;
  margin-bottom: 1.1rem;
  filter: brightness(0) invert(1);
}
.footer-brand p { font-size: .87rem; line-height: 1.7; max-width: 280px; margin-bottom: 1.2rem; }
.footer-contact-quick {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.footer-contact-quick a {
  font-size: .87rem;
  color: var(--blue-light);
  transition: color var(--transition);
}
.footer-contact-quick a:hover { color: var(--white); }

.footer-col h4 {
  font-size: .8rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 1.3rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: .75rem; }
.footer-col ul li a { font-size: .86rem; color: rgba(255,255,255,.6); transition: color var(--transition), padding-left var(--transition); }
.footer-col ul li a:hover { color: var(--blue-light); padding-left: 4px; }

.footer-bottom {
  padding: 1.6rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .6rem;
  font-size: .78rem;
  color: rgba(255,255,255,.4);
}
.footer-legal-links { display: flex; gap: 1.5rem; }
.footer-legal-links a { color: rgba(255,255,255,.4); transition: color var(--transition); }
.footer-legal-links a:hover { color: var(--white); }

/* =============================================
   BANNER DE COOKIES
   ============================================= */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  width: min(760px, 94vw);
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(0,0,0,.22), 0 0 0 1px rgba(13,32,96,.08);
  z-index: 9999;
  transition: transform .5s cubic-bezier(.34,1.56,.64,1);
  overflow: hidden;
}
.cookie-banner.visible {
  transform: translateX(-50%) translateY(0);
}
.cookie-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 9998;
  backdrop-filter: blur(3px);
}
.cookie-overlay.visible { display: block; }

.cookie-inner { padding: 1.8rem 2rem; }

.cookie-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.cookie-logo {
  display: flex;
  align-items: center;
  gap: .7rem;
}
.cookie-logo img { height: 32px; width: auto; }
.cookie-logo span { font-size: .95rem; font-weight: 800; color: var(--blue-dark); }
.cookie-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--grey-light);
  color: var(--grey-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.cookie-close:hover { background: var(--grey-mid); }

.cookie-intro { font-size: .83rem; color: var(--grey-text); line-height: 1.6; margin-bottom: 1.2rem; }

.cookie-options { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1.4rem; }
.cookie-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem 1rem;
  background: var(--grey-light);
  border-radius: 10px;
  cursor: pointer;
  transition: background var(--transition);
}
.cookie-toggle:hover { background: var(--grey-mid); }
.toggle-info { flex: 1; }
.toggle-info strong { font-size: .85rem; color: var(--blue-dark); display: block; margin-bottom: .15rem; }
.toggle-info span   { font-size: .76rem; color: var(--grey-text); }

.toggle-switch { position: relative; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.slider {
  display: block;
  width: 44px; height: 24px;
  background: #cdd5e0;
  border-radius: 12px;
  cursor: pointer;
  transition: background var(--transition);
  position: relative;
}
.slider::before {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  left: 3px; top: 3px;
  background: var(--white);
  border-radius: 50%;
  transition: transform var(--transition);
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.toggle-switch input:checked + .slider { background: var(--blue-main); }
.toggle-switch input:checked + .slider::before { transform: translateX(20px); }
.toggle-switch.disabled { opacity: .55; cursor: not-allowed; }
.toggle-switch.disabled .slider { background: var(--blue-main); cursor: not-allowed; }
.toggle-switch.disabled .slider::before { transform: translateX(20px); }

.cookie-actions {
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.btn-cookie-reject,
.btn-cookie-select {
  flex: 1;
  padding: .65rem 1rem;
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all var(--transition);
}
.btn-cookie-reject {
  border: 1.5px solid var(--grey-mid);
  background: var(--white);
  color: var(--grey-text);
}
.btn-cookie-reject:hover { border-color: var(--blue-light); color: var(--blue-main); }
.btn-cookie-select {
  border: 1.5px solid var(--blue-main);
  background: var(--white);
  color: var(--blue-main);
}
.btn-cookie-select:hover { background: var(--blue-pale); }
.btn-cookie-accept {
  flex: 1.5;
  padding: .65rem 1.2rem;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: var(--blue-main);
  color: var(--white);
  transition: background var(--transition), transform var(--transition);
}
.btn-cookie-accept:hover { background: var(--blue-dark); transform: translateY(-1px); }

.cookie-legal {
  font-size: .72rem;
  color: #aab4c8;
  line-height: 1.5;
  border-top: 1px solid var(--grey-mid);
  padding-top: .9rem;
}
.cookie-legal a { color: var(--blue-mid); transition: color var(--transition); }
.cookie-legal a:hover { color: var(--blue-main); }

/* =============================================
   ANIMACIONES
   ============================================= */
@keyframes fadeUp   { from { opacity:0; transform:translateY(30px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeDown { from { opacity:0; transform:translateY(-20px); } to { opacity:1; transform:translateY(0); } }

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .75s ease, transform .75s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger para grids */
.services-grid .service-card.reveal:nth-child(1) { transition-delay: 0s; }
.services-grid .service-card.reveal:nth-child(2) { transition-delay: .1s; }
.services-grid .service-card.reveal:nth-child(3) { transition-delay: .2s; }
.services-grid .service-card.reveal:nth-child(4) { transition-delay: .0s; }
.services-grid .service-card.reveal:nth-child(5) { transition-delay: .1s; }
.services-grid .service-card.reveal:nth-child(6) { transition-delay: .2s; }

.reasons-grid .reason-card.reveal:nth-child(1) { transition-delay: 0s; }
.reasons-grid .reason-card.reveal:nth-child(2) { transition-delay: .1s; }
.reasons-grid .reason-card.reveal:nth-child(3) { transition-delay: .2s; }
.reasons-grid .reason-card.reveal:nth-child(4) { transition-delay: .0s; }
.reasons-grid .reason-card.reveal:nth-child(5) { transition-delay: .1s; }
.reasons-grid .reason-card.reveal:nth-child(6) { transition-delay: .2s; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .about-grid     { grid-template-columns: 1fr; gap: 3rem; }
  .about-visual   { order: -1; }
  .about-badge    { bottom: 1rem; right: 1rem; }
  .services-grid  { grid-template-columns: repeat(2, 1fr); }
  .reasons-grid   { grid-template-columns: repeat(2, 1fr); }
  .method-grid    { grid-template-columns: 1fr; gap: 2.5rem; }
  .method-intro   { position: static; }
  .sectors-intro  { grid-template-columns: 1fr; gap: 2rem; }
  .contact-grid   { grid-template-columns: 1fr; gap: 3rem; }
  .footer-grid    { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10,24,80,.97);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    z-index: 999;
  }
  .nav-menu.open  { display: flex; }
  .nav-menu a     { font-size: 1.2rem; color: var(--white) !important; }
  .btn-nav        { padding: .7rem 2rem !important; font-size: 1rem !important; }

  .hero-logo-img  { height: 70px; }
  .hero-stats .container { flex-wrap: wrap; }
  .stat-item      { flex: 1 1 50%; border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); }

  .services-grid  { grid-template-columns: 1fr; }
  .reasons-grid   { grid-template-columns: 1fr; }
  .sector-list    { grid-template-columns: 1fr; }
  .footer-grid    { grid-template-columns: 1fr; gap: 2rem; }
  .form-row       { grid-template-columns: 1fr; }
  .form-submit    { flex-direction: column; align-items: stretch; text-align: center; }
  .footer-bottom  { flex-direction: column; text-align: center; }
  .footer-legal-links { justify-content: center; }
  .about-badge    { display: none; }

  .carousel-section { height: 60vh; min-height: 400px; }
  .slide-caption    { padding: 2rem 4% 6rem; }
  .carousel-btn     { width: 42px; height: 42px; }
  .carousel-prev    { left: 12px; }
  .carousel-next    { right: 12px; }

  .cookie-banner { bottom: 0; left: 0; right: 0; border-radius: 20px 20px 0 0; transform: translateY(110%); width: 100%; }
  .cookie-banner.visible { transform: translateY(0); }
  .cookie-actions { flex-direction: column; }
}

@media (max-width: 480px) {
  .hero-cta           { flex-direction: column; }
  .hero-logo-img      { height: 58px; }
  .cookie-inner       { padding: 1.4rem 1.2rem; }
}
