/* ============================================
   CGIC — Centro de Gestión Integral de Crisis
   v2 — Compact Multi-Page Design System
   ============================================ */

/* ---------- Custom Properties ---------- */
:root {
  --color-bg: #fffff0;
  --color-bg-sub: #f5f5f5;
  --color-orange: #ea5830;
  --color-title: #040918;
  --color-text: #404041;
  --color-red: #e63a1c;
  --color-dark: #0a0e1a;
  --color-white: #ffffff;
  --color-orange-light: rgba(234, 88, 48, 0.08);
  --color-orange-medium: rgba(234, 88, 48, 0.15);
  --font-heading: 'Bebas Neue', sans-serif;
  --font-body: 'Poppins', sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 5rem;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --t-fast: 0.2s var(--ease);
  --t-base: 0.35s var(--ease);
  --t-slow: 0.6s var(--ease);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-sm: 0 2px 8px rgba(4,9,24,.06);
  --shadow-md: 0 4px 20px rgba(4,9,24,.08);
  --shadow-lg: 0 8px 40px rgba(4,9,24,.1);
  --shadow-orange: 0 4px 24px rgba(234,88,48,.25);
}

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

html {
  scroll-behavior: smooth;
  font-size: 18px;          /* ← LARGER base */
  scroll-padding-top: 80px;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.75;
  overflow-x: hidden;
  max-width: 100%;
  overscroll-behavior-x: none;
  -webkit-font-smoothing: antialiased;
}

img { max-width:100%; height:auto; display:block; }
a { text-decoration:none; color:inherit; transition: color var(--t-fast); }
ul,ol { list-style:none; }

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-heading);
  color: var(--color-title);
  line-height: 1.1;
  letter-spacing: 0.02em;
}

/* ---------- Icons (SVG inline) ---------- */
.icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--sm { width: 18px; height: 18px; }
.icon--md { width: 24px; height: 24px; }
.icon--lg { width: 32px; height: 32px; }
.icon--xl { width: 40px; height: 40px; }

.icon--filled svg {
  fill: currentColor;
  stroke: none;
}

/* ---------- Layout ---------- */
.container { width:100%; max-width:1200px; margin:0 auto; padding:0 var(--space-md); }
.container--wide { max-width:1400px; }

.section {
  padding: var(--space-2xl) 0;
  position: relative;
}

.section--compact { padding: var(--space-xl) 0; }
.section--alt { background: var(--color-bg-sub); }
.section--dark { background: var(--color-dark); color: var(--color-white); }
.section--dark h2,.section--dark h3,.section--dark h4 { color: var(--color-white); }

.section--orange { background: var(--color-orange); color: var(--color-white); }
.section--orange h2,.section--orange h3,.section--orange h4,.section--orange .section-label { color: var(--color-white); }
.section--orange .section-label::before { background: var(--color-white); }
.section--orange .contact-card {
  background: transparent;
  border-color: rgba(255,255,255,0.3);
  color: var(--color-white);
}
.section--orange .contact-card:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
  transform: translateY(-2px);
  box-shadow: none;
}
.section--orange .contact-card__icon {
  background: rgba(255,255,255,0.15);
  color: var(--color-white);
}
.section--orange .contact-card__label { color: rgba(255,255,255,0.8); }
.section--orange .contact-card__value { color: var(--color-white); }

.section-label {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-orange);
  margin-bottom: var(--space-xs);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.section-label::before {
  content:'';
  width:24px; height:2px;
  background: var(--color-orange);
}

.section-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  margin-bottom: var(--space-sm);
  max-width: 800px;
}

.section-subtitle {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--color-text);
  max-width: 680px;
  line-height: 1.8;
}

.text-center { text-align:center; }
.mx-auto { margin-left:auto; margin-right:auto; }
.accent { color: var(--color-orange); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.8rem 2rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all var(--t-base);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn::before {
  content:'';
  position:absolute; inset:0;
  background: rgba(255,255,255,.15);
  transform: translateX(-100%);
  transition: transform var(--t-base);
}
.btn:hover::before { transform: translateX(0); }

.btn--primary {
  background: var(--color-orange);
  color: var(--color-white);
  box-shadow: var(--shadow-orange);
}
.btn--primary:hover {
  background: var(--color-red);
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(234,88,48,.35);
}

.btn--outline {
  background: transparent;
  color: var(--color-orange);
  border: 2px solid var(--color-orange);
}
.btn--outline:hover {
  background: var(--color-orange);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn--dark {
  background: var(--color-dark);
  color: var(--color-white);
}
.btn--dark:hover {
  background: var(--color-title);
  transform: translateY(-2px);
}

.btn--white {
  background: var(--color-white);
  color: var(--color-orange);
}
.btn--white:hover {
  background: var(--color-bg);
  transform: translateY(-2px);
}

.btn--sm { padding: 0.5rem 1.3rem; font-size: 0.82rem; }
.btn--lg { padding: 1rem 2.5rem; font-size: 1rem; }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top:0; left:0; width:100%;
  z-index:1100;
  padding: 0.4rem 0;
  transition: all var(--t-base);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(255,255,240,.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 20px rgba(4,9,24,.06);
  padding: 0.55rem 0;
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-title);
  letter-spacing: 0.05em;
  z-index: 1001;
}

.navbar__logo-img {
  height: 160px;
  width: auto;
  max-width: 560px;
  object-fit: contain;
  display: block;
  transition: opacity var(--t-fast);
}
.navbar__logo:hover .navbar__logo-img { opacity: .85; }

.navbar__logo-icon {
  width: 36px; height: 36px;
  background: var(--color-orange);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.95rem;
  font-weight: 700;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.navbar__link {
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--color-white);
  position: relative;
  padding: 0.2rem 0;
}

/* Links y toggle oscuros cuando el navbar está scrolled (fondo claro) */
.navbar.scrolled .navbar__link {
  color: var(--color-text);
}

/* Toggle hamburguesa blanco sobre hero */
.navbar__toggle span {
  background: var(--color-white);
}
.navbar.scrolled .navbar__toggle span {
  background: var(--color-title);
}

.navbar__link::after {
  content:'';
  position:absolute; bottom:0; left:0;
  width:0; height:2px;
  background: var(--color-orange);
  transition: width var(--t-base);
}
.navbar__link:hover { color: var(--color-orange); }
.navbar__link:hover::after { width:100%; }

.navbar__link--active {
  color: var(--color-orange);
  font-weight: 600;
}
.navbar__link--active::after {
  width: 100%;
}

.navbar__cta { margin-left: 0.3rem; }

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

.navbar__toggle span {
  width: 26px; height: 2.5px;
  border-radius: 2px;
  transition: all var(--t-base);
  transform-origin: center;
}

.navbar__toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.navbar__toggle.active span:nth-child(2) { opacity:0; }
.navbar__toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ---------- Hero ---------- */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 70px;
  padding-bottom: 2rem;
  overflow: hidden;
  background: var(--color-dark);
}

/* -- Hero slider -- */
.hero__slider {
  position: absolute; inset:0; z-index:0;
  touch-action: pan-y;
}

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

.hero__slide--active {
  opacity: 1;
}

.hero__slide-img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .72;
}

/* Overlay sobre cada slide */
.hero__slider::after {
  content:'';
  position:absolute; inset:0;
  background: linear-gradient(135deg,rgba(4,9,24,.82) 0%,rgba(4,9,24,.55) 50%,rgba(234,88,48,.18) 100%);
  z-index:1;
  pointer-events:none;
}

/* Botones de flecha */
.hero__slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--t-base);
  backdrop-filter: blur(8px);
}
.hero__slider-btn:hover {
  background: var(--color-orange);
  border-color: var(--color-orange);
  transform: translateY(-50%) scale(1.08);
}
.hero__slider-btn--prev { left: 1.5rem; }
.hero__slider-btn--next { right: 1.5rem; }

@media (max-width: 1024px) {
  .hero__slider-btn {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
  }
}

/* Dots */
.hero__slider-dots {
  position: absolute;
  bottom: 4.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 0.5rem;
}

.hero__slider-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  transition: all var(--t-base);
  padding: 0;
}
.hero__slider-dot--active {
  background: var(--color-orange);
  width: 24px;
  border-radius: 4px;
}
.hero__slider-dot:hover { background: rgba(255,255,255,.8); }

.hero__mesh {
  position:absolute; inset:0; z-index:0;
  opacity:.35;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(234,88,48,.4) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(230,58,28,.3) 0%, transparent 50%);
  animation: meshFloat 12s ease-in-out infinite alternate;
}

@keyframes meshFloat {
  0%   { transform: scale(1) translate(0,0); }
  100% { transform: scale(1.05) translate(-1%,1%); }
}

.hero__content { position:relative; z-index:2; max-width:780px; }

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(234,88,48,.15);
  border: 1px solid rgba(234,88,48,.3);
  border-radius: var(--radius-full);
  padding: 0.35rem 1.1rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-orange);
  margin-bottom: var(--space-md);
  backdrop-filter: blur(8px);
}

.hero__tag-dot {
  width:6px; height:6px;
  background: var(--color-orange);
  border-radius:50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%     { opacity:.5; transform:scale(1.4); }
}

.hero__title {
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  color: var(--color-white);
  line-height: 1.05;
  margin-bottom: var(--space-xs);
}

.hero__title .highlight { color: var(--color-orange); }

.hero__tagline {
  font-family: var(--font-body);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  color: rgba(255,255,255,.65);
  font-weight: 300;
  letter-spacing: 0.01em;
  margin-bottom: var(--space-md);
  line-height: 1.4;
}

.hero__subtitle {
  font-size: clamp(0.92rem, 1.5vw, 1.05rem);
  color: rgba(255,255,255,.6);
  max-width: 560px;
  margin-bottom: var(--space-lg);
  line-height: 1.75;
  font-weight: 300;
}

.hero__actions { display:flex; gap:var(--space-sm); flex-wrap:wrap; }

.hero__scroll-cue {
  position:absolute; bottom:2rem; left:50%; transform:translateX(-50%);
  z-index:2;
  display:flex; flex-direction:column; align-items:center; gap:.5rem;
  color: rgba(255,255,255,.45);
  font-size:.7rem;
  letter-spacing:.1em;
  text-transform:uppercase;
  animation: scrollBounce 2.5s ease-in-out infinite;
}
.hero__scroll-cue .line { width:1px; height:36px; background:linear-gradient(to bottom,rgba(234,88,48,.8),transparent); }

@keyframes scrollBounce {
  0%,100% { transform:translateX(-50%) translateY(0); }
  50%     { transform:translateX(-50%) translateY(8px); }
}

/* ---------- About (compact 2-col) ---------- */
.about__grid {
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.about__content { max-width:540px; }

.about__text {
  margin-bottom: var(--space-sm);
  font-size: 1.05rem;
  line-height: 1.85;
}

.about__visual { position:relative; }

.about__image-wrapper {
  border-radius: var(--radius-lg);
  overflow:hidden;
  box-shadow: var(--shadow-lg);
}

.about__image-wrapper img {
  width:100%; height:360px;
  object-fit:cover;
  transition: transform var(--t-slow);
}
.about__image-wrapper:hover img { transform:scale(1.03); }

.about__accent-shape {
  position:absolute;
  width:100px; height:100px;
  border-radius:var(--radius-lg);
  background:var(--color-orange);
  opacity:.1;
  bottom:-16px; right:-16px;
  z-index:-1;
}

/* ---------- Stats row ---------- */
.stats-row {
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.stat-card {
  background:#f0dfc9;
  border-radius:var(--radius-lg);
  padding: var(--space-md) var(--space-lg);
  text-align:center;
  border:2px solid rgba(150,105,62,.35);
  box-shadow:0 10px 22px rgba(84,58,31,.16);
  transition: all var(--t-base);
}
.stat-card:hover { transform:translateY(-3px); box-shadow:0 14px 30px rgba(84,58,31,.24); border-color:rgba(150,105,62,.55); }

.stat-card__icon {
  width:40px; height:40px;
  margin:0 auto var(--space-xs);
  color: var(--color-orange);
}

.stat-card__number {
  font-family:var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color:var(--color-orange);
  line-height:1;
  margin-bottom: 0.25rem;
}

.stat-card__text {
  font-size: 0.88rem;
  line-height:1.6;
}

.stat-card__reference {
  font-size: 0.82rem;
  color: rgba(150,105,62,0.95);
  font-weight: 600;
  margin-top: 0.75rem;
  opacity: 0;
  transform: translateY(8px);
  transition: all var(--t-base);
}

.stat-card:hover .stat-card__reference {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Purpose banner ---------- */
.purpose {
  background: var(--color-dark);
  color: var(--color-white);
  text-align: center;
  padding: var(--space-2xl) 0;
  position: relative;
  overflow: hidden;
}

.purpose::before {
  content:'';
  position:absolute;
  top:-50%; left:-10%;
  width:60%; height:200%;
  background:radial-gradient(ellipse,rgba(234,88,48,.08),transparent 60%);
  pointer-events:none;
}

.purpose__text {
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-weight: 300;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

.purpose__text strong { color:var(--color-orange); font-weight:600; }
.purpose h2 { color:var(--color-white); }

/* ---------- Values grid (compact) ---------- */
.values-grid {
  display:grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap:var(--space-sm);
}

.value-card {
  padding: var(--space-lg) var(--space-lg);
  border-radius:var(--radius-lg);
  background:#f0dfc9;
  border:2px solid rgba(150,105,62,.35);
  box-shadow:0 10px 22px rgba(84,58,31,.16);
  transition: all var(--t-base);
  text-align:center;
  min-height: 460px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.value-card:hover { transform:translateY(-3px); box-shadow:0 14px 30px rgba(84,58,31,.24); border-color:rgba(150,105,62,.55); }

.value-card__icon {
  width:120px; height:120px;
  border-radius:var(--radius-md);
  background:var(--color-orange-light);
  display:flex;
  align-items:center;
  justify-content:center;
  margin:0 auto var(--space-md);
  color:var(--color-orange);
  transition: background var(--t-base);
}
.value-card:hover .value-card__icon { background:var(--color-orange-medium); }

.value-card__icon--img {
  background:transparent;
  width:140px; height:140px;
  border-radius:0;
  display:flex;
  align-items:center;
  justify-content:center;
  margin: 0 auto var(--space-md);
}
.value-card__icon--img img {
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center;
  display:block;
  margin:0 auto;
}
.value-card:hover .value-card__icon--img { background:transparent; }

.value-card__title {
  font-family:var(--font-heading);
  font-size:1.35rem;
  color:var(--color-title);
  margin-bottom: 0.4rem;
  letter-spacing:.04em;
}

.value-card__text {
  font-size:0.95rem;
  line-height:1.65;
}

/* Interactive values: icon-first, reveal on press */
#valores .value-card {
  padding: var(--space-xs);
  background: transparent;
  border: none;
  box-shadow: none;
  min-height: 420px;
  height: 420px;
  justify-content: center;
  cursor: pointer;
}

#valores .value-card:hover {
  transform: none;
  box-shadow: none;
  border-color: transparent;
}

#valores .value-card .value-card__icon--img {
  width: 170px;
  height: 170px;
  margin-bottom: 0;
}

#valores .value-card__text {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin: 0;
  transform: translateY(8px);
  transition: max-height var(--t-base), opacity var(--t-base), transform var(--t-base), margin var(--t-base);
}

#valores .value-card__title {
  display: none;
}

#valores .value-card.is-open {
  padding: var(--space-md) var(--space-md);
  background: #fffaf4;
  border: 1px solid rgba(150,105,62,.28);
  box-shadow: 0 10px 24px rgba(84,58,31,.18);
  min-height: 420px;
  height: 420px;
  justify-content: flex-start;
}

#valores .value-card.is-open:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(84,58,31,.22);
}

#valores .value-card.is-open .value-card__icon--img {
  margin-bottom: var(--space-sm);
}

#valores .value-card.is-open .value-card__text {
  max-height: 320px;
  opacity: 1;
  margin-top: 0.1rem;
  transform: translateY(0);
}

#valores .value-card:focus-visible {
  outline: 3px solid rgba(234,88,48,.35);
  outline-offset: 3px;
}

/* ---------- Approach phases (compact horizontal) ---------- */
.approach__phases {
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:var(--space-md);
}

.phase {
  text-align:center;
  padding:var(--space-md);
  position:relative;
}

.phase__icon {
  width:64px; height:64px;
  border-radius:50%;
  background:var(--color-orange);
  display:flex;
  align-items:center;
  justify-content:center;
  margin:0 auto var(--space-xs);
  color:white;
  box-shadow:var(--shadow-orange);
  transition:transform var(--t-base);
}
.phase__icon svg {
  width: 28px;
  height: 28px;
}
.phase:hover .phase__icon { transform:scale(1.1); }

.phase__title {
  font-family:var(--font-heading);
  font-size:1.7rem;
  color:var(--color-title);
  margin-bottom: 0.2rem;
}
.phase__subtitle { font-size:1rem; font-style:italic; }

.phase:not(:last-child)::after {
  content:'';
  position:absolute;
  top:28px; right:-12%;
  width:24%;
  height:2px;
  background:linear-gradient(to right,var(--color-orange),transparent);
  opacity:.3;
}

/* ---------- Impact row ---------- */
.impact { background:var(--color-dark); color:var(--color-white); }

.impact-grid {
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:var(--space-md);
}

.impact-item { text-align:center; padding:var(--space-md); position:relative; }

.impact-item__number {
  font-family:var(--font-heading);
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  color:var(--color-orange);
  line-height:1;
  margin-bottom: 0.2rem;
}

.impact-item__label { font-size:.9rem; color:rgba(255,255,255,.7); line-height:1.5; }

.impact-item::after {
  content:'';
  position:absolute;
  top:20%; right:0;
  width:1px; height:60%;
  background:rgba(255,255,255,.1);
}
.impact-item:last-child::after { display:none; }

/* ---------- Differential banner ---------- */
.differential {
  background: linear-gradient(135deg, var(--color-orange) 0%, var(--color-red) 100%);
  color: var(--color-white);
  text-align: center;
  padding: var(--space-xl) 0;
  position:relative;
  overflow:hidden;
}

.differential::before {
  content:'';
  position:absolute; inset:0;
  background:url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events:none;
}

.differential h2 { color:var(--color-white); }

.differential__text {
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  max-width: 700px;
  margin:0 auto;
  line-height:1.8;
  font-weight:300;
  position:relative;
  z-index:1;
}

/* ---------- Action plans (compact) ---------- */
.action-plans {
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:var(--space-md);
}

.action-plan {
  padding:var(--space-md) var(--space-lg);
  border-radius:var(--radius-lg);
  background:var(--color-white);
  border:1px solid rgba(4,9,24,.06);
  transition: all var(--t-base);
  position:relative;
  overflow:hidden;
}

.action-plan::before {
  content:'';
  position:absolute;
  top:0; left:0;
  width:4px; height:100%;
  background:var(--color-orange);
}
.action-plan:hover { box-shadow:var(--shadow-md); transform:translateY(-2px); }

.action-plan__header {
  display:flex;
  align-items:center;
  gap:var(--space-sm);
  margin-bottom:var(--space-xs);
}

.action-plan__icon {
  width:36px; height:36px;
  color:var(--color-orange);
  flex-shrink:0;
}

.action-plan__title {
  font-family:var(--font-heading);
  font-size:1.3rem;
  color:var(--color-title);
  letter-spacing:.04em;
}

.action-plan__text { font-size:.92rem; line-height:1.7; }

/* ---------- CTA Section ---------- */
.cta {
  background:linear-gradient(135deg, var(--color-dark) 0%, #151b30 100%);
  color:var(--color-white);
  position:relative;
  overflow:hidden;
}

.cta::before {
  content:'';
  position:absolute;
  top:-100px; right:-100px;
  width:400px; height:400px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(234,88,48,.15),transparent 60%);
  pointer-events:none;
}

.cta__grid {
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:var(--space-xl);
  align-items:center;
}
.cta h2 { color:var(--color-white); }

.cta__list { display:grid; gap:var(--space-sm); margin-top:var(--space-md); }

.cta__item {
  display:flex;
  align-items:center;
  gap:var(--space-sm);
  font-size:1rem;
  color:rgba(255,255,255,.85);
}

.cta__item-icon {
  width:36px; height:36px;
  border-radius:50%;
  background:rgba(234,88,48,.2);
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--color-orange);
  flex-shrink:0;
}

.cta__form {
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.1);
  border-radius:var(--radius-lg);
  padding:var(--space-lg);
  backdrop-filter:blur(10px);
}

.cta__form h3 { color:var(--color-white); font-size:1.5rem; margin-bottom:var(--space-md); }

.form-group { margin-bottom:var(--space-sm); }
.form-group label { display:block; font-size:.78rem; font-weight:500; color:rgba(255,255,255,.6); margin-bottom:.25rem; }

.form-group input,
.form-group textarea,
.form-group select {
  width:100%;
  padding:.7rem 1rem;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.15);
  border-radius:var(--radius-sm);
  color:var(--color-white);
  font-family:var(--font-body);
  font-size:.88rem;
  transition:border-color var(--t-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color:rgba(255,255,255,.3); }

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { outline:none; border-color:var(--color-orange); }

.form-group textarea { resize:vertical; min-height:80px; }
.form-group select option { background:var(--color-dark); }

/* ---------- Contact row ---------- */
.contact-grid {
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:var(--space-sm);
}

.contact-card {
  display:flex;
  align-items:center;
  gap:var(--space-xs);
  padding:var(--space-xs) var(--space-sm);
  background: var(--color-white);
  border-radius:var(--radius-md);
  border:1px solid rgba(4,9,24,.06);
  transition:all var(--t-base);
}

.contact-card:hover { border-color:var(--color-orange); box-shadow:var(--shadow-sm); transform:translateY(-2px); }

.contact-card__icon {
  width:44px; height:44px;
  border-radius:50%;
  background:var(--color-orange-light);
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
  color:var(--color-orange);
  transition:all var(--t-base);
}
.contact-card:hover .contact-card__icon { background:var(--color-orange); color:white; }

.contact-card__label { font-size:.75rem; color:var(--color-text); opacity:.6; margin-bottom:.1rem; }
.contact-card__value { font-size:.85rem; font-weight:500; color:var(--color-title); }

/* ---------- Footer ---------- */
.footer {
  background:var(--color-dark);
  color:var(--color-white);
  padding:var(--space-xl) 0 var(--space-md);
}

.footer__inner {
  display:grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap:var(--space-xl);
  margin-bottom:var(--space-lg);
}

.footer__brand { max-width:350px; }

.footer__logo {
  display:flex; align-items:center; gap:.5rem;
  font-family:var(--font-heading);
  font-size:1.45rem;
  color:var(--color-white);
  margin-bottom:var(--space-xs);
}

.footer__logo-img {
  height: 100px;
  width: auto;
  max-width: 300px;
  object-fit: contain;
  display: block;
  /* Logos oscuros sobre fondo oscuro: aplicar filtro para hacerlos visibles */
  filter: brightness(0) invert(1);
  opacity: .9;
  transition: opacity var(--t-fast);
}
.footer__logo:hover .footer__logo-img { opacity: 1; }

.footer__logo-icon {
  width:32px; height:32px;
  background:var(--color-orange);
  border-radius:var(--radius-sm);
  display:flex;
  align-items: flex-start;
  justify-content:center;
  font-size:.85rem;
  font-weight:700;
}

.footer__tagline { font-size:.95rem; color:rgba(255,255,255,.6); line-height:1.7; }

.footer__section-title {
  font-family:var(--font-heading);
  font-size:1.05rem;
  letter-spacing:.1em;
  margin-bottom:var(--space-xs);
  color:var(--color-orange);
}

.footer__links { display:flex; flex-direction:column; gap:.4rem; }

.footer__link { font-size:.92rem; color:rgba(255,255,255,.6); transition:all var(--t-fast); }
.footer__link:hover { color:var(--color-orange); padding-left:.25rem; }

.footer__bottom {
  border-top:1px solid rgba(255,255,255,.08);
  padding-top:var(--space-sm);
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:.85rem;
  color:rgba(255,255,255,.4);
}

.footer__socials { display:flex; gap:var(--space-xs); }

.footer__social {
  width:34px; height:34px;
  border-radius:50%;
  background:rgba(255,255,255,.08);
  display:flex;
  align-items:center;
  justify-content:center;
  color:rgba(255,255,255,.6);
  transition:all var(--t-base);
}
.footer__social:hover { background:var(--color-orange); color:white; transform:translateY(-2px); }

/* ======================================================
   SUB-PAGES: Projects, Team, Achievements
   ====================================================== */

/* ---------- Page hero (smaller) ---------- */
.page-hero {
  background:var(--color-dark);
  color:var(--color-white);
  padding:10.75rem 0 3rem;
  position:relative;
  overflow:hidden;
}

.page-hero--projects {
  padding-top: 11rem;
}

.page-hero::before {
  content:'';
  position:absolute;
  top:-40%; right:-10%;
  width:50%; height:180%;
  background:radial-gradient(ellipse,rgba(234,88,48,.1),transparent 60%);
  pointer-events:none;
}

.page-hero h1 {
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  color:var(--color-white);
  margin-bottom:var(--space-xs);
}

.page-hero p {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color:rgba(255,255,255,.7);
  max-width:600px;
  line-height:1.8;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-size:.78rem;
  color:rgba(255,255,255,.45);
  margin-bottom:var(--space-sm);
  display:flex;
  align-items:center;
  gap:.4rem;
}

.breadcrumb a { color:var(--color-orange); }
.breadcrumb a:hover { text-decoration:underline; }

/* ---------- Line category (projects page) ---------- */
.line-category { margin-bottom:var(--space-lg); }

.line-category__header {
  display:flex;
  align-items:center;
  gap:var(--space-sm);
  margin-bottom:var(--space-sm);
  padding-bottom:var(--space-xs);
  border-bottom:2px solid var(--color-orange-light);
}

.line-category__icon {
  width:40px; height:40px;
  border-radius:var(--radius-md);
  background:var(--color-orange);
  display:flex;
  align-items:center;
  justify-content:center;
  color:white;
  flex-shrink:0;
}

.line-category__title {
  font-family:var(--font-heading);
  font-size:1.5rem;
  color:var(--color-title);
  letter-spacing:.04em;
}

.line-category__desc { font-size:.88rem; }

.projects-grid {
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap:var(--space-sm);
}

.project-card {
  background:var(--color-white);
  border-radius:var(--radius-lg);
  padding:var(--space-md) var(--space-lg);
  border:1px solid rgba(4,9,24,.06);
  transition:all var(--t-base);
}
.project-card:hover { box-shadow:var(--shadow-md); transform:translateY(-2px); border-color:rgba(234,88,48,.15); }

.project-card__badge {
  display:inline-flex;
  align-items:center;
  gap:.25rem;
  font-size:.68rem;
  font-weight:600;
  letter-spacing:.08em;
  text-transform:uppercase;
  padding:.2rem .65rem;
  border-radius:var(--radius-full);
  margin-bottom:var(--space-xs);
}

.project-card__badge--active { background:var(--color-orange-light); color:var(--color-orange); }
.project-card__badge--live { background:rgba(230,58,28,.1); color:var(--color-red); }

.project-card__badge-dot {
  width:5px; height:5px;
  border-radius:50%;
  background:currentColor;
}
.project-card__badge--live .project-card__badge-dot { animation:pulse 2s infinite; }

.project-card__title {
  font-family:var(--font-heading);
  font-size:1.15rem;
  color:var(--color-title);
  margin-bottom:.25rem;
  letter-spacing:.03em;
}

.project-card__text { font-size:.85rem; line-height:1.7; }

/* Project logo inside card */
.project-card__logo-wrap {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: var(--space-xs);
  padding: 0.25rem 0;
}

.project-card__logo {
  max-height: 72px;
  max-width: 180px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.lines-legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  padding: var(--space-lg) 0;
  border-bottom: 1px solid rgba(4,9,24,.1);
}

@media (max-width: 768px) {
  .lines-legend {
    grid-template-columns: 1fr;
  }
}

.legend-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-size: 1.05rem;
  background: var(--color-white);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(4,9,24,.05);
  border-left: 5px solid transparent;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.legend-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.legend-item--active {
  border-left-color: var(--color-orange);
}

.legend-item--live {
  border-left-color: var(--color-red);
}

.legend-item strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--color-title);
  margin-bottom: 0.1rem;
  letter-spacing: 0.03em;
}

.legend-item div {
  line-height: 1.6;
  opacity: 0.9;
}

.legend-dot-wrapper {
  margin-top: 0.6rem;
  flex-shrink: 0;
}

.legend-dot { width: 14px; height: 14px; border-radius: 50%; display: block; }
.legend-dot--active { background: var(--color-orange); box-shadow: 0 0 10px rgba(234,88,48,0.4); }
.legend-dot--live { background: var(--color-red); animation: pulse 2s infinite; box-shadow: 0 0 10px rgba(230,58,28,0.4); }

/* ---------- Team (team page) ---------- */
.team-section__group { margin-bottom:var(--space-lg); }

.team-section__group-title {
  font-family:var(--font-heading);
  font-size:1.5rem;
  color:var(--color-title);
  margin-bottom:var(--space-sm);
  letter-spacing:.04em;
  padding-bottom:var(--space-xs);
  border-bottom:2px solid var(--color-orange-light);
}

.team-grid {
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap:var(--space-sm);
}

.team-grid--two-cols {
  grid-template-columns: repeat(2, minmax(260px, 1fr));
}

.team-card {
  display:flex;
  align-items:center;
  gap:var(--space-md);
  padding:var(--space-md) var(--space-lg);
  background:var(--color-white);
  border-radius:var(--radius-md);
  border:1px solid rgba(4,9,24,.06);
  transition:all var(--t-base);
}
.team-card:hover { box-shadow:var(--shadow-sm); border-color:rgba(234,88,48,.15); transform:translateY(-2px); }

.team-card__photo {
  width:100px;
  height:100px;
  border-radius:50%;
  object-fit:cover;
  display:block;
  flex-shrink:0;
}

.team-card__avatar {
  width:44px; height:44px;
  border-radius:50%;
  background:linear-gradient(135deg,var(--color-orange),var(--color-red));
  display:flex;
  align-items:center;
  justify-content:center;
  color:white;
  font-family:var(--font-heading);
  font-size:1rem;
  flex-shrink:0;
}

.team-card__name { font-weight:600; font-size:.9rem; color:var(--color-title); margin-bottom:.1rem; }
.team-card__role { font-size:.78rem; color:var(--color-text); line-height:1.4; }

/* ---------- Allies Slider (Continuous animation) ---------- */
.allies-slider-container {
  overflow: hidden;
  width: 100%;
  position: relative;
  background: var(--color-orange);
  padding: 3rem 0;
  display: flex;
}

.allies-slider-track {
  display: flex;
  width: fit-content;
  animation: scroll-allies 48s linear infinite;
}

.allies-slider-track:hover {
  animation-play-state: paused;
}

@keyframes scroll-allies {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ally-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: var(--space-sm) var(--space-md);
  border: none;
  transition: transform var(--t-base);
  min-height: 120px;
  width: 220px;
  flex-shrink: 0;
  text-align: center;
}
.ally-card:hover {
  transform: scale(1.15);
  z-index: 10;
}

.ally-card__logo {
  max-height: 72px;
  max-width: 160px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);
}

.ally-card__name {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  line-height: 1.35;
  letter-spacing: 0.02em;
  display: none;
}

/* ---------- Achievements (achievements page) ---------- */
.achievements-list { 
  display:grid; 
  gap:var(--space-md); 
  position:relative; 
}

.achievements-list::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 0;
  left: 21px;
  width: 2px;
  background: rgba(234,88,48,.2);
  z-index: 0;
}

.achievement {
  display:grid;
  grid-template-columns: 42px 1fr;
  gap:var(--space-md);
  align-items:start;
  position:relative;
  z-index: 1;
}

.achievement__content {
  background:var(--color-white);
  padding:var(--space-md) var(--space-lg);
  border-radius:var(--radius-lg);
  border:1px solid rgba(4,9,24,.06);
  transition:all var(--t-base);
}
.achievement:hover .achievement__content { box-shadow:var(--shadow-sm); border-color:rgba(234,88,48,.15); }

.achievement__icon {
  width:42px; height:42px;
  border-radius:50%;
  background:var(--color-bg);
  box-shadow: 0 0 0 4px var(--color-bg);
  border: 2px solid var(--color-orange);
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--color-orange);
  flex-shrink:0;
  margin-top:.15rem;
}

.achievement__title {
  font-family:var(--font-heading);
  font-size:1.1rem;
  color:var(--color-title);
  margin-bottom:.2rem;
  letter-spacing:.03em;
}

.achievement__text { font-size:.88rem; line-height:1.7; }

/* ---------- Reports ---------- */
.reports-grid {
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap:var(--space-sm);
}

.report-card {
  background:var(--color-white);
  border-radius:var(--radius-lg);
  padding:var(--space-md) var(--space-lg);
  border:1px solid rgba(4,9,24,.06);
  transition:all var(--t-base);
}
.report-card:hover { box-shadow:var(--shadow-md); transform:translateY(-2px); }

.report-card__title {
  font-family:var(--font-heading);
  font-size:1.15rem;
  color:var(--color-title);
  margin-bottom:var(--space-xs);
  letter-spacing:.03em;
}

.report-card__links { display:flex; flex-direction:column; gap:.35rem; }

.report-card__link {
  display:inline-flex;
  align-items:center;
  gap:.4rem;
  font-size:.82rem;
  color:var(--color-orange);
  font-weight:500;
  padding:.3rem 0;
  transition:all var(--t-fast);
}
.report-card__link:hover { color:var(--color-red); padding-left:.5rem; }
.report-card__link .icon { width:14px; height:14px; }

/* ---------- Images section ---------- */
.images-grid {
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:var(--space-sm);
}

.image-card {
  border-radius:var(--radius-lg);
  overflow:hidden;
  position:relative;
  cursor:pointer;
  height:260px;
}

.image-card img { width:100%; height:100%; object-fit:cover; transition:transform var(--t-slow); }
.image-card:hover img { transform:scale(1.05); }

.image-card__overlay {
  position:absolute;
  bottom:0; left:0; right:0;
  padding:var(--space-sm);
  background:linear-gradient(to top,rgba(4,9,24,.85),transparent);
  color:white;
  transform:translateY(30%);
  opacity:0;
  transition:all var(--t-base);
}
.image-card:hover .image-card__overlay { transform:translateY(0); opacity:1; }

.image-card__caption { font-size:.82rem; font-weight:500; margin-bottom:.15rem; }
.image-card__source { font-size:.7rem; opacity:.7; }

/* ---------- Reports horizontal rows ---------- */
.reports-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 300px;
  gap: var(--space-sm);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  padding-bottom: .35rem;
}

.reports-row .image-card {
  width: 300px;
  height: 240px;
  scroll-snap-align: start;
  border: 1px solid rgba(19, 33, 67, 0.18);
  box-shadow: 0 10px 24px rgba(4, 9, 24, 0.16);
}

.reports-row .image-card:hover {
  box-shadow: 0 16px 34px rgba(4, 9, 24, 0.24);
}

#informes-gestion .section-subtitle {
  max-width: min(1240px, 96%);
}

.report-project-logo {
  display: block;
  height: 270px;
  width: auto;
  max-width: min(1000px, 100vw);
  object-fit: contain;
  margin-bottom: var(--space-sm);
}

/* ---------- Scroll Reveal ---------- */
.reveal { opacity:0; transform:translateY(25px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.visible { opacity:1; transform:translateY(0); }

.reveal-left  { opacity:0; transform:translateX(-30px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal-left.visible  { opacity:1; transform:translateX(0); }

.reveal-right { opacity:0; transform:translateX(30px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal-right.visible { opacity:1; transform:translateX(0); }

.stagger-children > * { opacity:0; transform:translateY(15px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.stagger-children.visible > *:nth-child(1)  { transition-delay:.04s; }
.stagger-children.visible > *:nth-child(2)  { transition-delay:.08s; }
.stagger-children.visible > *:nth-child(3)  { transition-delay:.12s; }
.stagger-children.visible > *:nth-child(4)  { transition-delay:.16s; }
.stagger-children.visible > *:nth-child(5)  { transition-delay:.20s; }
.stagger-children.visible > *:nth-child(6)  { transition-delay:.24s; }
.stagger-children.visible > *:nth-child(7)  { transition-delay:.28s; }
.stagger-children.visible > *:nth-child(8)  { transition-delay:.32s; }
.stagger-children.visible > *:nth-child(9)  { transition-delay:.36s; }
.stagger-children.visible > *:nth-child(10) { transition-delay:.40s; }
.stagger-children.visible > *:nth-child(11) { transition-delay:.44s; }
.stagger-children.visible > *:nth-child(12) { transition-delay:.48s; }
.stagger-children.visible > * { opacity:1; transform:translateY(0); }

/* ---------- Back to top ---------- */
.back-to-top {
  position:fixed;
  bottom:5.2rem; right:1.5rem;
  width:42px; height:42px;
  border-radius:50%;
  background:var(--color-orange);
  color:white;
  border:none;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:var(--shadow-orange);
  opacity:0;
  transform:translateY(20px);
  transition:all var(--t-base);
  z-index:999;
}
.back-to-top.visible { opacity:1; transform:translateY(0); }
.back-to-top:hover { background:var(--color-red); transform:translateY(-3px); }

/* ---------- WhatsApp Floating Button ---------- */
.whatsapp-float {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  color: #fff;
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.45);
  z-index: 1200;
  transition: transform var(--t-base), box-shadow var(--t-base), background var(--t-base);
}

.whatsapp-float:hover {
  transform: translateY(-2px) scale(1.05);
  background: #1ebe5d;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

/* ---------- Preloader ---------- */
.preloader {
  position:fixed; inset:0;
  background:var(--color-dark);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:10000;
  transition: opacity .5s ease, visibility .5s ease;
}
.preloader.hidden { opacity:0; visibility:hidden; }

.preloader__spinner {
  width:44px; height:44px;
  border:3px solid rgba(234,88,48,.2);
  border-top-color:var(--color-orange);
  border-radius:50%;
  animation:spin .8s linear infinite;
}
@keyframes spin { to { transform:rotate(360deg); } }

/* ---------- Mobile overlay ---------- */
.mobile-overlay {
  position:fixed; inset:0;
  background:rgba(4,9,24,.5);
  z-index:999;
  opacity:0;
  pointer-events:none;
  transition:opacity var(--t-base);
}
.mobile-overlay.active { opacity:1; pointer-events:all; }

/* ---------- Responsive ---------- */
@media (max-width:1024px) {
  .about__grid       { grid-template-columns:1fr; }
  .about__content     { max-width:100%; }
  .action-plans       { grid-template-columns:1fr; }
  .cta__grid          { grid-template-columns:1fr; }
  .footer__inner      { grid-template-columns:1fr 1fr; }
  .contact-grid       { grid-template-columns: repeat(2, 1fr); }
  .values-grid        { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .value-card         { min-height: 300px; }
  .navbar__logo-img   { height: 108px; max-width: 340px; }
  .page-hero          { padding-top: 9.25rem; }
  .page-hero--projects { padding-top: 9.75rem; }
}

@media (max-width:768px) {
  html { font-size:17px; }

  .section       { padding:var(--space-xl) 0; }
  .section--compact { padding:var(--space-lg) 0; }

  .navbar__links {
    position:fixed;
    top:0; right:-100%;
    width:72%; max-width:320px;
    height:100vh;
    background:var(--color-bg);
    flex-direction:column;
    padding:5rem 2rem 2rem;
    gap:1.2rem;
    box-shadow:-10px 0 40px rgba(0,0,0,.1);
    transition:right var(--t-base);
    z-index:1000;
    overflow-y:auto;
  }
  .navbar__links .navbar__link {
    color: var(--color-title);
    font-size: 1.05rem;
  }
  .navbar__links .navbar__link--active {
    color: var(--color-orange);
  }
  .navbar__links .navbar__cta {
    width: 100%;
    justify-content: center;
  }
  .navbar__links.active { right:0; }
  .navbar__toggle { display:flex !important; }
  .navbar__cta { margin-left:0; }
  .navbar__logo-img { height: 82px; max-width: 250px; }
  .page-hero { padding-top: 8rem; }
  .page-hero--projects { padding-top: 8.4rem; }

  .stats-row                 { grid-template-columns:1fr; }
  .approach__phases           { grid-template-columns:1fr; }
  .phase:not(:last-child)::after { display:none; }
  .impact-grid                { grid-template-columns:1fr 1fr; }
  .impact-item::after         { display:none; }
  .footer__inner              { grid-template-columns:1fr; }
  .footer__bottom             { flex-direction:column; gap:var(--space-xs); text-align:center; }
  .images-grid                { grid-template-columns:1fr; }
  .reports-row                { grid-auto-columns:82vw; }
  .reports-row .image-card    { width:82vw; max-width:320px; height:220px; }
  .image-card                 { height:220px; }
  .contact-grid               { grid-template-columns:1fr; }
  .achievement                { grid-template-columns:1fr; }
  .achievement__icon          { display:none; }
  .achievements-list::before  { display:none; }
  .allies-grid                { grid-template-columns:repeat(2,1fr); }

  .hero__title     { font-size:clamp(2.2rem,8vw,3.5rem); }
  .hero__actions   { flex-direction:column; }
  .hero__actions .btn { width:100%; }
  .hero__subtitle  { max-width: 100%; }
  .hero__slider-dots { bottom: 2.3rem; }
  .differential__text br { display: none; }
  .back-to-top { right: 1rem; }
  .whatsapp-float {
    right: 1rem;
    bottom: 1rem;
    width: 52px;
    height: 52px;
  }
}

@media (max-width:480px) {
  html { font-size:16px; }
  .impact-grid   { grid-template-columns:1fr; }
  .allies-grid   { grid-template-columns:1fr; }
  .team-grid     { grid-template-columns:1fr; }
  .projects-grid { grid-template-columns:1fr; }
  .values-grid   { grid-template-columns:1fr; }
  .navbar__logo-img { height: 68px; max-width: 200px; }
  .page-hero { padding-top: 7.4rem; }
  .page-hero--projects { padding-top: 7.7rem; }
  .hero { min-height: 86vh; }
  .hero__content { padding-top: 1rem; }
  .timeline__gallery img {
    width: 100%;
    max-width: 320px;
    height: auto;
    transform: none !important;
  }
  .team-card {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .back-to-top {
    bottom: 4.8rem;
    right: 0.8rem;
  }
  .whatsapp-float {
    right: 0.8rem;
    bottom: 0.8rem;
    width: 50px;
    height: 50px;
  }
  .whatsapp-float svg {
    width: 27px;
    height: 27px;
  }
}

@media (max-width:412px) {
  .container { padding: 0 1rem; }
  .navbar__links {
    width: 78%;
    padding: 4.5rem 1.25rem 1.5rem;
  }
  .navbar__logo-img { height: 63px; max-width: 185px; }
  .hero__title { font-size: clamp(1.95rem, 10vw, 2.5rem); }
  .hero__tagline { font-size: 1.05rem; }
  .hero__subtitle { font-size: 0.9rem; line-height: 1.6; }
  .hero__slider-dots { bottom: 1.6rem; }
  .section-title { font-size: clamp(1.95rem, 9vw, 2.5rem); }
  .btn--lg { padding: 0.85rem 1.2rem; }
}

@media (max-width:360px) {
  html { font-size: 15px; }
  .container { padding: 0 0.85rem; }
  .navbar__logo-img { height: 58px; max-width: 170px; }
  .navbar__links {
    width: 82%;
    padding: 4.25rem 1rem 1.4rem;
  }
  .hero { min-height: 82vh; }
}

@media (max-width: 768px) {
  .allies-slider-container {
    padding: 1.5rem 0;
  }
  .ally-card {
    min-height: 80px;
    width: 150px;
    padding: var(--space-xs);
  }
  .ally-card__logo {
    max-height: 50px;
    max-width: 100px;
  }
}

/* ---------- Historia Timeline ---------- */
.timeline-section {
  position: relative;
  background: var(--color-bg);
}

.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: var(--space-md) 0;
}

.timeline__line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: var(--color-orange-medium);
  transform: translateX(-50%);
  border-radius: var(--radius-full);
}

.timeline__item {
  position: relative;
  margin-bottom: var(--space-2xl);
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.timeline__item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline__dot {
  position: absolute;
  left: 50%;
  top: 20px;
  transform: translateX(-50%);
  width: 24px;
  height: 24px;
  background: var(--color-white);
  border: 4px solid var(--color-orange);
  border-radius: 50%;
  z-index: 2;
  transition: all var(--t-base);
  box-shadow: 0 0 0 4px rgba(234,88,48,0.2);
}

.timeline__item:hover .timeline__dot {
  transform: translateX(-50%) scale(1.3);
  background: var(--color-orange);
  box-shadow: 0 0 15px rgba(234,88,48,0.5);
  border-color: var(--color-white);
}

.timeline__content {
  width: calc(50% - 40px);
  background: #fff;
  padding: var(--space-md);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--color-orange);
  position: relative;
  transition: all var(--t-base);
}

.timeline__item:hover .timeline__content {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.timeline__content::before {
  content: '';
  position: absolute;
  top: 20px;
  width: 0;
  height: 0;
  border-style: solid;
}

.timeline__content--left::before {
  right: -12px;
  border-width: 12px 0 12px 12px;
  border-color: transparent transparent transparent #fff;
  filter: drop-shadow(2px 0 2px rgba(0,0,0,0.05));
}

.timeline__content--right::before {
  left: -12px;
  border-width: 12px 12px 12px 0;
  border-color: transparent #fff transparent transparent;
  filter: drop-shadow(-2px 0 2px rgba(0,0,0,0.05));
}

.timeline__date {
  display: inline-block;
  background: var(--color-orange-light);
  color: var(--color-orange);
  padding: 0.3rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.timeline__title {
  font-size: 1.5rem;
  margin-bottom: var(--space-xs);
  line-height: 1.2;
}

.timeline__item:nth-child(odd) .timeline__content {
  background: rgba(230, 58, 28, 0.25); /* Rojo menos transparente */
  border-top-color: var(--color-red);
}

.timeline__item:nth-child(odd) .timeline__content::before {
  border-left-color: rgba(230, 58, 28, 0.25);
}
.timeline__item:nth-child(even) .timeline__content::before {
  border-right-color: rgba(20, 28, 52, 0.25); /* Azul un poco más saturado */
}

.timeline__item:nth-child(even) .timeline__content {
  background: rgba(20, 28, 52, 0.25); /* Azul menos transparente */
  border-top-color: var(--color-dark);
}

/* El título en color contrario */
.timeline__item:nth-child(odd) .timeline__title {
  color: var(--color-dark);
}
.timeline__item:nth-child(even) .timeline__title {
  color: var(--color-red);
}

/* El texto en gris y negrita */
.timeline__text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.timeline__gallery {
  width: calc(50% - 40px);
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: var(--space-md) 0;
}

.timeline__gallery img {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--t-base);
  box-shadow: var(--shadow-sm);
  border: 3px solid transparent;
}

.timeline__gallery img:only-child {
  transform: translateY(0) !important;
}

.timeline__gallery img:nth-child(odd) {
  transform: translateY(-25px);
}

.timeline__gallery img:nth-child(even) {
  transform: translateY(25px);
}

.timeline__gallery img:hover {
  transform: translateY(0) scale(1.15) !important;
  z-index: 10;
  border-color: var(--color-orange);
  box-shadow: var(--shadow-lg);
}

/* Timeline Animations on Scroll */
.timeline__item.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

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

@media (max-width: 768px) {
  .timeline__line {
    left: 20px;
    transform: none;
  }
  .timeline__item {
    flex-direction: column;
    align-items: flex-start;
  }
  .timeline__item:nth-child(even) {
    flex-direction: column;
  }
  .timeline__dot {
    left: 20px !important;
    transform: translateX(-50%) !important;
  }
  .timeline__item:hover .timeline__dot {
    transform: translateX(-50%) scale(1.2) !important;
  }
  .timeline__content {
    width: calc(100% - 50px) !important;
    margin-left: 50px !important;
    margin-bottom: var(--space-md);
  }
  .timeline__gallery {
    width: calc(100% - 50px) !important;
    margin-left: 50px !important;
  }
  .timeline__content--left::before,
  .timeline__content--right::before {
    left: -12px !important;
    right: auto !important;
    border-width: 12px 12px 12px 0 !important;
    border-color: transparent rgba(230, 58, 28, 0.25) transparent transparent !important;
    filter: drop-shadow(-2px 0 2px rgba(0,0,0,0.05)) !important;
  }
  .timeline__item:nth-child(even) .timeline__content::before {
    border-color: transparent rgba(20, 28, 52, 0.25) transparent transparent !important;
  }
}

/* ---------- Lightbox ---------- */
.lightbox {
  display: none;
  position: fixed;
  z-index: 12000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.lightbox.show {
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
}
.lightbox__content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 0 40px rgba(0,0,0,0.5);
  transform: scale(0.8);
  transition: transform 0.3s var(--ease);
}
.lightbox.show .lightbox__content {
  transform: scale(1);
}
.lightbox__close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color var(--t-fast);
}
.lightbox__close:hover,
.lightbox__close:focus {
  color: var(--color-orange);
  text-decoration: none;
  cursor: pointer;
}
