:root {
  --navy: #14313C;
  --navy-deep: #0D2830;
  --navy-darker: #0A1E24;
  --teal: #378676;
  --teal-light: #6FD6C0;
  --orange: #F77535;
  --orange-light: #FFA167;
  --light: #F7F5F1;
  --white: #FFFFFF;
  --ink: #EAF2F0;
  --ink-soft: #B9CBC6;
  --ink-faint: #8AA29C;
  --glass: rgba(234, 242, 240, 0.06);
  --glass-strong: rgba(234, 242, 240, 0.10);
  --glass-border: rgba(234, 242, 240, 0.14);
  --radius: 20px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--navy-deep);
  color: var(--ink);
  font-family: 'IBM Plex Sans', Arial, sans-serif;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', Arial, sans-serif;
  font-weight: 700;
  margin: 0 0 0.5em;
  color: #FFFFFF;
  line-height: 1.15;
}

p { margin: 0 0 1em; color: var(--ink-soft); line-height: 1.6; }

a { color: var(--teal-light); text-decoration: none; }

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

/* ---------- Network background ---------- */
#network-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: radial-gradient(ellipse at 20% 0%, #1B4A45 0%, var(--navy-deep) 55%, var(--navy-darker) 100%);
}

.page {
  position: relative;
  z-index: 1;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(10, 30, 36, 0.55);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--glass-border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  height: 52px;
  width: auto;
  flex: none;
}

.brand-name {
  font-family: 'Space Grotesk', Arial, sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 2px;
  color: #fff;
  text-transform: uppercase;
}

.brand-sub {
  display: block;
  font-family: 'IBM Plex Sans', Arial, sans-serif;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--ink-faint);
  text-transform: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--teal-light); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--orange), #E85A1B);
  color: #fff;
  box-shadow: 0 8px 24px rgba(247, 117, 53, 0.35);
}

.btn-ghost {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--ink);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 76px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 24px;
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--orange);
}

.hero h1 {
  font-size: clamp(38px, 6vw, 76px);
  max-width: 920px;
}

.hero h1 span { color: var(--teal-light); }

.hero-lead {
  font-size: 19px;
  max-width: 640px;
  color: var(--ink-soft);
}

.hero-ctas {
  display: flex;
  gap: 16px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 64px;
  flex-wrap: wrap;
}

.stat-num {
  font-family: 'Space Grotesk', Arial, sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #fff;
}

.stat-label {
  font-size: 13px;
  color: var(--ink-faint);
  letter-spacing: 0.5px;
}

/* ---------- Brand strip (marquee) ---------- */
.brand-strip {
  position: relative;
  padding: 36px 0 40px;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  background: rgba(10, 30, 36, 0.3);
}

.brand-strip-label {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 24px;
}

.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 64px;
  width: max-content;
  animation: marquee-scroll 32s linear infinite;
}

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

.marquee-item {
  flex: none;
  font-family: 'Space Grotesk', Arial, sans-serif;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--ink-faint);
  opacity: 0.65;
  white-space: nowrap;
  transition: opacity 0.2s, color 0.2s;
}

.marquee-item:hover {
  opacity: 1;
  color: var(--teal-light);
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .marquee { overflow-x: auto; }
}

@media (max-width: 560px) {
  .marquee-item { font-size: 17px; }
  .marquee-track { gap: 40px; animation-duration: 22s; }
}

/* ---------- Sections ---------- */
section {
  padding: 120px 0;
  position: relative;
}

.section-head {
  max-width: 680px;
  margin-bottom: 56px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 44px);
}

/* ---------- Glass panel ---------- */
.panel {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  padding: 40px;
}

/* ---------- Quienes somos ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-item {
  display: flex;
  gap: 20px;
  padding-bottom: 28px;
  position: relative;
}

.timeline-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 22px;
  bottom: 0;
  width: 1px;
  background: var(--glass-border);
}

.timeline-dot {
  flex: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--navy-deep);
  border: 2px solid var(--teal-light);
  margin-top: 4px;
}

.timeline-year {
  font-family: 'Space Grotesk', Arial, sans-serif;
  font-weight: 700;
  color: var(--orange-light);
  font-size: 15px;
  display: block;
  margin-bottom: 4px;
}

/* ---------- Capabilities grid (universos) ---------- */
.universe-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.u-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 28px;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}

.u-card:hover {
  transform: translateY(-4px);
  border-color: rgba(111, 214, 192, 0.4);
  background: var(--glass-strong);
}

.u-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.u-icon.teal { background: rgba(55, 134, 118, 0.25); color: var(--teal-light); }
.u-icon.orange { background: rgba(247, 117, 53, 0.2); color: var(--orange-light); }

.u-icon svg { width: 24px; height: 24px; }

.u-card h3 { font-size: 19px; margin-bottom: 8px; }
.u-card p { font-size: 14.5px; margin: 0; }

.u-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 12px;
}

/* ---------- Process ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.process-step {
  text-align: left;
}

.process-num {
  font-family: 'Space Grotesk', Arial, sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--teal-light);
  opacity: 0.6;
  display: block;
  margin-bottom: 10px;
}

.process-step h4 { font-size: 16px; margin-bottom: 6px; }
.process-step p { font-size: 13.5px; }

/* ---------- Certifications ---------- */
.cert-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cert-chip {
  padding: 10px 18px;
  border-radius: 100px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.5px;
}

/* ---------- Sustainability statement ---------- */
.statement {
  border-radius: 28px;
  padding: 72px;
  background: linear-gradient(135deg, rgba(55,134,118,0.18), rgba(247,117,53,0.10));
  border: 1px solid var(--glass-border);
  text-align: center;
}

.statement h2 {
  font-size: clamp(28px, 4vw, 46px);
  max-width: 820px;
  margin: 0 auto 20px;
}

.statement p {
  max-width: 620px;
  margin: 0 auto;
  font-size: 17px;
}

.pill-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.pill {
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 13.5px;
  font-weight: 600;
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
}

.pill.teal { color: var(--teal-light); }
.pill.orange { color: var(--orange-light); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
}

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

.contact-info-item .u-icon { margin-bottom: 0; flex: none; }

.contact-info-item h4 {
  font-size: 15px;
  margin-bottom: 4px;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: 'IBM Plex Sans', Arial, sans-serif;
  font-weight: 600;
}

.contact-info-item a, .contact-info-item span {
  font-size: 18px;
  color: #fff;
  font-weight: 500;
}

.form-row { display: flex; gap: 16px; margin-bottom: 16px; }
.form-row > * { flex: 1; }

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-faint);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

input, textarea, select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(10, 30, 36, 0.4);
  color: #fff;
  font-family: 'IBM Plex Sans', Arial, sans-serif;
  font-size: 15px;
}

input::placeholder, textarea::placeholder { color: var(--ink-faint); }

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

.field { margin-bottom: 16px; }

.form-note {
  font-size: 13px;
  color: var(--ink-faint);
  margin-top: 12px;
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--glass-border);
  padding: 40px 0;
}

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

.footer-inner p { margin: 0; font-size: 13.5px; color: var(--ink-faint); }

/* ---------- WhatsApp floating button ---------- */
.whatsapp-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.whatsapp-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45);
  flex: none;
  animation: whatsapp-pulse 2.4s infinite;
}

.whatsapp-bubble {
  background: #fff;
  color: #14313C;
  font-family: 'IBM Plex Sans', Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 16px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}

.whatsapp-bubble.visible {
  opacity: 1;
  transform: translateX(0);
}

@keyframes whatsapp-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55), 0 10px 28px rgba(37, 211, 102, 0.45); }
  70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0), 0 10px 28px rgba(37, 211, 102, 0.45); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0), 0 10px 28px rgba(37, 211, 102, 0.45); }
}

@media (max-width: 560px) {
  .whatsapp-bubble { display: none; }
  .whatsapp-fab { right: 18px; bottom: 18px; }
  .whatsapp-icon { width: 54px; height: 54px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .universe-grid { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-inner > .btn-primary { display: none; }
  .statement { padding: 48px 28px; }
  section { padding: 90px 0; }
}

@media (max-width: 560px) {
  .universe-grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .form-row { flex-direction: column; }
  .hero-stats { gap: 28px; }
}
