/* Trufa & Bigotes · tienda. Tokens del dosier de marca (output/marca/tokens.css). */
@font-face { font-family: "Noto Serif"; src: url(assets/fonts/NotoSerif-Regular.woff) format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Noto Sans"; src: url(assets/fonts/NotoSans-Regular.woff) format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Noto Sans"; src: url(assets/fonts/NotoSans-Bold.woff) format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Rubik"; src: url(assets/fonts/Rubik-Bold.woff) format("woff"); font-weight: 700; font-display: swap; }

:root {
  --tb-bosque: #203D34; --tb-crema: #F2E3D2; --tb-papel: #F8F1E7; --tb-arena: #D9B896; --tb-salvia: #A8AD8C;
  --tb-oliva: #75825A; --tb-rosa: #D8A79B; --tb-terracota: #C4633A; --tb-burdeos: #7B2A3B; --tb-grafito: #343A3C;
  --tb-texto-suave: #5F675C; --tb-linea: #DCCFBB; --tb-blanco: #FFFDF9;
  --tb-titulos: "Noto Serif", Georgia, serif;
  --tb-texto-fuente: "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --tb-nombres: "Rubik", "Arial Rounded MT Bold", sans-serif;
  --tb-radio: 14px; --tb-sombra: 0 10px 24px -12px rgba(107, 85, 64, .35);
  --tb-ranuras: repeating-linear-gradient(90deg, #8E9473 0 2px, var(--tb-salvia) 6px, #8E9473 16px);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--tb-crema); color: var(--tb-bosque); font: 400 17px/1.6 var(--tb-texto-fuente); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--tb-titulos); font-weight: 400; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); line-height: 1.04; }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.12; }
h3 { font-size: 1.35rem; line-height: 1.2; }
p { margin: 0; max-width: 60ch; }
.suave { color: var(--tb-texto-suave); }
.etiqueta { font: 700 .74rem/1.2 var(--tb-texto-fuente); letter-spacing: .24em; text-transform: uppercase; color: var(--tb-texto-suave); }
.ancho { max-width: 1120px; margin: 0 auto; padding-inline: max(20px, env(safe-area-inset-left, 0px)) max(20px, env(safe-area-inset-right, 0px)); }
.visualmente-oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--tb-terracota); outline-offset: 3px; border-radius: 4px; }

.boton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 1rem/1 var(--tb-texto-fuente); text-decoration: none;
  border-radius: 999px; padding: 15px 26px; border: 1.5px solid var(--tb-bosque); background: var(--tb-bosque); color: var(--tb-papel); cursor: pointer; transition: transform .15s, background .15s; }
.boton:hover { background: #2B4F44; transform: translateY(-1px); }
.boton.secundario { background: transparent; color: var(--tb-bosque); }
.boton.secundario:hover { background: rgba(32, 61, 52, .07); }
.boton.pequeno { padding: 11px 18px; font-size: .9rem; }

/* Cabecera */
.cabecera { position: sticky; top: 0; z-index: 20; background: rgba(242, 227, 210, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--tb-linea); }
.cabecera .ancho { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.cabecera .logo img { height: 40px; width: auto; }
.cabecera nav { display: flex; align-items: center; gap: 26px; }
.cabecera nav a:not(.boton) { text-decoration: none; font-weight: 700; font-size: .92rem; }
.cabecera nav a:not(.boton):hover { text-decoration: underline; text-underline-offset: 5px; }
@media (max-width: 820px) { .cabecera nav a:not(.boton) { display: none; } .cabecera .logo img { height: 34px; } }

/* Ondas entre secciones */
.onda { display: block; width: 100%; height: clamp(30px, 5vw, 70px); margin-bottom: -1px; }
.onda path { filter: drop-shadow(0 -5px 6px rgba(107, 85, 64, .16)); }
section { position: relative; }
.banda { padding-block: clamp(48px, 8vw, 96px); }
.papel { background: var(--tb-papel); } .salvia { background: var(--tb-salvia); } .bosque { background: var(--tb-bosque); color: var(--tb-papel); }
.bosque .suave, .bosque .etiqueta { color: #C9D2C4; }
.encabezado { display: flex; flex-direction: column; gap: 14px; margin-bottom: clamp(28px, 4vw, 48px); }

/* Portada */
.portada { overflow: hidden; }
.portada .ancho { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 5vw, 64px); align-items: center; padding-block: clamp(32px, 6vw, 72px) clamp(40px, 7vw, 88px); }
.portada .texto { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.portada .entrada { font-size: 1.15rem; }
.portada .acciones { display: flex; flex-wrap: wrap; gap: 12px; }
.portada .datos { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 6px 0 0; list-style: none; font-weight: 700; font-size: .92rem; }
.portada .datos li::before { content: "·"; margin-right: 10px; color: var(--tb-terracota); }
.portada .escena { position: relative; }
.portada .escena::before { content: ""; position: absolute; inset: 8% -40% -6% 55%; background: var(--tb-ranuras); border-radius: var(--tb-radio); z-index: 0; }
.portada .escena img { position: relative; z-index: 1; width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; object-position: 50% 62%; border-radius: 28px; box-shadow: var(--tb-sombra); max-height: 640px; }
@media (max-width: 820px) { .portada .ancho { grid-template-columns: 1fr; } .portada .escena img { aspect-ratio: 4 / 5; } .portada .escena::before { display: none; } }

/* Modelos */
.modelos { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.modelo { background: var(--tb-blanco); border-radius: var(--tb-radio); padding: 10px 10px 20px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--tb-sombra); }
.modelo .dibujo { background: var(--tb-crema); border-radius: 10px; overflow: hidden; }
.modelo .dibujo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.modelo .pie { padding-inline: 12px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.modelo p { font-size: .95rem; color: var(--tb-texto-suave); }
.modelo .boton { margin-top: 8px; }

/* Configurador */
.configurador { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: start; }
.vista { position: sticky; top: 92px; background: var(--tb-crema); border-radius: 24px; padding: 14px; box-shadow: var(--tb-sombra); }
.vista .lienzo { border-radius: 14px; overflow: hidden; background: linear-gradient(#F8F1E7, #F2E3D2); }
.vista .resumen { margin: 14px 6px 4px; font-size: .95rem; }
.vista .resumen b { font-family: var(--tb-titulos); font-weight: 400; font-size: 1.3rem; display: block; }
.vista .nota { margin: 8px 6px 4px; font-size: .8rem; color: var(--tb-texto-suave); }
form { display: flex; flex-direction: column; gap: 26px; min-width: 0; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
legend { padding: 0; margin-bottom: 12px; display: flex; align-items: baseline; gap: 12px; font-family: var(--tb-titulos); font-size: 1.35rem; }
legend .n { color: var(--tb-terracota); font-size: 1.9rem; line-height: 1; }
.opciones { display: flex; flex-wrap: wrap; gap: 8px; }
.opciones label { position: relative; cursor: pointer; }
.opciones input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opciones span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: var(--tb-blanco); border: 1.5px solid var(--tb-linea); font-weight: 700; font-size: .95rem; transition: background .15s, border-color .15s; }
.opciones input:checked + span { background: var(--tb-bosque); border-color: var(--tb-bosque); color: var(--tb-papel); }
.opciones input:focus-visible + span { outline: 2px solid var(--tb-terracota); outline-offset: 3px; }
.colores span { padding: 6px 14px 6px 6px; }
.colores i { width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(32, 61, 52, .15); }
.subtitulo { font-weight: 700; font-size: .85rem; color: var(--tb-texto-suave); }
.campo { font: 700 1.5rem/1 var(--tb-nombres); letter-spacing: .06em; text-transform: uppercase; color: var(--tb-bosque); background: var(--tb-blanco);
  border: 1.5px solid var(--tb-linea); border-radius: var(--tb-radio); padding: 16px 18px; width: 100%; max-width: 360px; }
.campo::placeholder { color: #C9BCA8; }
.pedir { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.aviso { font-size: .88rem; color: var(--tb-texto-suave); }
@media (max-width: 820px) { .configurador { grid-template-columns: 1fr; } .vista { position: static; } }

/* Pasos, colores, tiendas */
.pasos { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; padding: 0; margin: 0; list-style: none; counter-reset: paso; }
.pasos li { counter-increment: paso; display: flex; flex-direction: column; gap: 8px; }
.pasos li::before { content: counter(paso); font: 400 3rem/1 var(--tb-titulos); color: var(--tb-terracota); }
.pasos p { font-size: .98rem; }
.dos { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(24px, 5vw, 64px); align-items: center; }
.pila { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.ranuras { background: var(--tb-ranuras); border-radius: 24px; min-height: 260px; display: grid; place-items: center; padding: 28px; }
.ranuras .tarjeta { background: var(--tb-papel); border-radius: var(--tb-radio); padding: 24px; box-shadow: var(--tb-sombra); display: flex; flex-direction: column; gap: 10px; max-width: 340px; }
.muestras { display: flex; flex-wrap: wrap; gap: 18px; padding: 0; margin: 0; list-style: none; }
.muestras li { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: .85rem; font-weight: 700; }
.muestras i { width: 64px; height: 64px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(32, 61, 52, .12), var(--tb-sombra); }
details { border-top: 1px solid var(--tb-linea); padding-block: 16px; }
details:last-of-type { border-bottom: 1px solid var(--tb-linea); }
summary { cursor: pointer; font-family: var(--tb-titulos); font-size: 1.2rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--tb-terracota); font-size: 1.4rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin-top: 10px; color: var(--tb-texto-suave); }

/* Pie */
.pie-pagina .ancho { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; align-items: start; }
.pie-pagina img { width: 200px; }
.pie-pagina ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.pie-pagina .legal { grid-column: 1 / -1; border-top: 1px solid rgba(248, 241, 231, .2); padding-top: 20px; font-size: .85rem; color: #C9D2C4; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .boton { transition: none; } }

.lista { margin: 10px 0 0; padding-left: 1.1em; color: var(--tb-texto-suave); display: flex; flex-direction: column; gap: 6px; }
.lista li::marker { color: var(--tb-terracota); }
.pie-pagina .legal a { color: inherit; }
