/* Collab Flow · dirección A «Cromo»: negro, plata y blanco.
   Una sola columna pensada para el celular (link de la bio y reuniones). */
:root {
  --fondo: #0a0a0a;
  --fondo-luz: #2a2a2a;
  --tinta: #f4f4f4;
  --suave: #a6a6a6;
  --linea: rgba(255, 255, 255, .16);
  --vidrio: rgba(255, 255, 255, .06);
  --plata-1: #f5f5f5;
  --plata-2: #b4b4b4;
  --wa: #25d366;
  --display: 'Unbounded', 'Arial Black', system-ui, sans-serif;
  --texto: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ancho: min(100% - 40px, 460px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--fondo); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--tinta);
  font-family: var(--texto);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(120% 55% at 50% 22%, var(--fondo-luz) 0%, var(--fondo) 62%) no-repeat,
    var(--fondo);
}
img { max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--plata-1); outline-offset: 3px; border-radius: 6px; }
.oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- barra ---------- */
.barra {
  position: absolute; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(14px + env(safe-area-inset-top, 0px)) 20px 14px;
}
.marca { display: block; line-height: 0; }
.marca img { height: 22px; width: auto; }
.hablemos {
  font-size: 14px; font-weight: 600; text-decoration: none; color: var(--suave);
  padding: 8px 2px;
}
.hablemos:hover { color: var(--tinta); }

/* ---------- portada ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center;
  padding-top: calc(64px + env(safe-area-inset-top, 0px));
  overflow: hidden;
}
.gigante {
  position: absolute; inset: 0; display: grid; place-content: center; row-gap: 34vw;
  margin: 0; text-align: center; pointer-events: none; user-select: none;
  font-family: var(--display); font-weight: 900;
  font-size: clamp(60px, 18.5vw, 230px); line-height: .88; letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .3);
}
.escena {
  position: relative; z-index: 2;
  width: 100%; flex: 1 1 auto; min-height: 340px;
}
.escena .poster {
  position: absolute; inset: 0; margin: auto;
  width: min(74%, 560px); height: auto;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .55));
  transition: opacity .7s ease;
}
.escena .lienzo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity .9s ease;
  touch-action: pan-y; cursor: grab;
}
.escena .lienzo:active { cursor: grabbing; }
.escena.listo .lienzo { opacity: 1; }
.escena.listo .poster { opacity: 0; }

.lema {
  position: relative; z-index: 3;
  margin: 6px 0 14px; text-align: center;
  font-size: 14px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase;
}
.lema b { font-weight: 700; color: var(--plata-1); }

.acciones {
  position: relative; z-index: 3;
  width: var(--ancho); display: grid; gap: 10px;
  margin-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
}
.fila { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fila.sola { grid-template-columns: 1fr; }

/* ---------- doble puerta: ¿marca o creador? ---------- */
.puerta {
  position: relative; z-index: 3;
  width: var(--ancho); display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  padding: 5px; border-radius: 18px;
  background: var(--vidrio); border: 1px solid var(--linea);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.puerta-op {
  min-height: 46px; padding: 0 10px; border-radius: 13px; cursor: pointer;
  font: 600 15px/1.15 var(--texto); color: var(--suave);
  background: transparent; border: 1px solid transparent;
  transition: color .25s ease, background .25s ease, border-color .25s ease;
}
.puerta-op:hover { color: var(--tinta); }
.puerta-op[aria-pressed="true"] {
  color: var(--tinta); background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .55);
}
.puerta-texto {
  position: relative; z-index: 3;
  width: var(--ancho); margin: 8px 0 12px; min-height: 1.5em;
  text-align: center; font-size: 14px; color: var(--suave);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.puerta-chica { width: 100%; margin: -6px 0 22px; }

/* ---------- botones ---------- */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 18px; border-radius: 16px;
  font: 700 16px/1 var(--texto); text-decoration: none; color: var(--tinta);
  background: var(--vidrio); border: 1px solid var(--linea);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  cursor: pointer; transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}
.btn:hover { background: rgba(255, 255, 255, .1); }
.btn:active { transform: scale(.98); }
.btn.principal {
  color: #0a0a0a; border: 0; width: 100%;
  background: linear-gradient(180deg, var(--plata-1) 0%, #d9d9d9 45%, var(--plata-2) 100%);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .5), inset 0 1px 0 #fff, inset 0 -1px 0 rgba(0, 0, 0, .15);
}
.btn.principal:hover { box-shadow: 0 18px 40px rgba(0, 0, 0, .55), inset 0 1px 0 #fff; }
.punto-wa {
  width: 11px; height: 11px; border-radius: 50%; background: var(--wa); flex: none;
  box-shadow: 0 0 0 4px rgba(37, 211, 102, .22);
}

/* ---------- bloques ---------- */
.bloque { width: var(--ancho); margin: 0 auto; padding-block: 64px; }
.bloque + .bloque { border-top: 1px solid var(--linea); }
.rotulo {
  margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: .2em;
  text-transform: uppercase; color: var(--suave);
}
.rotulo-2 { margin-top: 44px; }
.bloque h2 {
  margin: 0 0 10px; font-family: var(--display); font-weight: 900;
  font-size: clamp(26px, 7vw, 34px); line-height: 1.05; letter-spacing: -.02em; text-wrap: balance;
}
.sub { margin: 0 0 26px; color: var(--suave); }

/* ---------- formulario ---------- */
form { display: grid; gap: 14px; }
.campo { display: grid; gap: 6px; }
.campo label { font-size: 14px; font-weight: 600; }
.opc { color: var(--suave); font-weight: 500; }
input, textarea {
  width: 100%; font: 500 16px/1.4 var(--texto); color: var(--tinta);
  background: var(--vidrio); border: 1px solid var(--linea); border-radius: 14px;
  padding: 14px 16px; resize: vertical;
}
input::placeholder, textarea::placeholder { color: #6f6f6f; }
input:focus, textarea:focus { outline: none; border-color: rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .09); }
.aviso { margin: 0; font-size: 14px; color: #ffb4a8; }
.nota { margin: 2px 0 0; font-size: 13px; color: var(--suave); text-align: center; }
form .btn.principal { margin-top: 4px; }

/* ---------- servicios ---------- */
.servicios { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.servicios li {
  padding: 18px 18px 16px; border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .025));
  border: 1px solid var(--linea);
}
.servicios li { transition: opacity .3s ease, border-color .3s ease; }
html[data-soy] .servicios li { opacity: .5; }
html[data-soy] .servicios li.tuyo { opacity: 1; order: -1; border-color: rgba(255, 255, 255, .45); }
.servicios h3 { margin: 0 0 4px; font-size: 17px; font-weight: 700; }
.servicios p { margin: 0; color: var(--suave); font-size: 15px; }

/* ---------- pie ---------- */
.pie {
  width: var(--ancho); margin: 0 auto;
  padding: 36px 0 calc(36px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--linea);
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
  font-size: 13px; color: var(--suave);
}
.pie p { margin: 0; flex: 1 1 auto; }
.pie a { text-decoration: none; font-weight: 600; color: var(--tinta); }

/* ---------- aviso flotante ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); z-index: 50;
  transform: translateX(-50%); width: max-content; max-width: calc(100% - 40px);
  padding: 12px 16px; border-radius: 12px; font-size: 14px; font-weight: 600;
  background: #f4f4f4; color: #0a0a0a; box-shadow: 0 12px 30px rgba(0, 0, 0, .5);
}

/* ---------- computador ---------- */
@media (min-width: 900px) {
  .hero { padding-top: 76px; }
  .escena { min-height: 460px; }
  .gigante { row-gap: min(17vw, 290px); font-size: clamp(60px, 11vw, 200px); }
  .escena .poster { width: min(42%, 620px); }
  .lema { font-size: 15px; }
}

/* laptops bajitas: que los botones quepan sin bajar */
@media (min-width: 900px) and (max-height: 800px) {
  .hero { padding-top: 60px; }
  .escena { min-height: 300px; }
  .gigante { row-gap: min(14vw, 230px); font-size: clamp(56px, 9vw, 170px); }
  .lema { margin-bottom: 10px; }
  .puerta-texto { margin: 6px 0 8px; }
  .acciones { margin-bottom: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .escena .poster, .escena .lienzo, .btn, .puerta-op, .servicios li { transition: none; }
}
