/* =========================================================
   Trueno Tattoo — estilos (demo de Tereré Estudio)
   Mobile primero. Sistema: tinta, hueso, papel, rojo, amarillo.
   ========================================================= */

@font-face { font-family: "Inter Display"; src: url("../fonts/inter-display-black.woff") format("woff"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-semibold.woff") format("woff"); font-weight: 600; font-display: swap; }

:root {
  --tinta: #141210;
  --tinta-2: #1f1c1a;
  --tinta-3: #2c2825;
  --hueso: #efe7d6;
  --papel: #f6efe1;
  --blanco: #fffdf8;
  --rojo: #c3352b;
  --rojo-osc: #a92a21;
  --amarillo: #f2c230;
  --amarillo-2: #ffd34d;
  --gris: #645e55;
  --gris-claro: #b9b1a3;
  --linea: rgba(20, 18, 16, .16);
  --linea-clara: rgba(239, 231, 214, .18);
  --wa: #148a47;
  --ig: #b4246f;

  --tit: "Inter Display", "Inter", system-ui, sans-serif;
  --txt: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --e1: 4px; --e2: 8px; --e3: 12px; --e4: 16px; --e5: 24px; --e6: 32px; --e7: 48px; --e8: 64px;
  --radio: 6px;
  --ancho: 1200px;
  --cab: 92px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--cab); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font: 400 1rem/1.55 var(--txt); color: var(--tinta); background: var(--tinta); overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--tit); font-weight: 900; line-height: .98; letter-spacing: -.02em; margin: 0; text-transform: uppercase; }
h2 { font-size: clamp(2rem, 1.2rem + 3.6vw, 3.4rem); }
h3 { font-size: 1.35rem; letter-spacing: -.01em; }
p { margin: 0; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--amarillo); outline-offset: 3px; }
[hidden] { display: none !important; }
.saltar { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--amarillo); color: var(--tinta); padding: 8px 14px; font-weight: 600; }
.saltar:focus { left: 8px; }
.envoltura { width: 100%; max-width: var(--ancho); margin: 0 auto; padding: 0 var(--e4); }
@media (min-width: 768px) { .envoltura { padding: 0 var(--e6); } }
.sutil { font-weight: 400; color: var(--gris); }
.nota { margin-top: var(--e4); font-size: .85rem; color: var(--gris); }
.ayuda { font-size: .88rem; color: var(--gris); margin-top: var(--e2); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border: 2px solid transparent; border-radius: var(--radio);
  font: 600 1rem/1.15 var(--txt); text-decoration: none; text-align: center; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn--primario { background: var(--amarillo); color: var(--tinta); border-color: var(--tinta); box-shadow: 3px 3px 0 var(--tinta); }
.hero .btn--primario, .cabecera .btn--primario { border-color: var(--amarillo); box-shadow: 3px 3px 0 var(--rojo); }
.btn--primario:hover { background: var(--amarillo-2); }
.btn--linea { background: transparent; color: var(--hueso); border-color: var(--hueso); }
.btn--linea:hover { background: rgba(239, 231, 214, .1); }
.btn--linea-oscura { background: transparent; color: var(--tinta); border-color: var(--tinta); }
.btn--linea-oscura:hover { background: rgba(20, 18, 16, .06); }
.btn--oscuro { background: var(--tinta); color: var(--hueso); }
.btn--oscuro:hover { background: var(--tinta-3); }
.btn--oscuro:disabled { background: #cfc6b4; color: #5b554c; cursor: not-allowed; }
.btn--bloque { width: 100%; }
.btn--chico { min-height: 40px; padding: 8px 16px; font-size: .95rem; }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: #0f7a3d; }
.btn--ig { background: var(--ig); color: #fff; min-height: 44px; padding: 10px 18px; }
.btn--ig:hover { background: #9c1e60; }
.acciones { display: flex; flex-wrap: wrap; gap: var(--e3); }

.sello {
  display: inline-block; padding: 6px 12px; border: 2px solid var(--amarillo); border-radius: 999px;
  color: var(--amarillo); font: 600 .82rem/1.2 var(--txt); letter-spacing: .04em; text-transform: uppercase;
  transform: rotate(-2deg);
}
.sello--oscuro { border-color: var(--rojo); color: var(--rojo); }

/* ---------- Cabecera ---------- */
.cabecera { position: fixed; inset: 0 0 auto 0; z-index: 50; color: var(--hueso); transition: background-color .2s ease, box-shadow .2s ease; }
.cabecera--fondo, .cabecera--menu { background: rgba(20, 18, 16, .94); box-shadow: 0 1px 0 var(--linea-clara); }
@supports (backdrop-filter: blur(8px)) { .cabecera--fondo { background: rgba(20, 18, 16, .9); backdrop-filter: blur(8px); } }
.demo-barra { display: block; padding: 6px 12px; background: var(--rojo); color: #fff; font-size: .78rem; font-weight: 600; text-align: center; text-decoration: none; letter-spacing: .01em; }
.demo-barra:hover { text-decoration: underline; }
.cabecera__fila { display: flex; align-items: center; gap: var(--e3); min-height: 60px; }
.cabecera__logo { margin-right: auto; display: block; }
.cabecera__logo img { width: 136px; }
.menu { display: none; }
.menu-btn { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 0 10px; background: none; border: 0; cursor: pointer; }
.menu-btn span { display: block; height: 2px; background: var(--hueso); transition: transform .2s ease, opacity .2s ease; }
.cabecera--menu .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.cabecera--menu .menu-btn span:nth-child(2) { opacity: 0; }
.cabecera--menu .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.cabecera--menu .menu { display: flex; flex-direction: column; position: absolute; inset: 100% 0 auto 0; background: var(--tinta); padding: var(--e2) var(--e4) var(--e4); border-top: 1px solid var(--linea-clara); }
.menu a { padding: 12px 4px; text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--linea-clara); }
.menu a:hover { color: var(--amarillo); }
@media (min-width: 960px) {
  :root { --cab: 104px; }
  .cabecera__fila { min-height: 72px; gap: var(--e5); }
  .cabecera__logo img { width: 150px; }
  .menu, .cabecera--menu .menu { display: flex; flex-direction: row; position: static; background: none; padding: 0; border: 0; gap: var(--e5); }
  .menu a { padding: 8px 0; border: 0; }
  .menu-btn { display: none; }
}

/* ---------- Hero ---------- */
.hero { background: radial-gradient(120% 80% at 80% 10%, #2a2420 0%, var(--tinta) 60%); color: var(--hueso); padding: calc(var(--cab) + var(--e5)) 0 var(--e7); overflow: hidden; }
.hero__grilla { display: grid; gap: var(--e6); align-items: center; }
.hero__texto { display: grid; gap: var(--e4); justify-items: start; }
.hero h1 { font-size: clamp(2.6rem, 1.4rem + 6.4vw, 5.6rem); line-height: .92; }
.hero h1 span { display: block; color: var(--amarillo); }
.hero__bajada { font-size: 1.08rem; max-width: 34ch; color: #ded5c3; }
.hero__datos { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 0; margin: var(--e2) 0 0; list-style: none; font-size: .9rem; color: var(--gris-claro); }
.hero__datos li { display: flex; align-items: center; gap: 8px; }
.hero__datos li::before { content: ""; width: 8px; height: 12px; background: var(--amarillo); clip-path: polygon(60% 0, 0 60%, 45% 60%, 30% 100%, 100% 35%, 55% 35%); }
.hero__arte { position: relative; width: min(100%, 420px); margin: 0 auto; aspect-ratio: 1 / .92; }
.hero__hoja { position: absolute; left: 14%; top: 4%; width: 72%; padding: 6% 6% 4%; background: var(--papel); border-radius: 4px; box-shadow: 0 18px 40px rgba(0, 0, 0, .45); transform: rotate(3deg); }
.hero__svg { width: 100%; height: auto; }
.hero__firma { display: block; margin-top: 4px; font: 600 .78rem/1.2 var(--txt); color: var(--gris); text-align: right; letter-spacing: .02em; }
.hero__flash { position: absolute; width: 42%; background: var(--hueso); border-radius: 4px; padding: 3%; box-shadow: 0 12px 30px rgba(0, 0, 0, .4); }
.hero__flash--a { left: 0; bottom: 0; transform: rotate(-9deg); }
.hero__flash--b { right: 0; bottom: 6%; transform: rotate(8deg); }
/* Trazo de aguja: el contorno se dibuja y después entra el color */
.hero__svg .trazo path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.hero__svg .relleno { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .hero__svg .trazo path { stroke-dashoffset: 1; animation: trazar 1.8s cubic-bezier(.6, .1, .3, 1) .3s forwards; }
  .hero__svg .trazo path:nth-child(2) { animation-delay: 1.1s; animation-duration: .8s; }
  .hero__svg .trazo path:nth-child(3) { animation-delay: 1.4s; animation-duration: 1s; }
  .hero__svg .relleno { opacity: 0; animation: entrar .6s ease 2.2s forwards; }
}
@keyframes trazar { to { stroke-dashoffset: 0; } }
@keyframes entrar { to { opacity: 1; } }
@media (min-width: 960px) {
  .hero { padding: calc(var(--cab) + var(--e7)) 0 var(--e8); min-height: 640px; }
  .hero__grilla { grid-template-columns: 1.1fr .9fr; }
  .hero__arte { width: 100%; max-width: 480px; }
}

/* ---------- Secciones ---------- */
.seccion { padding: var(--e7) 0; }
@media (min-width: 960px) { .seccion { padding: var(--e8) 0; } }
.seccion--hueso { background: var(--hueso); }
.seccion--papel { background: var(--papel); }
.seccion--tinta { background: var(--tinta); color: var(--hueso); }
.seccion__titulo { display: grid; gap: var(--e3); margin-bottom: var(--e6); }
.seccion__titulo p { max-width: 56ch; color: var(--gris); }
.seccion--tinta .seccion__titulo p { color: var(--gris-claro); }
.seccion__titulo--fila { gap: var(--e4); }
.seccion__titulo--fila > div:first-child { display: grid; gap: var(--e3); }
.seccion__titulo--fila > .btn { justify-self: start; }
@media (max-width: 767px) {
  .filtros { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--e4) * -1); padding: 2px var(--e4) 4px; scrollbar-width: none; }
  .filtros::-webkit-scrollbar { display: none; }
  .filtros .chip { flex: none; }
}
@media (min-width: 768px) {
  .seccion__titulo--fila { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
  .seccion__titulo--fila > .filtros, .seccion__titulo--fila > .btn { flex-wrap: nowrap; justify-self: end; }
}

/* ---------- Servicios ---------- */
.servicios { display: grid; gap: var(--e4); }
.servicio { display: flex; flex-direction: column; gap: var(--e3); padding: var(--e5); background: var(--blanco); border: 2px solid var(--tinta); border-radius: var(--radio); box-shadow: 5px 5px 0 var(--tinta); }
.servicio__icono { width: 44px; height: 44px; color: var(--rojo); }
.servicio p { color: #3d3833; }
.servicio .servicio__meta { margin-top: auto; padding-top: var(--e2); font-weight: 600; color: var(--tinta); border-top: 1px dashed var(--linea); }
.servicio .btn { align-self: flex-start; }
@media (min-width: 768px) { .servicios { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--e5); } }

/* ---------- Chips y filtros ---------- */
.filtros { display: flex; flex-wrap: wrap; gap: var(--e2); }
.chips { display: flex; flex-wrap: wrap; gap: var(--e2); }
.chip {
  min-height: 40px; padding: 8px 14px; border: 2px solid var(--tinta); border-radius: 999px; background: transparent;
  font-weight: 600; font-size: .92rem; cursor: pointer; color: var(--tinta);
}
.chip:not([aria-pressed="true"]):not([aria-checked="true"]):hover:not(:disabled) { background: rgba(20, 18, 16, .07); }
.chip[aria-pressed="true"], .chip[aria-checked="true"] { background: var(--tinta); color: var(--hueso); }
.chip:disabled { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
.filtros--claro { margin-bottom: var(--e5); }
.filtros--claro .chip { border-color: var(--hueso); color: var(--hueso); }
.filtros--claro .chip:not([aria-pressed="true"]):hover { background: rgba(239, 231, 214, .1); }
.filtros--claro .chip[aria-pressed="true"] { background: var(--hueso); color: var(--tinta); }

/* ---------- Carruseles en celular ---------- */
.carrusel-m { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--e4); }
@media (max-width: 767px) {
  .carrusel-m {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: var(--e3);
    margin: 0 calc(var(--e4) * -1); padding: 4px var(--e4) var(--e3); scroll-padding: 0 var(--e4);
    scrollbar-width: none;
  }
  .carrusel-m::-webkit-scrollbar { display: none; }
  .carrusel-m > li { flex: 0 0 78%; scroll-snap-align: start; }
}
.puntos { display: flex; justify-content: center; gap: 4px; margin-top: var(--e2); }
.puntos button { width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.puntos button::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tinta); opacity: .25; transition: width .2s ease, opacity .2s ease; }
.puntos button[aria-current="true"]::before { width: 20px; border-radius: 4px; opacity: 1; }
.puntos--claro button::before { background: var(--hueso); }
@media (min-width: 768px) { .puntos { display: none; } }

/* ---------- Flash ---------- */
@media (min-width: 768px) { .flash { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .flash { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--e5); } }
.flash__item { display: flex; }
.tflash { display: flex; flex-direction: column; width: 100%; background: var(--blanco); border: 2px solid var(--tinta); border-radius: var(--radio); overflow: hidden; }
.tflash__papel { position: relative; background: var(--hueso); border-bottom: 2px solid var(--tinta); padding: var(--e4); }
.tflash__papel img { width: 100%; aspect-ratio: 1; }
.tflash--reservado .tflash__papel img { opacity: .45; filter: grayscale(.6); }
.estado { position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 999px; font: 600 .74rem/1.2 var(--txt); letter-spacing: .04em; text-transform: uppercase; background: var(--tinta); color: var(--hueso); }
.estado--unico { background: var(--rojo); color: #fff; }
.estado--eterno { background: var(--amarillo); color: var(--tinta); }
.estado--reservado { background: #6b655c; color: #fff; }
.tflash__cuerpo { display: flex; flex-direction: column; gap: var(--e2); padding: var(--e4); flex: 1; }
.tflash__cuerpo h3 { font-size: 1.2rem; }
.tflash__autor { font-size: .88rem; color: var(--gris); }
.tflash__precios { list-style: none; padding: 0; margin: 0 0 var(--e3); display: grid; gap: 2px; font-size: .92rem; }
.tflash__precios li { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--linea); padding: 4px 0; }
.tflash .btn { margin-top: auto; }

/* ---------- Turnero ---------- */
.turnero { display: grid; gap: var(--e5); align-items: start; }
@media (min-width: 960px) { .turnero { grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: var(--e6); } }
.turnero__form { background: var(--blanco); border: 2px solid var(--tinta); border-radius: var(--radio); padding: var(--e4); box-shadow: 6px 6px 0 var(--tinta); }
@media (min-width: 768px) { .turnero__form { padding: var(--e6); } }
.pasos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; list-style: none; padding: 0; margin: 0 0 var(--e5); }
.pasos button {
  width: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 2px;
  background: none; border: 0; border-bottom: 3px solid var(--linea); font-size: .8rem; font-weight: 600; cursor: pointer; color: var(--tinta);
}
.pasos button span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--tinta); font-size: .85rem; }
.pasos button[aria-current="step"] { border-bottom-color: var(--rojo); }
.pasos button[aria-current="step"] span { background: var(--tinta); color: var(--hueso); }
.pasos button:disabled { color: #8b847a; cursor: default; }
.pasos button:disabled span { border-color: #b4ab9c; }
@media (min-width: 768px) { .pasos button { flex-direction: row; justify-content: center; font-size: .92rem; } }

.paso { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: var(--e4); }
.paso legend { font: 900 1.5rem/1.05 var(--tit); text-transform: uppercase; letter-spacing: -.01em; margin-bottom: var(--e4); padding: 0; }
.paso legend:focus { outline: none; }
.bloque { display: grid; gap: var(--e2); }
.bloque__t { font-weight: 600; margin-top: var(--e2); }
.error { color: var(--rojo-osc); font-weight: 600; font-size: .92rem; min-height: 0; }
.error:empty { display: none; }

.opciones-tipo { display: grid; gap: var(--e2); }
@media (min-width: 560px) { .opciones-tipo { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tipo { position: relative; display: flex; flex-direction: column; gap: 4px; padding: var(--e3); border: 2px solid var(--tinta); border-radius: var(--radio); cursor: pointer; background: var(--papel); }
.tipo input { position: absolute; opacity: 0; pointer-events: none; }
.tipo__t { font: 900 1.05rem/1.05 var(--tit); text-transform: uppercase; }
.tipo__d { font-size: .8rem; color: var(--gris); line-height: 1.3; }
.tipo:has(input:checked) { background: var(--tinta); color: var(--hueso); box-shadow: 3px 3px 0 var(--rojo); }
.tipo:has(input:checked) .tipo__d { color: var(--gris-claro); }
.tipo:has(input:focus-visible) { outline: 3px solid var(--amarillo); outline-offset: 3px; }

.selector-flash { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--e2); }
.mini-flash { display: grid; gap: 4px; padding: 6px; background: var(--papel); border: 2px solid var(--linea); border-radius: var(--radio); cursor: pointer; font-size: .74rem; font-weight: 600; line-height: 1.2; text-align: center; color: var(--tinta); }
.mini-flash img { width: 100%; aspect-ratio: 1; }
.mini-flash[aria-checked="true"] { border-color: var(--tinta); background: var(--amarillo); }
.mini-flash:disabled { opacity: .4; cursor: not-allowed; }

.segmentos { display: flex; flex-wrap: wrap; gap: var(--e2); }
.seg { min-height: 44px; padding: 10px 16px; border: 2px solid var(--tinta); border-radius: var(--radio); background: var(--blanco); font-weight: 600; cursor: pointer; color: var(--tinta); }
.seg[aria-checked="true"], .seg[aria-pressed="true"] { background: var(--tinta); color: var(--hueso); }
.segmentos--chico { flex-wrap: nowrap; width: 100%; gap: 4px; }
.segmentos--chico .seg { flex: 1 1 0; min-width: 0; min-height: 36px; padding: 6px 4px; font-size: .82rem; }

.campo { display: grid; gap: 6px; }
.campo__t { font-weight: 600; }
.campo input[type="text"], .campo input[type="tel"], .campo input[type="email"], .campo textarea {
  width: 100%; padding: 12px 14px; border: 2px solid var(--tinta); border-radius: var(--radio); background: var(--blanco); font-size: 1rem;
}
.campo textarea { resize: vertical; min-height: 110px; }
.campo input[type="range"] { width: 100%; accent-color: var(--rojo); min-height: 32px; }
.campos { display: grid; gap: var(--e4); }
@media (min-width: 640px) { .campos { grid-template-columns: 1fr 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--tinta); }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.subida__zona { position: relative; display: grid; gap: 4px; place-items: center; text-align: center; padding: var(--e5) var(--e4); border: 2px dashed var(--tinta); border-radius: var(--radio); background: var(--papel); cursor: pointer; }
.subida__zona:hover { background: #efe5d0; }
.subida__zona input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.subida__zona:has(input:focus-visible) { outline: 3px solid var(--amarillo); outline-offset: 3px; }
.subida__t { font-weight: 600; }
.subida__d { font-size: .82rem; color: var(--gris); }
.miniaturas { list-style: none; padding: 0; margin: var(--e2) 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: var(--e2); }
.miniatura { position: relative; display: grid; gap: 4px; font-size: .72rem; color: var(--gris); }
.miniatura img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; border: 2px solid var(--tinta); }
.miniatura__quitar { position: absolute; top: -8px; right: -8px; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--tinta); background: var(--amarillo); font-weight: 900; font-size: 1.1rem; line-height: 1; cursor: pointer; color: var(--tinta); }

.cuerpo { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: var(--e4); align-items: start; }
@media (min-width: 640px) { .cuerpo { grid-template-columns: 160px minmax(0, 1fr); gap: var(--e5); } }
.cuerpo__fig { display: grid; gap: var(--e2); justify-items: center; }
.silueta { width: 100%; height: auto; }
.sil-neutra { fill: #d9cfbd; }
.sil-zona { fill: #c9bda7; stroke: var(--papel); stroke-width: 1.5; cursor: pointer; transition: fill .15s ease; }
.sil-zona:hover { fill: #b3a68e; }
.sil-zona--on { fill: var(--rojo); }
.cuerpo__zonas { display: grid; gap: var(--e2); }
.cuerpo__zonas .chip { min-height: 38px; padding: 6px 12px; font-size: .86rem; }

.dias { display: flex; gap: var(--e2); overflow-x: auto; padding: 4px 2px var(--e2); scroll-snap-type: x proximity; scrollbar-width: thin; }
.dia { flex: 0 0 64px; display: grid; justify-items: center; gap: 0; padding: 8px 4px; border: 2px solid var(--tinta); border-radius: var(--radio); background: var(--blanco); cursor: pointer; scroll-snap-align: start; color: var(--tinta); }
.dia__s, .dia__m { font-size: .74rem; text-transform: capitalize; }
.dia__n { font: 900 1.4rem/1.1 var(--tit); }
.dia[aria-checked="true"] { background: var(--tinta); color: var(--hueso); box-shadow: 3px 3px 0 var(--rojo); }
.dia:disabled { border-color: #cfc6b4; color: #7d766c; background: transparent; cursor: not-allowed; }

.turnero__nav { display: flex; gap: var(--e3); justify-content: flex-end; margin-top: var(--e5); padding-top: var(--e4); border-top: 1px solid var(--linea); }
.turnero__nav .btn { flex: 1 1 0; }
@media (min-width: 640px) { .turnero__nav .btn { flex: 0 0 auto; min-width: 160px; } }

.resultado { display: grid; gap: var(--e4); justify-items: start; }
.resultado:focus { outline: none; }
.resultado h3 { font-size: 1.8rem; }

/* Vista previa: así le llega al estudio */
.vista { position: relative; }
@media (min-width: 960px) { .vista { position: sticky; top: calc(var(--cab) + var(--e4)); } }
.vista__plegable { background: var(--tinta); color: var(--hueso); border-radius: var(--radio); padding: var(--e4); }
.vista__plegable summary { cursor: pointer; font: 900 1.2rem/1.1 var(--tit); text-transform: uppercase; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--e3); }
.vista__plegable summary::-webkit-details-marker { display: none; }
.vista__plegable summary::after { content: "+"; font: 900 1.6rem/1 var(--tit); color: var(--amarillo); }
.vista__plegable[open] summary::after { content: "–"; }
@media (min-width: 960px) {
  .vista__plegable summary { cursor: default; pointer-events: none; }
  .vista__plegable summary::after { display: none; }
}
.vista__tabs { display: flex; gap: 4px; margin: var(--e4) 0 var(--e3); border-bottom: 1px solid var(--linea-clara); }
.vista__tabs button { padding: 10px 14px; background: none; border: 0; border-bottom: 3px solid transparent; font-weight: 600; cursor: pointer; color: var(--gris-claro); }
.vista__tabs button[aria-selected="true"] { color: var(--hueso); border-bottom-color: var(--amarillo); }
.vista__nota { margin-top: var(--e3); font-size: .8rem; color: var(--gris-claro); }

.mail { background: var(--blanco); color: var(--tinta); border-radius: 4px; overflow: hidden; font-size: .88rem; }
.mail dl { margin: 0; }
.mail dt { font-weight: 600; color: var(--gris); }
.mail dd { margin: 0; overflow-wrap: anywhere; }
.mail__cab { padding: 10px 14px; background: #ece4d2; display: grid; gap: 2px; }
.mail__cab div, .mail__cuerpo div { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 8px; }
.mail__cab dd { font-weight: 600; }
.mail__cuerpo { padding: 12px 14px; display: grid; gap: 6px; }
.mail__cuerpo div { padding-bottom: 6px; border-bottom: 1px solid #eee5d4; }
.mail__adjuntos { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 0 14px 12px; font-size: .8rem; color: var(--gris); }
.mail__adjuntos img { width: 56px; height: 56px; object-fit: cover; border-radius: 4px; border: 1px solid var(--linea); background: var(--hueso); }
.mail__botones { display: flex; gap: 8px; padding: 0 14px 14px; flex-wrap: wrap; }
.mail__botones span { padding: 8px 12px; border-radius: 4px; background: var(--tinta); color: var(--hueso); font-size: .8rem; font-weight: 600; }
.mail__botones span + span { background: transparent; color: var(--tinta); border: 1px solid var(--tinta); }

.chat { background: #e8dfcc; border-radius: 4px; padding: 0 0 var(--e4); color: var(--tinta); }
.chat__cab { padding: 10px 14px; background: #0f5132; color: #fff; font-weight: 600; font-size: .9rem; border-radius: 4px 4px 0 0; }
.chat__globo { margin: var(--e3) var(--e3) 0 var(--e5); padding: 10px 12px; background: #d6f0c9; border-radius: 8px 0 8px 8px; white-space: pre-line; font-size: .86rem; line-height: 1.45; overflow-wrap: anywhere; box-shadow: 0 1px 0 rgba(0, 0, 0, .12); }

/* ---------- Trabajos ---------- */
@media (min-width: 768px) { .trabajos { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--e4); } }
.trabajo { margin: 0; display: grid; gap: var(--e2); }
.trabajo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; }
.trabajo figcaption { font-size: .88rem; color: var(--gris-claro); }
.trabajo figcaption strong { color: var(--hueso); margin-right: 4px; }

/* ---------- Estudio ---------- */
.estudio { display: grid; gap: var(--e6); align-items: center; }
.estudio__texto { display: grid; gap: var(--e4); }
.estudio__texto p { max-width: 46ch; }
.estudio__dato { padding: var(--e3) var(--e4); border-left: 4px solid var(--rojo); background: var(--papel); }
.equipo { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--e3); text-align: center; }
.equipo li { display: grid; gap: 2px; justify-items: center; }
.equipo img { width: 100%; max-width: 180px; aspect-ratio: 1; padding: 14%; background: var(--papel); border: 2px solid var(--tinta); border-radius: 50%; margin-bottom: var(--e2); }
.equipo strong { font: 900 1.15rem/1.1 var(--tit); text-transform: uppercase; }
.equipo span { font-size: .85rem; color: var(--gris); }
@media (min-width: 960px) { .estudio { grid-template-columns: .9fr 1.1fr; } .equipo { gap: var(--e5); } }

/* ---------- Preguntas ---------- */
.preguntas { display: grid; gap: var(--e5); }
@media (min-width: 960px) { .preguntas { grid-template-columns: .7fr 1.3fr; align-items: start; } }
.acordeon { display: grid; gap: var(--e2); }
.acordeon details { background: var(--blanco); border: 2px solid var(--tinta); border-radius: var(--radio); }
.acordeon summary { cursor: pointer; padding: var(--e4); font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: var(--e3); }
.acordeon summary::-webkit-details-marker { display: none; }
.acordeon summary::after { content: "+"; font: 900 1.3rem/1 var(--tit); color: var(--rojo); }
.acordeon details[open] summary::after { content: "–"; }
.acordeon p { padding: 0 var(--e4) var(--e4); color: #3d3833; }

/* ---------- CTA demo ---------- */
.quiero { background: var(--rojo); color: #fff; padding: var(--e6) 0; }
.quiero__fila { display: grid; gap: var(--e4); align-items: center; }
.quiero h2 { font-size: clamp(1.7rem, 1.1rem + 2.6vw, 2.6rem); }
.quiero p { margin-top: var(--e2); max-width: 52ch; }
.quiero .btn--wa { justify-self: start; box-shadow: 3px 3px 0 var(--tinta); }
@media (min-width: 768px) { .quiero__fila { grid-template-columns: 1fr auto; } }

/* ---------- Footer ---------- */
.pie { background: var(--tinta); color: #d8cfbd; padding: var(--e7) 0 var(--e4); font-size: .92rem; }
.pie__grilla { display: grid; gap: var(--e5); }
.pie__grilla > div { display: grid; gap: var(--e2); align-content: start; }
.pie__logo { width: 150px; }
.pie__t { font-weight: 600; color: var(--hueso); text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; }
.pie a { color: var(--hueso); }
.pie__aviso { margin-top: var(--e6); padding-top: var(--e4); border-top: 1px solid var(--linea-clara); font-size: .8rem; color: var(--gris-claro); }
@media (min-width: 768px) { .pie__grilla { grid-template-columns: 1.4fr 1fr 1fr; } }

/* ---------- Firma Tereré Estudio (no modificar) ---------- */
.firma-te { background: #161415; padding: 14px 16px; text-align: center; }
.firma-te a { display: inline-flex; align-items: center; gap: 10px; color: #F3E9DA; text-decoration: none; font: 500 14px/1 system-ui, sans-serif; }
.firma-te img { height: 28px; width: auto; opacity: 0.9; }
.firma-te a:hover img, .firma-te a:focus-visible img { opacity: 1; }
.firma-te a:focus-visible { outline: 2px solid #9FBD2B; outline-offset: 4px; }
@media (max-width: 600px) { .firma-te img { height: 24px; } }

/* ---------- WhatsApp flotante ---------- */
.wa-flotante {
  --sube: 0px;
  position: fixed; right: 16px; bottom: 16px; z-index: 40; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; background: var(--wa); color: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
  transform: translateY(calc(var(--sube) * -1)); transition: opacity .2s ease, visibility .2s ease;
}
.wa-flotante svg { width: 30px; height: 30px; }
.wa-flotante--oculto { opacity: 0; visibility: hidden; }

/* ---------- Diálogo de seña ---------- */
.dialogo { border: 2px solid var(--tinta); border-radius: var(--radio); padding: 0; max-width: min(440px, calc(100% - 32px)); box-shadow: 8px 8px 0 var(--tinta); background: var(--blanco); color: var(--tinta); }
.dialogo::backdrop { background: rgba(20, 18, 16, .7); }
.dialogo__caja { display: grid; gap: var(--e3); padding: var(--e5); justify-items: start; }
.dialogo h3 { font-size: 1.6rem; }

/* ---------- Toast ---------- */
.aviso-toast { position: fixed; left: 50%; bottom: 88px; transform: translateX(-50%); z-index: 60; max-width: calc(100% - 32px); padding: 12px 18px; background: var(--hueso); color: var(--tinta); border: 2px solid var(--tinta); border-radius: var(--radio); font-weight: 600; box-shadow: 4px 4px 0 var(--tinta); }

/* ---------- Páginas internas ---------- */
.interna { background: var(--hueso); padding: calc(var(--cab) + var(--e6)) 0 var(--e7); min-height: 70vh; }
.interna .envoltura { max-width: 760px; display: grid; gap: var(--e4); }
.interna h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3rem); }
.interna h2 { font-size: 1.3rem; margin-top: var(--e4); }
.interna ul { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; }
.interna .aviso { padding: var(--e3) var(--e4); border-left: 4px solid var(--rojo); background: var(--papel); }

/* Transición de vista entre pasos del turnero */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }
