:root {
  --obsidian: #0B0D10;
  --graphite: #22262C;
  --card: #191C21;
  --card-2: #14171B;
  --white: #F7F8FA;
  --steel: #C7CCD3;
  --steel-dim: #9BA1A9;
  --lime: #B8FF4D;
  --lime-dark: #8FCC2E;
  --max-w: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--graphite);
  color: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.kicker {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 0.75rem;
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  max-width: 720px;
  text-wrap: balance;
}

h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }

.lead {
  font-size: 1.05rem;
  color: var(--steel);
  max-width: 720px;
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.15s ease, opacity 0.15s ease;
  border: none;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--lime);
  color: var(--obsidian);
}
.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1.5px solid var(--steel-dim);
}

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(34, 38, 44, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}
.nav-icon { width: 26px; height: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}
.nav-links a { font-weight: 500; font-size: 0.95rem; color: var(--steel); }
.nav-links a:hover, .nav-links a.current { color: var(--white); }
.nav-cta {
  background: var(--lime);
  color: var(--obsidian) !important;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-weight: 700 !important;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.2s ease;
}

/* CAROUSEL HERO */
.carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 8;
  max-height: 620px;
  min-height: 340px;
  overflow: hidden;
  background: var(--obsidian);
}
.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}
.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 900ms ease;
}
.slide.active { opacity: 1; }
.slide-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11,13,16,0.88) 0%, rgba(11,13,16,0.55) 32%, rgba(11,13,16,0.12) 58%),
    linear-gradient(0deg, rgba(11,13,16,0.75) 0%, rgba(11,13,16,0) 40%);
}
.slide-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
}
.slide-content-inner {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
}
.slide-phrase {
  max-width: 480px;
  font-size: clamp(1.2rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--white);
  text-wrap: balance;
  line-height: 1.3;
}
.carousel-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.2rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  z-index: 5;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(247,248,250,0.35);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, width 0.2s ease;
}
.dot.active {
  background: var(--lime);
  width: 22px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .slide { transition: none; }
}

/* Compact hero-lockup under carousel */
.hero-lockup {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.6rem 1.5rem 2.2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}
.hero-lockup img { width: min(180px, 50vw); }
.hero-lockup .lead { text-align: center; }

/* SECTIONS */
.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 4rem 1.5rem;
}
.section-cta {
  text-align: center;
}
.section-cta h2, .section-cta .lead { margin-left: auto; margin-right: auto; }

/* STEPS */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--obsidian);
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
}
.step p { color: var(--steel); font-size: 0.92rem; }

/* CARDS (generic) */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
  margin-top: 2rem;
}
.card {
  background: var(--card);
  border-left: 3px solid var(--lime);
  border-radius: 8px;
  padding: 1.3rem 1.5rem;
}
.card p { color: var(--steel); font-size: 0.95rem; }
.card-accent { border-left-color: var(--white); }

/* SERVICIOS teaser card on home */
.servicios-teaser {
  background: var(--card);
  border-radius: 10px;
  padding: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 2rem;
}
.servicios-teaser p { color: var(--steel); max-width: 520px; }

/* STATS */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 2rem 0 2.5rem;
}
.stat-num {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--lime);
  font-variant-numeric: tabular-nums;
}
.stat-label { color: var(--steel); font-size: 0.9rem; margin-top: 0.2rem; }

/* CONTACT */
.contact-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 1.8rem 0 1.3rem;
  flex-wrap: wrap;
}
.contact-detail { color: var(--steel-dim); font-size: 0.9rem; }

/* FOOTER */
.footer {
  text-align: center;
  padding: 3rem 1.5rem 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  color: var(--steel-dim);
}
.footer-icon { width: 28px; margin: 0 auto 0.8rem; opacity: 0.8; }
.footer p { font-size: 0.88rem; margin-top: 0.3rem; }
.footer-copy { margin-top: 0.6rem; opacity: 0.7; }

/* ============ SERVICIOS PAGE ============ */
.page-header {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3.5rem 1.5rem 1rem;
}
.page-header h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 0.8rem;
  text-wrap: balance;
}

.disclaimer {
  max-width: var(--max-w);
  margin: 1.5rem auto 3rem;
  padding: 0 1.5rem;
}
.disclaimer-inner {
  background: var(--card);
  border-left: 3px solid var(--lime);
  border-radius: 8px;
  padding: 1.1rem 1.4rem;
  color: var(--steel);
  font-size: 0.95rem;
}
.disclaimer-inner strong { color: var(--white); }

.servicios-list {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.service-card {
  background: var(--card);
  border-radius: 10px;
  padding: 1.8rem 1.9rem;
}
.service-card-head { margin-bottom: 1.2rem; }
.service-card-head h3 { font-size: 1.25rem; margin-bottom: 0.35rem; }
.service-card-head p { color: var(--steel); font-size: 0.94rem; max-width: 620px; }

.rubro-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
}
.rubro-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--steel-dim);
  font-weight: 700;
  margin-right: 0.3rem;
}
.rubro-pill {
  background: var(--card-2);
  color: var(--steel);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.rubro-pill:hover { border-color: rgba(184,255,77,0.4); }
.rubro-pill.active {
  background: var(--lime);
  color: var(--obsidian);
  border-color: var(--lime);
}

.example-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  background: var(--card-2);
  border-radius: 8px;
  padding: 1.2rem 1.4rem;
}
.example-stat .stat-num { font-size: 1.5rem; }
.example-stat .stat-label { font-size: 0.82rem; }

.service-card.medida {
  border: 1px dashed rgba(247,248,250,0.25);
  background: transparent;
}
.service-card.medida h3 { color: var(--white); }
.service-card.medida p { color: var(--steel); }

/* RESPONSIVE */
@media (max-width: 860px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .example-stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--graphite);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.2rem 1.5rem 1.6rem;
    gap: 1rem;
    display: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .steps { grid-template-columns: 1fr; }
  .carousel { aspect-ratio: 4 / 5; max-height: 520px; }
  .slide-scrim {
    background:
      linear-gradient(0deg, rgba(11,13,16,0.92) 0%, rgba(11,13,16,0.35) 45%, rgba(11,13,16,0.1) 65%);
  }
  .slide-content { align-items: flex-end; padding-bottom: 2.2rem; }
  .slide-phrase { max-width: 100%; }
  .example-stats { grid-template-columns: 1fr; }
}
