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

:root {
  --void: #0A0F1E;
  --abyss: #080D1A;
  --navy: #0D1530;
  --cosmos: #0D1B3E;
  --cyan: #00D4FF;
  --cyan-deep: #00A8CC;
  --cyan-ghost: rgba(0,212,255,0.10);
  --violet: #6E40F5;
  --lavender: #9B72FF;
  --starlight: #E8F0FF;
  --slate: #7B8DB0;
  --steel: #3A4A70;
  --green: #00E5A0;
  --amber: #FFB740;
  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--abyss);
  color: var(--starlight);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ─── GRID BACKGROUND ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
          linear-gradient(rgba(0,212,255,0.03) 1px, transparent 1px),
          linear-gradient(90deg, rgba(0,212,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* ─── NAV ─── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  height: 80px;
  background: rgba(8,13,26,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,212,255,0.08);
  box-shadow: 0px 0px 15px var(--cyan);
}

.logo {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 800;
  color: var(--cyan);
  letter-spacing: -0.02em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-mark {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
}

.img-logo {
  height: inherit;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  color: var(--slate);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  transition: color 0.2s;
}

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

.nav-cta {
  background: var(--cyan);
  color: var(--void) !important;
  font-weight: 500 !important;
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 13px !important;
  transition: background 0.2s !important;
}

.nav-cta:hover { background: var(--cyan-deep) !important; color: var(--void) !important; }

/* ─── HERO ─── */
.hero {
  position: relative;
  z-index: 1;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 5% 100px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(ellipse at center, rgba(110,64,245,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(0,212,255,0.10) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.2);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 32px;
  animation: fadeUp 0.6s ease both;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

h1 {
  font-family: var(--font-head);
  font-size: clamp(42px, 7vw, 80px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--starlight);
  max-width: 820px;
  animation: fadeUp 0.6s 0.1s ease both;
}

h1 .accent {
  color: var(--cyan);
  position: relative;
}

h1 .accent-v {
  background: linear-gradient(135deg, var(--violet), var(--lavender));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 18px;
  color: var(--slate);
  max-width: 540px;
  margin: 24px auto 0;
  font-weight: 300;
  animation: fadeUp 0.6s 0.2s ease both;
}

.hero-btns {
  display: flex;
  gap: 14px;
  margin-top: 44px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.6s 0.3s ease both;
}

.btn-primary {
  background: var(--cyan);
  color: var(--void);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  padding: 14px 32px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover { background: var(--cyan-deep); transform: translateY(-1px); }

.btn-secondary {
  background: transparent;
  color: var(--cyan);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  padding: 13px 28px;
  border-radius: 8px;
  border: 1px solid rgba(0,212,255,0.3);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}

.btn-secondary:hover { border-color: var(--cyan); background: var(--cyan-ghost); transform: translateY(-1px); }

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 72px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.6s 0.4s ease both;
}

.stat {
  text-align: center;
}

.stat-num {
  font-family: var(--font-head);
  font-size: 36px;
  font-weight: 800;
  color: var(--starlight);
  line-height: 1;
}

.stat-num span { color: var(--cyan); }

.stat-label {
  font-size: 13px;
  color: var(--slate);
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--steel);
  align-self: center;
}

/* ─── PROBLEMA / SOLUCIÓN ─── */
section {
  position: relative;
  z-index: 1;
  padding: 100px 5%;
}

.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 16px;
}

h2 {
  font-family: var(--font-head);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--starlight);
}

.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-top: 60px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--steel);
}

.problem-item {
  background: var(--navy);
  padding: 36px;
  position: relative;
  transition: background 0.2s;
}

.problem-item:hover { background: #0F1A3A; }

.problem-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--violet), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}

.problem-item:hover::before { opacity: 1; }

.problem-icon {
  font-size: 28px;
  margin-bottom: 16px;
  display: block;
}

.problem-item h3 {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 600;
  color: var(--starlight);
  margin-bottom: 10px;
}

.problem-item p {
  font-size: 14px;
  color: var(--slate);
  line-height: 1.6;
}

.arrow-center {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 50px 0;
}

.arrow-center svg { width: 48px; opacity: 0.5; }

/* ─── SERVICIOS ─── */
.services { background: var(--void); }

.services-intro {
  max-width: 560px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 56px;
}

.service-card {
  background: var(--navy);
  border: 1px solid var(--steel);
  border-radius: 14px;
  padding: 32px 28px;
  transition: border-color 0.2s, transform 0.2s;
  cursor: default;
}

.service-card:hover {
  border-color: rgba(0,212,255,0.35);
  transform: translateY(-3px);
}

.service-icon {
  width: 44px;
  height: 44px;
  background: var(--cyan-ghost);
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 20px;
}

.service-card h3 {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 600;
  color: var(--starlight);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 14px;
  color: var(--slate);
  line-height: 1.6;
}

.service-tag {
  display: inline-block;
  margin-top: 16px;
  font-size: 11px;
  font-weight: 500;
  color: var(--cyan);
  background: var(--cyan-ghost);
  border: 1px solid rgba(0,212,255,0.15);
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 0.04em;
}

/* ─── CASOS DE ÉXITO ─── */
.casos { background: var(--abyss); }

.casos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}

.caso-card {
  background: var(--navy);
  border: 1px solid var(--steel);
  border-radius: 14px;
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.caso-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
}

.caso-company {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--slate);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.caso-quote {
  font-size: 15px;
  color: var(--starlight);
  line-height: 1.65;
  font-style: italic;
  font-weight: 300;
  margin-bottom: 20px;
}

.caso-metric {
  display: flex;
  gap: 6px;
  align-items: baseline;
}

.caso-num {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 800;
  color: var(--cyan);
  line-height: 1;
}

.caso-metric-label {
  font-size: 13px;
  color: var(--slate);
}

/* ─── POR QUÉ ISHIMURA ─── */
.porque { background: var(--void); }

.porque-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 56px;
}

.porque-item {
  display: flex;
  gap: 20px;
  background: var(--navy);
  border: 1px solid var(--steel);
  border-radius: 12px;
  padding: 28px;
  align-items: flex-start;
  transition: border-color 0.2s;
}

.porque-item:hover { border-color: rgba(110,64,245,0.4); }

.porque-num {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--violet);
  background: rgba(110,64,245,0.1);
  border: 1px solid rgba(110,64,245,0.2);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.porque-item h3 {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
  color: var(--starlight);
  margin-bottom: 8px;
}

.porque-item p {
  font-size: 14px;
  color: var(--slate);
  line-height: 1.6;
}

/* ─── CTA ─── */
.cta-section {
  background: var(--abyss);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(0,212,255,0.08) 0%, transparent 65%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.cta-inner h2 { margin-bottom: 16px; }

.cta-inner p {
  color: var(--slate);
  font-size: 17px;
  font-weight: 300;
  margin-bottom: 48px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  color: var(--slate);
  font-weight: 400;
}

.form-group input,
.form-group textarea,
.form-group select {
  background: var(--navy);
  border: 1px solid var(--steel);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--starlight);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--cyan);
}

.form-group textarea { resize: vertical; min-height: 100px; }

.form-group select option { background: var(--navy); }

.form-submit {
  background: var(--cyan);
  color: var(--void);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  padding: 15px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  transition: background 0.2s;
  margin-top: 4px;
}

.form-submit:hover { background: var(--cyan-deep); }

.whatsapp-alt {
  margin-top: 24px;
  text-align: center;
  font-size: 14px;
  color: var(--slate);
}

.whatsapp-alt a {
  color: var(--green);
  text-decoration: none;
  font-weight: 500;
}

.whatsapp-alt a:hover { text-decoration: underline; }

/* ─── FOOTER ─── */
footer {
  position: relative;
  z-index: 1;
  background: var(--void);
  border-top: 1px solid var(--steel);
  padding: 40px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-logo {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 800;
  color: var(--cyan);
}

.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.footer-links a {
  font-size: 13px;
  color: var(--slate);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--starlight); }

.footer-copy {
  font-size: 12px;
  color: var(--steel);
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .problem-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .casos-grid { grid-template-columns: 1fr; }
  .porque-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 28px; }
  .stat-divider { display: none; }
  footer { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}