/* ============================================================
   BizElite — muestra de diseño
   Negro + dorado. Independiente del sitio de Red Dominion y de
   los otros proyectos: no comparte hoja de estilos.
   ============================================================ */

:root {
  --ink:      #0A0A0C;
  --ink-2:    #121215;
  --ink-3:    #1A1A1F;
  --line:     rgba(255, 255, 255, .1);

  --gold:      #D4A029;
  --gold-soft: #E8B84B;
  --gold-deep: #A87C15;

  --paper:    #FAF8F4;
  --paper-2:  #F2EFE9;

  --text:     #FFFFFF;
  --text-mid: #B8B4AE;
  --text-dim: #7E7A75;
  --dark:     #15151A;

  --green:    #25D366;

  --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --shell: 1180px;
  --radius: 8px;
  --radius-pill: 999px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

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

/* height:auto es imprescindible: sin él, el atributo height del HTML
   gana al width:100% y las imágenes salen enmarcadas con franjas */
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { background: none; border: 0; cursor: pointer; font: inherit; color: inherit; }

::selection { background: var(--gold); color: var(--ink); }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 24px;
}

/* Iconos de trazo: heredan el color del contenedor */
.ico {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gold { color: var(--gold); }

.kicker {
  font-size: .74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.2px;
  color: var(--gold);
  margin-bottom: 14px;
}

/* ---------- Barra de muestra ---------- */
.demo-bar {
  position: relative;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 9px 20px;
  background: #060607;
  color: rgba(255, 255, 255, .5);
  font-size: .74rem;
  text-align: center;
}
.demo-bar a { color: var(--gold-soft); font-weight: 600; }
.demo-bar a:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-block: 14px;
  background: rgba(10, 10, 12, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 26px; }

.logo { display: flex; align-items: center; gap: 10px; }
.logo svg { width: 34px; height: 34px; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text strong { font-size: 1.18rem; font-weight: 800; letter-spacing: -.3px; }
.logo-text small { font-size: .58rem; font-weight: 500; color: var(--text-dim); letter-spacing: .3px; }

.nav { margin-inline: auto; }
.nav-list { display: flex; align-items: center; gap: 26px; }
.nav-link {
  position: relative;
  font-size: .86rem;
  font-weight: 500;
  color: var(--text-mid);
  padding: 6px 0;
  transition: color .25s var(--ease);
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width .3s var(--ease);
}
.nav-link:hover, .nav-link.active { color: #fff; }
.nav-link.active::after, .nav-link:hover::after { width: 100%; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 6px; }
.nav-toggle span { width: 22px; height: 2px; background: #fff; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-size: .88rem;
  font-weight: 600;
  border: 1px solid transparent;
  white-space: nowrap;
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-arrow { transition: transform .25s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(3px); }

.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-soft); }

.btn-outline { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-outline:hover { background: #fff; color: var(--ink); border-color: #fff; }

.btn-sm { padding: 10px 22px; font-size: .82rem; border-radius: var(--radius-pill); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  padding: 70px 0 90px;
  background: var(--ink);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center right;
}
/* Velo desde la izquierda: deja ver la figura a la derecha */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--ink) 4%, rgba(10, 10, 12, .82) 38%, rgba(10, 10, 12, .25) 68%, transparent 100%);
}
.hero-inner { position: relative; z-index: 1; }

.hero-inner h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.35rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.2px;
}
.hero-text { margin: 20px 0 28px; color: var(--text-mid); font-size: .94rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 24px; }

/* Tarjeta de WhatsApp */
.wa-card {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 26px 12px 12px;
  border-radius: var(--radius);
  background: rgba(20, 20, 24, .8);
  border: 1px solid var(--line);
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.wa-card:hover { border-color: var(--gold); background: var(--ink-3); }
.wa-ico {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: #fff;
}
.wa-ico svg { width: 26px; height: 26px; fill: var(--green); }
.wa-text { display: flex; flex-direction: column; line-height: 1.25; }
.wa-text small { font-size: .78rem; font-weight: 600; color: var(--text); }
.wa-text strong { font-size: 1.32rem; font-weight: 800; color: var(--gold); letter-spacing: .3px; }

/* Insignia de experiencia */
.exp-badge {
  position: absolute;
  right: max(24px, calc((100% - var(--shell)) / 2 + 24px));
  bottom: 90px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 34px;
  border-radius: var(--radius);
  background: rgba(20, 20, 24, .85);
  border: 1px solid var(--gold);
}
.exp-num { font-size: 2.2rem; font-weight: 800; color: var(--gold); line-height: 1; }
.exp-num i { font-style: normal; }
.exp-label { font-size: .78rem; color: var(--text-mid); margin-top: 4px; }
.exp-trophy {
  position: absolute;
  top: 12px; right: 12px;
  width: 16px; height: 16px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .7;
}

/* ---------- Servicios ---------- */
.services { padding-bottom: 10px; background: var(--ink); }
.services-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-2);
  overflow: hidden;
}
.svc {
  padding: 26px 20px;
  text-align: center;
  transition: background .25s var(--ease);
}
.svc + .svc { border-left: 1px solid var(--line); }
.svc:hover { background: var(--ink-3); }
.svc .ico { width: 34px; height: 34px; margin: 0 auto 14px; color: var(--gold); }
.svc h2 { font-size: .95rem; font-weight: 700; margin-bottom: 8px; }
.svc p { font-size: .78rem; color: var(--text-dim); }

/* ---------- Cifras ---------- */
.stats { padding: 30px 0; background: var(--paper); color: var(--dark); }
.stats-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.stat { display: flex; align-items: center; gap: 14px; }
.stat .ico { width: 34px; height: 34px; flex-shrink: 0; color: var(--gold-deep); }
.stat strong { display: block; font-size: 1.6rem; font-weight: 800; line-height: 1.1; letter-spacing: -.5px; }
.stat span { font-size: .8rem; color: #6B665F; }
.stat-sep { width: 1px; align-self: stretch; background: rgba(0, 0, 0, .1); }

/* ---------- Secciones ---------- */
.section { padding: 78px 0; background: var(--paper); color: var(--dark); }
.section-alt { background: var(--paper-2); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }

/* Miniatura de vídeo */
.about-media { position: relative; }
.about-media img { width: 100%; border-radius: var(--radius); }
.play {
  position: absolute;
  inset: 0;
  margin: auto;
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
  cursor: pointer;
  transition: transform .25s var(--ease);
}
.about-media:hover .play { transform: scale(1.08); }
.play svg { width: 22px; height: 22px; fill: var(--dark); }

.sat-badge {
  position: absolute;
  left: 22px; bottom: 22px;
  display: flex;
  flex-direction: column;
  padding: 14px 22px;
  border-radius: var(--radius);
  background: rgba(10, 10, 12, .88);
  border: 1px solid var(--line);
  color: #fff;
}
.sat-badge strong { font-size: 1.5rem; font-weight: 800; line-height: 1; }
.sat-badge small { font-size: .7rem; color: var(--text-mid); }

.about-text h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -1px;
}
.lead { margin: 18px 0; color: #5E5A54; font-size: .9rem; }

.ticks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 20px;
  margin-bottom: 28px;
}
.ticks li { position: relative; padding-left: 26px; font-size: .84rem; }
/* Palomita dorada dibujada con dos bordes girados */
.ticks li::before {
  content: '';
  position: absolute;
  left: 0; top: 2px;
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
}
.ticks li::after {
  content: '';
  position: absolute;
  left: 5.5px; top: 5.5px;
  width: 4px; height: 7px;
  border: solid var(--gold-deep);
  border-width: 0 1.8px 1.8px 0;
  transform: rotate(45deg);
}

/* ---------- Testimonios ---------- */
/* Título con flecha a cada lado */
.rule-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 36px;
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--dark);
  white-space: nowrap;
}
.rule-title::before, .rule-title::after {
  content: '';
  width: clamp(40px, 12vw, 150px);
  height: 1px;
  background: var(--gold);
}
.rule-title span { flex: 0 0 auto; }

.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.quote {
  padding: 26px 24px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .06);
  box-shadow: 0 10px 30px rgba(20, 18, 14, .06);
  text-align: center;
}
.stars { color: var(--gold); letter-spacing: 3px; font-size: .9rem; margin-bottom: 12px; }
.quote-text { font-size: .84rem; color: #5E5A54; margin-bottom: 20px; }

.quote-by { display: flex; align-items: center; justify-content: center; gap: 12px; text-align: left; }
/* Monograma en vez de foto: no hay retratos reales que usar */
.avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--dark);
  color: var(--gold);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .5px;
}
.quote-by strong { display: block; font-size: .84rem; font-weight: 700; }
.quote-by small { font-size: .74rem; color: #8B857D; }

.dots { display: flex; justify-content: center; gap: 8px; margin-top: 26px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(0, 0, 0, .18); }
.dots i.on { background: var(--gold); }

/* ---------- Tecnologías ---------- */
.tech { padding: 26px 0; background: var(--ink); border-block: 1px solid var(--line); }
.tech-row { display: flex; align-items: center; gap: 34px; flex-wrap: wrap; }
.tech-title {
  font-size: .74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold);
  flex-shrink: 0;
}
.tech-list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  gap: 22px;
  flex-wrap: wrap;
}
.tech-list li {
  font-size: .92rem;
  font-weight: 600;
  color: var(--text-mid);
  transition: color .25s var(--ease);
}
.tech-list li:hover { color: #fff; }

/* ---------- CTA ---------- */
.cta { padding: 46px 0; background: var(--ink); }
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  padding: 22px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--gold);
  background: var(--ink-2);
}
.cta-text { display: flex; align-items: center; gap: 18px; }
.cta-ico {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--gold);
}
.cta-ico svg { width: 24px; height: 24px; fill: var(--ink); }
.cta-text h2 { font-size: 1.35rem; font-weight: 800; letter-spacing: -.4px; }
.cta-text p { font-size: .88rem; color: var(--text-mid); }

/* ---------- Footer ---------- */
.site-footer { background: #060607; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-block: 20px;
  font-size: .76rem;
  color: var(--text-dim);
}
.footer-back { color: var(--gold-soft); }
.footer-back:hover { text-decoration: underline; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
  .nav-list { gap: 18px; }
  .nav-link { font-size: .8rem; }
  .services-strip { grid-template-columns: repeat(3, 1fr); }
  /* El borde por orden no vale al envolver: se corta por columna */
  .svc + .svc { border-left: 0; }
  .svc:not(:nth-child(3n + 1)) { border-left: 1px solid var(--line); }
  .svc:nth-child(n + 4) { border-top: 1px solid var(--line); }

  .stats-row { flex-wrap: wrap; justify-content: flex-start; gap: 24px 40px; }
  .stat-sep { display: none; }
  .split { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .btn-header { display: none; }
  .nav { margin-inline: 0; margin-left: auto; }

  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(280px, 80vw);
    padding: 96px 26px 26px;
    background: var(--ink-2);
    border-left: 1px solid var(--line);
    transform: translateX(100%);
    transition: transform .35s var(--ease);
    z-index: 45;
  }
  .nav.open { transform: translateX(0); }
  .nav-list { flex-direction: column; align-items: flex-start; gap: 0; }
  .nav-list li { width: 100%; }
  .nav-link { display: block; width: 100%; padding: 14px 0; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .nav-link::after { display: none; }
  .nav-link.active { color: var(--gold); }

  /* El hero deja de ser fila: si no, la insignia se coloca como segundo
     ítem flex a la derecha del titular en vez de caer debajo */
  .hero { min-height: 0; padding: 56px 0 70px; flex-direction: column; align-items: stretch; }
  /* La figura pasa a fondo y el velo a vertical */
  .hero::after { background: linear-gradient(180deg, rgba(10, 10, 12, .82), rgba(10, 10, 12, .92)); }
  /* La insignia se coloca en el flujo, bajo el contenido */
  .exp-badge { position: static; margin: 26px 0 0; align-self: flex-start; display: inline-flex; }

  .quotes { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
  .section { padding: 60px 0; }
}

@media (max-width: 620px) {
  .services-strip { grid-template-columns: 1fr; }
  .svc:not(:nth-child(3n + 1)) { border-left: 0; }
  .svc + .svc { border-top: 1px solid var(--line); }

  .hero-inner h1 br, .hero-text br { display: none; }
  .hero-actions .btn { flex: 1 1 100%; }
  .wa-card { width: 100%; }

  .stats-row { flex-direction: column; align-items: flex-start; }
  .ticks { grid-template-columns: 1fr; }
  .rule-title { white-space: normal; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .footer-bottom { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
