/* ds-laboratorio — «Laboratorio de marca» (fondo tinta, entre el hero en papel y servicios en blanco). Formulario → Marko piensa → brand board con conceptos, paleta,
   tipografía y aplicaciones. --dsl-p/a/x/t/w (primario, acento, apoyo, tinta, papel) los pone el JS con la paleta elegida. */

.dsl { --dsl-p: #1C1B1F; --dsl-a: #C9A24B; --dsl-x: #8C7A6B; --dsl-t: #121011; --dsl-w: #F6F1E8; position: relative; padding: var(--sep) var(--m); background: #121011; color: #fff; scroll-margin-top: 72px; }
.dsl::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask: linear-gradient(#000, transparent 60%); mask: linear-gradient(#000, transparent 60%); }
.dsl__in { position: relative; max-width: 1240px; margin: 0 auto; }
.dsl__form, .dsl__board { color: var(--ink); }
.dsl button { font-family: var(--f); }
.dsl :is(button, a, input):focus-visible, .dsl__btit:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.dsl__cab { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px clamp(24px, 5vw, 80px); align-items: end; }
.dsl__ceja { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--accent); font-size: 13.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.dsl__ceja i { width: 18px; height: 18px; border: 2px solid var(--accent); border-radius: 50%; box-shadow: 8px 0 0 -2px #121011, 8px 0 0 0 var(--accent); }
.dsl__cab h2 { max-width: 14ch; color: #fff; text-wrap: balance; font-size: clamp(34px, 4.6vw, 66px); }
.dsl__intro { max-width: 46ch; margin: 0; color: rgba(255, 255, 255, .72); font-size: clamp(15.5px, 1.25vw, 18px); line-height: 1.6; }

.dsl__app { display: grid; grid-template-columns: minmax(0, 330px) minmax(0, 1fr); gap: clamp(16px, 2.4vw, 32px); align-items: start; margin-top: clamp(24px, 3.5vw, 48px); }

/* ── Formulario ── */
.dsl__form { position: sticky; top: 96px; display: grid; gap: 20px; padding: clamp(18px, 2vw, 26px); border-radius: 26px; background: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 40px 70px -40px rgba(0, 0, 0, .8); }
.dsl__paso { min-width: 0; margin: 0; padding: 0; border: 0; }
.dsl__lbl { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; padding: 0; color: var(--ink); font-size: 15.5px; font-weight: 700; }
.dsl__lbl > span { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 12.5px; }
.dsl__input { width: 100%; min-height: 54px; padding: 0 18px; border: 2px solid #E7E4DF; border-radius: 14px; background: #FBF8F4; color: var(--ink); font: 600 18px/1 var(--f); transition: border-color .2s, background-color .2s; }
.dsl__input:focus { outline: none; border-color: var(--accent); background: #fff; }
.dsl__input[aria-invalid="true"] { border-color: var(--accent); }
.dsl__input::placeholder { color: #A8A4A6; font-weight: 500; }
.dsl__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dsl__chip { position: relative; display: inline-flex; cursor: pointer; }
.dsl__chip input { position: absolute; opacity: 0; pointer-events: none; }
.dsl__chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 12px; background: #F4F1EC; color: var(--ink-2); font-size: 14px; font-weight: 600; transition: background-color .2s, color .2s, transform .2s var(--ease); }
.dsl__chip:hover span { transform: translateY(-2px); }
.dsl__chip input:checked + span { background: var(--ink); color: #fff; }
.dsl__chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.dsl__crear { width: 100%; min-height: 58px; box-shadow: 0 16px 34px -16px rgba(255, 91, 35, .9); }
.dsl__nota { margin: -8px 0 0; color: var(--muted); font-size: 12.5px; text-align: center; }

/* ── Board ── */
.dsl__board { position: relative; display: grid; gap: clamp(14px, 1.6vw, 20px); min-width: 0; padding: clamp(16px, 2vw, 26px); border-radius: 26px; background: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 50px 90px -50px rgba(0, 0, 0, .85); scroll-margin-top: 88px; }
.dsl__board.is-nuevo .dsl__escenario, .dsl__board.is-nuevo .dsl__mock { animation: dsl-nuevo .7s var(--ease) both; }
.dsl__board.is-nuevo .dsl__mock:nth-child(2) { animation-delay: .08s; }
.dsl__board.is-nuevo .dsl__mock:nth-child(3) { animation-delay: .16s; }
@keyframes dsl-nuevo { from { opacity: 0; transform: translate3d(0, 14px, 0) scale(.98); } }
.dsl__bcab { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.dsl__btit { margin: 0; font-size: clamp(17px, 1.5vw, 21px); font-weight: 600 !important; text-transform: none; letter-spacing: -.01em; }
.dsl__btit b { font-weight: 800; }
.dsl__btit [data-dsl-estado] { display: inline-block; margin-right: 6px; padding: 3px 9px; border-radius: 6px; background: #FFEDE5; color: var(--accent-2); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; vertical-align: 3px; }
.dsl__btit [data-dsl-estado][hidden] { display: none; }
.dsl__resumen { margin: 0; color: var(--muted); font-size: 13px; }

/* Conceptos */
.dsl__conceptos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.dsl__con { display: grid; gap: 6px; justify-items: center; min-height: 44px; padding: 10px 8px 9px; border: 0; border-radius: 14px; background: #F7F5F1; color: var(--ink-2); cursor: pointer; transition: box-shadow .2s, background-color .2s, transform .2s var(--ease); }
.dsl__con:hover { transform: translateY(-2px); }
.dsl__con[aria-checked="true"] { background: #fff; box-shadow: inset 0 0 0 2px var(--ink), 0 12px 24px -16px rgba(18, 16, 17, .5); color: var(--ink); }
.dsl__con-v { display: block; width: 100%; height: 52px; }
.dsl__con-v svg { display: block; width: 100%; height: 100%; }
.dsl__con-n { font-size: 12.5px; font-weight: 600; }

/* Escenario + lateral */
.dsl__centro { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(12px, 1.6vw, 20px); }
.dsl__escenario { position: relative; display: grid; place-items: center; min-height: 300px; margin: 0; padding: clamp(28px, 4vw, 52px); border-radius: 20px; background-color: var(--dsl-w); background-image: linear-gradient(rgba(18, 16, 17, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(18, 16, 17, .045) 1px, transparent 1px); background-size: 22px 22px; box-shadow: inset 0 0 0 1px rgba(18, 16, 17, .06); }
.dsl__board.is-oscuro .dsl__escenario { background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px); }
.dsl__logo { width: 100%; height: 100%; max-height: 240px; display: grid; place-items: center; }
.dsl__logo svg { display: block; width: 100%; height: 100%; max-height: 240px; }
.dsl__aviso { position: absolute; left: 12px; bottom: 10px; padding: 4px 8px; border-radius: 6px; background: rgba(255, 255, 255, .85); color: #6C6A6C; font-size: 12px; font-weight: 600; }
.dsl__lado { display: grid; gap: 10px; align-content: start; min-width: 0; }
.dsl__bloque { min-width: 0; padding: 14px; border-radius: 16px; background: #F7F5F1; }
.dsl__mt { margin: 0 0 9px; color: #6C6A6C; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.dsl__paleta { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; margin: 0; padding: 0; list-style: none; }
.dsl__paleta li { display: grid; gap: 5px; min-width: 0; }
.dsl__paleta i { display: block; aspect-ratio: 1 / 1.15; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(18, 16, 17, .1); }
.dsl__paleta small { overflow: hidden; color: #6C6A6C; font: 500 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: nowrap; }
.dsl__tipo-t { overflow: hidden; margin: 0; color: var(--dsl-p); font-size: clamp(26px, 2.4vw, 34px); line-height: 1.1; white-space: nowrap; text-overflow: ellipsis; }
.dsl__board.is-oscuro .dsl__tipo-t { color: var(--dsl-t); }
.dsl__tipo-n { display: flex; flex-wrap: wrap; gap: 2px 8px; margin: 6px 0 0; color: #6C6A6C; font-size: 12px; }
.dsl__tipo-n b { color: var(--ink); font-weight: 600; }
.dsl__ajustes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dsl__ajustes .dsl__mt { flex-basis: 100%; margin-bottom: 0; }
.dsl__tonos { display: flex; gap: 2px; }
.dsl__tono { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.dsl__tono::before { content: ""; width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--a) 50%, var(--b) 50%); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); transition: transform .2s var(--ease), box-shadow .2s; }
.dsl__tono:hover::before { transform: scale(1.1); }
.dsl__tono[aria-checked="true"]::before { box-shadow: 0 0 0 3px #F7F5F1, 0 0 0 5px var(--ink); }
.dsl__otra { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-left: auto; padding: 0 16px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; transition: transform .2s var(--ease), background-color .2s; }
.dsl__otra:hover { background: var(--accent); transform: translateY(-2px); }
.dsl__otra svg { transition: transform .4s var(--ease); }
.dsl__otra:hover svg { transform: rotate(180deg); }

/* ── Aplicaciones ── */
.dsl__mocks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.dsl__mock { min-width: 0; margin: 0; }
.dsl__mock figcaption { margin-top: 8px; color: #6C6A6C; font-size: 12.5px; font-weight: 600; }
.dsl__mk { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3.1; overflow: hidden; border-radius: 16px; container-type: inline-size; }
.dsl__mk svg { display: block; width: 100%; height: 100%; }

/* Tarjeta sobre mesa oscura */
.dsl__mock--tarjeta .dsl__mk { background: radial-gradient(120% 90% at 20% 0%, #3a3638, #161415 70%); }
.dsl__tj, .dsl__tj-tras { position: absolute; left: 50%; top: 50%; width: 64cqw; aspect-ratio: 1.75; border-radius: 2.4cqw; }
.dsl__tj { display: grid; place-items: center; padding: 6cqw 9cqw; background: var(--dsl-p); box-shadow: 0 6cqw 8cqw -4cqw rgba(0, 0, 0, .75), inset 0 0 0 1px rgba(255, 255, 255, .08); transform: translate(-58%, -40%) rotate(-7deg); }
.dsl__tj-tras { display: flex; flex-direction: column; justify-content: flex-end; gap: 1cqw; padding: 5cqw 6cqw; background: var(--dsl-w); color: var(--dsl-t); box-shadow: 0 4cqw 6cqw -3cqw rgba(0, 0, 0, .7); transform: translate(-38%, -66%) rotate(6deg); }
.dsl__tj-tras b { overflow: hidden; color: var(--dsl-p); font-size: 5.6cqw; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }
.dsl__tj-tras small { overflow: hidden; font-size: 3.3cqw; white-space: nowrap; text-overflow: ellipsis; }

/* Perfil de Instagram */
.dsl__mock--perfil .dsl__mk { background: linear-gradient(160deg, #EDEAF8, #E7E2DA); }
.dsl__ig { display: grid; gap: 3.2cqw; width: 82cqw; padding: 5cqw; border-radius: 5cqw; background: #fff; box-shadow: 0 6cqw 10cqw -6cqw rgba(18, 16, 17, .45); }
.dsl__ig-cab { display: flex; align-items: center; gap: 3.5cqw; min-width: 0; }
.dsl__ig-ava { flex: none; display: grid; place-items: center; width: 17cqw; height: 17cqw; padding: 1.4cqw; border-radius: 50%; background: conic-gradient(from 200deg, var(--dsl-a), var(--dsl-p), var(--dsl-a)); }
.dsl__ig-ava svg { width: 100%; height: 100%; border-radius: 50%; background: var(--dsl-p); box-shadow: 0 0 0 1cqw #fff; padding: 2.4cqw; }
.dsl__ig-dat { display: grid; min-width: 0; }
.dsl__ig-dat b { overflow: hidden; font-size: 4.6cqw; white-space: nowrap; text-overflow: ellipsis; }
.dsl__ig-dat small { overflow: hidden; color: #6C6A6C; font-size: 3.6cqw; white-space: nowrap; text-overflow: ellipsis; }
.dsl__ig-bio { overflow: hidden; color: var(--ink-2); font-size: 3.5cqw; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.dsl__ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2cqw; }
.dsl__ig-grid i { display: grid; place-items: center; aspect-ratio: 1; overflow: hidden; padding: 4.5cqw; border-radius: 1.6cqw; font-style: normal; }
.dsl__ig-grid i:nth-child(1) { background: var(--dsl-p); }
.dsl__ig-grid i:nth-child(2) { padding: 2.4cqw; background: var(--dsl-a); color: var(--dsl-t); }
.dsl__ig-grid i:nth-child(2) b { font-size: 3.6cqw; line-height: 1.05; text-align: center; }
.dsl__ig-grid i:nth-child(3) { background: var(--dsl-w); box-shadow: inset 0 0 0 1px rgba(18, 16, 17, .08); }

/* Fachada con letrero */
.dsl__mock--fachada .dsl__mk { place-items: end center; background: linear-gradient(180deg, #CFDCE6, #E6ECEF 70%); }
.dsl__mock--fachada .dsl__mk::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 7cqw; background: #B9B3AA; }
.dsl__fa { position: relative; z-index: 1; display: grid; width: 82cqw; margin-bottom: 7cqw; }
.dsl__fa-anuncio { display: grid; place-items: center; height: 19cqw; padding: 2.6cqw 6cqw; border-radius: 1.6cqw 1.6cqw 0 0; background: var(--dsl-t); }
.dsl__fa-toldo { height: 8cqw; margin: 0 -3cqw; background: repeating-linear-gradient(90deg, var(--dsl-a) 0 8cqw, var(--dsl-w) 8cqw 16cqw); -webkit-mask: radial-gradient(4.1cqw 3cqw at 4cqw 100%, transparent 98%, #000) 0 0 / 8cqw 100%; mask: radial-gradient(4.1cqw 3cqw at 4cqw 100%, transparent 98%, #000) 0 0 / 8cqw 100%; }
.dsl__fa-frente { display: grid; grid-template-columns: 1fr .7fr 1fr; gap: 3cqw; height: 30cqw; padding: 3cqw 4cqw 0; background: var(--dsl-x); }
.dsl__fa-frente i { position: relative; display: block; border-radius: 1cqw 1cqw 0 0; background: linear-gradient(125deg, #2a3138 0 45%, #3b4650 45% 55%, #2a3138 55%); box-shadow: inset 0 0 0 1cqw rgba(255, 255, 255, .25); }
.dsl__fa-frente .dsl__fa-vid { height: 70%; align-self: start; }
.dsl__fa-puerta span { position: absolute; left: 50%; top: 22%; width: 11cqw; height: 11cqw; transform: translateX(-50%); }
.dsl__fa-puerta svg { border-radius: 50%; background: var(--dsl-p); padding: 1.6cqw; }

/* ── Cierre ── */
.dsl__cierre { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding: 16px 18px; border-radius: 18px; background: #F4F1EC; }
.dsl__cierre p { flex: 1 1 280px; margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }
.dsl__cierre b { color: var(--ink); }
.dsl__cta { box-shadow: 0 16px 34px -16px rgba(255, 91, 35, .9); white-space: normal; text-align: center; line-height: 1.15; }

/* ── Marko piensa ── */
.dsl__piensa { position: absolute; inset: 0; z-index: 5; display: grid; place-content: center; justify-items: center; gap: 12px; border-radius: inherit; background: #fff; }
.dsl__piensa[hidden] { display: none; }
.dsl__piensa-g { position: absolute; left: 50%; top: 50%; width: min(70%, 420px); transform: translate(-50%, -50%); stroke: var(--accent); stroke-width: 1; opacity: .5; }
.dsl__piensa-g * { stroke-dasharray: 1; stroke-dashoffset: 1; animation: dsl-traza 1.6s var(--ease) forwards; }
.dsl__piensa-g *:nth-child(2) { animation-delay: .2s; }
.dsl__piensa-g *:nth-child(n+3) { animation-delay: .45s; }
@keyframes dsl-traza { to { stroke-dashoffset: 0; } }
.dsl__piensa img { position: relative; width: 120px; height: auto; animation: dsl-flota 1.4s ease-in-out infinite; }
@keyframes dsl-flota { 50% { transform: translateY(-8px) rotate(-2deg); } }
.dsl__piensa p { position: relative; margin: 0; padding: 8px 16px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14.5px; font-weight: 600; }
.dsl.is-pausa .dsl__piensa img { animation-play-state: paused; }

/* ── Laptop ── */
@media (max-width: 1120px) {
	.dsl__app { grid-template-columns: minmax(0, 1fr); }
	.dsl__form { position: static; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
	.dsl__form .dsl__paso:first-child, .dsl__crear, .dsl__nota { grid-column: 1 / -1; }
}

/* ── Tablet ── */
@media (max-width: 860px) {
	.dsl__cab { grid-template-columns: minmax(0, 1fr); }
	.dsl__form { grid-template-columns: minmax(0, 1fr); }
	.dsl__centro { grid-template-columns: minmax(0, 1fr); }
	.dsl__lado { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
	.dsl__ajustes { grid-column: 1 / -1; }
	.dsl__escenario { min-height: 240px; }
}

/* ── Celular: formulario compacto, board denso, aplicaciones en carrusel ── */
@media (max-width: 600px) {
	.dsl { padding-block: 52px; }
	.dsl__cab h2 { font-size: clamp(32px, 9.6vw, 44px); }
	.dsl__intro { font-size: 15px; }
	.dsl__app { gap: 14px; margin-top: 20px; }
	.dsl__form { gap: 14px; margin-inline: calc(var(--m) * -.5); padding: 14px; border-radius: 22px; }
	.dsl__lbl { margin-bottom: 8px; font-size: 14.5px; }
	.dsl__input { min-height: 50px; font-size: 17px; }
	.dsl__chips { gap: 5px; }
	.dsl__chip span { padding: 0 11px; border-radius: 10px; font-size: 13.5px; }
	.dsl__nota { margin-top: -6px; font-size: 12px; }
	.dsl__board { gap: 12px; margin-inline: calc(var(--m) * -.5); padding: 12px; border-radius: 22px; }
	.dsl__btit { font-size: 16px; }
	.dsl__resumen { font-size: 12px; }
	.dsl__conceptos { gap: 5px; }
	.dsl__con { padding: 8px 4px 7px; border-radius: 12px; }
	.dsl__con-v { height: 36px; }
	.dsl__con-n { font-size: 11px; }
	.dsl__escenario { min-height: 0; aspect-ratio: 16 / 10; padding: 22px 26px 30px; border-radius: 16px; }
	.dsl__logo, .dsl__logo svg { max-height: 170px; }
	.dsl__lado { grid-template-columns: minmax(0, 1fr); gap: 8px; }
	.dsl__bloque { padding: 11px 12px; border-radius: 14px; }
	.dsl__mt { margin-bottom: 7px; }
	.dsl__tipo { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; }
	.dsl__tipo .dsl__mt { flex-basis: 100%; }
	.dsl__tipo-t { max-width: 55%; font-size: 24px; }
	.dsl__tipo-n { margin: 0; }
	.dsl__mocks { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; gap: 10px; overflow-x: auto; margin-inline: -12px; padding: 0 12px 4px; scroll-snap-type: x mandatory; scroll-padding-inline: 12px; scrollbar-width: none; }
	.dsl__mocks::-webkit-scrollbar { display: none; }
	.dsl__mock { scroll-snap-align: start; }
	.dsl__mock figcaption { margin-top: 6px; font-size: 12px; }
	.dsl__cierre { padding: 14px; }
	.dsl__cierre p { font-size: 13.5px; }
	.dsl__cta { width: 100%; padding-inline: 20px; font-size: 16.5px; }
	.dsl__piensa img { width: 96px; }
	/* compacto: sin intro, chips en una fila deslizable, resumen solo para lectores de pantalla */
	.dsl { padding-block: 44px; }
	.dsl__intro { display: none; }
	.dsl__chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: -14px; padding: 2px 14px 4px; scroll-snap-type: x proximity; scrollbar-width: none; }
	.dsl__chips::-webkit-scrollbar { display: none; }
	.dsl__chip { flex: none; scroll-snap-align: start; }
	.dsl__nota { font-size: 12px; }
	.dsl__resumen { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.dsl__paleta i { aspect-ratio: 1.5; }
	.dsl__ajustes { flex-wrap: nowrap; padding-block: 6px; }
	.dsl__ajustes .dsl__mt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.dsl__tono { width: 44px; } .dsl__tonos { gap: 0; }
	.dsl__otra { padding: 0 14px; }
	.dsl__cta { font-size: 15.5px; }
}

@media (prefers-reduced-motion: reduce) {
	.dsl *, .dsl *::before, .dsl *::after { animation: none !important; transition: none !important; }
	.dsl__piensa-g * { stroke-dashoffset: 0; }
}
