/* ─── RESET & VARIABLES ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #051214;
  --bg2:       #07111c;
  --bg3:       #0b1c2d;
  --cyan:      #00d4e8;
  --cyan2:     #00a8c0;
  --teal:      #00e0c0;
  --blue:      #1a6bff;
  --text:      #d8e8f0;
  --muted:     #6a8fa8;
  --border:    rgba(85, 180, 189, 0.18);
  --card:      rgba(0,212,232,.04);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Exo 2', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* ─── CANVAS ─── */
#wave-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0 !important;
  opacity: .55;
}

/* ─── TOP BAR CORPORATIVA ─── */
.top-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: #030a10; 
  border-bottom: 1px solid var(--border);
  height: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 8vw;
  font-size: 0.8rem;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  letter-spacing: 0.05em;
  z-index: 1000;
}

.top-bar-info span { color: var(--muted); margin-right: 20px; }
.top-bar-links a { color: var(--text); text-decoration: none; margin-left: 20px; transition: color 0.3s; }
.top-bar-links a:hover { color: var(--cyan); }


/* ─── NAV ─── */
nav {
  position: fixed;
  top: 40px !important; /* Ajustado para la top-bar */
  left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6vw;
  height: 70px;
  background: rgba(5,12,20,.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-logo { display: flex; align-items: center; gap: .8rem; text-decoration: none; }
.nav-logo-img { height: 56px; width: 56px; object-fit: contain; flex-shrink: 0; filter: drop-shadow(0 0 8px rgba(0,212,232,.5)); }
.nav-logo-text { font-family: 'Rajdhani', sans-serif; font-size: 1.35rem; font-weight: 700; letter-spacing: .12em; color: #fff; text-transform: uppercase; line-height: 1; }
.nav-logo-text em { font-style: normal; color: var(--cyan); }

.nav-links { display: flex; gap: 2.2rem; list-style: none; }
.nav-links a { font-family: 'Rajdhani', sans-serif; font-size: .95rem; font-weight: 600; letter-spacing: .08em; text-decoration: none; color: var(--muted); text-transform: uppercase; transition: color .2s; }
.nav-links a:hover, .nav-links a.active-link { color: var(--cyan); }

.nav-cta { background: linear-gradient(135deg, var(--cyan2), var(--blue)) !important; color: #fff !important; padding: .45rem 1.3rem !important; border-radius: 4px; font-weight: 700 !important; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { width: 26px; height: 2px; background: var(--cyan); border-radius: 2px; transition: .3s; }


/* ─── SECCIONES ─── */
section {
  display: block;
  width: 100%;
  min-height: 100vh;
  padding: 140px 8vw 100px;
  position: relative;
  z-index: 1;
  scroll-margin-top: 110px; /* offset por top-bar + nav fijos */
}

.section-tag { font-family: 'Rajdhani', sans-serif; font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--cyan); margin-bottom: .8rem; }
.section-title { font-family: 'Rajdhani', sans-serif; font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; letter-spacing: -.01em; text-transform: uppercase; color: #fff; line-height: 1.1; margin-bottom: 1rem; }
.section-desc { font-size: 1rem; font-weight: 300; color: var(--muted); max-width: 600px; line-height: 1.8; }

hr.divider { border: none; border-top: 1px solid var(--border); margin: 0 8vw; }


/* ─── HERO ─── */
#hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 0 8vw; overflow: hidden; }
.hero-badge { display: inline-flex; align-items: center; gap: .5rem; background: rgba(0,212,232,.08); border: 1px solid var(--border); border-radius: 99px; padding: .3rem 1rem; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); margin-bottom: 1.8rem; width: fit-content; }
.hero-badge::before { content:''; width:6px; height:6px; border-radius:50%; background:var(--cyan); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{ box-shadow: 0 0 0 0 rgba(0,212,232,.5); } 50% { box-shadow: 0 0 0 6px rgba(0,212,232,0); } }
h1 { font-family: 'Rajdhani', sans-serif; font-size: clamp(3.2rem, 8vw, 7rem); font-weight: 900; line-height: .95; letter-spacing: -.01em; color: #fff; text-transform: uppercase; }
h1 .accent { color: var(--cyan); }
.hero-sub { margin-top: 1.6rem; font-size: clamp(1rem, 1.8vw, 1.2rem); font-weight: 300; color: var(--muted); max-width: 560px; line-height: 1.7; }
.hero-actions { margin-top: 2.5rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary { background: linear-gradient(135deg, var(--cyan2), var(--blue)); color: #fff; padding: .85rem 2.2rem; border-radius: 6px; font-family: 'Rajdhani', sans-serif; font-size: 1rem; font-weight: 700; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; transition: transform .2s, box-shadow .2s; box-shadow: 0 0 30px rgba(0,168,192,.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 40px rgba(0,168,192,.5); }
.btn-outline { border: 1px solid var(--border); color: var(--cyan); padding: .85rem 2.2rem; border-radius: 6px; font-family: 'Rajdhani', sans-serif; font-size: 1rem; font-weight: 700; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; transition: background .2s, border-color .2s; }
.btn-outline:hover { background: rgba(0,212,232,.06); border-color: var(--cyan); }
.hero-stats { display: flex; gap: 3.5rem; margin-top: 4.5rem; flex-wrap: wrap; }
.stat-num { font-family: 'Rajdhani', sans-serif; font-size: 2.4rem; font-weight: 900; color: var(--cyan); }
.stat-label { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin-top: .2rem; }


/* ─── NOSOTROS ─── */
#nosotros { background: transparent; }

.sub-section {
  padding-top: 5rem;
  margin-top: 5rem;
  border-top: 1px solid var(--border);
}

.contact-sub { text-align: center; }
.quienes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; margin-top: 3.5rem; }
.quienes-features { display: flex; flex-direction: column; gap: 1.6rem; }
.feat-item { display: flex; align-items: flex-start; gap: 1rem; padding: 1.4rem 1.6rem; background: var(--card); border: 1px solid var(--border); border-radius: 8px; transition: border-color .25s, background .25s; }
.feat-item:hover { border-color: var(--cyan); background: rgba(0,212,232,.07); }
.feat-icon { width: 44px; height: 44px; flex-shrink: 0; background: rgba(0,212,232,.12); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.feat-icon svg { width: 22px; height: 22px; stroke: var(--cyan); }
.feat-text h4 { font-family: 'Rajdhani',sans-serif; font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: .3rem; letter-spacing: .05em; }
.feat-text p  { font-size: .87rem; color: var(--muted); line-height: 1.65; }
.quienes-visual { position: relative; height: 420px; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.quienes-visual-inner { width: 100%; height: 100%; background: radial-gradient(ellipse at center, #0d2540 0%, #061220 100%); display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 1.2rem; }
.quienes-logo-img { width: 70%; max-width: 280px; object-fit: contain; filter: drop-shadow(0 0 30px rgba(0,212,232,.6)); animation: logoGlow 3s ease-in-out infinite; }
@keyframes logoGlow { 0%,100% { filter: drop-shadow(0 0 20px rgba(0,212,232,.4)); } 50% { filter: drop-shadow(0 0 50px rgba(0,212,232,.8)); } }
.quienes-visual::before { content:''; position: absolute; inset: 0; background: radial-gradient(ellipse at 60% 40%, rgba(0,212,232,.12) 0%, transparent 70%); }


/* ─── SERVICIOS ─── */
#servicios { background: transparent; }

.svc-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
}
.svc-header .section-desc { margin: 0 auto; }

/* Barra de estadísticas */
.svc-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 3.5rem;
}
.svc-stats-item {
  background: var(--bg2);
  padding: 2.2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  transition: background .25s;
}
.svc-stats-item:hover { background: rgba(0,212,232,.06); }
.svc-stats-num {
  font-family: 'Rajdhani', sans-serif;
  font-size: 3.8rem;
  font-weight: 900;
  color: var(--cyan);
  line-height: 1;
}
.svc-stats-label {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}

/* Cards 2×2 */
.svc-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.svc-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--cyan2);
  border-radius: 12px;
  padding: 3rem 2.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.svc-card:hover {
  border-color: var(--cyan);
  border-left-color: var(--cyan);
  background: rgba(0,212,232,.04);
  box-shadow: 0 8px 40px rgba(0,168,192,.12);
}
.svc-card-top {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.svc-card-icon { font-size: 3rem; flex-shrink: 0; display: flex; align-items: center; }
.svc-card-icon svg { width: 3rem; height: 3rem; stroke: var(--cyan); }
.svc-card-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.75rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1.1;
}
.svc-card-desc {
  font-size: .96rem;
  color: var(--muted);
  line-height: 1.75;
  padding-left: 1rem;
  border-left: 2px solid rgba(0,212,232,.25);
}
.svc-card-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .7rem;
  margin-top: auto;
}
.svc-card-list li {
  font-size: .92rem;
  color: var(--text);
  display: flex;
  gap: .65rem;
  align-items: flex-start;
  line-height: 1.55;
}
.svc-card-list li::before { content: '→'; color: var(--cyan); flex-shrink: 0; margin-top: .05rem; }


/* ─── DETALLES TABS ─── */
.tabs { display: flex; gap: 0; margin-top: 3rem; border-bottom: 1px solid var(--border); overflow-x: auto; }
.tab-btn { font-family: 'Rajdhani', sans-serif; font-size: .92rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: none; border: none; padding: .85rem 1.8rem; cursor: pointer; position: relative; white-space: nowrap; transition: color .2s; }
.tab-btn::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; background: var(--cyan); transform: scaleX(0); transition: transform .25s; }
.tab-btn.active { color: var(--cyan); }
.tab-btn.active::after { transform: scaleX(1); }
.tab-content { display: none; }

.tab-content.active {
  display: grid;
  grid-template-columns: 1fr 420px;
  margin-top: 2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--cyan2);
  border-radius: 12px;
  overflow: hidden;
  min-height: 400px;
  transition: border-color .25s;
}

.tab-content.active:hover { border-color: var(--cyan); border-left-color: var(--cyan); }

.tab-content.active > div:first-child { padding: 3.5rem; }

.tab-content h3 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 2rem;
  letter-spacing: .04em;
}

.tab-points { list-style: none; display: flex; flex-direction: column; gap: 1.1rem; }

.tab-points li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.65;
}

.tab-points li span { color: var(--cyan); font-size: 1rem; margin-top: .15rem; flex-shrink: 0; }

/* Panel de imagen */
.tab-visual {
  position: relative;
  overflow: hidden;
  border-left: 1px solid var(--border);
}

.tab-visual-icon { font-size: 7rem; opacity: .18; display: flex; align-items: center; justify-content: center; height: 100%; }

.tab-visual.tab-visual-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}

.tab-visual.tab-visual-img:hover img { transform: scale(1.04); }


/* ─── ESTRATEGIAS ─── */
.strategy-quote { font-size: clamp(.88rem, 1.2vw, 1rem); font-style: italic; color: var(--muted); max-width: 700px; line-height: 1.8; border-left: 3px solid var(--cyan); padding-left: 1.5rem; margin: 2rem 0 3.5rem; }
.strategy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.strategy-card { padding: 2.4rem 2rem; background: var(--card); border: 1px solid var(--border); border-radius: 10px; text-align: center; transition: border-color .25s, background .25s; }
.strategy-card:hover { border-color: var(--cyan); background: rgba(0,212,232,.06); }
.strategy-num { font-family: 'Rajdhani', sans-serif; font-size: 3.5rem; font-weight: 900; color: transparent; -webkit-text-stroke: 1px rgba(0,212,232,.35); line-height: 1; margin-bottom: .8rem; }
.strategy-card h3 { font-family: 'Rajdhani', sans-serif; font-size: 1.2rem; font-weight: 700; text-transform: uppercase; color: var(--cyan); letter-spacing: .06em; margin-bottom: .8rem; }
.strategy-card p  { font-size: .88rem; color: var(--muted); line-height: 1.7; }


/* ─── PLAN DE ACCIÓN ─── */
.plan-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 3.5rem; position: relative; }
.plan-steps::before { content: ''; position: absolute; top: 36px; left: calc(16.6% + 20px); right: calc(16.6% + 20px); height: 1px; background: linear-gradient(90deg, var(--cyan2), var(--teal)); }
.plan-step { text-align: center; padding: 0 2rem; }
.step-circle { width: 72px; height: 72px; border-radius: 50%; border: 1px solid var(--cyan2); background: var(--bg3); display: flex; align-items: center; justify-content: center; margin: 0 auto 1.8rem; font-family: 'Rajdhani', sans-serif; font-size: 1.5rem; font-weight: 900; color: var(--cyan); position: relative; z-index: 1; box-shadow: 0 0 20px rgba(0,212,232,.2); }
.plan-step h3 { font-family: 'Rajdhani', sans-serif; font-size: 1.1rem; font-weight: 700; text-transform: uppercase; color: var(--cyan); letter-spacing: .06em; margin-bottom: .8rem; }
.plan-step p  { font-size: .87rem; color: var(--muted); line-height: 1.7; }


/* ─── CLIENTES ─── */
.clients-grid { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: 3rem; }
.client-pill { font-family: 'Rajdhani', sans-serif; font-size: .9rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: .7rem 1.6rem; border: 1px solid var(--border); border-radius: 6px; background: var(--card); transition: color .25s, border-color .25s, background .25s; }
.client-pill:hover { color: var(--cyan); border-color: var(--cyan); background: rgba(0,212,232,.07); }


/* ─── COTIZAR ─── */
#contacto { background: transparent; }
.contact-box { max-width: 680px; margin: 3rem auto 0; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 3rem 2.5rem; position: relative; overflow: hidden; }
.contact-box::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--cyan2), var(--teal), var(--blue)); }
.contact-email { font-family: 'Rajdhani', sans-serif; font-size: 1.6rem; font-weight: 700; color: var(--cyan); display: block; margin: 1.2rem 0; text-decoration: none; letter-spacing: .05em; transition: opacity .2s; }
.contact-email:hover { opacity: .75; }
.contact-box p { font-size: .92rem; color: var(--muted); line-height: 1.7; }
.contact-tags { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }
.ctag { font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: rgba(0,212,232,.06); border: 1px solid var(--border); border-radius: 99px; padding: .3rem .9rem; }


/* ─── FOOTER ─── */
footer { position: relative; z-index: 1; background: #030a10; border-top: 1px solid var(--border); padding: 2.5rem 8vw; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-brand { display: flex; align-items: center; gap: .7rem; }
.footer-logo-img { height: 38px; width: 38px; object-fit: contain; filter: drop-shadow(0 0 6px rgba(0,212,232,.4)); }
.footer-logo { font-family: 'Rajdhani', sans-serif; font-size: 1.25rem; font-weight: 700; color: #fff; letter-spacing: .1em; }
.footer-logo span { color: var(--cyan); }
footer p { font-size: .8rem; color: var(--muted); }
footer a { color: var(--cyan); text-decoration: none; }


/* ─── WHATSAPP FLOTANTE ─── */
.whatsapp-btn { position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px; background-color: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 15px rgba(0,0,0,0.5); z-index: 9999; transition: transform 0.3s ease, background-color 0.3s ease; }
.whatsapp-btn:hover { transform: scale(1.1); background-color: #20b858; }


/* ─── FADE IN ─── */
.fade { opacity: 0; transform: translateY(28px); transition: opacity .7s, transform .7s; }
.fade.visible { opacity: 1; transform: none; }


/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: rgba(5,12,20,.97); padding: 1.5rem 8vw; gap: 1.2rem; border-bottom: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .quienes-grid, .tab-content.active, .strategy-grid, .plan-steps { grid-template-columns: 1fr; }
  .plan-steps::before { display: none; }
  .quienes-visual { display: none; }
  .hero-stats { gap: 2rem; }
  .svc-stats-bar { grid-template-columns: repeat(2, 1fr); }
  .svc-cards-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .top-bar-info span:nth-child(2) { display: none; }
}


/* ─── TRABAJOS / CARRUSEL ─── */
#trabajos { background: transparent; }

.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 3rem;
}

.carousel-viewport {
  flex: 1;
  overflow: hidden;
  border-radius: 10px;
}

.carousel-track {
  display: flex;
  gap: 1rem;
  transition: transform .42s cubic-bezier(.25,.46,.45,.94);
  will-change: transform;
}

.carousel-slide {
  flex-shrink: 0;
  /* width is set by JS so percentages don't cause a circular dependency */
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg2);
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s;
}

.carousel-slide:hover img { transform: scale(1.06); }

.carousel-btn {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--cyan);
  font-size: 2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, border-color .2s, opacity .2s;
  line-height: 1;
  padding-bottom: 2px;
}

.carousel-btn:hover { background: rgba(0,212,232,.12); border-color: var(--cyan); }
.carousel-btn:disabled { opacity: .3; pointer-events: none; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: 1.8rem;
}

.cdot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  transition: background .25s, transform .25s;
  padding: 0;
}

.cdot.active { background: var(--cyan); transform: scale(1.35); }

@media (max-width: 768px) {
  .carousel-btn { width: 38px; height: 38px; font-size: 1.5rem; }
  .tab-content.active { grid-template-columns: 1fr; }
  .tab-visual { min-height: 220px; border-left: none; border-top: 1px solid var(--border); }
}


/* ─── LIGHTBOX ─── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .92);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}

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

.lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .8);
  transform: scale(.94);
  transition: transform .3s ease;
  display: block;
}

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

.lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  z-index: 9999;
}

.lightbox-close:hover { background: rgba(255, 255, 255, .22); }

.zoomable { cursor: zoom-in !important; }


/* ─── MODAL COTIZACIÓN ─── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.82);
  z-index: 9990;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-top: 3px solid var(--cyan2);
  border-radius: 16px;
  padding: 2.8rem;
  width: 100%;
  max-width: 660px;
  position: relative;
  transform: translateY(24px);
  transition: transform .3s;
  max-height: 92vh;
  overflow-y: auto;
}
.modal-overlay.open .modal-box { transform: translateY(0); }

.modal-close-btn {
  position: absolute;
  top: 1.1rem; right: 1.1rem;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 1rem;
  transition: color .2s, border-color .2s;
}
.modal-close-btn:hover { color: #fff; border-color: var(--cyan); }

.modal-header { margin-bottom: 2rem; }
.modal-title { font-family: 'Rajdhani', sans-serif; font-size: 2rem; font-weight: 900; color: #fff; text-transform: uppercase; margin: .4rem 0 .5rem; letter-spacing: .04em; }
.modal-header p { font-size: .9rem; color: var(--muted); line-height: 1.6; }

.modal-form { display: flex; flex-direction: column; gap: 1.2rem; }

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

.form-group { display: flex; flex-direction: column; gap: .45rem; }

.form-group label {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: 'Rajdhani', sans-serif;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(0,0,0,.35);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .85rem 1rem;
  color: var(--text);
  font-family: 'Exo 2', sans-serif;
  font-size: .95rem;
  transition: border-color .2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--cyan); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group select option { background: var(--bg2); }

.form-submit {
  background: linear-gradient(135deg, var(--cyan2), var(--blue));
  color: #fff;
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity .2s, transform .2s;
  margin-top: .4rem;
  box-shadow: 0 0 30px rgba(0,168,192,.3);
}
.form-submit:hover { opacity: .88; transform: translateY(-1px); }

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .modal-box { padding: 2rem 1.5rem; }
}