/* ==========================================================================
   BreTech — Home "Instalamos tu sistema de ventas" (nov 2026)
   Hoja propia del home. Las demás páginas de bretech/ siguen usando
   css/style.css; este archivo no las toca.
   Paleta y fuentes iguales a los videos: fondo #050b14, cian #4fb8e8 /
   #7ad4fa, verde #4ade80, Space Grotesk (títulos) + Manrope (texto).
   ========================================================================== */

:root {
  --bg: #050b14;
  --bg-2: #0a1526;
  --bg-3: #101f38;
  --track: #17294a;
  --text: #eaf2fa;
  --muted: #a9bdd2;
  --faint: #71879e;
  --accent: #4fb8e8;
  --accent-2: #7ad4fa;
  --green: #4ade80;
  --red: #f2777a;
  --line: rgba(148, 180, 214, 0.14);
  --line-2: rgba(148, 180, 214, 0.18);
  --line-3: rgba(148, 180, 214, 0.26);
  --radius: 20px;
  --shadow: 0 20px 50px -20px rgba(2, 8, 20, 0.65);
  --display: "Space Grotesk", -apple-system, "Segoe UI", sans-serif;
  --body: "Manrope", -apple-system, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p {
  margin: 0;
}

a {
  color: var(--accent-2);
}

a:hover {
  color: var(--text);
}

img,
video {
  display: block;
  max-width: 100%;
}

:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
}

/* El atributo hidden debe ganarle a los display:flex de abajo
   (ej. la cita de COIN queda oculta hasta que Alejandro la autorice). */
[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- layout ---------- */

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section-tint {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  align-items: center;
}

.row > * {
  min-width: 0;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 760px;
  margin-bottom: 48px;
}

.eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(32px, 4.2vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.lead {
  font-size: 19px;
  color: var(--muted);
}

.note {
  font-size: 14px;
  color: var(--faint);
}

/* ---------- botones ---------- */

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: var(--body);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--accent-2);
  color: var(--bg);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-3);
  font-weight: 600;
}

.btn-ghost:hover {
  border-color: var(--accent-2);
  color: var(--text);
}

.btn-sm {
  min-height: 44px;
  padding: 10px 20px;
  font-size: 15px;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
}

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(5, 11, 20, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.brand img {
  width: 36px;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 15px;
}

.nav-links a:not(.btn) {
  color: var(--muted);
  text-decoration: none;
}

.nav-links a:not(.btn):hover {
  color: var(--text);
}

@media (max-width: 900px) {
  .nav-links a:not(.btn) {
    display: none;
  }
}

/* ---------- hero ---------- */

.hero {
  padding: 72px 0 96px;
}

.hero-copy {
  flex: 1 1 520px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-copy .lead {
  font-size: 20px;
  max-width: 560px;
}

.hero-video {
  flex: 0 1 340px;
  margin: 0 auto;
}

/* ---------- video vertical (los 3 videos son 1080x1920) ---------- */

.video-card {
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.video-card video {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: #000;
}

.video-caption {
  padding: 12px 16px;
  font-size: 14px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

/* ---------- panel "dónde se cae la venta" ---------- */

.panel {
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.panel-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 18px;
}

.chip {
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line-3);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}

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

.stage-label {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
}

.stage-label .alert {
  color: var(--red);
}

.bar {
  height: 10px;
  background: var(--track);
  border-radius: 999px;
  overflow: hidden;
}

.bar span {
  display: block;
  height: 10px;
  background: var(--accent);
  border-radius: 999px;
}

.bar span.is-alert {
  background: var(--red);
}

.panel-foot {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- tarjetas ---------- */

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.card {
  flex: 1 1 300px;
  min-width: 0;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-filled {
  background: var(--bg-2);
}

.card-big {
  font-family: var(--display);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--accent);
}

.card h3 {
  font-size: 20px;
  font-weight: 700;
}

.card p {
  color: var(--muted);
}

.piece {
  flex: 1 1 340px;
}

.piece-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.piece-num {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 12px;
  background: rgba(79, 184, 232, 0.12);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
}

.piece h3 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
}

/* ---------- Gaby ---------- */

.lists {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.lists > div {
  flex: 1 1 220px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.list-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
}

.bullet {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 16px;
}

.bullet::before {
  content: "";
  flex: 0 0 6px;
  height: 6px;
  margin-top: 10px;
  border-radius: 999px;
  background: var(--accent);
}

.bullet.is-check::before {
  flex: 0 0 18px;
  height: 18px;
  margin-top: 3px;
  background: none;
  /* palomita verde */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234ade80' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 18px 18px;
}

.chat {
  flex: 1 1 420px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-3);
}

.avatar {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 999px;
  background: rgba(79, 184, 232, 0.18);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 700;
}

.chat-who {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.chat-who strong {
  font-weight: 700;
}

.chat-who span {
  font-size: 13px;
  color: var(--green);
}

.chat-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.msg {
  max-width: 82%;
  padding: 11px 14px;
  border-radius: 16px;
  font-size: 15px;
  line-height: 1.5;
  background: var(--track);
  color: var(--text);
}

.msg.me {
  align-self: flex-end;
  background: var(--accent);
  color: var(--bg);
}

/* ---------- caso COIN ---------- */

.quote {
  background: rgba(79, 184, 232, 0.08);
  border-radius: 16px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quote p:first-child {
  font-size: 18px;
  font-style: italic;
  color: var(--text);
}

.quote p:last-child {
  font-size: 14px;
  color: var(--muted);
}

.checklist {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.check-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.check-item svg {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin-top: 3px;
}

.check-item strong {
  display: block;
  font-weight: 700;
}

.check-item span {
  color: var(--muted);
  font-size: 16px;
}

/* ---------- cómo trabajamos ---------- */

.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.step {
  flex: 1 1 260px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 20px;
  border-top: 2px solid var(--line-3);
}

/* Pasos apilados (al lado del video 3): sin estirar la altura */
.steps.is-column {
  flex-direction: column;
  gap: 28px;
}

.steps.is-column .step {
  flex: none;
}

.step:first-child {
  border-top-color: var(--accent);
}

.step-num {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
}

.step h3 {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 600;
}

.step p {
  color: var(--muted);
}

/* ---------- CTA final ---------- */

.cta-final {
  background: var(--bg-3);
  border: 1px solid rgba(79, 184, 232, 0.3);
  border-radius: 24px;
  padding: 64px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.cta-final .lead {
  max-width: 620px;
}

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--line);
}

.footer .wrap {
  padding-top: 32px;
  padding-bottom: 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  color: var(--faint);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

/* ---------- llamada con Gaby (overlay) ---------- */

.call-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(2, 6, 14, 0.78);
}

.call-overlay.is-open {
  display: flex;
}

.call-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: var(--bg-3);
  border: 1px solid var(--line-3);
  border-radius: 24px;
  padding: 36px 28px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  box-shadow: var(--shadow);
}

.call-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.call-close:hover {
  color: var(--text);
}

.call-orb {
  width: 84px;
  height: 84px;
  border-radius: 999px;
  background: rgba(79, 184, 232, 0.18);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 32px;
}

.call-card[data-state="connected"] .call-orb {
  box-shadow: 0 0 0 8px rgba(74, 222, 128, 0.15);
  color: var(--green);
}

.call-title {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
}

.call-sub {
  color: var(--muted);
  font-size: 15px;
}

.call-actions {
  display: flex;
  gap: 12px;
  width: 100%;
  justify-content: center;
}

.call-card [data-show] {
  display: none;
}

.call-card[data-state="idle"] [data-show~="idle"],
.call-card[data-state="error"] [data-show~="error"],
.call-card[data-state="connecting"] [data-show~="connecting"],
.call-card[data-state="connected"] [data-show~="connected"] {
  display: flex;
}

.btn-danger {
  background: var(--red);
  color: var(--bg);
}

/* ---------- móvil ---------- */

@media (max-width: 640px) {
  .section {
    padding: 72px 0;
  }

  .hero {
    padding: 48px 0 72px;
  }

  .row {
    gap: 40px;
  }

  .btn-row .btn {
    width: 100%;
  }

  .cta-final {
    padding: 48px 20px;
  }
}

/* ==========================================================================
   PREGUNTAS FRECUENTES (13 nov 2026)
   Acordeón nativo con <details>/<summary>: funciona sin JavaScript y el
   texto de las respuestas está en el HTML (lo leen Google y los buscadores
   de IA aunque estén cerradas).
   ========================================================================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 860px;
}

.faq-item {
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 16px;
  padding: 0 24px;
}

.faq-item[open] {
  border-color: var(--line-3);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 18px;
  color: var(--text);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex: none;
  font-size: 24px;
  line-height: 1;
  color: var(--accent);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 8px;
}

.faq-item p {
  margin: 0;
  padding: 0 0 22px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}
