/* Cápsulas (v209): reproductor de audio estilo Spotify, en el negro y blanco de la pieza de Depropiedades. */
.dp-caps-body {
    --c-bg: #000000;
    --c-panel: #121212;
    --c-hover: #1C1C1C;
    --c-line: rgba(255,255,255,.12);
    --c-soft: rgba(255,255,255,.68);
    --c-faint: rgba(255,255,255,.46);
    background: var(--c-bg);
    color: #FFFFFF;
}
.dp-caps-body.dp-caps-barra-on .dp-footer { padding-bottom: calc(112px + env(safe-area-inset-bottom)); }
.dp-caps-body.dp-caps-barra-on .dp-chat:not(.is-open) { bottom: calc(100px + env(safe-area-inset-bottom)); }
.dp-caps { overflow-x: clip; }
.dp-caps h1, .dp-caps h2, .dp-caps h3 { color: #FFFFFF; margin: 0; }
.dp-caps a { color: inherit; text-decoration: none; }
.dp-caps button { font: inherit; color: inherit; cursor: pointer; }
.dp-caps-wrap { max-width: 1040px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
html.dp-caps-bloq { overflow: hidden; }

/* ── Encabezado ── */
.dp-caps-hero { background: linear-gradient(180deg, #2B2B2B 0%, #000000 100%); padding: clamp(28px, 6vw, 72px) 0 clamp(24px, 4vw, 40px); }
.dp-caps-hero__in { display: grid; grid-template-columns: clamp(180px, 26vw, 280px) 1fr; gap: clamp(20px, 4vw, 40px); align-items: end; }
.dp-caps-hero__cover { width: 100%; height: auto; aspect-ratio: 1; border-radius: 8px; box-shadow: 0 24px 64px rgba(0,0,0,.6); }
.dp-caps-kicker { font-size: 13px; font-weight: 700; color: var(--c-soft); }
.dp-caps-hero h1 { margin-top: 8px; font-size: clamp(40px, 7.4vw, 84px); line-height: .98; letter-spacing: -.035em; }
.dp-caps-hero h1.is-cap { font-size: clamp(30px, 5vw, 56px); line-height: 1.05; }
.dp-caps-hero__sub { margin: 14px 0 0; font-size: 16px; font-weight: 700; color: #FFFFFF; }
.dp-caps-hero__btns { display: flex; align-items: center; gap: 20px; margin-top: 24px; }
.dp-caps-play-big { flex: none; width: 60px; height: 60px; border-radius: 50%; border: 0; background: #FFFFFF; color: #000000 !important; display: grid; place-items: center; padding-left: 3px; transition: transform .15s; }
.dp-caps-play-big span { line-height: 0; }
.dp-caps-play-big .i-s { display: none; }
.dp-caps.is-sonando .dp-caps-play-big { padding-left: 0; }
.dp-caps.is-sonando .dp-caps-play-big .i-p { display: none; }
.dp-caps.is-sonando .dp-caps-play-big .i-s { display: block; }
.dp-caps-play-big:hover { transform: scale(1.06); }
.dp-caps-play-big:active { transform: scale(.96); }
.dp-caps-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 26px; border: 0; border-radius: 999px; background: #FFFFFF; color: #000000 !important; font-weight: 700; font-size: 15px; }
.dp-caps-btn:hover { background: rgba(255,255,255,.86); }
.dp-caps button:focus-visible, .dp-caps a:focus-visible, .dp-caps input:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 2px; }

/* Onda de sonido: quieta hasta que suena. */
.dp-caps-onda { display: inline-flex; align-items: center; gap: 3px; height: 40px; flex: 1; max-width: 300px; overflow: hidden; opacity: .55; }
.dp-caps-onda i { display: block; flex: none; width: 3px; border-radius: 2px; background: #FFFFFF; transform-origin: center; }
.dp-caps.is-sonando .dp-caps-onda { opacity: 1; }
.dp-caps.is-sonando .dp-caps-onda i { animation: dpCapsOnda .9s ease-in-out infinite alternate; }
@keyframes dpCapsOnda { from { transform: scaleY(.45); } to { transform: scaleY(1); } }

/* ── Lista ── */
.dp-caps-cuerpo { padding-top: 12px; padding-bottom: 56px; }
.dp-caps-cuerpo h2 { font-size: 22px; font-weight: 800; margin: 18px 0 14px; }
.dp-caps-notas { max-width: 68ch; margin: 8px 0 24px; color: var(--c-soft); font-size: 16px; line-height: 1.7; }
.dp-caps-notas p { margin: 0 0 1em; text-align: left; }
.dp-caps-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 12px; scrollbar-width: none; }
.dp-caps-chips::-webkit-scrollbar { display: none; }
.dp-caps-chips button { flex: none; min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: #2A2A2A; font-size: 13px; font-weight: 700; }
.dp-caps-chips button.is-on { background: #FFFFFF; color: #000000 !important; }
.dp-caps-lista { list-style: none; margin: 0; padding: 0; }
.dp-caps-row { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; min-height: 64px; padding: 8px 10px; border-radius: 6px; cursor: pointer; }
.dp-caps-row[hidden] { display: none; }
.dp-caps-row.is-pronto { cursor: default; opacity: .5; }
@media (hover: hover) { .dp-caps-row[data-aud="1"]:hover { background: var(--c-hover); } }
.dp-caps-row.is-actual, .dp-caps-row.is-cargada { background: #181818; }
.dp-caps-row__n { position: relative; display: grid; place-items: center; height: 24px; color: var(--c-soft); font-size: 15px; font-variant-numeric: tabular-nums; }
.dp-caps-row__n > * { grid-area: 1 / 1; }
.dp-caps-row__n svg { display: none; color: #FFFFFF; }
@media (hover: hover) {
    .dp-caps-row[data-aud="1"]:hover .dp-caps-row__n > span:first-child { visibility: hidden; }
    .dp-caps-row[data-aud="1"]:hover .dp-caps-row__n svg { display: block; }
}
.dp-caps-row__t { min-width: 0; }
.dp-caps-row h3 { font-size: 16px; font-weight: 700; line-height: 1.3; letter-spacing: 0 !important; }
.dp-caps-row.is-cargada h3 { text-decoration: underline; text-underline-offset: 3px; }
.dp-caps-row__t > span { display: block; margin-top: 3px; font-size: 13px; color: var(--c-soft); }
.dp-caps-row__btn { width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; display: grid; place-items: center; }
.dp-caps-row.is-sonando .dp-caps-row__btn svg { opacity: .35; }
.dp-caps-eq { display: none; align-items: flex-end; gap: 2px; height: 14px; }
.dp-caps-eq i { display: block; width: 3px; height: 100%; background: #FFFFFF; transform-origin: bottom; animation: dpCapsOnda .7s ease-in-out infinite alternate; }
.dp-caps-eq i:nth-child(2) { animation-delay: -.3s; }
.dp-caps-eq i:nth-child(3) { animation-delay: -.5s; }
.dp-caps-row.is-sonando .dp-caps-eq { display: inline-flex; }
.dp-caps-row.is-sonando .dp-caps-row__n > span:first-child, .dp-caps-row.is-sonando .dp-caps-row__n svg { display: none; visibility: hidden; }
.dp-caps-vacio { margin: 12px 0 0; font-size: 18px; color: var(--c-soft); }
.dp-caps-sobre { margin-top: 36px; padding: 24px; border-radius: 8px; background: var(--c-panel); }
.dp-caps-sobre h2 { margin-top: 0; }
.dp-caps-sobre p { margin: 0 0 12px; max-width: 68ch; font-size: 15px; line-height: 1.65; color: var(--c-soft); text-align: left; }
.dp-caps-sobre p:last-child { margin-bottom: 0; }

/* ── Barra fija del reproductor ── */
.dp-caps-barra { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; background: #181818; border-top: 1px solid var(--c-line); padding-bottom: env(safe-area-inset-bottom); }
.dp-caps-barra[hidden] { display: none; }
.dp-caps-barra__prog { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 14px; margin: -7px 0 0; padding: 0; background: transparent; cursor: pointer; position: relative; }
.dp-caps-barra__prog::-webkit-slider-runnable-track { height: 4px; background: linear-gradient(90deg, #FFFFFF var(--dp-caps-p, 0%), rgba(255,255,255,.22) var(--dp-caps-p, 0%)); }
.dp-caps-barra__prog::-moz-range-track { height: 4px; background: rgba(255,255,255,.22); }
.dp-caps-barra__prog::-moz-range-progress { height: 4px; background: #FFFFFF; }
.dp-caps-barra__prog::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5px; border-radius: 50%; background: #FFFFFF; }
.dp-caps-barra__prog::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: #FFFFFF; }
.dp-caps-barra__in { display: flex; align-items: center; gap: 10px; max-width: 1040px; margin: 0 auto; padding: 6px clamp(10px, 3vw, 24px) 10px; }
.dp-caps-barra__in img { flex: none; width: 48px; height: 48px; border-radius: 4px; }
.dp-caps-barra__t { flex: 1; min-width: 0; }
.dp-caps-barra__t strong { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 14px; font-weight: 700; }
.dp-caps-barra__t span { font-size: 12px; color: var(--c-soft); font-variant-numeric: tabular-nums; }
.dp-caps-c, .dp-caps-v, .dp-caps-p { flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; display: grid; place-items: center; }
.dp-caps-v { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.dp-caps-p { background: #FFFFFF; color: #000000 !important; }
.dp-caps-p .i-s { display: none; }
.dp-caps-barra.is-sonando .dp-caps-p .i-p { display: none; }
.dp-caps-barra.is-sonando .dp-caps-p .i-s { display: block; }
.dp-caps-p span { line-height: 0; }

/* ── Formulario para escuchar ── */
.dp-caps-gate { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; }
.dp-caps-gate[hidden] { display: none; }
.dp-caps-gate__fondo { position: absolute; inset: 0; background: rgba(0,0,0,.78); backdrop-filter: blur(6px); }
.dp-caps-gate__caja { position: relative; width: min(420px, 100%); max-height: calc(100dvh - 32px); overflow: auto; padding: 30px 24px 22px; border-radius: 12px; background: #181818; border: 1px solid var(--c-line); text-align: center; }
.dp-caps-gate__bell { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; background: #FFFFFF; color: #000000; }
.dp-caps-gate__caja h2 { font-size: 24px; font-weight: 800; }
.dp-caps-gate__l { margin: 8px 0 18px; color: var(--c-soft); font-size: 15px; }
.dp-caps-gate__x { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; background: transparent; font-size: 26px !important; line-height: 1; color: var(--c-soft) !important; }
#dpCapsForm { display: grid; gap: 10px; text-align: left; }
#dpCapsForm[hidden] { display: none; }
#dpCapsForm input[type="email"] { min-height: 48px; padding: 0 14px; border: 1px solid var(--c-line); border-radius: 6px; background: #2A2A2A; color: #FFFFFF; font-size: 16px; min-width: 0; }
#dpCapsForm input::placeholder { color: var(--c-faint); }
.dp-caps-gate__ok { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; line-height: 1.45; color: var(--c-soft); padding: 4px 0; cursor: pointer; }
.dp-caps-gate__ok input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: #FFFFFF; }
.dp-caps-gate__ok a { text-decoration: underline; }
.dp-caps-trampa { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.dp-caps-gate__msg { min-height: 18px; margin: 2px 0 0; text-align: center; font-size: 14px; color: #FFB4B0; }

@media (max-width: 720px) {
    .dp-caps-hero__in { grid-template-columns: 1fr; justify-items: start; }
    .dp-caps-hero__cover { width: min(64vw, 260px); justify-self: center; }
    .dp-caps-hero h1 { font-size: clamp(38px, 12vw, 56px); }
    .dp-caps-v { display: none; }
    .dp-caps-barra__in { gap: 4px; }
    .dp-caps-barra__in img { width: 40px; height: 40px; margin-right: 6px; }
}
@media (prefers-reduced-motion: reduce) { .dp-caps-onda i, .dp-caps-eq i { animation: none !important; } }

/* ── Campanita (v210) ── */
.dp-caps-hero__btns { flex-wrap: wrap; }
.dp-caps-bell { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 1px solid rgba(255,255,255,.4); border-radius: 999px; background: transparent; font-size: 14px; font-weight: 700; transition: border-color .15s, background-color .15s; }
.dp-caps-bell:hover { border-color: #FFFFFF; }
.dp-caps-bell__i { display: inline-flex; transform-origin: 50% 8%; }
.dp-caps-bell:hover .dp-caps-bell__i { animation: dpCapsBell .9s ease; }
.dp-caps-bell.is-on { background: #FFFFFF; border-color: #FFFFFF; color: #000000 !important; }
@keyframes dpCapsBell { 0%,100% { transform: rotate(0); } 15% { transform: rotate(16deg); } 30% { transform: rotate(-14deg); } 45% { transform: rotate(10deg); } 60% { transform: rotate(-6deg); } 75% { transform: rotate(3deg); } }
.dp-caps-aviso { margin: 0; padding: 12px 16px; text-align: center; background: #FFFFFF; color: #000000; font-weight: 700; }
/* Celular: la onda va en su propia fila, a todo el ancho, debajo de los botones. */
@media (max-width: 720px) { .dp-caps-hero__btns { gap: 14px; } .dp-caps-hero__btns .dp-caps-onda { flex: 0 0 100%; max-width: none; height: 36px; justify-content: space-between; gap: 0; } }
@media (prefers-reduced-motion: reduce) { .dp-caps-bell__i { animation: none !important; } }
