*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:    #0d0e1f;
  --navy2:   #13152e;
  --navy3:   #1a1d3a;
  --magenta: #c8205a;
  --pink:    #e84393;
  --gold:    #f0a500;
  --gold2:   #ffbe2e;
  --white:   #f4f4f6;
  --muted:   #8890a8;
  --card:    #161929;
  --border:  rgba(240,165,0,0.18);
  --glow:    rgba(200,32,90,0.35);
  --font-head: 'Outfit', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.65;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--magenta); border-radius: 3px; }

body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.025; pointer-events: none; z-index: 9999;
}

/* ===== NAVBAR ===== */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 5%;
  background: rgba(13,14,31,0.85);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: all .35s;
}
nav.scrolled { padding: .8rem 5%; box-shadow: 0 4px 30px rgba(0,0,0,.5); }

.nav-logo {
  font-family: var(--font-head); font-weight: 800; font-size: 1.5rem;
  letter-spacing: -.5px; color: var(--white); text-decoration: none;
}
.nav-logo span { color: var(--gold); }

.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: .9rem;
  font-weight: 500; letter-spacing: .5px; transition: color .25s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0; height: 2px;
  background: var(--gold); transform: scaleX(0); transition: transform .25s;
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta {
  background: var(--magenta); color: #fff !important; padding: .45rem 1.2rem;
  border-radius: 6px; font-weight: 600 !important; transition: background .25s, transform .2s !important;
}
.nav-cta:hover { background: var(--pink) !important; transform: translateY(-1px); }
.nav-cta::after { display: none !important; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: all .3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none; position: fixed; inset: 0; top: 65px;
  background: rgba(13,14,31,.97); backdrop-filter: blur(20px);
  flex-direction: column; align-items: center; justify-content: center;
  gap: 2.5rem; z-index: 999;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-head); font-size: 2rem; font-weight: 700;
  color: var(--white); text-decoration: none; transition: color .2s;
}
.mobile-menu a:hover { color: var(--gold); }

/* ===== HERO SLIDER ===== */
#hero {
  height: 100vh;
  position: relative;
  overflow: hidden;
}

#hero::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(240,165,0,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240,165,0,.05) 1px, transparent 1px);
  background-size: 60px 60px; pointer-events: none; z-index: 1;
}

.slider-track {
  display: flex; width: 300%; height: 100%;
  transition: transform .9s cubic-bezier(.77,0,.18,1);
}

/* ── KEY FIX: height exact, content starts just under navbar ── */
.slide {
  width: 33.333%;
  height: 100vh;
  display: flex;
  align-items: flex-start;
  padding-left: 5%;
  padding-right: 5%;
  padding-bottom: 4rem;
  position: relative;
  flex-shrink: 0;
}

.slide-blob {
  position: absolute; border-radius: 50%;
  filter: blur(90px); pointer-events: none; opacity: .5;
}
.slide-blob-a {
  width: 550px; height: 550px;
  background: radial-gradient(circle, var(--magenta), transparent 70%);
  top: -80px; right: -100px;
  animation: blobFloat 9s ease-in-out infinite alternate;
}
.slide-blob-b {
  width: 380px; height: 380px;
  background: radial-gradient(circle, var(--gold), transparent 70%);
  bottom: -60px; left: 3%;
  animation: blobFloat 11s ease-in-out infinite alternate-reverse;
}
.slide-blob-c {
  width: 550px; height: 550px;
  background: radial-gradient(circle, #3b1f8e, transparent 70%);
  top: -80px; left: -100px;
  animation: blobFloat 9s ease-in-out infinite alternate;
}
.slide-blob-d {
  width: 380px; height: 380px;
  background: radial-gradient(circle, var(--pink), transparent 70%);
  bottom: -60px; right: 3%;
  animation: blobFloat 11s ease-in-out infinite alternate-reverse;
}
.slide-blob-e {
  width: 550px; height: 550px;
  background: radial-gradient(circle, #0a4a6e, transparent 70%);
  top: -80px; right: -100px;
  animation: blobFloat 9s ease-in-out infinite alternate;
}
.slide-blob-f {
  width: 380px; height: 380px;
  background: radial-gradient(circle, var(--gold2), transparent 70%);
  bottom: -60px; left: 3%;
  animation: blobFloat 11s ease-in-out infinite alternate-reverse;
}

@keyframes blobFloat {
  0%   { transform: translate(0,0) scale(1); }
  100% { transform: translate(40px,30px) scale(1.08); }
}

.slide-content { position: relative; z-index: 2; max-width: 680px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(240,165,0,.12); border: 1px solid rgba(240,165,0,.3);
  color: var(--gold); padding: .3rem .9rem;
  border-radius: 100px; font-size: .78rem; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase; margin-bottom: 1rem;
}
.hero-badge::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); animation: pulse 1.5s ease infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

h1 {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 4.8vw, 4.6rem);
  font-weight: 800; line-height: 1.08;
  letter-spacing: -1.5px;
  margin-bottom: 1rem;
}
h1 .outline {
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 2px var(--magenta);
}
h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--gold), var(--pink));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: 1rem; color: var(--muted);
  max-width: 520px; margin-bottom: 1.6rem; line-height: 1.7;
}

.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn-primary {
  background: linear-gradient(135deg, var(--magenta), var(--pink));
  color: #fff; padding: .85rem 2rem;
  border-radius: 8px; text-decoration: none;
  font-weight: 600; font-size: .95rem;
  box-shadow: 0 8px 30px var(--glow);
  transition: transform .25s, box-shadow .25s;
  display: inline-flex; align-items: center; gap: .5rem;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 40px var(--glow); }

.btn-secondary {
  background: transparent; color: var(--white); padding: .85rem 2rem;
  border-radius: 8px; text-decoration: none;
  font-weight: 600; font-size: .95rem;
  border: 1px solid rgba(255,255,255,.2);
  transition: border-color .25s, background .25s;
  display: inline-flex; align-items: center; gap: .5rem;
}
.btn-secondary:hover { border-color: var(--gold); background: rgba(240,165,0,.08); }

.hero-stats {
  display: flex; gap: 2rem; margin-top: 2rem; flex-wrap: wrap;
}
.stat { border-left: 2px solid var(--magenta); padding-left: 1rem; }
.stat-num { font-family: var(--font-head); font-size: 1.7rem; font-weight: 800; line-height: 1; }
.stat-num span { color: var(--gold); }
.stat-label { font-size: .8rem; color: var(--muted); margin-top: .2rem; }

/* Slider visual image */
.slide-visual {
  position: absolute; right: 5%; top: 50%; transform: translateY(-50%);
  width: min(400px, 40vw); display: none; z-index: 2;
}
@media(min-width:960px) { .slide-visual { display: block; } }

.visual-ring {
  width: 100%; aspect-ratio: 1; border-radius: 50%;
  background: linear-gradient(135deg, var(--magenta), #2d1f6e, var(--gold));
  padding: 3px;
  animation: spin 28s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.visual-inner {
  width: 100%; height: 100%; border-radius: 50%;
  background: var(--navy2); display: flex; align-items: center; justify-content: center;
  overflow: hidden; animation: spin 28s linear infinite reverse;
}
.visual-inner img { width: 92%; height: 92%; object-fit: cover; border-radius: 50%; filter: saturate(1.3); }

.float-badge {
  position: absolute; background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; padding: .6rem 1rem; font-size: .75rem; font-weight: 600;
  display: flex; align-items: center; gap: .4rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.4); white-space: nowrap;
}
.float-badge .dot { width: 8px; height: 8px; border-radius: 50%; }
.float-badge-1 { top: 12%; left: -14px; animation: techFloat 4s ease-in-out infinite alternate; }
.float-badge-2 { bottom: 18%; right: -22px; animation: techFloat 4s 1.5s ease-in-out infinite alternate; }
@keyframes techFloat { 0% { transform: translateY(0); } 100% { transform: translateY(-12px); } }

/* Slider controls */
.slider-dots {
  position: absolute; bottom: 2.5rem; left: 5%; z-index: 10;
  display: flex; gap: .6rem; align-items: center;
}
.s-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.25); cursor: pointer;
  transition: all .3s; border: none;
}
.s-dot.active { background: var(--gold); width: 28px; border-radius: 4px; }

.slider-arrows {
  position: absolute; bottom: 2.2rem; right: 5%; z-index: 10;
  display: flex; gap: .6rem;
}
.s-arrow {
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  color: var(--white); font-size: 1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .25s, border-color .25s;
}
.s-arrow:hover { background: var(--magenta); border-color: var(--magenta); }

/* Progress bar */
.slider-progress {
  position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: rgba(255,255,255,.08); z-index: 10;
}
.slider-progress-bar {
  height: 100%; background: linear-gradient(90deg, var(--magenta), var(--gold));
  width: 33.33%; transition: width .1s linear;
}

/* ===== SECTION COMMON ===== */
section { padding: 7rem 5%; }

.section-tag {
  display: inline-flex; align-items: center; gap: .5rem;
  color: var(--gold); font-size: .78rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; margin-bottom: 1rem;
}
.section-tag::before { content: ''; width: 24px; height: 2px; background: var(--gold); }

h2 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800; line-height: 1.12;
  letter-spacing: -1px;
  margin-bottom: 1rem;
}
h2 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--gold), var(--pink));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

h3 { font-family: var(--font-head); font-weight: 700; letter-spacing: -.3px; }

.section-lead { color: var(--muted); font-size: 1.05rem; max-width: 560px; margin-bottom: 3.5rem; }

.reveal { opacity: 0; transform: translateY(40px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== SOBRE ===== */
#sobre { background: var(--navy2); position: relative; overflow: hidden; }
#sobre::before {
  content: ''; position: absolute; top: 0; right: 0;
  width: 600px; height: 600px;
  background: radial-gradient(circle at top right, rgba(200,32,90,.12), transparent 60%);
  pointer-events: none;
}
.sobre-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
@media(max-width:768px) { .sobre-grid { grid-template-columns: 1fr; gap: 3rem; } }

.sobre-text p { color: var(--muted); margin-bottom: 1.2rem; font-size: 1rem; }
.sobre-pills { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.pill {
  background: rgba(240,165,0,.1); border: 1px solid rgba(240,165,0,.25);
  color: var(--gold2); padding: .35rem .9rem;
  border-radius: 100px; font-size: .8rem; font-weight: 600;
}

.sobre-image { position: relative; display: flex; justify-content: center; align-items: center; }
.sobre-img-wrap {
  width: 100%; max-width: 420px; border-radius: 20px; overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px rgba(0,0,0,.5), 0 0 0 1px var(--border); position: relative;
}
.sobre-img-wrap img { width: 100%; display: block; filter: saturate(1.2); }
.sobre-img-wrap::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(200,32,90,.15), transparent 60%);
}
.sobre-card {
  position: absolute; bottom: -20px; left: -20px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 1.2rem 1.6rem;
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
}
.sobre-card-title { font-family: var(--font-head); font-size: 2rem; font-weight: 800; color: var(--gold); line-height: 1; }
.sobre-card-label { font-size: .75rem; color: var(--muted); margin-top: .2rem; }

/* ===== MISSÃO / VISÃO ===== */
#missao { position: relative; }
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media(max-width:768px) { .mv-grid { grid-template-columns: 1fr; } }

.mv-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 2.5rem;
  position: relative; overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.mv-card:hover { transform: translateY(-6px); box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.mv-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.mv-card.missao::before { background: linear-gradient(90deg, var(--magenta), var(--pink)); }
.mv-card.visao::before  { background: linear-gradient(90deg, var(--gold), var(--gold2)); }

.mv-icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 1.2rem;
}
.mv-card.missao .mv-icon { background: rgba(200,32,90,.15); }
.mv-card.visao  .mv-icon { background: rgba(240,165,0,.15); }
.mv-card h3 { font-size: 1.5rem; margin-bottom: .8rem; }
.mv-card p { color: var(--muted); font-size: .95rem; }

/* ===== SERVIÇOS ===== */
#servicos { background: var(--navy2); }
.servicos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }

.servico-card {
  background: var(--navy3); border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px; padding: 2rem;
  transition: all .3s; position: relative; overflow: hidden; cursor: default;
}
.servico-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--magenta), var(--gold));
  opacity: 0; transition: opacity .3s; border-radius: 16px;
}
.servico-card:hover::after { opacity: .06; }
.servico-card:hover { border-color: rgba(240,165,0,.25); transform: translateY(-5px); box-shadow: 0 20px 50px rgba(0,0,0,.4); }

.servico-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, var(--magenta), var(--navy3));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin-bottom: 1.2rem; position: relative; z-index: 1;
}
.servico-card h3 { font-size: 1.15rem; margin-bottom: .6rem; position: relative; z-index: 1; }
.servico-card p { color: var(--muted); font-size: .88rem; line-height: 1.6; position: relative; z-index: 1; }

/* ===== MARCOS — TIMELINE ===== */
#marcos { position: relative; overflow: hidden; }

.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, transparent 0%, var(--magenta) 15%, var(--gold) 85%, transparent 100%);
}

.tl-item {
  display: grid;
  grid-template-columns: 1fr 56px 1fr;
  align-items: start;
  gap: 0;
  margin-bottom: 3.5rem;
  position: relative;
}
.tl-item:last-child { margin-bottom: 0; }

.tl-content {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2rem 2.2rem;
  position: relative;
  transition: transform .35s, box-shadow .35s;
  min-width: 0;
}
.tl-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 60px rgba(0,0,0,.5);
}

.tl-content::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  border-radius: 18px 18px 0 0;
}
.tl-item.energia   .tl-content::before { background: linear-gradient(90deg, var(--magenta), var(--pink)); }
.tl-item.ecommerce .tl-content::before { background: linear-gradient(90deg, var(--gold), var(--gold2)); }

.tl-left .tl-content::after {
  content: '';
  position: absolute; top: 28px; right: -10px;
  width: 0; height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 10px solid var(--border);
}
.tl-right .tl-content::after {
  content: '';
  position: absolute; top: 28px; left: -10px;
  width: 0; height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 10px solid var(--border);
}

.tl-dot-col {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 1.85rem;
}
.tl-dot {
  width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
  border: 3px solid var(--navy);
  position: relative; z-index: 2;
}
.tl-item.energia   .tl-dot { background: var(--magenta); box-shadow: 0 0 0 3px var(--magenta), 0 0 18px var(--glow); }
.tl-item.ecommerce .tl-dot { background: var(--gold);    box-shadow: 0 0 0 3px var(--gold),    0 0 18px rgba(240,165,0,.5); }

.tl-left  .tl-content { grid-column: 1; }
.tl-left  .tl-dot-col { grid-column: 2; }
.tl-left  .tl-empty   { grid-column: 3; }

.tl-right .tl-empty   { grid-column: 1; }
.tl-right .tl-dot-col { grid-column: 2; }
.tl-right .tl-content { grid-column: 3; }

.tl-tag {
  display: inline-block; padding: .28rem .85rem;
  border-radius: 100px; font-size: .7rem; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; margin-bottom: 1rem;
}
.tl-item.energia   .tl-tag { background: rgba(200,32,90,.15); color: var(--pink);  border: 1px solid rgba(200,32,90,.3); }
.tl-item.ecommerce .tl-tag { background: rgba(240,165,0,.12); color: var(--gold2); border: 1px solid rgba(240,165,0,.3); }

.tl-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin-bottom: 1.2rem;
}
.tl-item.energia   .tl-icon { background: rgba(200,32,90,.12); }
.tl-item.ecommerce .tl-icon { background: rgba(240,165,0,.1); }

.tl-content h3 { font-size: 1.2rem; margin-bottom: .7rem; line-height: 1.3; }
.tl-content p  { color: var(--muted); font-size: .9rem; line-height: 1.7; }

@media(max-width:768px) {
  .timeline::before { left: 24px; transform: none; }

  .tl-item {
    grid-template-columns: 48px 1fr;
    grid-template-rows: auto;
    gap: 0 1rem;
    margin-bottom: 2.5rem;
  }

  .tl-left  .tl-dot-col,
  .tl-right .tl-dot-col { grid-column: 1; grid-row: 1; padding-top: 1.6rem; }

  .tl-left  .tl-content,
  .tl-right .tl-content { grid-column: 2; grid-row: 1; }

  .tl-left  .tl-empty,
  .tl-right .tl-empty   { display: none; }

  .tl-left  .tl-content::after { display: none; }
  .tl-right .tl-content::after { display: none; }

  .tl-content::after {
    display: block !important;
    content: '' !important;
    position: absolute !important; top: 22px !important; left: -9px !important;
    right: auto !important;
    width: 0 !important; height: 0 !important;
    border-top: 9px solid transparent !important;
    border-bottom: 9px solid transparent !important;
    border-right: 9px solid var(--border) !important;
    border-left: none !important;
  }
}

/* ===== COMO TRABALHAMOS ===== */
#como { background: var(--navy2); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media(max-width:900px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media(max-width:550px) { .steps-grid { grid-template-columns: 1fr; } }

.step-card {
  background: var(--navy3); border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px; padding: 2rem; transition: all .3s; position: relative;
}
.step-card:hover { border-color: rgba(200,32,90,.3); transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,.3); }
.step-num {
  font-family: var(--font-head); font-size: 4rem; font-weight: 900;
  color: rgba(240,165,0,.1); line-height: 1; position: absolute; top: 1rem; right: 1.2rem;
}
.step-card h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.step-card p { color: var(--muted); font-size: .87rem; }

/* ===== CONTACTO ===== */
#contacto { position: relative; overflow: hidden; }
#contacto::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(200,32,90,.1), transparent 60%);
  pointer-events: none;
}
.contacto-wrap { max-width: 900px; margin: 0 auto; text-align: center; position: relative; z-index: 2; }
.contacto-wrap h2 { margin-bottom: .8rem; }
.contacto-wrap .section-lead { margin: 0 auto 3rem; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem; margin-bottom: 2.5rem;
}
@media(max-width:700px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }

.contact-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 1.8rem 1.2rem;
  text-align: center;
  transition: border-color .3s, transform .3s, box-shadow .3s;
  text-decoration: none; color: inherit; display: block;
}
.contact-card:hover { border-color: var(--magenta); transform: translateY(-5px); box-shadow: 0 16px 40px rgba(200,32,90,.2); }
.contact-card-icon { font-size: 2rem; margin-bottom: .8rem; }
.contact-card-label { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: .4rem; font-weight: 600; }
.contact-card-val { font-size: .92rem; font-weight: 600; color: var(--white); word-break: break-word; }

/* ===== FOOTER ===== */
footer {
  background: #080912; border-top: 1px solid rgba(255,255,255,.06);
  padding: 2rem 5%; display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-logo { font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; color: var(--white); }
.footer-logo span { color: var(--gold); }
footer p { color: var(--muted); font-size: .8rem; }

/* ===== POPUP CONTACTO ===== */
.popup-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(8,9,18,.85);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  opacity: 0; pointer-events: none;
  transition: opacity .35s;
}
.popup-overlay.open { opacity: 1; pointer-events: all; }

.popup {
  background: var(--navy2);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 2.8rem 3rem;
  width: 100%; max-width: 560px;
  position: relative;
  box-shadow: 0 40px 100px rgba(0,0,0,.7);
  transform: translateY(30px) scale(.97);
  transition: transform .4s cubic-bezier(.22,1,.36,1), opacity .4s;
  opacity: 0;
}
.popup-overlay.open .popup { transform: none; opacity: 1; }

.popup::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  border-radius: 22px 22px 0 0;
  background: linear-gradient(90deg, var(--magenta), var(--gold));
}

.popup-close {
  position: absolute; top: 1.2rem; right: 1.4rem;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  color: var(--muted); font-size: 1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s;
}
.popup-close:hover { background: var(--magenta); color: #fff; border-color: var(--magenta); }

.popup h3 {
  font-family: var(--font-head); font-size: 1.7rem; font-weight: 800;
  letter-spacing: -.5px; margin-bottom: .4rem;
}
.popup-subtitle { color: var(--muted); font-size: .9rem; margin-bottom: 2rem; }
.popup-subtitle span { color: var(--gold); font-weight: 600; }

.form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  margin-bottom: 1rem;
}
@media(max-width:500px) { .form-row { grid-template-columns: 1fr; } }

.form-group { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; }
.form-group label {
  font-size: .75rem; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--muted);
}
.form-group input,
.form-group textarea,
.form-group select {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px; padding: .75rem 1rem;
  color: var(--white); font-family: var(--font-body); font-size: .95rem;
  outline: none; transition: border-color .25s, box-shadow .25s;
  width: 100%;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(136,144,168,.5); }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(240,165,0,.12);
}
.form-group select {
  cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238890a8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
}
.form-group select option { background: var(--navy2); }
.form-group textarea { resize: vertical; min-height: 110px; }

.popup-actions {
  display: flex; gap: .8rem; margin-top: 1.8rem; align-items: center;
}
.popup-actions .btn-primary { flex: 1; justify-content: center; }
.popup-cancel {
  background: transparent; border: 1px solid rgba(255,255,255,.12);
  color: var(--muted); padding: .85rem 1.4rem; border-radius: 8px;
  cursor: pointer; font-size: .9rem; font-family: var(--font-body);
  transition: border-color .2s, color .2s;
}
.popup-cancel:hover { border-color: rgba(255,255,255,.3); color: var(--white); }

/* Toast */
.toast {
  position: fixed; bottom: 2.5rem; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--card); border: 1px solid rgba(74,222,128,.35);
  color: #4ade80; padding: .8rem 1.8rem; border-radius: 100px;
  font-size: .9rem; font-weight: 600;
  box-shadow: 0 8px 30px rgba(0,0,0,.5);
  z-index: 3000; opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .3s;
  white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== CURSOR ===== */
.cursor-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--gold);
  position: fixed; pointer-events: none; z-index: 10000;
  transform: translate(-50%, -50%); transition: transform .1s;
}
.cursor-ring {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid rgba(240,165,0,.5);
  position: fixed; pointer-events: none; z-index: 10000;
  transform: translate(-50%, -50%); transition: all .15s ease;
}

/* ===== BACK TO TOP ===== */
.back-top {
  position: fixed; bottom: 2rem; right: 2rem; width: 44px; height: 44px; border-radius: 50%;
  background: var(--magenta); color: #fff; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; border: none; box-shadow: 0 4px 20px var(--glow);
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; z-index: 500;
  text-decoration: none;
}
.back-top.show { opacity: 1; pointer-events: all; }
.back-top:hover { transform: translateY(-3px); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }

/* ===== RESPONSIVE ===== */
@media(max-width:768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  nav .nav-cta { display: none; }
  .cursor-dot, .cursor-ring { display: none; }

  .slide {
    padding-top: 80px;
    padding-bottom: 5rem;
  }
  h1 { font-size: clamp(2rem, 8vw, 3rem); }
  .hero-stats { gap: 1.5rem; margin-top: 1.5rem; }
}