/* Dirección: la misma que boixdesign.com. Papel blanco, mucho aire, Raleway fina en versales
   muy espaciadas, lemas en Josefin Slab, filetes de puntos y círculos rojos como botón.
   El copo es un dibujo de línea fina, como los grabados de la web. */
:root {
  color-scheme: light;
  --display: "Raleway", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body: "Raleway", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --lema: "Josefin Slab", Rockwell, Georgia, serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Courier New", monospace;
  --lado: clamp(18px, 5vw, 96px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body { background: var(--noche); color: var(--nieve); font-family: var(--body); font-weight: 300; font-size: 17px; line-height: 1.75; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
a { color: var(--brasa); }
:focus-visible { outline: 2px solid var(--brasa); outline-offset: 3px; }
[hidden] { display: none !important; }
button { font: inherit; cursor: pointer; }
main { display: block; }
.rojo { color: var(--brasa); }

/* Cabecera */
.cab { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding: 18px var(--lado); }
@media (max-width: 640px) { .cab nav a:nth-child(2), .cab nav a:nth-child(3) { display: none; } .cab .simb img { width: 42px; height: 42px; } }
.cab .simb img { display: block; }
.cab nav { display: flex; flex-wrap: wrap; gap: 6px 34px; }
.cab nav a, .versal, .versal-btn, .vista { font-family: var(--body); font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; }
.cab nav a { color: var(--nieve); padding: 6px 0; border-bottom: 1px solid transparent; }
.cab nav a:hover, .cab nav a:first-child { color: var(--brasa); border-bottom-color: var(--brasa); }
.versal { color: var(--gris); margin: 0; }
.versal a, a.versal { color: var(--brasa); }
.versal-btn { background: none; border: 0; border-bottom: 1px solid var(--brasa); color: var(--brasa); padding: 6px 0; }
.versal-btn:hover { color: var(--nieve); border-bottom-color: var(--nieve); }

/* Piezas de marca */
.lema { font-family: var(--lema); font-size: clamp(20px, 2.3vw, 30px); line-height: 1.3; color: var(--nieve); margin: 0; text-wrap: balance; }
h1, h2 { font-family: var(--display); font-weight: 200; text-transform: uppercase; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(38px, 8vw, 124px); letter-spacing: .14em; line-height: 1.02; margin-right: -.14em; }
h2 { font-size: clamp(26px, 3.6vw, 46px); font-weight: 300; letter-spacing: .1em; line-height: 1.2; margin-right: -.1em; }
.puntos { width: min(240px, 50%); height: 9px; margin: 0 auto; background-image: radial-gradient(circle, var(--gris) 1px, transparent 1.4px); background-size: 6px 4.5px; opacity: .8; }
.redondo-btn { display: inline-flex; flex-direction: column; align-items: center; gap: 12px; background: none; border: 0; padding: 0; text-decoration: none; color: var(--brasa); }
.redondo { display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; background: var(--brasa); color: var(--sobre-brasa); transition: transform .25s ease; }
.redondo-btn:hover .redondo { transform: scale(1.08); }
.redondo-btn:disabled .redondo { background: var(--linea); }
.guion { font-family: var(--lema); font-style: italic; font-size: 22px; line-height: 1; }
@media (prefers-reduced-motion: reduce) { .redondo { transition: none; } }

/* Portada: el nombre, el copo y el botón */
.portada { display: flex; flex-direction: column; align-items: center; text-align: center; gap: clamp(14px, 2vw, 26px); padding: clamp(10px, 2vw, 28px) var(--lado) clamp(48px, 7vw, 110px); overflow: hidden; }
.portada[data-estado="cerrado"] .despues { display: none; }
.portada[data-estado="abierto"] .antes { display: none; }
.nombre { font-size: clamp(32px, calc(86vw / (var(--n) * .86)), 124px); }
.texto { max-width: 46ch; margin: 0; }
.lamina { width: min(100%, 560px, 40vh); transition: width .9s ease; }
.portada[data-estado="abierto"] .lamina { width: min(100%, 620px, 70vh); }
@media (prefers-reduced-motion: reduce) { .lamina { transition: none; } }
.portada .texto.antes { order: 3; }
.copo-grande svg { display: block; width: 100%; height: auto; }
.serie { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gris); margin: 6px 0 0; }
.accion { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.con-sonido { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; color: var(--gris); cursor: pointer; }
.con-sonido input { accent-color: var(--brasa); width: 15px; height: 15px; }
.tira { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.tira ol { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; }
.tira li { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: .1em; width: 26px; }
.tira i { display: block; width: 26px; height: 26px; background: hsl(0 0% calc(18% + var(--v) * 2.6%)); }
.tira .vocal i { background: var(--brasa); }

/* La nevada: a todo el ancho */
.nevada { display: flex; flex-direction: column; gap: clamp(22px, 3vw, 40px); padding: clamp(40px, 6vw, 90px) 0; border-top: 1px solid var(--linea); }
.nevada-texto { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; padding: 0 var(--lado); }
.cuenta { margin: 0; color: var(--gris); }
.cuenta b { color: var(--brasa); font-weight: 600; font-size: 20px; }
.vistas { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 30px; }
.vista { background: none; border: 0; border-bottom: 1px solid transparent; color: var(--nieve); padding: 6px 0; }
.vista[aria-pressed="true"], .vista:hover { color: var(--brasa); border-bottom-color: var(--brasa); }
.cielo { position: relative; width: 100%; height: 86vh; min-height: 460px; background: var(--noche); border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea); overflow: hidden; }
.cielo canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cielo:fullscreen { height: 100vh; border: 0; }
.cielo:-webkit-full-screen { height: 100vh; border: 0; }
.marca-agua { position: absolute; left: 22px; bottom: 22px; display: none; }
.cielo:fullscreen .marca-agua, .cielo:-webkit-full-screen .marca-agua { display: block; }
.mio { position: absolute; left: 50%; top: 50%; width: min(42vw, 230px); transform: translate(-50%, -50%); text-align: center; animation: flota 9s ease-in-out infinite; opacity: .3; transition: opacity .8s; }
.mio.encendido { opacity: 1; }
.mio svg { display: block; width: 100%; height: auto; }
.mio span { font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--brasa); }
@keyframes flota { 0%, 100% { transform: translate(-50%, -54%) rotate(-4deg); } 50% { transform: translate(-50%, -46%) rotate(5deg); } }
@media (prefers-reduced-motion: reduce) { .mio { animation: none; } }
.notas-flot { position: absolute; inset: 0; pointer-events: none; }
.nota-flot { position: absolute; margin: 0; max-width: min(26%, 300px); min-width: 130px; font-family: var(--lema); font-style: italic; font-size: 19px; line-height: 1.3; color: var(--gris); opacity: 0; animation: deriva 15s linear forwards; }
.nota-flot.fija { animation: none; opacity: .85; }
@keyframes deriva { 0% { opacity: 0; transform: translateY(18px); } 15% { opacity: .9; } 80% { opacity: .9; } 100% { opacity: 0; transform: translateY(-46px); } }

/* Listado */
.listado { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; padding: 18px var(--lado); border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea); }
.ficha { background: none; border: 1px solid transparent; padding: 10px 4px; color: var(--gris); display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.ficha:hover { border-color: var(--linea); }
.ficha .dibujo { display: block; background-repeat: no-repeat; opacity: .22; max-width: 100%; }
.ficha.on .dibujo { opacity: .9; }
.ficha .num { font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em; white-space: nowrap; }
.ficha.mia { grid-column: span 2; grid-row: span 2; border-color: var(--brasa); color: var(--brasa); justify-content: center; }
.ficha.mia .dibujo { opacity: 1; }
.ficha.mia .dibujo svg { display: block; width: 100%; height: 100%; }
.ficha.mia .num { font-size: 12px; }

/* Buscar y dejar nota */
.herramientas { display: flex; flex-wrap: wrap; gap: 36px clamp(32px, 7vw, 120px); padding: 0 var(--lado); max-width: 1400px; margin: 0 auto; width: 100%; }
.herramientas form { flex: 1 1 320px; min-width: 0; }
.herramientas label { display: block; font-family: var(--lema); font-size: 22px; line-height: 1.3; margin-bottom: 10px; }
.fila { display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: flex-end; }
.herramientas input { font: inherit; color: var(--nieve); background: none; border: 0; border-bottom: 1px solid var(--nieve); border-radius: 0; padding: 8px 0; flex: 1 1 200px; min-width: 0; }
.buscar input { font-family: var(--mono); font-size: 15px; letter-spacing: .1em; text-transform: uppercase; }
.pista { color: var(--gris); font-size: 14px; line-height: 1.6; margin: 12px 0 0; max-width: 56ch; }
.hallado { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 14px; color: var(--gris); font-size: 15px; }
.hallado p { margin: 0; }
.hallado-copo { width: 150px; flex: 0 0 auto; }
.hallado-copo svg { display: block; width: 100%; height: auto; }

/* Quiero algo así */
.interes { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; padding: clamp(48px, 7vw, 100px) var(--lado); border-top: 1px solid var(--linea); }
.interes .lema { max-width: 34ch; color: var(--gris); }
.interes .estado { margin: 0; min-height: 1.6em; font-family: var(--lema); font-style: italic; font-size: 20px; color: var(--nieve); }

/* Pie */
.pie { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; padding: clamp(40px, 5vw, 70px) var(--lado) 56px; border-top: 1px solid var(--linea); }
.pie .logo img { display: block; height: 120px; width: auto; }
.pie .lema { font-size: 22px; color: var(--gris); }

/* Botones del panel */
.ejecutar { display: inline-block; background: var(--brasa); color: var(--sobre-brasa); border: 0; border-radius: 4px; padding: 12px 22px; font-weight: 600; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
.fantasma { background: transparent; color: var(--nieve); border: 1px solid var(--nieve); border-radius: 4px; padding: 10px 16px; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.fantasma:hover { border-color: var(--brasa); color: var(--brasa); }
.tag { font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gris); margin: 0 0 10px; }

/* Panel */
.menu { display: flex; flex-wrap: wrap; gap: 6px 4px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--linea); background: var(--panel); }
.menu strong { font-family: var(--display); font-weight: 600; margin-right: 14px; }
.menu a { color: var(--gris); text-decoration: none; padding: 7px 12px; border-radius: 8px; font-size: 15px; }
.menu a[aria-current="page"] { background: var(--noche); color: var(--nieve); }
.menu a:hover { color: var(--nieve); }
.menu .fuera { margin-left: auto; }
.panel { max-width: 1240px; gap: 20px; padding-bottom: 48px; }
.panel h1 { font-size: clamp(30px, 4vw, 42px); margin: 0; }
.panel h2 { font-size: 20px; font-weight: 500; margin: 8px 0 8px; }
.panel h1 { font-weight: 400; }
.cifras { display: flex; flex-wrap: wrap; gap: 12px; }
.cifras div { flex: 1 1 150px; border: 1px solid var(--linea); border-radius: 12px; padding: 14px; }
.cifras b { display: block; font-family: var(--display); font-weight: 500; font-size: 34px; line-height: 1; font-variant-numeric: tabular-nums; }
.cifras span { color: var(--gris); font-size: 13px; line-height: 1.4; display: block; margin-top: 6px; }
.nota { color: var(--gris); font-size: 14px; max-width: 80ch; margin: 0 0 8px; }
.nota b { color: var(--nieve); }
.dos { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.caja { flex: 1 1 340px; min-width: 0; border: 1px solid var(--linea); border-radius: 12px; padding: 16px; }
.campos { display: flex; flex-direction: column; gap: 10px; margin: 0 0 14px; align-items: flex-start; }
.campos label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--gris); width: 100%; }
.campos label.check { flex-direction: row; align-items: flex-start; gap: 8px; color: var(--nieve); }
.panel input:not([type="checkbox"]):not([type="file"]):not([type="hidden"]), .panel select { font: inherit; color: var(--nieve); background: var(--noche); border: 1px solid var(--linea); border-radius: 8px; padding: 9px 11px; width: 100%; max-width: 420px; }
.panel input[type="file"] { color: var(--gris); margin: 0 0 10px; max-width: 100%; }
button:disabled { opacity: .4; cursor: not-allowed; }
.suelto { display: flex; gap: 10px; align-items: center; margin: 0 0 14px; }
.barra { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.barra label { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--gris); }
.barra .nota { margin: 0; }
.aviso { border-radius: 10px; padding: 10px 14px; font-size: 15px; max-width: none; margin: 0; border: 1px solid var(--linea); }
.aviso.ok { border-color: var(--hielo); color: var(--hielo); }
.aviso.mal { border-color: var(--brasa); color: var(--brasa); }
.pastilla { display: inline-block; font-size: 12px; border: 1px solid var(--linea); border-radius: 99px; padding: 2px 9px; color: var(--gris); }
.pastilla.si { border-color: var(--hielo); color: var(--hielo); }
.pastilla.no { border-color: var(--brasa); color: var(--brasa); }
.mini { background: transparent; color: var(--nieve); border: 1px solid var(--linea); border-radius: 6px; padding: 3px 9px; font-size: 13px; }
.mini:hover { border-color: var(--hielo); }
.mono { font-family: var(--mono); font-size: 12px; color: var(--gris); }
.copo-ficha { max-width: 300px; }
.copo-ficha svg { display: block; width: 100%; height: auto; }
.linea { margin: 0; padding-left: 18px; font-size: 14px; }
.linea li { margin-bottom: 5px; }
.linea time { color: var(--gris); font-variant-numeric: tabular-nums; margin-right: 8px; }
blockquote { margin: 0 0 8px; padding: 10px 14px; border-left: 3px solid var(--hielo); background: var(--panel); border-radius: 0 8px 8px 0; }
.tabla { overflow-x: auto; border: 1px solid var(--linea); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--linea); white-space: nowrap; vertical-align: top; }
td.texto { white-space: normal; min-width: 240px; }
th { color: var(--gris); font-weight: 500; }
td.n { font-variant-numeric: tabular-nums; }
td form { margin: 0; }


.pastilla.caliente { border-color: var(--brasa); background: var(--brasa); color: var(--sobre-brasa); font-weight: 600; }
.cifras .destacada { border-color: var(--brasa); }
.panel > .caja { flex: none; }
.panel { margin: 0 auto; padding: 28px 16px 48px; display: flex; flex-direction: column; text-align: left; }
.panel h1, .panel h2 { text-transform: none; letter-spacing: 0; margin-right: 0; }
.panel p { margin: 0 0 12px; }
.panel a { color: var(--brasa); }
.panel .linea li { line-height: 1.5; }

/* Analítica */
.embudo { display: flex; flex-direction: column; gap: 8px; }
.paso { position: relative; display: flex; align-items: baseline; gap: 12px; padding: 8px 12px; border: 1px solid var(--linea); border-radius: 8px; overflow: hidden; }
.paso b { font-size: 20px; font-weight: 500; min-width: 3ch; font-variant-numeric: tabular-nums; position: relative; z-index: 1; }
.paso span { font-size: 14px; position: relative; z-index: 1; }
.paso i { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(224, 80, 56, .14); }
.grafico { overflow-x: auto; }
.grafico svg { display: block; font-family: var(--body); }
.leyenda { display: inline-block; width: 10px; height: 10px; vertical-align: baseline; }
.leyenda.negro { background: #111; } .leyenda.rojo { background: var(--brasa); }
table.calor th, table.calor td { padding: 5px 4px; text-align: center; font-size: 11px; min-width: 24px; white-space: nowrap; border-bottom: 1px solid var(--linea); }
table.calor tbody th { text-align: left; padding-left: 10px; text-transform: uppercase; letter-spacing: .08em; }
.linea b { font-weight: 600; }
