/* =========================================================
   v28 · Menos secciones, cada una más grande
   Producto a pantalla completa, cuatro funciones protagonistas,
   un capítulo claro en el medio y menos letra chica.
   ========================================================= */

/* ---------- producto: la grabación real es la protagonista ---------- */
.caso .sec-head { display: flex !important; flex-direction: column; align-items: center; text-align: center; gap: 22px !important; margin: 0 auto clamp(48px, 5vw, 72px) !important; }
.caso .sec-head .title { max-width: 14ch !important; margin: 0 auto !important; }
.caso .sec-head .lead { margin: 0 auto !important; text-align: center; align-self: auto !important; }
.caso .reel { display: flex; flex-direction: column; align-items: center; }
.caso .devices { width: min(1240px, 100%) !important; max-width: none !important; border-radius: 24px !important; border-color: rgba(232, 226, 200, .12) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 2px 4px rgba(0, 0, 0, .3), 0 50px 120px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(0, 0, 0, .4) !important; }
.caso .reel-tabs { width: min(1240px, 100%) !important; max-width: none !important; }
.caso .foot-note { text-align: center; margin-top: 28px; }

/* ---------- funciones: cuatro protagonistas ---------- */
.showcase { position: relative; background: #08110C; padding-bottom: clamp(110px, 10vw, 160px); }
.sc-head { display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; margin: 0 auto clamp(72px, 8vw, 128px); }
.sc-head h2 { margin: 0 auto; }
.sc-head > p { margin: 0; max-width: 32rem; font-size: clamp(1.0625rem, 1.15vw, 1.1875rem); line-height: 1.6; color: var(--pm-muted); }

.sc-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 104px); align-items: center; margin: 0 0 clamp(96px, 10vw, 168px); }
.sc-row:nth-of-type(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.sc-row:nth-of-type(even) .sc-copy { order: 2; }
.sc-copy { max-width: 30rem; }
.sc-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; color: var(--pm-champ);
  background: linear-gradient(180deg, rgba(216, 196, 149, .16), rgba(216, 196, 149, .05)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), inset 0 0 0 1px rgba(216, 196, 149, .18); }
.sc-ic .i { width: 22px; height: 22px; }
.sc-copy h3 { margin: 28px 0 0; font-size: clamp(2rem, 3.1vw, 3rem); font-weight: 500; line-height: 1.04; letter-spacing: -.04em; color: #F3F1E7; text-wrap: balance; }
.sc-copy > p { margin: 20px 0 0; font-size: clamp(1.0625rem, 1.15vw, 1.1875rem); line-height: 1.6; color: var(--pm-muted); }
.sc-tags { display: flex; flex-direction: column; gap: 0; margin: 32px 0 0; padding: 0; list-style: none; }
.sc-tags li { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-top: 1px solid var(--pm-line); font-size: .9375rem; color: #D6DBD3; }
.sc-tags li:last-child { border-bottom: 1px solid var(--pm-line); }
.sc-tags li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--pm-champ); box-shadow: 0 0 0 4px rgba(216, 196, 149, .12); }

/* el escenario de cada pantalla */
.sc-visual { position: relative; display: grid; place-items: center; min-height: clamp(460px, 42vw, 620px); padding: clamp(32px, 5vw, 72px); border-radius: 32px; overflow: hidden; isolation: isolate;
  border: 1px solid var(--pm-line);
  background:
    radial-gradient(55% 50% at 50% 55%, rgba(216, 196, 149, .11), transparent 72%),
    radial-gradient(80% 60% at 100% 0%, rgba(92, 184, 108, .08), transparent 60%),
    linear-gradient(180deg, #121F18, #0A130E);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 60px 120px -70px rgba(0, 0, 0, .95); }
.sc-visual::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgba(232, 226, 200, .16) 1px, transparent 0); background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(65% 60% at 50% 50%, #000, transparent 80%); mask-image: radial-gradient(65% 60% at 50% 50%, #000, transparent 80%); opacity: .6; }
.sc-visual > .win { width: 100%; max-width: 500px; margin: 0; zoom: 1.12; border-radius: 20px !important; }
.sc-visual > .win .win-b { overflow: visible; }

/* entrada: la pantalla sube y se enfoca, una sola vez */
.sc-row[data-in] .sc-visual > .win { transform: translateY(28px) scale(.97); opacity: 0; filter: blur(6px); transition: transform 1.1s var(--pm-ease), opacity .8s var(--pm-ease), filter .9s var(--pm-ease); }
.sc-row[data-in].in .sc-visual > .win { transform: none; opacity: 1; filter: none; }
.sc-row[data-in] .sc-copy > * { transform: translateY(16px); opacity: 0; transition: transform .9s var(--pm-ease), opacity .7s var(--pm-ease); }
.sc-row[data-in].in .sc-copy > * { transform: none; opacity: 1; }
.sc-row[data-in].in .sc-copy > :nth-child(2) { transition-delay: .06s; }
.sc-row[data-in].in .sc-copy > :nth-child(3) { transition-delay: .12s; }
.sc-row[data-in].in .sc-copy > :nth-child(4) { transition-delay: .18s; }

/* inventario: el plano llena el escenario */
.sc-map .sc-visual { padding: 0; place-items: stretch; }
.sc-map .sc-visual > .win-map { position: absolute; inset: 0; max-width: none; zoom: 1; display: block; border: 0 !important; border-radius: 0 !important; background: #0A130E !important; box-shadow: none !important; transform: none; opacity: 1; filter: none; }
.sc-map .win-map .map-wrap { position: absolute; inset: 0; min-height: 0; }
.sc-map .win-map .mini-plan { object-position: 46% 48%; filter: brightness(1.04) saturate(.9); }
.sc-map .win-map .map-wrap::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(8, 17, 12, .55), transparent 30%, transparent 62%, rgba(8, 17, 12, .75)); }
.sc-map .win-map .win-h { position: absolute; z-index: 2; left: 22px; right: 22px; top: 22px; padding: 14px 18px; border-radius: 16px; border: 1px solid rgba(232, 226, 200, .14); background: rgba(10, 19, 14, .78); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .8); }
.sc-map .map-pin { left: 46%; top: 48%; z-index: 1; }
.sc-map .map-card { z-index: 2; left: auto; right: 24px; top: auto; bottom: 24px; width: 230px; padding: 16px 18px; border-radius: 18px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 24px 48px -20px rgba(0, 0, 0, .85); }
.sc-map .map-card .mc-price { font-size: 1.5rem; letter-spacing: -.02em; }
.sc-map .map-legend { z-index: 2; left: 24px; bottom: 24px; }
.sc-row.sc-map[data-in] .sc-visual { transform: translateY(24px); opacity: 0; transition: transform 1.1s var(--pm-ease), opacity .8s var(--pm-ease); }
.sc-row.sc-map[data-in].in .sc-visual { transform: none; opacity: 1; }

/* el resto, en una lista tranquila */
.sc-more { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 96px); align-items: start; padding-top: clamp(40px, 4vw, 64px); border-top: 1px solid var(--pm-line); }
.sc-more h3 { margin: 0; font-size: clamp(1.75rem, 2.4vw, 2.25rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.1; color: #F3F1E7; }
.sc-more ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; margin: 0; padding: 0; list-style: none; }
.sc-more li { display: flex; align-items: center; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--pm-line); font-size: 1.0625rem; color: #E4E7DF; letter-spacing: -.01em; }
.sc-more li .i { width: 20px; height: 20px; color: var(--pm-champ); flex: none; }
.showcase .foot-note { margin-top: 40px; text-align: left; }

/* ---------- proyectos: el capítulo claro ---------- */
#desarrollos { background: #ECE7DA !important; color: #14201A; border-image: none !important; border-top: 0 !important; padding-bottom: clamp(110px, 10vw, 160px) !important; }
#desarrollos + section { border-image: none !important; border-top: 0 !important; }
#desarrollos h2 { color: #101914 !important; }
#desarrollos h2 em { color: #8A6A2E !important; }
#desarrollos .narrative-heading > p { color: #4E5B52 !important; }
#desarrollos .atlas-scene { box-shadow: 0 2px 4px rgba(20, 32, 26, .12), 0 50px 100px -50px rgba(20, 32, 26, .55) !important; border-color: transparent !important; border-radius: 28px; }
#desarrollos .atlas-base { border-color: rgba(20, 32, 26, .14) !important; }
#desarrollos .atlas-base p, #desarrollos .atlas-base p b { color: #101914 !important; }
#desarrollos .atlas-base li { border-color: rgba(20, 32, 26, .14) !important; }
#desarrollos .atlas-base li b { color: #14201A !important; }
#desarrollos .atlas-base li span { color: #56635A !important; }
#desarrollos .atlas-base li .i { color: #8A6A2E !important; }
#desarrollos .atlas-caption { color: #6A766D !important; }
#desarrollos ::selection { background: #14201A; color: #ECE7DA; }

/* ---------- mobile y tablet ---------- */
@media (max-width: 960px) {
  .sc-row, .sc-row:nth-of-type(even) { grid-template-columns: 1fr; gap: 36px; }
  .sc-row:nth-of-type(even) .sc-copy { order: 0; }
  .sc-visual { min-height: 0; padding: 28px 18px; border-radius: 24px; }
  .sc-visual > .win { zoom: 1; max-width: 460px; }
  .sc-map .sc-visual { min-height: 440px; }
  .sc-more { grid-template-columns: 1fr; }
  .sc-head { align-items: flex-start; text-align: left; }
  .sc-head h2 { margin: 0; }
  .caso .sec-head { align-items: flex-start; text-align: left; }
  .caso .sec-head .title, .caso .sec-head .lead { margin: 0 !important; text-align: left; }
  .caso .devices { border-radius: 16px !important; }
}
@media (max-width: 560px) {
  .sc-more ul { grid-template-columns: 1fr; }
  .sc-map .map-card { width: 190px; right: 14px; bottom: 60px; }
  .sc-map .map-legend { left: 14px; bottom: 14px; }
  .sc-map .win-map .win-h { left: 14px; right: 14px; top: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .sc-row[data-in] .sc-visual > .win, .sc-row[data-in] .sc-copy > *, .sc-row.sc-map[data-in] .sc-visual { transform: none !important; opacity: 1 !important; filter: none !important; transition: none !important; }
}
