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

:root {
  --blue-950: #0f2340;
  --blue-900: #152d52;
  --blue-800: #1e3d6f;
  --blue-700: #2b4c7e;
  --blue-600: #3561a0;
  --blue-500: #4178c0;
  --blue-400: #6296d4;
  --blue-300: #8fb5e3;
  --blue-200: #bbd3f0;
  --blue-100: #dde9f7;
  --blue-50: #eef4fb;

  --green-800: #1b5e20;
  --green-700: #2e7d32;
  --green-600: #388e3c;
  --green-500: #43a047;
  --green-400: #4caf50;
  --green-300: #81c784;
  --green-200: #a5d6a7;
  --green-100: #c8e6c9;
  --green-50: #e8f5e9;

  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;

  --white: #ffffff;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Outfit', system-ui, sans-serif;
  --font-mono: 'Space Mono', monospace;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--gray-700);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ═══════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.5s var(--ease-out-expo);
  background: transparent;
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 rgba(43, 76, 126, 0.08), 0 4px 30px rgba(0,0,0,0.04);
  padding: 0.5rem 3rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 0;
}

.nav-logo svg {
  height: 58px;
  width: auto;
  transition: height 0.4s var(--ease-out-expo);
}

.nav.scrolled .nav-logo svg { height: 46px; }

.nav-links {
  display: flex;
  gap: 0.15rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--gray-600);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  transition: all 0.25s ease;
  position: relative;
}

.nav-links a:hover { color: var(--blue-700); background: var(--blue-50); }

.nav-cta {
  background: var(--blue-700) !important;
  color: var(--white) !important;
  padding: 0.6rem 1.5rem !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 10px rgba(43,76,126,0.2), inset 0 1px 0 rgba(255,255,255,0.1);
  transition: all 0.3s ease !important;
}

.nav-cta:hover {
  background: var(--blue-800) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 24px rgba(43,76,126,0.3), inset 0 1px 0 rgba(255,255,255,0.1) !important;
}

.nav-mobile { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav-mobile span { display: block; width: 24px; height: 2px; background: var(--blue-700); margin: 5px 0; border-radius: 2px; transition: all 0.3s ease; }

/* ═══════════════════════════════════════
   HERO — FULLSCREEN PHOTO
   ═══════════════════════════════════════ */
.hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: var(--blue-950);
}

.hero-bg-photo {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-bg-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.08);
  will-change: transform;
  transition: transform 0.1s linear;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(105deg,
      rgba(15, 35, 64, 0.92) 0%,
      rgba(21, 45, 82, 0.82) 35%,
      rgba(43, 76, 126, 0.55) 65%,
      rgba(43, 76, 126, 0.3) 100%
    );
}

/* Subtle vignette */
.hero-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(10, 20, 40, 0.3) 100%);
}

.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 3;
}

.bird {
  position: absolute;
  opacity: 0;
  animation: fly-bird linear forwards;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.15));
}

.bird svg {
  animation: flap 0.4s ease-in-out infinite alternate;
}

@keyframes flap {
  0% { transform: scaleY(1); }
  100% { transform: scaleY(0.55); }
}

@keyframes fly-bird {
  0% { transform: translateX(-80px) translateY(0); opacity: 0; }
  5% { opacity: 1; }
  85% { opacity: 1; }
  100% { transform: translateX(calc(100vw + 120px)) translateY(-120px); opacity: 0; }
}

.hero-inner {
  position: relative;
  z-index: 4;
  max-width: 1360px;
  margin: 0 auto;
  padding: 10rem 3rem 5rem;
  width: 100%;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 3rem;
  align-items: end;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1.1rem 0.4rem 0.6rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  margin-bottom: 1.75rem;
  animation: slideIn 0.8s var(--ease-out-expo) both;
}

.hero-tag-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-400);
  box-shadow: 0 0 0 3px rgba(76,175,80,0.25);
  animation: live-pulse 2.5s ease infinite;
}

@keyframes live-pulse {
  0%,100% { box-shadow: 0 0 0 3px rgba(76,175,80,0.25); }
  50% { box-shadow: 0 0 0 10px rgba(76,175,80,0); }
}

.hero-h1 {
  margin-bottom: 1.75rem;
  text-shadow: 0 2px 30px rgba(0,0,0,0.15);
}

.hero-h1 .line { display: block; overflow: hidden; }

.hero-h1 .line span {
  display: inline-block;
  animation: revealLine 1s var(--ease-out-expo) both;
}

.hero-h1 .line:nth-child(1) span { animation-delay: 0.15s; }
.hero-h1 .line:nth-child(2) span { animation-delay: 0.35s; }
.hero-h1 .line:nth-child(3) span { animation-delay: 0.5s; }

@keyframes revealLine {
  from { transform: translateY(115%); }
  to { transform: translateY(0); }
}

/* INMAS — the brand, biggest and boldest */
.hero-brand {
  font-family: var(--font-body);
  font-size: clamp(4rem, 8vw, 6.5rem);
  font-weight: 900;
  color: var(--white);
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

/* Ingeniería y Medio Ambiente — strong secondary */
.hero-activity {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--green-300);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-top: 0.2rem;
}

/* Sustentable — subtle descriptor */
.hero-suffix {
  font-family: var(--font-body);
  font-size: clamp(0.85rem, 1.3vw, 1.05rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  margin-top: 0.5rem;
}

/* Decorative line between brand and activity */
.hero-line {
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--green-400), var(--green-300));
  border-radius: 3px;
  margin: 0.6rem 0;
  animation: expandLine 0.8s 0.55s var(--ease-out-expo) both;
}

@keyframes expandLine {
  from { width: 0; opacity: 0; }
  to { width: 60px; opacity: 1; }
}

.hero-desc {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 520px;
  margin-bottom: 2.5rem;
  line-height: 1.85;
  animation: slideIn 0.8s 0.55s var(--ease-out-expo) both;
}

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

.hero-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  animation: slideIn 0.8s 0.65s var(--ease-out-expo) both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2rem;
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.35s var(--ease-out-expo);
  font-family: var(--font-body);
  position: relative;
  overflow: hidden;
}

.btn-fill {
  background: var(--green-600);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(56,142,60,0.3), inset 0 1px 0 rgba(255,255,255,0.15);
}

.btn-fill:hover {
  background: var(--green-500);
  transform: translateY(-3px);
  box-shadow: 0 8px 36px rgba(56,142,60,0.45), inset 0 1px 0 rgba(255,255,255,0.15);
}

.btn-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, transparent 50%);
  pointer-events: none;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-3px);
}

/* Hero right column — stats */
.hero-right {
  animation: slideIn 1s 0.8s var(--ease-out-expo) both;
}

.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.stat-card {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.35s var(--ease-out-expo);
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateX(-6px);
  border-color: rgba(255, 255, 255, 0.2);
}

.stat-icon {
  font-size: 1.6rem;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.15rem;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 400;
  line-height: 1.4;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: slideIn 1s 1.2s var(--ease-out-expo) both;
}

.hero-scroll-text {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  position: relative;
  overflow: hidden;
}

.hero-scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--green-400);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0% { top: -100%; }
  50% { top: 100%; }
  100% { top: 100%; }
}

/* Nav adjustments for dark hero */
.nav:not(.scrolled) .nav-links a { color: rgba(255, 255, 255, 0.75); }
.nav:not(.scrolled) .nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.08); }
.nav:not(.scrolled) .nav-cta { background: var(--green-600) !important; }
.nav:not(.scrolled) .nav-cta:hover { background: var(--green-500) !important; }
.nav:not(.scrolled) .nav-mobile span { background: var(--white); }
.nav:not(.scrolled) .nav-logo svg text { fill: var(--white); }
.nav:not(.scrolled) .nav-logo svg line { stroke: rgba(255,255,255,0.5); }

/* ═══════════════════════════════════════
   SECTIONS COMMON
   ═══════════════════════════════════════ */
section { padding: 7rem 3rem; position: relative; }

.container { max-width: 1360px; margin: 0 auto; }

.sec-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--green-600);
  text-transform: uppercase;
  letter-spacing: 4px;
  font-weight: 700;
  margin-bottom: 1rem;
}

.sec-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  color: var(--blue-900);
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.sec-desc {
  font-size: 1.05rem;
  color: var(--gray-500);
  max-width: 560px;
  line-height: 1.8;
}

.sec-header-center { text-align: center; margin-bottom: 4rem; }
.sec-header-center .sec-desc { margin: 0 auto; }

/* ═══════════════════════════════════════
   SERVICES
   ═══════════════════════════════════════ */
.services-sec { background: var(--gray-50); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.srv-card {
  position: relative;
  padding: 2.5rem;
  background: var(--white);
  border-radius: 20px;
  border: 1px solid var(--gray-200);
  transition: all 0.45s var(--ease-out-expo);
  overflow: hidden;
  cursor: default;
}

.srv-bg-anim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.srv-anim-svg {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  opacity: 0.7;
  transition: opacity 0.5s ease;
}

.srv-card:hover .srv-anim-svg { opacity: 1; }

.srv-card.pressed .srv-anim-svg {
  opacity: 1;
  transform: scale(1.05);
  filter: saturate(2);
}

.srv-card.pressed .srv-anim-svg * {
  animation-duration: 0.5s !important;
}

.srv-card > *:not(.srv-bg-anim) { position: relative; z-index: 1; }

.srv-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out-expo);
}

.srv-card.water::before { background: linear-gradient(90deg, var(--blue-500), var(--blue-300)); }
.srv-card.bio::before { background: linear-gradient(90deg, var(--green-600), var(--green-300)); }
.srv-card.eng::before { background: linear-gradient(90deg, var(--blue-600), var(--blue-400)); }
.srv-card.social::before { background: linear-gradient(90deg, #d4930a, #f0c040); }
.srv-card.rca::before { background: linear-gradient(90deg, #d4930a, #f0c040); }

.srv-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
  border-color: transparent;
}

.srv-card:hover::before { transform: scaleX(1); }

.srv-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.srv-card.water .srv-icon { background: var(--blue-50); }
.srv-card.bio .srv-icon { background: var(--green-50); }
.srv-card.eng .srv-icon { background: rgba(53,97,160,0.06); }
.srv-card.social .srv-icon { background: rgba(212,147,10,0.06); }
.srv-card.rca .srv-icon { background: rgba(212,147,10,0.06); }

.srv-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--blue-900);
  margin-bottom: 0.7rem;
  line-height: 1.3;
}

.srv-card p {
  color: var(--gray-500);
  font-size: 0.92rem;
  line-height: 1.8;
}

.srv-card ul {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.3rem 1rem;
}

.srv-card ul li {
  font-size: 0.82rem;
  color: var(--gray-500);
  padding-left: 1rem;
  position: relative;
  line-height: 1.6;
}

.srv-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.srv-card.water ul li::before { background: var(--blue-400); }
.srv-card.bio ul li::before { background: var(--green-400); }
.srv-card.eng ul li::before { background: var(--blue-300); }
.srv-card.rca ul li::before { background: #d4930a; }

.srv-card .srv-result {
  font-size: 0.82rem;
  color: var(--blue-700);
  font-weight: 600;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--gray-100);
  line-height: 1.6;
}

.srv-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.25rem;
}

.srv-tag {
  font-size: 0.7rem;
  padding: 0.25rem 0.7rem;
  border-radius: 6px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.srv-card.water .srv-tag { background: var(--blue-50); color: var(--blue-600); }
.srv-card.bio .srv-tag { background: var(--green-50); color: var(--green-700); }
.srv-card.eng .srv-tag { background: rgba(53,97,160,0.06); color: var(--blue-500); }
.srv-card.social .srv-tag { background: rgba(212,147,10,0.06); color: #9a7510; }
.srv-card.rca .srv-tag { background: rgba(212,147,10,0.06); color: #9a7510; }

/* Text emphasis for descriptions */
.hero-desc strong, .srv-card p strong, .team-intro-text strong {
  color: var(--blue-800);
  font-weight: 600;
}

.sec-desc strong {
  color: var(--blue-900);
  font-weight: 700;
}

/* ═══════════════════════════════════════
   GALLERY
   ═══════════════════════════════════════ */
.gallery-sec { background: var(--white); overflow: hidden; }

.gallery-track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.5rem 0 3rem;
  scrollbar-width: none;
  cursor: grab;
}

.gallery-track::-webkit-scrollbar { display: none; }

.gallery-card {
  flex: 0 0 400px;
  scroll-snap-align: start;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 16/10;
  background: var(--gray-100);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: all 0.5s var(--ease-out-expo);
}

.gallery-card:hover {
  transform: scale(1.03) translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out-expo);
}

.gallery-card:hover img { transform: scale(1.08); }

.gallery-card-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(15,35,64,0.92) 0%, transparent 100%);
  color: rgba(255,255,255,0.95);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.5;
}

.gallery-card-label .loc {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--green-300);
  margin-top: 0.25rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Scroll hint */
.gallery-hint {
  text-align: center;
  margin-top: -1rem;
  font-size: 0.78rem;
  color: var(--gray-400);
  font-weight: 500;
  animation: bounce-x 2s ease infinite;
}

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

/* ═══════════════════════════════════════
   TEAM
   ═══════════════════════════════════════ */
.team-sec { background: var(--gray-50); }

.team-intro {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3.5rem;
  margin-bottom: 4rem;
  align-items: center;
}

.team-intro-text {
  color: var(--gray-500);
  font-size: 1.05rem;
  line-height: 1.9;
}

.team-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.team-tag {
  padding: 0.6rem 1.2rem;
  background: var(--white);
  border: 1.5px solid var(--blue-100);
  border-radius: 12px;
  color: var(--blue-700);
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.team-tag:hover {
  border-color: var(--blue-400);
  background: var(--blue-50);
  transform: translateY(-2px);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.member {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  padding: 2rem 1.5rem 1.75rem;
  text-align: center;
  transition: all 0.45s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.member::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 20%;
  height: 3px;
  background: linear-gradient(90deg, var(--green-400), var(--blue-400));
  border-radius: 3px 3px 0 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.member:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 50px rgba(0,0,0,0.08);
  border-color: transparent;
}

.member:hover::after { opacity: 1; }

.member-pic {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  overflow: hidden;
  border: 3px solid var(--green-100);
  background: var(--gray-100);
  transition: border-color 0.3s ease;
}

.member:hover .member-pic { border-color: var(--green-400); }

.member-pic img { width: 100%; height: 100%; object-fit: cover; }

.member h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue-900);
  margin-bottom: 0.2rem;
}

.member .role {
  font-size: 0.76rem;
  color: var(--green-600);
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.member .deg {
  font-size: 0.8rem;
  color: var(--gray-500);
  line-height: 1.5;
}

/* ═══════════════════════════════════════
   VALUES
   ═══════════════════════════════════════ */
.values-sec { background: var(--white); }

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.val-card {
  padding: 2.25rem 1.5rem;
  border-radius: 20px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  text-align: center;
  transition: all 0.4s var(--ease-out-expo);
  position: relative;
}

.val-card:hover {
  background: var(--white);
  border-color: var(--green-200);
  transform: translateY(-5px);
  box-shadow: 0 16px 50px rgba(76,175,80,0.08);
}

.val-emoji {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
  transition: transform 0.4s var(--ease-spring);
}

.val-card:hover .val-emoji { transform: scale(1.2) rotate(-5deg); }

.val-card h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--blue-900);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.val-card p {
  font-size: 0.88rem;
  color: var(--gray-500);
  line-height: 1.7;
}

/* ═══════════════════════════════════════
   CLIENTS
   ═══════════════════════════════════════ */
.clients-sec {
  background: var(--blue-900);
  padding: 5rem 3rem;
  position: relative;
  overflow: hidden;
}

.clients-sec::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle 400px at 20% 50%, rgba(76,175,80,0.08) 0%, transparent 60%),
    radial-gradient(circle 300px at 80% 30%, rgba(65,120,192,0.1) 0%, transparent 50%);
}

.clients-sec .sec-label { color: var(--green-300); }
.clients-sec .sec-title { color: var(--white); text-align: center; }

.clients-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
  padding: 2.5rem 0 0;
}

.clients-row img {
  height: 42px;
  opacity: 0.45;
  filter: brightness(0) invert(1);
  transition: all 0.4s ease;
}

.clients-row img:hover { opacity: 0.85; transform: scale(1.08); }

/* ═══════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════ */
.contact-sec { background: var(--gray-50); }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3.5rem;
  align-items: start;
}

.contact-left h3 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  color: var(--blue-900);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.contact-left > p {
  color: var(--gray-500);
  margin-bottom: 2.5rem;
  line-height: 1.8;
  font-size: 1.02rem;
}

.c-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.c-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.c-text strong {
  display: block;
  color: var(--blue-900);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.1rem;
}

.c-text a, .c-text span {
  color: var(--gray-500);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.c-text a:hover { color: var(--green-600); }

.contact-form-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 8px 40px rgba(0,0,0,0.04);
}

.contact-form-card h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--blue-900);
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.f-group { margin-bottom: 1rem; }

.f-group label {
  display: block;
  font-size: 0.78rem;
  color: var(--gray-500);
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.f-group input, .f-group textarea, .f-group select {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: 12px;
  color: var(--gray-800);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: all 0.3s ease;
}

.f-group input:focus, .f-group textarea:focus, .f-group select:focus {
  border-color: var(--blue-400);
  box-shadow: 0 0 0 4px rgba(43,76,126,0.06);
  background: var(--white);
}

.f-group textarea { resize: vertical; min-height: 100px; }

.f-submit {
  width: 100%;
  padding: 1rem;
  background: var(--blue-700);
  color: var(--white);
  border: none;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.35s var(--ease-out-expo);
  margin-top: 0.5rem;
  box-shadow: 0 4px 16px rgba(43,76,126,0.2), inset 0 1px 0 rgba(255,255,255,0.1);
  font-family: var(--font-body);
  position: relative;
  overflow: hidden;
}

.f-submit::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, transparent 50%);
  pointer-events: none;
}

.f-submit:hover {
  background: var(--blue-800);
  transform: translateY(-3px);
  box-shadow: 0 10px 36px rgba(43,76,126,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
}

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
footer {
  background: var(--blue-950);
  padding: 2.5rem 3rem;
}

.footer-inner {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand { font-family: var(--font-display); font-weight: 800; color: rgba(255,255,255,0.7); font-size: 1.1rem; }
.footer-copy { font-size: 0.76rem; color: rgba(255,255,255,0.3); margin-top: 0.25rem; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 0.82rem; color: rgba(255,255,255,0.35); text-decoration: none; transition: color 0.3s ease; }
.footer-links a:hover { color: var(--green-400); }

/* ═══════════════════════════════════════
   SCROLL REVEAL
   ═══════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ═══════════════════════════════════════
   WHATSAPP
   ═══════════════════════════════════════ */
.wa {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  width: 58px;
  height: 58px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.35);
  transition: all 0.35s var(--ease-spring);
  text-decoration: none;
  animation: slideIn 1s 1s var(--ease-out-expo) both;
}

.wa svg { width: 30px; height: 30px; fill: white; }

.wa:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 32px rgba(37,211,102,0.5);
}

/* ═══════════════════════════════════════
   LIGHTBOX
   ═══════════════════════════════════════ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(10, 20, 40, 0.92);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out-expo);
  padding: 2rem;
  cursor: pointer;
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox img {
  max-width: 90vw;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 80px rgba(0,0,0,0.4);
  transform: scale(0.9);
  transition: transform 0.5s var(--ease-out-expo);
}

.lightbox.active img { transform: scale(1); }

.lightbox-caption {
  margin-top: 1.25rem;
  text-align: center;
  max-width: 600px;
}

.lightbox-title {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.lightbox-desc {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  line-height: 1.6;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lightbox-close:hover { background: rgba(255,255,255,0.2); transform: scale(1.1); }

.gallery-card, .hero-img { cursor: pointer; }

/* Gallery navigation arrows */
.gallery-wrapper {
  position: relative;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(calc(-50% - 1.5rem));
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--gray-200);
  color: var(--blue-700);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.35s var(--ease-out-expo);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.gallery-arrow:hover {
  background: var(--blue-700);
  color: var(--white);
  border-color: var(--blue-700);
  transform: translateY(calc(-50% - 1.5rem)) scale(1.08);
  box-shadow: 0 8px 30px rgba(43,76,126,0.2);
}

.gallery-arrow.left { left: max(1rem, calc((100% - 1360px)/2 - 28px)); }
.gallery-arrow.right { right: max(1rem, calc((100% - 1360px)/2 - 28px)); }

.gallery-arrow svg { width: 20px; height: 20px; fill: currentColor; }

/* Lightbox navigation */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}

.lightbox-nav:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.35);
  transform: translateY(-50%) scale(1.08);
}

.lightbox-nav.prev { left: 2rem; }
.lightbox-nav.next { right: 2rem; }

.lightbox-nav svg { width: 22px; height: 22px; fill: currentColor; }

.lightbox-counter {
  position: absolute;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 2px;
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-inner, .contact-layout, .team-intro { grid-template-columns: 1fr; }
  .hero-right { margin-top: 1rem; }
  .hero-stats { flex-direction: row; }
  .stat-card { flex: 1; flex-direction: column; text-align: center; gap: 0.5rem; }
  .stat-icon { margin: 0 auto; }
  .team-grid, .values-grid { grid-template-columns: repeat(2, 1fr); }
  section { padding: 5rem 2rem; }
  .nav { padding: 0.8rem 1.5rem; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-mobile { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    padding: 1.5rem;
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    gap: 0.25rem;
  }
  .nav-links.open a { color: var(--gray-600) !important; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery-card { flex: 0 0 320px; }
  .hero-buttons { flex-direction: column; }
  .hero-stats { flex-direction: column; }
  .f-row { grid-template-columns: 1fr; }
  .clients-row { gap: 2.5rem; }
  .hero-scroll { display: none; }
  .hero-inner { padding: 8rem 1.5rem 4rem; }
}

@media (max-width: 480px) {
  .team-grid, .values-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 0.5rem; }
  section { padding: 4rem 1.25rem; }
}