/* ============================================================
   Coaching Info System — Stylesheet v2
   ============================================================ */

/* ---------- Variables ---------- */
:root {
  --cyan:       #00b4e4;
  --cyan-light: #29d4ff;
  --navy:       #07182e;
  --navy-2:     #0c2444;
  --navy-3:     #112f58;
  --dark-text:  #0f1c2d;
  --body-text:  #5a6a80;
  --light-bg:   #f4f7fc;
  --border:     #e2e8f0;
  --white:      #ffffff;
  --font:       'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --ease:       0.32s cubic-bezier(0.4, 0, 0.2, 1);
  --radius:     8px;
  --radius-lg:  16px;
  --shadow-sm:  0 2px 12px rgba(0,0,0,.07);
  --shadow-md:  0 8px 32px rgba(0,0,0,.11);
  --shadow-lg:  0 20px 60px rgba(0,0,0,.17);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  color: var(--dark-text);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}
img     { max-width: 100%; display: block; }
a       { text-decoration: none; color: inherit; }
ul      { list-style: none; }
button  { font-family: inherit; cursor: pointer; border: none; background: none; }
section { display: block; }

/* ---------- Container ---------- */
.container {
  width: 90%;
  max-width: 1200px;
  margin-inline: auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.78rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.025em;
  transition: var(--ease);
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1;
}
.btn svg { width: 17px; height: 17px; flex-shrink: 0; transition: transform var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn-cyan { background: var(--cyan); color: var(--navy); border-color: var(--cyan); }
.btn-cyan:hover { background: var(--cyan-light); border-color: var(--cyan-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,180,228,.3); }

.btn-outline-white { border-color: rgba(255,255,255,.4); color: var(--white); }
.btn-outline-white:hover { background: var(--white); color: var(--navy); transform: translateY(-2px); border-color: var(--white); }

.btn-outline-cyan { border-color: var(--cyan); color: var(--cyan); }
.btn-outline-cyan:hover { background: var(--cyan); color: var(--navy); transform: translateY(-2px); }

/* ---------- Section labels & titles ---------- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.9rem;
}
.section-label::before {
  content: '';
  width: 26px; height: 2px;
  background: var(--cyan);
  flex-shrink: 0;
}

.section-title {
  font-size: clamp(1.85rem, 3.2vw, 2.6rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--dark-text);
}
.section-title.white { color: var(--white); }

.section-body {
  font-size: 0.97rem;
  color: var(--body-text);
  line-height: 1.8;
  max-width: 540px;
}
.section-body.white { color: rgba(255,255,255,.62); }

/* ============================================================
   MOBILE NAV
   ============================================================ */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: rgba(7,24,46,.98);
  backdrop-filter: blur(16px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  transform: translateX(100%);
  transition: transform var(--ease);
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav a {
  font-size: 1.3rem;
  font-weight: 700;
  color: rgba(255,255,255,.8);
  transition: color var(--ease);
}
.mobile-nav a:hover { color: var(--cyan); }

/* ============================================================
   HEADER
   ============================================================ */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.1rem 0;
  transition: background var(--ease), padding var(--ease), box-shadow var(--ease);
}
#header.sticky {
  background: rgba(7,24,46,.97);
  padding: 0.65rem 0;
  box-shadow: 0 2px 28px rgba(0,0,0,.35);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}
.logo img {
  height: 46px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1); /* fuerza blanco sobre fondo oscuro */
}
/* En header transparente (inicio) el logo puede ser blanco; sobre blanco se ve el color */
.logo img.logo-color { filter: none; }

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,.78);
  letter-spacing: 0.02em;
  position: relative;
  padding-bottom: 3px;
  transition: color var(--ease);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--cyan);
  transition: width var(--ease);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

/* Header right */
.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}
.header-phone {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,.65);
}
.header-phone svg { width: 14px; height: 14px; stroke: var(--cyan); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  z-index: 1001;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--ease);
}
.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
   ============================================================ */
#hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-bottom: 0;
  background:
    linear-gradient(125deg, rgba(4,14,30,.88) 0%, rgba(7,24,46,.82) 50%, rgba(12,36,68,.78) 100%),
    url('../assets/images/low-angle-view-skyscrapers.jpg') center/cover no-repeat;
  background-attachment: fixed;
}

/* Fondo decorativo */
.hero-geo { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.geo-1 {
  position: absolute; top: -120px; right: -160px;
  width: 680px; height: 680px;
  background: linear-gradient(135deg, rgba(0,180,228,.11), rgba(0,180,228,.02));
  transform: rotate(45deg); border-radius: 70px;
}
.geo-2 {
  position: absolute; top: 100px; right: 80px;
  width: 260px; height: 260px;
  background: rgba(0,180,228,.07);
  transform: rotate(30deg); border-radius: 30px;
}
.geo-3 {
  position: absolute; bottom: -100px; left: -100px;
  width: 380px; height: 380px;
  background: rgba(0,180,228,.05);
  transform: rotate(-18deg); border-radius: 50px;
}
.geo-stripe-1 {
  position: absolute; top: 0; right: 220px;
  width: 2px; height: 100%;
  background: linear-gradient(to bottom, transparent 0%, rgba(0,180,228,.3) 40%, rgba(0,180,228,.3) 60%, transparent 100%);
}
.geo-stripe-2 {
  position: absolute; top: 0; right: 270px;
  width: 1px; height: 100%;
  background: linear-gradient(to bottom, transparent 10%, rgba(200,220,255,.12) 40%, rgba(200,220,255,.12) 60%, transparent 90%);
}
.hero-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(0,180,228,.16) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 55% 80% at 78% 50%, black, transparent);
}

/* Slider */
.hero-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 0 160px; /* espacio para header arriba y barra abajo */
}
.hero-body .container { width: 100%; }
.hero-slider { position: relative; z-index: 2; width: 100%; }
.hero-slide { display: none; }
.hero-slide.active { display: flex; justify-content: center; animation: hSlide .55s ease both; }
@keyframes hSlide {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-content {
  max-width: 700px;
  width: 100%;
  text-align: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0,180,228,.14);
  border: 1px solid rgba(0,180,228,.32);
  color: var(--cyan);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding: 0.38rem 1rem;
  border-radius: 20px;
  margin-bottom: 1.6rem;
}
.hero-tag::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  flex-shrink: 0;
}

.hero-title {
  font-size: clamp(2.2rem, 3.6vw, 3rem);
  font-weight: 900;
  line-height: 1.07;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 1.4rem;
}
.hero-title span { color: var(--cyan); }

.hero-desc {
  font-size: 1rem;
  color: rgba(255,255,255,.6);
  line-height: 1.78;
  margin-bottom: 2.4rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

/* Dots control */
.slider-dots {
  display: flex;
  gap: 8px;
  margin-top: 2.5rem;
  justify-content: center;
}
.slider-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  cursor: pointer;
  transition: var(--ease);
  padding: 0;
  border: none;
}
.slider-dot.active {
  background: var(--cyan);
  width: 26px;
  border-radius: 4px;
}

/* Stats bar — anclada al fondo del hero */
.hero-bar {
  position: relative;
  z-index: 3;
  background: rgba(10,28,56,.9);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(0,180,228,.18);
  border-bottom: 3px solid var(--cyan);
}
.hero-bar-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.hero-stat {
  padding: 4rem 3rem;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,.07);
}
.hero-stat:last-child { border-right: none; }
.hero-stat-num {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--cyan);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.hero-stat-label {
  font-size: 0.7rem;
  color: rgba(255,255,255,.45);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.3rem;
}

/* ============================================================
   SERVICES STRIP
   ============================================================ */
#services-strip {
  background: var(--white);
  padding-bottom: 0;
  margin-top: -3px;
  position: relative;
  z-index: 10;
}
.strip-wrapper {
  position: relative;
  z-index: 5;
  margin-top: 0;
}
.strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 3px solid var(--border);
}
.strip-card {
  padding: 5rem 3rem;
  background: var(--white);
  border-right: 1px solid var(--border);
  transition: var(--ease);
  position: relative;
  overflow: hidden;
}
.strip-card:last-child { border-right: none; }
.strip-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--ease);
}
.strip-card:hover { background: var(--navy); }
.strip-card:hover h3,
.strip-card:hover p  { color: rgba(255,255,255,.85); }
.strip-card:hover::after { transform: scaleX(1); }

.strip-card-num {
  font-size: 3.5rem;
  font-weight: 900;
  color: rgba(0,180,228,.09);
  position: absolute;
  top: 0.75rem; right: 1.25rem;
  line-height: 1;
  pointer-events: none;
}
.strip-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: rgba(0,180,228,.1);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  transition: background var(--ease);
}
.strip-card:hover .strip-icon { background: rgba(0,180,228,.2); }
.strip-icon svg {
  width: 26px; height: 26px;
  stroke: var(--cyan); fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.strip-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--dark-text);
  transition: color var(--ease);
}
.strip-card p {
  font-size: 0.87rem;
  color: var(--body-text);
  line-height: 1.65;
  transition: color var(--ease);
}

/* ============================================================
   ABOUT / NOSOTROS
   ============================================================ */
#about {
  padding: 7rem 0;
  background: var(--white);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

/* Visual */
.about-visual { position: relative; }
.about-shape-1 {
  position: absolute; top: -30px; right: -30px;
  width: 180px; height: 180px;
  background: rgba(0,180,228,.07);
  border-radius: 24px;
  transform: rotate(28deg);
  z-index: 0;
}
.about-shape-2 {
  position: absolute; bottom: -20px; left: -20px;
  width: 130px; height: 130px;
  background: rgba(0,180,228,.05);
  border-radius: 18px;
  transform: rotate(-18deg);
  z-index: 0;
}
.about-img-wrap {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  min-height: 460px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem;
  gap: 1.25rem;
}
.about-feat {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(0,180,228,.18);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.about-feat-icon {
  width: 42px; height: 42px; min-width: 42px;
  border-radius: 10px;
  background: rgba(0,180,228,.15);
  display: flex; align-items: center; justify-content: center;
}
.about-feat-icon svg { width: 20px; height: 20px; stroke: var(--cyan); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.about-feat h4 { font-size: 0.88rem; font-weight: 700; color: var(--white); margin-bottom: 0.25rem; }
.about-feat p  { font-size: 0.78rem; color: rgba(255,255,255,.52); line-height: 1.5; }

/* Badge flotante */
.about-badge {
  position: absolute;
  bottom: 2rem; right: -2.5rem;
  z-index: 2;
  background: var(--white);
  border-radius: 14px;
  padding: 1rem 1.4rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 200px;
}
.about-badge-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(0,180,228,.12);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.about-badge-icon svg { width: 22px; height: 22px; stroke: var(--cyan); fill: none; stroke-width: 1.8; stroke-linecap: round; }
.about-badge-num { font-size: 1.7rem; font-weight: 900; color: var(--dark-text); line-height: 1; }
.about-badge-label { font-size: 0.72rem; color: var(--body-text); margin-top: 2px; }

/* Text */
.about-text .section-title { margin-bottom: 1.25rem; }
.about-text .section-body { margin-bottom: 1.1rem; }
.about-checks {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin: 1.75rem 0 2.25rem;
}
.about-check {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark-text);
}
.about-check svg { width: 20px; height: 20px; min-width: 20px; stroke: var(--cyan); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* ============================================================
   PROYECTOS
   ============================================================ */
#projects {
  padding: 7rem 0;
  background: var(--light-bg);
}
.projects-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.projects-header .section-label { justify-content: center; }
.projects-header .section-title { max-width: 580px; margin-inline: auto; margin-bottom: 0.9rem; }
.projects-header .section-body  { margin-inline: auto; text-align: center; }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.project-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--ease), box-shadow var(--ease);
}
.project-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); }

.project-thumb {
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
  background: var(--navy-2);
  display: flex; align-items: center; justify-content: center;
}
.project-thumb-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 100%);
}
/* Imagen real de fondo del thumb */
.project-thumb-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.project-card:hover .project-thumb-img { transform: scale(1.06); }
/* Overlay oscuro encima de la foto */
.project-thumb-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(4,14,30,.72) 0%, rgba(7,24,46,.60) 100%);
  z-index: 1;
}
.project-thumb-geo {
  position: absolute; inset: 0; overflow: hidden; z-index: 2;
}
.project-thumb-geo::before {
  content: ''; position: absolute; top: -25%; right: -15%;
  width: 180px; height: 180px; background: rgba(0,180,228,.11);
  transform: rotate(45deg); border-radius: 20px;
}
.project-thumb-geo::after {
  content: ''; position: absolute; bottom: -15%; left: -8%;
  width: 140px; height: 140px; background: rgba(0,180,228,.07);
  transform: rotate(20deg); border-radius: 15px;
}
.project-thumb-icon {
  position: relative; z-index: 3;
  width: 62px; height: 62px;
  background: rgba(0,180,228,.14);
  border: 1px solid rgba(0,180,228,.28);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
}
.project-thumb-icon svg { width: 30px; height: 30px; stroke: var(--cyan); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.project-tags {
  position: absolute; top: 1rem; left: 1rem;
  display: flex; gap: 0.4rem; z-index: 3;
}
.project-tag {
  font-size: 0.64rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.22rem 0.6rem; border-radius: 4px;
  background: var(--cyan); color: var(--navy);
}
.project-tag.outline {
  background: rgba(255,255,255,.14);
  color: var(--white);
  border: 1px solid rgba(255,255,255,.22);
}
.project-body {
  padding: 1.7rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.project-body h3 {
  font-size: 1rem; font-weight: 700;
  line-height: 1.35; color: var(--dark-text);
  transition: color var(--ease);
}
.project-card:hover .project-body h3 { color: var(--cyan); }
.project-body p  { font-size: 0.85rem; color: var(--body-text); line-height: 1.65; flex: 1; }
.project-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.82rem; font-weight: 700; color: var(--cyan);
  transition: gap var(--ease);
}
.project-link:hover { gap: 0.65rem; }
.project-link svg { width: 14px; height: 14px; stroke: var(--cyan); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* ============================================================
   WHY CHOOSE US
   ============================================================ */
#why {
  padding: 7rem 0;
  background: var(--white);
}
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.why-text .section-title { margin-bottom: 1rem; }
.why-text .section-body  { margin-bottom: 2rem; }

.why-list { display: flex; flex-direction: column; gap: 1.1rem; margin-bottom: 2.25rem; }
.why-item {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.2rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: var(--ease);
}
.why-item:hover { border-color: rgba(0,180,228,.38); box-shadow: var(--shadow-sm); }
.why-item-icon {
  width: 42px; height: 42px; min-width: 42px;
  border-radius: 10px;
  background: rgba(0,180,228,.1);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--ease);
}
.why-item:hover .why-item-icon { background: rgba(0,180,228,.2); }
.why-item-icon svg { width: 20px; height: 20px; stroke: var(--cyan); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.why-item-text h4 { font-size: 0.93rem; font-weight: 700; margin-bottom: 0.28rem; }
.why-item-text p  { font-size: 0.83rem; color: var(--body-text); line-height: 1.55; }

.why-services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.why-serv-card {
  background: var(--light-bg);
  border-radius: 14px;
  padding: 1.6rem 1.4rem;
  border: 1px solid transparent;
  transition: var(--ease);
}
.why-serv-card:hover {
  background: var(--white);
  border-color: rgba(0,180,228,.32);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.why-serv-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(0,180,228,.09);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
  transition: background var(--ease);
}
.why-serv-card:hover .why-serv-icon { background: rgba(0,180,228,.18); }
.why-serv-icon svg { width: 22px; height: 22px; stroke: var(--cyan); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.why-serv-card h4 { font-size: 0.88rem; font-weight: 700; margin-bottom: 0.4rem; }
.why-serv-card p  { font-size: 0.78rem; color: var(--body-text); line-height: 1.55; }

/* ============================================================
   SERVICES GRID COMPLETO
   ============================================================ */
#services {
  padding: 7rem 0;
  background: linear-gradient(170deg, var(--navy) 0%, var(--navy-2) 100%);
  position: relative;
  overflow: hidden;
}
#services::before {
  content: '';
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(0,180,228,.05) 0%, transparent 68%);
  pointer-events: none;
}
.services-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.services-header .section-label { justify-content: center; }
.services-header .section-title.white { max-width: 620px; margin-inline: auto; margin-bottom: 0.9rem; }
.services-header .section-body.white { margin-inline: auto; text-align: center; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.serv-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  position: relative;
  overflow: hidden;
  transition: var(--ease);
}
.serv-card:hover {
  border-color: rgba(0,180,228,.38);
  background: rgba(0,180,228,.05);
  transform: translateY(-5px);
}
.serv-num {
  position: absolute; top: 1rem; right: 1.25rem;
  font-size: 4rem; font-weight: 900;
  color: rgba(0,180,228,.06); line-height: 1;
  pointer-events: none;
}
.serv-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: rgba(0,180,228,.12);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.4rem;
  transition: background var(--ease);
}
.serv-card:hover .serv-icon { background: rgba(0,180,228,.22); }
.serv-icon svg { width: 26px; height: 26px; stroke: var(--cyan); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.serv-card h3 { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 0.7rem; line-height: 1.3; }
.serv-card p  { font-size: 0.83rem; color: rgba(255,255,255,.48); line-height: 1.65; margin-bottom: 1.4rem; }
.serv-list { display: flex; flex-direction: column; gap: 0.4rem; }
.serv-list li {
  font-size: 0.77rem; color: rgba(255,255,255,.42);
  display: flex; align-items: flex-start; gap: 0.45rem;
}
.serv-list li::before { content: '→'; color: var(--cyan); flex-shrink: 0; font-weight: 700; }

/* ============================================================
   STATS
   ============================================================ */
#stats {
  padding: 4.5rem 0;
  background: var(--navy-3);
  border-top: 1px solid rgba(0,180,228,.1);
  border-bottom: 1px solid rgba(0,180,228,.1);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-card {
  padding: 1.5rem 2rem;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,.07);
  position: relative;
}
.stat-card:last-child { border-right: none; }
.stat-card-num {
  font-size: 2.8rem; font-weight: 900;
  color: var(--cyan); line-height: 1;
  margin-bottom: 0.35rem;
  font-variant-numeric: tabular-nums;
}
.stat-card-label {
  font-size: 0.75rem; color: rgba(255,255,255,.42);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.stat-card-icon { position: absolute; top: 1.25rem; right: 1.25rem; opacity: 0.1; }
.stat-card-icon svg { width: 28px; height: 28px; stroke: var(--cyan); fill: none; stroke-width: 1.5; }

/* ============================================================
   PARTNERS / ALIADOS
   ============================================================ */
#partners {
  padding: 6rem 0;
  background: var(--light-bg);
}
.partners-header {
  text-align: center;
  margin-bottom: 3rem;
}
.partners-header .section-label { justify-content: center; }

.partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.partners-grid--4 {
  grid-template-columns: repeat(4, 1fr);
  max-width: 900px;
  margin: 0 auto;
  gap: 0.85rem;
}
.partner-logo {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.1rem 0.9rem;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  transition: var(--ease);
  overflow: hidden;
  position: relative;
}
.partner-logo:hover {
  background: var(--navy);
  border-color: var(--navy);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Imagen real de logo (claros → se oscurecen en hover) */
.partner-logo img {
  max-height: 48px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  filter: grayscale(1) contrast(0.65) brightness(0.7);
  transition: filter var(--ease);
}
.partner-logo:hover img { filter: brightness(0) invert(1); }

/* SVG wordmark inline */
.partner-svg {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--ease);
}
.partner-svg svg { transition: var(--ease); }
.partner-logo:hover .partner-svg svg text { fill: #ffffff !important; }
.partner-logo:hover .partner-svg svg rect,
.partner-logo:hover .partner-svg svg path,
.partner-logo:hover .partner-svg svg circle {
  fill: #ffffff !important;
  stroke: #ffffff !important;
}
/* Reset fill for rects used as borders/outlines */
.partner-logo:hover .partner-svg svg rect[fill="none"] { fill: none !important; stroke: #ffffff !important; }

/* ============================================================
   CTA BANNER
   ============================================================ */
#cta-banner {
  padding: 5.5rem 0;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 60%, #0a2e5a 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}
#cta-banner::before {
  content: '';
  position: absolute; top: -140px; right: -140px;
  width: 480px; height: 480px;
  background: rgba(0,180,228,.08); border-radius: 60px; transform: rotate(30deg);
}
#cta-banner::after {
  content: '';
  position: absolute; bottom: -90px; left: -90px;
  width: 340px; height: 340px;
  background: rgba(0,180,228,.06); border-radius: 40px; transform: rotate(-20deg);
}
.cta-content { position: relative; z-index: 2; max-width: 600px; margin-inline: auto; }
.cta-content .section-label { justify-content: center; margin-bottom: 1rem; }
.cta-content h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 900; color: var(--white);
  margin-bottom: 1.1rem; letter-spacing: -0.02em;
}
.cta-content p { color: rgba(255,255,255,.58); margin-bottom: 2.4rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   CONTACTO
   ============================================================ */
#contact {
  padding: 7rem 0;
  background: var(--white);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 5rem;
  align-items: start;
}
.contact-text .section-title { margin-bottom: 1rem; }
.contact-text .section-body  { margin-bottom: 2.5rem; }
.contact-info-list { display: flex; flex-direction: column; gap: 1.35rem; }
.contact-info-item { display: flex; gap: 1rem; align-items: flex-start; }
.ci-icon {
  width: 44px; height: 44px; min-width: 44px;
  border-radius: 11px;
  background: rgba(0,180,228,.1);
  display: flex; align-items: center; justify-content: center;
}
.ci-icon svg { width: 19px; height: 19px; stroke: var(--cyan); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ci-text strong { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--cyan); margin-bottom: 0.25rem; }
.ci-text span   { font-size: 0.9rem; color: var(--body-text); line-height: 1.6; }
.ci-text a { color: var(--body-text); transition: color var(--ease); }
.ci-text a:hover { color: var(--cyan); }

/* Formulario */
.contact-form-wrap {
  background: var(--light-bg);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid var(--border);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.38rem; margin-bottom: 1.1rem; }
.form-group label {
  font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--body-text);
}
.form-group input,
.form-group textarea,
.form-group select {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 0.72rem 1rem;
  font-family: var(--font);
  font-size: 0.92rem;
  color: var(--dark-text);
  outline: none;
  width: 100%;
  transition: border-color var(--ease), box-shadow var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7'%3E%3Cpath stroke='%235a6a80' stroke-width='1.5' fill='none' stroke-linecap='round' d='M1 1l4.5 4.5L10 1'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.4rem;
  cursor: pointer;
}
.form-group select option { background: #fff; }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0,180,228,.11);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #b4c0cc; }
.form-group textarea { resize: vertical; min-height: 130px; }

.form-submit {
  width: 100%;
  padding: 0.88rem;
  font-family: var(--font);
  font-size: 0.93rem;
  font-weight: 700;
  border-radius: 50px;
  background: var(--navy);
  color: var(--white);
  border: none;
  cursor: pointer;
  transition: var(--ease);
  letter-spacing: 0.025em;
}
.form-submit:hover {
  background: var(--cyan);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,180,228,.28);
}
.form-msg {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.87rem;
  font-weight: 600;
  display: none;
}
.form-msg.success { background: rgba(0,180,228,.1); color: #007fa8; border: 1px solid rgba(0,180,228,.28); display: block; }
.form-msg.error   { background: rgba(220,60,60,.08); color: #c0392b; border: 1px solid rgba(220,60,60,.2); display: block; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--navy);
  border-top: 1px solid rgba(0,180,228,.12);
}
.footer-main { padding: 5rem 0 3rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 3rem;
}

.footer-brand-logo { margin-bottom: 1.2rem; }
.footer-brand-logo img {
  height: 38px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.footer-desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,.42);
  line-height: 1.75;
  max-width: 270px;
  margin-bottom: 1.5rem;
}

.footer-social { display: flex; gap: 0.7rem; }
.social-btn {
  width: 35px; height: 35px;
  border-radius: 8px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  transition: var(--ease);
}
.social-btn:hover { background: var(--cyan); border-color: var(--cyan); }
.social-btn svg { width: 15px; height: 15px; stroke: rgba(255,255,255,.65); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: stroke var(--ease); }
.social-btn:hover svg { stroke: var(--navy); }

.footer-col h5 {
  font-size: 0.75rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--white); margin-bottom: 1.1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col ul a {
  font-size: 0.84rem; color: rgba(255,255,255,.42);
  display: flex; align-items: center; gap: 0.4rem;
  transition: color var(--ease);
}
.footer-col ul a::before { content: '→'; font-size: 0.68rem; }
.footer-col ul a:hover { color: var(--cyan); }

.newsletter-desc { font-size: 0.83rem; color: rgba(255,255,255,.42); line-height: 1.65; margin-bottom: 1.1rem; }
.newsletter-form { display: flex; flex-direction: column; gap: 0.5rem; }
.newsletter-input {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 0.68rem 1rem;
  color: var(--white);
  font-family: var(--font);
  font-size: 0.85rem;
  outline: none;
  transition: border-color var(--ease);
}
.newsletter-input::placeholder { color: rgba(255,255,255,.28); }
.newsletter-input:focus { border-color: var(--cyan); }
.newsletter-btn {
  background: var(--cyan);
  color: var(--navy);
  font-family: var(--font);
  font-size: 0.84rem; font-weight: 700;
  padding: 0.68rem;
  border-radius: var(--radius);
  border: none; cursor: pointer;
  transition: var(--ease);
}
.newsletter-btn:hover { background: var(--cyan-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 1.4rem 0;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,.28); }
.footer-bottom a { color: var(--cyan); }

/* ============================================================
   ANIMACIONES
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.in { opacity: 1; transform: translateY(0); }
.fade-up.d1 { transition-delay: .1s; }
.fade-up.d2 { transition-delay: .2s; }
.fade-up.d3 { transition-delay: .3s; }
.fade-up.d4 { transition-delay: .4s; }

.fade-left {
  opacity: 0;
  transform: translateX(-26px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-left.in { opacity: 1; transform: translateX(0); }

.fade-right {
  opacity: 0;
  transform: translateX(26px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-right.in { opacity: 1; transform: translateX(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .about-badge { right: 0; }
}

@media (max-width: 900px) {
  .nav-links, .header-phone { display: none; }
  .hamburger { display: flex; }

  .hero-bar-inner { grid-template-columns: repeat(2, 1fr); }
  .about-grid    { grid-template-columns: 1fr; gap: 3rem; }
  .why-grid      { grid-template-columns: 1fr; gap: 3rem; }
  .contact-grid  { grid-template-columns: 1fr; gap: 3rem; }
  .strip-grid    { grid-template-columns: 1fr; }
  .strip-card    { border-right: none; border-bottom: 1px solid var(--border); }
  .strip-card:last-child { border-bottom: none; }
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .why-services  { grid-template-columns: 1fr 1fr; }
  .partners-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid    { grid-template-columns: repeat(2, 1fr); }
  .stat-card:nth-child(even) { border-right: none; }
  .stat-card { border-bottom: 1px solid rgba(255,255,255,.07); }
  .stat-card:nth-child(3),
  .stat-card:nth-child(4) { border-bottom: none; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .projects-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .why-services  { grid-template-columns: 1fr; }
  .cta-actions   { flex-direction: column; align-items: center; }
  .footer-grid   { grid-template-columns: 1fr; }
  .hero-actions  { flex-direction: column; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .about-badge   { position: static; margin-top: 1rem; justify-content: flex-start; }
}
