:root {
  --tinta: #0e2240; --agua: #27a8e0; --espuma: #f5f2ec; --antes: #9a7b5b; --hueco: #f2b705;
  --ig-fg: #0c1014; --ig-mute: #737373; --ig-line: #dbdbdb; --ig-btn: #efefef; --ig-blue: #0095f6;
  --sys: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --marca: "Bricolage Grotesque", "Inter", var(--sys);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--espuma); color: var(--tinta); font-family: var(--sys); -webkit-font-smoothing: antialiased; }
button { font: inherit; cursor: pointer; }
img, video { display: block; max-width: 100%; }

/* ── The proposal chrome (El Taller de Ruben) ───────────────────────── */
.propuesta { position: sticky; top: 0; z-index: 20; background: var(--tinta); color: var(--espuma);
  display: flex; align-items: center; gap: 10px; padding: 10px 16px; font-family: var(--marca); }
.propuesta .de { font-size: 13px; line-height: 1.15; flex: 1; min-width: 0; }
.propuesta .de b { display: block; font-size: 15px; letter-spacing: -0.01em; }
.seg { display: flex; background: rgba(255,255,255,.12); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: none; color: var(--espuma); padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.seg button[aria-pressed="true"] { background: var(--espuma); color: var(--tinta); }
.btn-huecos { border: 0; border-radius: 999px; background: var(--hueco); color: var(--tinta); font-weight: 700;
  font-size: 13px; padding: 7px 11px; white-space: nowrap; }

.escena { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; padding: 0 0 40px; }
.notas { display: none; }
@media (min-width: 980px) {
  .escena { grid-template-columns: 1fr 430px 1fr; gap: 48px; align-items: start; padding: 32px 32px 64px; }
  .telefono { border-radius: 44px; overflow: hidden; box-shadow: 0 30px 80px rgba(14,34,64,.25), 0 0 0 10px #10131a; }
  .notas { display: block; font-family: var(--marca); max-width: 340px; padding-top: 24px; }
  .notas h2 { font-size: 30px; line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 14px; }
  .notas p, .notas li { font-family: var(--sys); font-size: 15px; line-height: 1.5; color: #33435c; }
  .notas ul { padding-left: 18px; }
  .notas .izq { justify-self: end; }
}
.telefono { width: 100%; max-width: 430px; background: #fff; min-height: 100vh; position: relative; }
@media (min-width: 980px) { .telefono { min-height: 860px; max-height: 880px; overflow-y: auto; scrollbar-width: none; } }

/* ── "Hoy": what's public now ───────────────────────────────────────── */
#hoy img { width: 100%; }
#hoy .pie { padding: 14px 16px 24px; font-size: 14px; line-height: 1.5; color: #33435c; background: var(--espuma); }
#hoy .pie b { color: var(--tinta); }

/* ── Instagram, redesigned ──────────────────────────────────────────── */
.ig { color: var(--ig-fg); font-size: 14px; }
.ig-top { display: flex; align-items: center; justify-content: space-between; height: 48px; padding: 0 16px; }
.ig-top .user { font-weight: 700; font-size: 20px; letter-spacing: -0.02em; display: flex; align-items: center; gap: 4px; }
.ig-top .iconos { display: flex; gap: 22px; }
.ig-head { display: flex; align-items: center; gap: 22px; padding: 6px 16px 10px; }
.avatar { width: 86px; height: 86px; border-radius: 50%; padding: 3px; flex: none;
  background: conic-gradient(from 200deg, var(--agua), var(--tinta), var(--agua)); }
.avatar img { width: 100%; height: 100%; border-radius: 50%; border: 3px solid #fff; }
.stats { display: flex; flex: 1; justify-content: space-around; text-align: center; }
.stats b { display: block; font-size: 17px; }
.stats span { font-size: 13px; }
.bio { padding: 0 16px; line-height: 1.38; }
.bio .nombre { font-weight: 600; }
.bio .cat { color: var(--ig-mute); }
.bio .link { color: #00376b; font-weight: 600; display: inline-flex; gap: 4px; align-items: center; text-decoration: none; }
.acciones { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; padding: 12px 16px; }
.acciones a, .acciones button { border: 0; border-radius: 8px; background: var(--ig-btn); color: var(--ig-fg); font-weight: 600;
  font-size: 14px; padding: 8px 0; text-align: center; text-decoration: none; }
.acciones .seguir { background: var(--ig-blue); color: #fff; }
.destacadas { display: flex; gap: 16px; padding: 4px 16px 14px; overflow-x: auto; scrollbar-width: none; }
.destacada { flex: none; width: 66px; text-align: center; font-size: 12px; background: none; border: 0; padding: 0; color: var(--ig-fg); text-decoration: none; }
.destacada .c { width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--ig-line); padding: 3px; margin-bottom: 5px; }
.destacada .c > * { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.destacada .c .mono { display: grid; place-items: center; background: var(--tinta); color: var(--espuma); font-family: var(--marca);
  font-weight: 800; font-size: 22px; }
.tabs { display: flex; border-top: 1px solid var(--ig-line); }
.tabs button { flex: 1; border: 0; background: none; padding: 10px 0; color: var(--ig-mute); border-bottom: 1px solid transparent; }
.tabs button[aria-selected="true"] { color: var(--ig-fg); border-bottom-color: var(--ig-fg); }
.grilla { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.tile { position: relative; aspect-ratio: 3 / 4; border: 0; padding: 0; background: #eee; overflow: hidden; }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.grilla.reels .tile { aspect-ratio: 9 / 16; }
.tile .ico { position: absolute; top: 7px; right: 7px; color: #fff; filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }

/* the gaps: what should be there and isn't (we don't invent it, we mark it) */
.hueco { background: rgba(242,183,5,.18); border: 1.5px dashed #c99700; border-radius: 6px; padding: 0 5px; color: #7a5b00; font-weight: 600; white-space: nowrap; }
.destacada.es-hueco .c { border: 2px dashed #c99700; }
.mostrar-huecos .hueco, .mostrar-huecos .es-hueco .c, .mostrar-huecos .tile.es-hueco { animation: latido 1.1s ease-in-out infinite; }
.mostrar-huecos .tile.es-hueco { outline: 4px solid var(--hueco); outline-offset: -4px; }
@keyframes latido { 50% { box-shadow: 0 0 0 6px rgba(242,183,5,.45); } }

/* ── Post viewer ────────────────────────────────────────────────────── */
dialog.post { padding: 0; border: 0; width: min(430px, 100vw); max-height: 100dvh; background: #fff; color: var(--ig-fg); overflow-y: auto; }
dialog.post::backdrop { background: rgba(0,0,0,.7); }
.post-top { display: flex; align-items: center; gap: 10px; padding: 10px 12px; font-weight: 600; }
.post-top img { width: 32px; height: 32px; border-radius: 50%; }
.post-top button { margin-left: auto; border: 0; background: none; font-size: 26px; line-height: 1; }
.post-media { background: #000; }
.post-media img, .post-media video { width: 100%; max-height: 72dvh; object-fit: contain; margin: 0 auto; }
.post-texto { padding: 10px 14px 6px; line-height: 1.42; white-space: pre-line; }
.post-cta { display: block; margin: 8px 14px 16px; padding: 12px; border-radius: 10px; background: var(--tinta); color: var(--espuma);
  text-align: center; font-family: var(--marca); font-weight: 700; text-decoration: none; }

/* ── Cotiza ─────────────────────────────────────────────────────────── */
.cz { max-width: 520px; margin: 0 auto; padding: 0 16px 48px; font-family: var(--sys); }
.cz-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.cz-top img { height: 40px; width: auto; }
.cz-top a { color: var(--tinta); font-size: 13px; }
.cz h1 { font-family: var(--marca); font-weight: 800; font-size: clamp(34px, 9vw, 46px); line-height: 1; letter-spacing: -0.03em; margin: 18px 0 20px; }
.cz h1 em { font-style: normal; color: var(--agua); }
.cz .sub { font-size: 16px; line-height: 1.45; color: #33435c; margin: 0 0 20px; }
.subir { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 18px; border-radius: 16px;
  border: 0; background: var(--tinta); color: var(--espuma); font-family: var(--marca); font-weight: 700; font-size: 19px; }
.ejemplos { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; font-size: 13px; color: #5a6a80; }
.ejemplos span { background: #fff; border-radius: 999px; padding: 5px 10px; }
.tarjeta { background: #fff; border-radius: 18px; padding: 16px; margin-top: 18px; box-shadow: 0 1px 0 rgba(14,34,64,.06), 0 8px 30px rgba(14,34,64,.07); }
.foto-cliente { border-radius: 12px; width: 100%; max-height: 300px; object-fit: cover; }
.veo { font-size: 17px; line-height: 1.4; margin: 14px 0 4px; font-weight: 500; }
.mirando { display: flex; gap: 10px; align-items: center; color: #5a6a80; margin-top: 14px; }
.gota { width: 14px; height: 14px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--agua); animation: gota .9s ease-in-out infinite; }
@keyframes gota { 50% { transform: rotate(-45deg) translate(3px, -3px); opacity: .5; } }
.ajustes { display: grid; gap: 10px; margin: 14px 0; }
.ajustes label { display: grid; gap: 4px; font-size: 13px; color: #5a6a80; }
.ajustes select, .ajustes input[type=number] { font: inherit; font-size: 16px; padding: 10px; border-radius: 10px; border: 1px solid #d5d9e0; background: #fff; color: var(--tinta); }
.check { display: flex !important; grid-auto-flow: column; align-items: center; gap: 8px; font-size: 15px !important; color: var(--tinta) !important; }
.precio { font-family: var(--marca); font-weight: 800; font-size: clamp(36px, 10vw, 48px); letter-spacing: -0.03em; line-height: 1; margin: 6px 0; }
.precio small { font-size: 16px; font-weight: 600; color: #5a6a80; letter-spacing: 0; }
.nota { font-size: 13px; line-height: 1.45; color: #5a6a80; margin: 8px 0 0; }
.wa { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 14px; padding: 15px; border-radius: 14px;
  background: #25d366; color: #fff; font-weight: 700; font-size: 17px; text-decoration: none; }
.otra { width: 100%; margin-top: 8px; padding: 12px; border: 0; background: none; color: var(--tinta); text-decoration: underline; }
.asi { margin-top: 28px; }
.asi h2 { font-family: var(--marca); font-size: 26px; letter-spacing: -0.02em; margin: 0 0 10px; }
.asi .fila { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.asi img { border-radius: 14px; aspect-ratio: 3/4; object-fit: cover; width: 100%; }
.asi p { font-size: 15px; line-height: 1.5; color: #33435c; }
.error { color: #b42318; margin-top: 10px; }
.ajustar { margin-top: 12px; font-size: 14px; }
.ajustar summary { color: var(--tinta); cursor: pointer; }
.trabajos-t { font-family: var(--marca); font-size: 24px; letter-spacing: -0.02em; margin: 30px 0 8px; }
.trabajos { list-style: none; margin: 0; padding: 0; }
.trabajos li { display: grid; grid-template-columns: 76px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid #e4e0d8; }
.trabajos img { width: 76px; height: 76px; object-fit: cover; border-radius: 10px; }
.trabajos .que { font-weight: 600; font-size: 15px; line-height: 1.3; }
.trabajos .cuando { font-size: 13px; color: #5a6a80; }
.trabajos .cuanto { font-family: var(--marca); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; text-align: right; }
.trabajos .cuanto .hueco { font-family: var(--sys); font-size: 13px; font-weight: 600; letter-spacing: 0; }
