:root {
  --bg: #f2f7f7;
  --ink: #0f1f22;
  --muted: #5b6d70;

  /* ===== Color principal de marca =====
     Para volver al teal original: comenta el bloque "NUEVO (verde)" y
     descomenta el bloque "ORIGINAL (teal)" de abajo. Es el único lugar
     que hay que tocar, el resto del CSS usa estas variables. */

  /* ORIGINAL (teal)
  --petrol: #0b5d6b;
  --petrol-deep: #073c47;
  --petrol-bright: #12a7b5;
  --petrol-rgb: 11, 93, 107;
  --petrol-bright-rgb: 18, 167, 181;
  */

  /* NUEVO (verde) */
  --petrol: #007b3e;
  --petrol-deep: #00552a;
  --petrol-bright: #1fb579;
  --petrol-rgb: 0, 123, 62;
  --petrol-bright-rgb: 31, 181, 121;

  --line: rgba(var(--petrol-rgb), .14);
  --mint: #b9ece6;
  --lime: #c8f26a;
  --orange: #f2a72a;
  --card: #ffffff;
  --radius: 16px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(70vmax 50vmax at 100% 0%, rgba(var(--petrol-bright-rgb),.16), transparent 60%),
    radial-gradient(50vmax 50vmax at 0% 100%, rgba(242, 167, 42, .16), transparent 60%),
    var(--bg);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap {
  width: min(1120px, 100% - 32px);
  margin-inline: auto;
}

/* ---------- header ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 12px 0;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(242, 247, 247, .82);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.top.stuck { border-color: var(--line); }

.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -.01em;
}
.brand .mark {
  height: 34px;
  width: auto;
  border-radius: 8px;
  object-fit: contain;
}

nav.menu {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--muted);
}
nav.menu a:hover { color: var(--petrol); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: inherit;
  font-weight: 700;
  font-size: .82rem;
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s, background .2s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--petrol-bright), var(--petrol));
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(var(--petrol-rgb),.7);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(var(--petrol-rgb),.8); }
.btn-ghost {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.35);
  color: #fff;
}
.btn-ghost:hover { background: rgba(255,255,255,.18); }
.btn-orange {
  background: linear-gradient(135deg, var(--orange), #d98a12);
  color: #3a2400;
  box-shadow: 0 10px 24px -12px rgba(242, 167, 42, .6);
}
.btn-orange:hover { transform: translateY(-2px); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  margin: 20px 0 8px;
  border-radius: 26px;
  overflow: hidden;
  color: #fff;
  box-shadow: 0 30px 60px -30px rgba(7, 60, 71, .6);
}
.hero .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 65%;
}
.hero .hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(7,60,71,.94) 0%, rgba(7,60,71,.78) 38%, rgba(11,93,107,.35) 70%, rgba(11,93,107,.2) 100%);
}
.hero-content {
  position: relative;
  padding: clamp(40px, 8vw, 84px) clamp(22px, 5vw, 56px);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 16px;
}
.kicker i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--lime);
  animation: pulse 2s infinite;
}
@keyframes pulse { to { box-shadow: 0 0 0 9px rgba(200, 242, 106, 0); } }

.hero h1 {
  font-weight: 800;
  font-size: clamp(2rem, 5.4vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -.03em;
  margin: 0 0 16px;
  max-width: 18ch;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--mint), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p {
  margin: 0 0 28px;
  max-width: 52ch;
  color: rgba(255, 255, 255, .85);
  font-size: 1rem;
  line-height: 1.65;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- secciones ---------- */
.section { padding: 64px 0 8px; }
.section-head {
  margin-bottom: 30px;
  text-align: center;
}
.section-head .eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--petrol);
  background: rgba(var(--petrol-bright-rgb),.12);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.section-head h2 {
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: -.02em;
  margin: 0 0 10px;
}
.section-head p {
  color: var(--muted);
  max-width: 56ch;
  margin: 0 auto;
  font-size: .95rem;
  line-height: 1.6;
}

/* ---------- servicios ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}
.service-card {
  position: relative;
  padding: 26px 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(var(--petrol-rgb),.04), 0 10px 24px -18px rgba(var(--petrol-rgb),.3);
  transition: transform .35s var(--ease), box-shadow .35s, border-color .3s, opacity .5s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 0;
  transform: translateY(14px);
}
.service-card.in, .client-card.in { opacity: 1; transform: translateY(0); }
.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(var(--petrol-bright-rgb),.5);
  box-shadow: 0 20px 40px -20px rgba(var(--petrol-rgb),.5);
}
.service-card .icon {
  width: 48px; height: 48px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--petrol-bright), var(--petrol));
  color: #fff;
}
.service-card .icon svg { width: 24px; height: 24px; }
.service-card h3 { margin: 0; font-size: 1.05rem; font-weight: 800; letter-spacing: -.01em; }
.service-card p { margin: 0; color: var(--muted); font-size: .87rem; line-height: 1.55; flex: 1; }
.service-card .tag {
  align-self: flex-start;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--petrol-deep);
  background: var(--lime);
  padding: 4px 9px;
  border-radius: 999px;
}
.service-card.featured {
  background: linear-gradient(150deg, var(--petrol-deep), var(--petrol));
  border-color: transparent;
  color: #fff;
}
.service-card.featured .icon { background: rgba(255,255,255,.15); }
.service-card.featured p { color: rgba(255,255,255,.78); }
.service-card.featured .link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: .85rem;
  color: var(--lime);
  margin-top: auto;
}
.service-card.featured .link svg { width: 15px; height: 15px; }
.service-card.featured:hover .link { gap: 9px; }
.service-card.featured .link { transition: gap .25s var(--ease); }

/* ---------- clientes ---------- */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.client-card {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(var(--petrol-rgb),.04), 0 10px 24px -18px rgba(var(--petrol-rgb),.3);
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s, opacity .5s var(--ease);
  opacity: 0;
  transform: translateY(14px);
}
a.client-card:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--petrol-bright-rgb),.5);
  box-shadow: 0 18px 34px -18px rgba(var(--petrol-rgb),.5);
}
.client-card .logo {
  width: 48px; height: 48px;
  flex: none;
  border-radius: 12px;
  object-fit: cover;
  background: #fff;
  border: 1px solid var(--line);
}
.client-card .logo.contain { object-fit: contain; background: #050b16; padding: 4px; }
.client-card .info { min-width: 0; }
.client-card h4 { margin: 0 0 2px; font-size: .88rem; font-weight: 700; letter-spacing: -.01em; }
.client-card p { margin: 0; font-size: .74rem; color: var(--muted); }
.client-card.soon { opacity: .6; }
.client-card.soon .logo { filter: grayscale(.5); }

.clients-footnote {
  text-align: center;
  margin-top: 22px;
  font-size: .85rem;
  color: var(--muted);
}
.clients-footnote a { color: var(--petrol); font-weight: 700; }
.clients-footnote a:hover { text-decoration: underline; }

/* ---------- contacto ---------- */
.contact-panel {
  margin: 20px 0;
  padding: clamp(28px, 5vw, 48px);
  border-radius: 26px;
  background: linear-gradient(135deg, var(--petrol) 0%, var(--petrol-deep) 100%);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.contact-panel h2 { margin: 0 0 10px; font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; }
.contact-panel p { margin: 0 auto 30px; max-width: 50ch; color: rgba(255,255,255,.8); font-size: .95rem; }

.contact-icons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}
.contact-icon {
  position: relative;
  width: 52px; height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.22);
  color: #fff;
  cursor: pointer;
  transition: background .25s, transform .25s var(--ease);
}
.contact-icon:hover { background: rgba(255,255,255,.2); transform: translateY(-3px); }
.contact-icon svg { width: 22px; height: 22px; }
.contact-icon .dot {
  position: absolute;
  top: -2px; right: -2px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--orange);
  border: 2px solid var(--petrol-deep);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 20px);
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  box-shadow: 0 16px 34px -14px rgba(0,0,0,.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
  z-index: 50;
  white-space: nowrap;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- pie ---------- */
footer.site-footer {
  margin-top: 56px;
  padding: 26px 0 34px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: .8rem;
}

@media (max-width: 720px) {
  nav.menu { display: none; }
}
@media (max-width: 640px) {
  .wrap { width: min(1120px, 100% - 24px); }
  .hero { margin-top: 12px; border-radius: 20px; }
  .hero .hero-bg { object-position: 70% 65%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
