/* Bravizo Apex — sección pública de bravizoagencia.com · Identidad Bravizo 1.11.0 */

:root {
  --bv-carbon: #13191D;
  --bv-superficie: #1C252B;
  --bv-elevacion: #29363D;
  --bv-borde: #354349;
  --bv-borde-control: #789097;
  --bv-niebla: #E8EFE5;
  --bv-texto-secundario: #A5B5BA;
  --bv-turquesa: #00EDB1;
  --bv-turquesa-hover: #5CFACB;
  --bv-violeta: #985CFF;
  --bv-violeta-suave: #CDB6FF;
  --bv-energia: #26193F;
  --bv-exito: #93FFDC;
  --bv-aviso: #F5CF7F;
  --bv-error: #FFB2B2;
  --bv-contexto: #647980;

  /* Documentos (fondo claro) */
  --doc-fondo: #F4F7F2;
  --doc-superficie: #FFFFFF;
  --doc-texto: #13191D;
  --doc-secundario: #4F5F66;
  --doc-enlace: #006B50;
  --doc-borde: #D5DDD6;

  --display: 'Anton', Impact, 'Arial Narrow', sans-serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --curva: cubic-bezier(.2,.7,.2,1);
  --t-control: 160ms;
  --t-panel: 280ms;

  --gutter: clamp(16px, 4vw, 64px);
  --ancho: 1600px;
  --sec-y: clamp(56px, 8vw, 112px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
  background: var(--bv-carbon);
  color: var(--bv-niebla);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--ancho); margin: 0 auto; padding-inline: var(--gutter); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--bv-turquesa); color: var(--bv-carbon);
  padding: 12px 16px; border-radius: 12px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 16px; }

:focus-visible { outline: 2px solid var(--bv-turquesa); outline-offset: 2px; }

/* ---------- Tipografía ---------- */
.display {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: .005em;
  margin: 0;
  overflow-wrap: anywhere;
}
.h-sec { font-size: clamp(2.25rem, 1.5rem + 4vw, 5rem); }
.t-turquesa { color: var(--bv-turquesa); }
.t-violeta-suave { color: var(--bv-violeta-suave); }
.t-ambar { color: var(--bv-aviso); }

.lead { font-size: 1.125rem; color: var(--bv-texto-secundario); max-width: 46ch; }

/* ---------- Cabecera y pie ---------- */
.site-header { position: absolute; inset: 0 0 auto 0; z-index: 20; }
.site-header__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.brand img { height: 32px; width: auto; }
.brand__apex { font-weight: 600; font-size: 1.125rem; }
.site-header__nav { display: flex; align-items: center; gap: 8px 20px; }
.site-header__link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 4px;
  font-weight: 500; font-size: .9375rem; text-decoration: underline; text-underline-offset: 4px;
}
.site-header__link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.site-header__link--volver { text-decoration: none; color: var(--bv-texto-secundario); }
.site-header__link--volver:hover { color: var(--bv-niebla); }
@media (max-width: 520px) { .site-header__link--oculto-movil { display: none; } }

.site-footer { border-top: 1px solid var(--bv-borde); padding-block: 32px; font-size: .9375rem; color: var(--bv-texto-secundario); }
.site-footer__in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; }
.site-footer a { color: var(--bv-niebla); display: inline-flex; align-items: center; min-height: 44px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0 20px; }

/* ---------- Botones: radio 12, alto 44+, peso 600 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 12px;
  font: 600 1rem/1.2 var(--sans); text-decoration: none; border: 1px solid transparent;
  cursor: pointer;
  transition: background-color var(--t-control) var(--curva), border-color var(--t-control) var(--curva);
}
.btn svg { width: 22px; height: 22px; flex: none; }
.btn--accion { background: var(--bv-turquesa); color: var(--bv-carbon); }
.btn--accion:hover { background: var(--bv-turquesa-hover); }
.btn--secundario { background: transparent; color: var(--bv-niebla); border-color: var(--bv-borde); }
.btn--secundario:hover { border-color: var(--bv-turquesa); }
.btn--off { background: var(--bv-elevacion); color: var(--bv-texto-secundario); border-color: var(--bv-borde); cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-weight: 600; color: var(--bv-turquesa);
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px;
}

/* ---------- Tarjetas y paneles: superficie, borde, radio 24 ---------- */
.panel {
  background: var(--bv-superficie);
  border: 1px solid var(--bv-borde);
  border-radius: 24px;
}

/* ---------- Video ---------- */
.video { position: absolute; inset: 0; }
.video video { width: 100%; height: 100%; object-fit: cover; }
.video-toggle {
  position: absolute; right: 16px; bottom: 16px; z-index: 3;
  width: 44px; height: 44px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bv-elevacion); color: var(--bv-niebla); border: 1px solid var(--bv-borde); cursor: pointer;
}
.video-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.video-toggle .i-play { fill: currentColor; stroke-width: 1.5; }
.video-toggle .i-play, .video-toggle[aria-pressed="true"] .i-pause { display: none; }
.video-toggle[aria-pressed="true"] .i-play { display: block; }

/* ---------- 1. Portada ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: 112px 0 clamp(40px, 7vh, 88px);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -2; opacity: .7; }
/* Velo para legibilidad (carbón → transparente), no decorativo */
.hero__fade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgb(19 25 29 / .35) 0%, rgb(19 25 29 / 0) 30%, rgb(19 25 29 / .6) 62%, var(--bv-carbon) 100%);
}
.hero .video-toggle { bottom: 24px; right: var(--gutter); }
.hero__grid { display: grid; gap: 40px; align-items: end; }
.hero__place {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .9375rem; font-weight: 500; margin-bottom: 20px;
}
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot--turquesa { background: var(--bv-turquesa); }
.hero__title { font-size: clamp(3.5rem, 12vw, 11rem); }
.hero__text { margin-top: 24px; font-size: clamp(1.125rem, 1.6vw, 1.375rem); max-width: 40ch; }
.hero .btn-row { margin-top: 32px; }
.invite {
  display: flex; align-items: center; gap: 12px;
  margin-top: 28px; padding: 14px 18px; max-width: 520px;
  background: var(--bv-energia); border: 1px solid var(--bv-violeta); border-radius: 12px;
  font-weight: 600;
}
.invite svg { width: 22px; height: 22px; flex: none; color: var(--bv-violeta-suave); fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.invite + .btn-row { margin-top: 16px; }

/* Aviso lateral para negocios (solo escritorio: en celular ya está su sección) */
.hero__negocio { display: none; }
@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 64px; }
  .hero__negocio {
    display: grid; gap: 14px; padding: 28px;
    background: rgb(28 37 43 / .94);
  }
  .hero__negocio h2 { margin: 0; font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
  .hero__negocio p { color: var(--bv-texto-secundario); }
  .hero__negocio .btn { justify-self: start; min-height: 48px; }
}
@media (min-width: 1440px) { .hero__grid { grid-template-columns: minmax(0, 1fr) 400px; } }

/* Respaldo sin video: calles del mapa dibujadas */
.mapa-fondo {
  position: absolute; inset: 0;
  background-color: var(--bv-carbon);
  background-image:
    radial-gradient(circle at 72% 30%, var(--bv-turquesa) 0 5px, transparent 6px),
    radial-gradient(circle at 58% 48%, var(--bv-violeta-suave) 0 5px, transparent 6px),
    radial-gradient(circle at 86% 55%, var(--bv-aviso) 0 5px, transparent 6px),
    radial-gradient(circle at 64% 16%, var(--bv-contexto) 0 5px, transparent 6px),
    radial-gradient(circle at 92% 22%, var(--bv-turquesa) 0 5px, transparent 6px),
    radial-gradient(circle at 40% 26%, var(--bv-turquesa) 0 5px, transparent 6px),
    repeating-linear-gradient(90deg, transparent 0 118px, var(--bv-elevacion) 118px 120px),
    repeating-linear-gradient(0deg, transparent 0 118px, var(--bv-elevacion) 118px 120px);
}

/* ---------- Secciones ---------- */
.sec { padding-block: var(--sec-y); }
.sec__head { display: grid; gap: 16px; margin-bottom: clamp(32px, 4vw, 56px); }
.sec__head .lead { max-width: 60ch; }
@media (min-width: 1024px) {
  .sec__head--split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 64px; }
}

/* 2. Pasos: filas a todo el ancho */
.pasos { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--bv-borde); }
.paso {
  display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; align-items: start;
  padding-block: clamp(24px, 3vw, 36px); border-bottom: 1px solid var(--bv-borde);
}
.paso__n { font-family: var(--display); font-size: clamp(3.5rem, 8vw, 7rem); line-height: .9; color: var(--bv-turquesa); min-width: 1.6ch; }
.paso__body { display: grid; gap: 8px; }
.paso__t { display: flex; align-items: center; gap: 12px; margin: 0; font-size: clamp(1.25rem, 2vw, 1.75rem); font-weight: 600; line-height: 1.25; }
.paso__t svg, .rasgo svg { width: 28px; height: 28px; flex: none; color: var(--bv-turquesa); fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.paso__d { color: var(--bv-texto-secundario); max-width: 52ch; font-size: 1.0625rem; }
@media (min-width: 900px) {
  .paso { grid-template-columns: 180px minmax(0, 1fr) minmax(0, 1.2fr); align-items: center; gap: 32px; }
  .paso__body { display: contents; }
}

/* 3. Leyenda */
.leyenda-sec { background: var(--bv-superficie); }
.leyenda { list-style: none; margin: 0; padding: 0; display: grid; }
.estado { display: flex; align-items: center; gap: 20px; padding-block: 22px; border-top: 1px solid var(--bv-borde); }
.estado:last-child { border-bottom: 1px solid var(--bv-borde); }
.estado__luz { width: 22px; height: 22px; border-radius: 50%; flex: none; box-shadow: 0 0 0 6px var(--bv-elevacion); }
.estado__n { font-family: var(--display); text-transform: uppercase; font-size: clamp(1.75rem, 3.5vw, 3rem); line-height: 1.05; min-width: 6.5ch; }
.estado__d { color: var(--bv-texto-secundario); font-size: 1.0625rem; }
.estado--abierto .estado__luz { background: var(--bv-turquesa); }
.estado--promo .estado__luz { background: var(--bv-violeta-suave); }
.estado--verif .estado__luz { background: var(--bv-aviso); }
.estado--cerrado .estado__luz { background: var(--bv-contexto); }
@media (max-width: 559px) {
  .estado { flex-wrap: wrap; gap: 8px 16px; }
  .estado__d { flex-basis: 100%; padding-left: 38px; }
}
@media (min-width: 1024px) {
  .leyenda-sec .wrap { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; }
  .leyenda-sec .sec__head { margin-bottom: 0; }
}

/* 4. Lo que haces en la app: la única rejilla de tarjetas de la página */
.rasgos { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.rasgo { display: grid; gap: 12px; align-content: start; padding: clamp(22px, 2.4vw, 32px); }
.rasgo h3 { margin: 0; font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
.rasgo p { color: var(--bv-texto-secundario); }
@media (min-width: 640px) { .rasgos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .rasgos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* 5. Negocios: panel de video + puntos */
.negocio-sec { background: var(--bv-superficie); }
.negocio { display: grid; gap: clamp(32px, 5vw, 72px); align-items: stretch; }
.negocio__panel {
  position: relative; overflow: hidden; border-radius: 24px;
  aspect-ratio: 4 / 5; background: var(--bv-carbon); border: 1px solid var(--bv-borde);
}
.negocio__texto { align-self: center; }
.puntos { list-style: none; margin: 28px 0 32px; padding: 0; display: grid; gap: 18px; }
.puntos li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; font-size: 1.0625rem; }
.puntos svg { width: 24px; height: 24px; margin-top: 1px; color: var(--bv-turquesa); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 900px) {
  .negocio { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .negocio__panel { aspect-ratio: auto; min-height: 520px; }
}

/* 6. Proyecto de Bravizo: editorial */
.proyecto__in { display: grid; gap: 28px; }
.proyecto__text { display: grid; gap: 18px; font-size: 1.125rem; color: var(--bv-texto-secundario); max-width: 62ch; }
.proyecto__text strong { color: var(--bv-niebla); font-weight: 600; }
@media (min-width: 1024px) {
  .proyecto__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: end; }
}

/* 7. Preguntas frecuentes */
.faq-sec { border-top: 1px solid var(--bv-borde); }
.faq-sec .wrap { display: grid; gap: 32px; }
@media (min-width: 1024px) { .faq-sec .wrap { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; } }
.faq { border-top: 1px solid var(--bv-borde); }
.faq details { border-bottom: 1px solid var(--bv-borde); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 64px; padding: 16px 0; cursor: pointer; list-style: none;
  font-size: 1.125rem; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 22px; height: 22px; flex: none; color: var(--bv-turquesa); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; transition: transform var(--t-control) var(--curva); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq .resp { padding: 0 0 20px; color: var(--bv-texto-secundario); max-width: 64ch; }
.faq .resp a { color: var(--bv-turquesa); font-weight: 600; }

/* 8. Cierre en bloque de energía */
.cierre { background: var(--bv-energia); padding-block: clamp(72px, 11vw, 160px); }
.cierre .wrap { display: grid; gap: 32px; }
.cierre__title { font-size: clamp(3rem, 2rem + 8vw, 10rem); }
@media (min-width: 1024px) {
  .cierre .wrap { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 64px; }
}

/* ---------- Páginas de estado (pago) ---------- */
.estado-page { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.estado-page main { flex: 1; display: flex; align-items: center; padding: 112px 0 64px; }
.estado-page__icon { width: 64px; height: 64px; margin-bottom: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.estado-page__title { font-size: clamp(2.25rem, 1.5rem + 4vw, 5rem); max-width: 14ch; }
.estado-page .lead { margin-top: 16px; }
.estado-page .btn-row { margin-top: 32px; }

/* ---------- Documentos legales (fondo claro) ---------- */
.theme-light { background: var(--doc-fondo); color: var(--doc-texto); }
.theme-light .site-header { position: static; border-bottom: 1px solid var(--doc-borde); }
.theme-light .site-header__link--volver { color: var(--doc-secundario); }
.theme-light .site-header__link--volver:hover { color: var(--doc-texto); }
.theme-light .site-footer { border-top-color: var(--doc-borde); color: var(--doc-secundario); }
.theme-light .site-footer a { color: var(--doc-texto); }
.theme-light :focus-visible { outline-color: var(--doc-enlace); }
.legal { padding-block: clamp(40px, 6vw, 80px); }
.legal article { max-width: 70ch; margin: 0 auto; font-size: 1.0625rem; line-height: 1.6; }
.legal h1 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(2.25rem, 1.5rem + 4vw, 4.5rem); line-height: 1.05; margin: 0 0 12px; }
.legal .fecha { color: var(--doc-secundario); font-size: .9375rem; margin-bottom: 36px; }
.legal h2 { font-size: 1.25rem; line-height: 1.35; margin: 40px 0 12px; font-weight: 700; }
.legal p + p, .legal ul + p, .legal ol + p { margin-top: 14px; }
.legal ul, .legal ol { padding-left: 1.25rem; margin: 12px 0 0; }
.legal li + li { margin-top: 8px; }
.legal a { color: var(--doc-enlace); font-weight: 600; text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal code { font-size: .875em; background: #E3E9E2; padding: 1px 6px; border-radius: 4px; overflow-wrap: anywhere; }
.legal .tabla { margin-top: 12px; overflow-x: auto; border: 1px solid var(--doc-borde); border-radius: 12px; }
.legal table { width: 100%; border-collapse: collapse; font-size: .9375rem; line-height: 1.45; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 14px; }
.legal th { font-weight: 700; border-bottom: 1px solid var(--doc-borde); }
.legal tbody tr + tr td { border-top: 1px solid var(--doc-borde); }
.legal td:last-child { color: var(--doc-secundario); min-width: 12ch; }
.legal .tabla + p { margin-top: 14px; }
.legal .nota { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--doc-borde); color: var(--doc-secundario); font-size: .9375rem; }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
