/* mk-cierre — preguntas frecuentes + banda final con Marko (/diseno/).
   El acordeón es <details> nativo; la apertura suave usa ::details-content + interpolate-size donde exista
   (Chrome/Edge 131+). En otros navegadores abre al instante, sin perder nada. */

.dsc {
	padding: clamp(64px, 8vw, 128px) max(var(--m), calc((100vw - 1320px) / 2)) clamp(40px, 5vw, 80px);
	background: #FBF8F4;
	color: var(--ink);
	font-family: var(--f);
	interpolate-size: allow-keywords;
}

/* ── FAQ ── */
.dsc__faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.dsc__lado { position: sticky; top: 110px; }
.dsc__ceja { margin-bottom: 16px; color: var(--accent); font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.dsc__lado h2 { font-size: clamp(32px, 3.8vw, 56px); }
.dsc__lado > p:not(.dsc__ceja) { max-width: 380px; margin-top: 18px; color: var(--muted); font-size: 17px; line-height: 1.55; }
.dsc__duda { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 22px; color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--accent); }
.dsc__duda svg { transition: transform .25s var(--ease); }
.dsc__duda:hover svg { transform: translateX(4px); }

.dsc__lista { border-top: 1px solid #E9E1D7; }
.dsc__q { border-bottom: 1px solid #E9E1D7; }
.dsc__q summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; min-height: 76px; padding: 18px 4px; cursor: pointer; list-style: none; border-radius: 12px; }
.dsc__q summary::-webkit-details-marker { display: none; }
.dsc__q summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.dsc__n { color: var(--muted); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; transition: color .3s; }
.dsc__p { font-size: clamp(18px, 1.6vw, 22px); font-weight: 600; letter-spacing: -.015em; line-height: 1.3; transition: color .3s; }
.dsc__q summary:hover .dsc__p { color: #C8410F; } /* naranja oscuro: AA sobre crema */
.dsc__q[open] .dsc__n { color: var(--accent); }
/* Botón «+» que gira a «×» y se llena de naranja */
.dsc__mas { position: relative; flex: none; width: 40px; height: 40px; border: 1px solid #E2D8CC; border-radius: 50%; transition: background-color .35s var(--ease), border-color .35s, transform .45s var(--ease); }
.dsc__mas::before, .dsc__mas::after { content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; border-radius: 2px; background: var(--ink); transition: background-color .3s; }
.dsc__mas::after { transform: rotate(90deg); }
.dsc__q summary:hover .dsc__mas { border-color: var(--accent); }
.dsc__q[open] .dsc__mas { transform: rotate(135deg); background: var(--accent); border-color: var(--accent); }
.dsc__q[open] .dsc__mas::before, .dsc__q[open] .dsc__mas::after { background: #fff; }

.dsc__q::details-content { block-size: 0; overflow: hidden; opacity: 0; transition: block-size .45s var(--ease), opacity .35s, content-visibility .45s allow-discrete; }
.dsc__q[open]::details-content { block-size: auto; opacity: 1; }
.dsc__r p { max-width: 640px; padding: 0 56px 26px 4px; margin-left: calc(18px + 2ch); color: var(--ink-2); font-size: 17px; line-height: 1.65; }

/* ── Banda final ── */
@property --dsc-ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.dsc__banda {
	--mx: 70%; --my: 30%;
	position: relative;
	isolation: isolate;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
	align-items: end;
	gap: 24px;
	margin-top: clamp(64px, 8vw, 120px);
	padding: clamp(36px, 5vw, 72px) clamp(22px, 5vw, 72px) 0;
	border-radius: clamp(24px, 3vw, 40px);
	background: var(--noche);
	color: #fff;
}
/* Borde de luz que gira alrededor */
.dsc__banda::before { content: ''; position: absolute; inset: -1.5px; z-index: -2; border-radius: inherit; background: conic-gradient(from var(--dsc-ang), transparent 0 55%, rgba(255, 91, 35, .9) 70%, var(--lima) 78%, transparent 88%); animation: dsc-gira 7s linear infinite; }
.dsc__banda::after { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 255, 255, .07), transparent 60%), var(--noche); }
@keyframes dsc-gira { to { --dsc-ang: 360deg; } }
/* Brillo ambiental bajo la banda */
.dsc__banda { box-shadow: 0 50px 100px -50px rgba(255, 91, 35, .7); }

/* Aurora animada dentro de la banda */
.dsc__luz { position: absolute; inset: 0; z-index: 0; overflow: hidden; border-radius: inherit; pointer-events: none; }
.dsc__luz i { position: absolute; border-radius: 50%; filter: blur(60px); }
.dsc__luz i:nth-child(1) { right: 4%; bottom: -40%; width: 520px; height: 520px; background: radial-gradient(closest-side, rgba(255, 91, 35, .75), transparent); animation: dsc-flota 12s ease-in-out infinite alternate; }
.dsc__luz i:nth-child(2) { left: -10%; top: -50%; width: 480px; height: 480px; background: radial-gradient(closest-side, rgba(255, 91, 35, .35), transparent); animation: dsc-flota 15s ease-in-out infinite alternate-reverse; }
@keyframes dsc-flota { to { transform: translate(-14%, 10%) scale(1.15); } }

.dsc__txt { position: relative; z-index: 1; align-self: center; padding-bottom: clamp(36px, 5vw, 72px); }
.dsc__banda h2 { max-width: 14ch; color: #fff; font-size: clamp(36px, 5.4vw, 80px); }
.dsc__txt > p { max-width: 480px; margin-top: 18px; color: rgba(255, 255, 255, .72); font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; }
.dsc__cta { margin-top: 30px; }
.dsc__contacto { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; color: rgba(255, 255, 255, .6); font-size: 14px; }
.dsc__contacto li { display: inline-flex; align-items: center; gap: 22px; }
.dsc__contacto li + li::before { content: ''; width: 4px; height: 4px; margin-left: -12px; margin-right: -10px; border-radius: 50%; background: var(--accent); }
.dsc__contacto a { display: inline-flex; align-items: center; min-height: 32px; color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .25); transition: border-color .2s, color .2s; }
.dsc__contacto a:hover { color: var(--lima); border-color: var(--lima); }
.dsc__contacto a:focus-visible { outline-color: var(--lima); }
@media (pointer: coarse) { .dsc__contacto a { position: relative; } .dsc__contacto a::after { content: ''; position: absolute; inset: -6px 0; } } /* área táctil de 44px sin mover el subrayado */

.dsc__marko { position: relative; z-index: 1; width: 100%; max-width: 340px; height: auto; margin-top: -90px; justify-self: end; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45)); transform-origin: 50% 100%; animation: dsc-saluda 5s ease-in-out infinite; }
@keyframes dsc-saluda { 0%, 100% { transform: rotate(0deg) translateY(0); } 50% { transform: rotate(-2deg) translateY(-8px); } }

/* ── Responsive ── */
@media (max-width: 900px) {
	.dsc__faq { grid-template-columns: minmax(0, 1fr); }
	.dsc__lado { position: static; }
	.dsc__banda { grid-template-columns: minmax(0, 1fr); }
	.dsc__txt { padding-bottom: 0; }
	.dsc__marko { max-width: 240px; margin: 0 auto; justify-self: center; }
}
@media (max-width: 520px) {
	.dsc__q summary { gap: 12px; padding: 16px 0; }
	.dsc__mas { width: 36px; height: 36px; }
	.dsc__r p { margin-left: 0; padding: 0 0 22px; font-size: 16px; }
	.dsc__cta { width: 100%; }
	.dsc__contacto { flex-direction: column; gap: 4px; }
	.dsc__contacto li + li::before { display: none; }
	.dsc__marko { max-width: 200px; }
}
@media (prefers-reduced-motion: reduce) {
	.dsc__banda::before, .dsc__luz i, .dsc__marko, .dsc__orbita { animation: none; }
	.dsc__q::details-content, .dsc__mas { transition: none; }
}

/* fuera de pantalla no se anima nada */
.dsc.is-pausa *, .dsc.is-pausa *::before, .dsc.is-pausa *::after, .dsc.is-pausa::before, .dsc.is-pausa::after { animation-play-state: paused !important; }

/* el cierre de Marketing es el suyo: sin repetir el del pie */
body:has(.ds-pag) .pf-cta { display: none; }

/* ── Celular y tablet: FAQ más compacto y Marko pequeño en la esquina inferior de la banda (no apilado) ── */
@media (max-width: 900px) {
	.dsc { padding-top: 56px; padding-bottom: 32px; }
	.dsc__faq { gap: 24px; }
	.dsc__lado > p:not(.dsc__ceja) { margin-top: 12px; }
	.dsc__duda { margin-top: 12px; }
	.dsc__q summary { min-height: 60px; padding-block: 12px; }
	.dsc__banda { margin-top: 48px; padding-bottom: 0; overflow: visible; }
	.dsc__txt { padding-bottom: 32px; }
	.dsc__contacto { padding-right: clamp(112px, 30vw, 190px); }
	.dsc__marko { position: absolute; right: 6px; bottom: 0; width: clamp(112px, 30vw, 190px); max-width: none; margin: 0; }
}

/* Retícula de construcción (como la del logo) que gira lento detrás del texto: guiño de diseño */
.dsc__orbita { position: absolute; z-index: 0; right: -6%; top: 50%; width: min(620px, 70%); translate: 0 -50%; overflow: visible; pointer-events: none; animation: dsc-orbita 60s linear infinite; }
.dsc__orbita :is(circle, path) { fill: none; stroke: rgba(255, 255, 255, .09); stroke-width: 1; stroke-dasharray: 4 6; }
.dsc__orbita .p { fill: var(--accent); stroke: none; }
.dsc__orbita .p2 { fill: var(--lima); }
@keyframes dsc-orbita { to { transform: rotate(360deg); } }
@media (max-width: 900px) {
	.dsc__orbita { right: -40%; top: 20%; width: 120%; }
}
