/* =========================================================
   VARIABLES OFICIALES DE MARCA - VISTO PERSPECTIVE
========================================================= */
:root {
  --bg-primary: #070B19;       /* Azul Abisal */
  --bg-secondary: #11182D;     /* Pizarra Espacial */
  --bg-card-hover: #16203C;
  --accent-cyan: #00D4FF;      /* Cian Holográfico */
  --accent-violet: #7B2CBF;    /* Violeta Dimensional */
  --text-primary: #FFFFFF;     /* Blanco Puro */
  --text-secondary: #94A3B8;   /* Gris Niebla */
  --border-subtle: rgba(0, 212, 255, 0.16);
  --border-violet: rgba(123, 44, 191, 0.35);

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* =========================================================
   RESET Y BASE
========================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

#bg-mesh {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  opacity: 0.45;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

code {
  font-family: var(--font-mono);
  background: rgba(0, 212, 255, 0.1);
  color: var(--accent-cyan);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.88em;
}

/* =========================================================
   BOTONES Y BADGES
========================================================= */
.tech-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--accent-cyan);
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.25);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.tech-badge.violet {
  color: #D8B4FE;
  background: rgba(123, 44, 191, 0.18);
  border-color: var(--border-violet);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.75rem;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent-cyan);
  color: var(--bg-primary);
  box-shadow: 0 0 24px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
  background: #33DDFF;
  transform: translateY(-2px);
  box-shadow: 0 0 32px rgba(0, 212, 255, 0.5);
}

.btn-secondary {
  background: rgba(17, 24, 45, 0.8);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.18);
}

.btn-secondary:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.btn-outline-glow {
  background: transparent;
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  padding: 0.6rem 1.35rem;
  font-size: 0.9rem;
}

.btn-outline-glow:hover {
  background: rgba(0, 212, 255, 0.12);
  box-shadow: 0 0 18px rgba(0, 212, 255, 0.25);
}

.btn-block {
  width: 100%;
}

/* =========================================================
   NAVBAR & LOGOTIPO EDITABLE
========================================================= */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(7, 11, 25, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: padding 0.3s ease;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
}

.logo-img {
  height: 48px;
  max-width: 220px;
  width: auto;
  object-fit: contain;
  display: block;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
}

/* =========================================================
   HERO SECTION
========================================================= */
.hero {
  padding: 150px 0 100px;
  min-height: 92vh;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 4rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  margin-bottom: 1.5rem;
}

.text-gradient {
  background: linear-gradient(90deg, var(--accent-cyan), #A855F7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: 1.125rem;
  margin-bottom: 2.25rem;
  max-width: 580px;
}

.hero-subtitle strong {
  color: var(--text-primary);
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-metrics {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.metric-value {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
}

.metric-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.metric-divider {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.12);
}

/* Visual Frame Hero (Soporta Imagen y Video por igual) */
.visual-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65), 0 0 40px rgba(0, 212, 255, 0.12);
  background: var(--bg-secondary);
}

.hero-media {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
  filter: contrast(1.03) brightness(0.96);
}

.hud-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,11,25,0.08) 0%, rgba(7,11,25,0.78) 100%);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}

.hud-tag {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: rgba(7, 11, 25, 0.85);
  border: 1px solid var(--border-subtle);
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.hud-card {
  background: rgba(17, 24, 45, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
  padding: 1rem 1.25rem;
  border-radius: 10px;
}

.hud-title {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent-cyan);
  font-size: 0.95rem;
}

.hud-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* =========================================================
   SECCIONES GENERALES
========================================================= */
.section {
  padding: 100px 0;
}

.section-header {
  max-width: 720px;
  margin-bottom: 4rem;
}

.section-header.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-header h2 {
  font-size: clamp(2rem, 3vw, 2.75rem);
  margin-bottom: 1rem;
}

.section-lead {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* =========================================================
   SECCIÓN 3: LA EXPERIENCIA (3 FASES)
========================================================= */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.step-card {
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 2.25rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.step-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-cyan);
}

.step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.step-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.step-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
}

.step-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.85rem;
}

.step-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* =========================================================
   SECCIÓN 4: PLANES Y MODALIDADES
========================================================= */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  max-width: 1020px;
  margin: 0 auto;
}

.plan-card {
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 2.75rem;
  display: flex;
  flex-direction: column;
}

.plan-card.featured {
  border-color: var(--accent-cyan);
  background: linear-gradient(160deg, #11182D 0%, #151E38 100%);
  box-shadow: 0 20px 50px rgba(0, 212, 255, 0.08);
}

.plan-badge {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.plan-badge.glow {
  background: rgba(0, 212, 255, 0.14);
  color: var(--accent-cyan);
}

.plan-card h3 {
  font-size: 1.65rem;
  margin-bottom: 0.75rem;
}

.plan-tagline {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  margin-bottom: 2.5rem;
  flex-grow: 1;
}

.plan-features li {
  display: flex;
  gap: 0.85rem;
  font-size: 0.95rem;
  align-items: flex-start;
}

.check-icon {
  color: var(--accent-cyan);
  font-weight: 700;
}

.cross-icon {
  color: #64748B;
  font-weight: 700;
}

.muted-feature {
  color: var(--text-secondary);
}

.legal-footnote {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.82rem;
  max-width: 820px;
  margin: 2rem auto 0;
}

/* =========================================================
   SECCIÓN 5: PROYECTOS A MEDIDA Y FORMULARIO B2B
========================================================= */
.custom-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 4rem;
  align-items: center;
}

.custom-info h2 {
  font-size: clamp(1.9rem, 2.8vw, 2.5rem);
  margin-bottom: 1.25rem;
}

.custom-desc {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.custom-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.custom-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.custom-list strong {
  color: var(--text-primary);
}

.custom-bullet {
  width: 10px;
  height: 10px;
  min-width: 10px;
  border-radius: 2px;
  background: var(--accent-violet);
  box-shadow: 0 0 12px var(--accent-violet);
  margin-top: 0.45rem;
}

/* Formulario B2B */
.quote-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 2.5rem;
}

.quote-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
}

.quote-subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.75rem;
}

.b2b-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

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

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

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-primary);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0.75rem 0.95rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition: border-color 0.2s ease;
}

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

.form-feedback {
  font-size: 0.88rem;
  text-align: center;
  color: var(--accent-cyan);
  min-height: 1.2rem;
}

/* =========================================================
   FOOTER
========================================================= */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3.5rem 0;
  background: rgba(5, 8, 18, 0.9);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-logo-img {
  height: 38px;
  max-width: 180px;
  width: auto;
  object-fit: contain;
  display: block;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  max-width: 400px;
}

.footer-links {
  display: flex;
  gap: 1.75rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
}

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

.footer-copy {
  color: var(--text-secondary);
  font-size: 0.82rem;
}

/* =========================================================
   RESPONSIVE (TABLET Y MÓVIL)
========================================================= */
@media (max-width: 992px) {
  .hero-grid,
  .custom-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .steps-grid,
  .plans-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--bg-secondary);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-toggle {
    display: flex;
  }

  .btn-outline-glow {
    display: none;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-cta-group {
    flex-direction: column;
  }
}
