:root {
  color-scheme: dark;
  --pde-text-small: 9px;
  --pde-text-copy: clamp(15px, 1.25vw, 19px);
}
* { box-sizing: border-box; }

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #160308;
  color: #fff;
  font-family: "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
}

.pde-shell {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #160308;
}

.pde-entry {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 22px 28px;
  overflow: hidden;
  background: #21050d;
  color: #fff;
  transition: opacity 620ms ease, transform 800ms cubic-bezier(.19, 1, .22, 1), visibility 620ms;
}

.pde-entry::before,
.pde-entry::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
}

.pde-entry::before {
  z-index: 0;
  background: url("../assets/pde2027/media/web/cec-dual-p1-empty.jpg") center / cover;
  filter: grayscale(.35) sepia(.42) hue-rotate(292deg) saturate(1.7) contrast(1.1);
  opacity: .32;
  transform: scale(1.025);
}

.pde-entry::after {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(26, 2, 8, .7), transparent 34%, rgba(24, 1, 7, .9)),
    linear-gradient(90deg, rgba(67, 7, 23, .88), rgba(31, 2, 10, .18) 62%, rgba(25, 1, 7, .55));
}

.pde-entry-video {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: .56;
  filter: grayscale(.18) saturate(.92) contrast(1.08) brightness(.72);
  pointer-events: none;
}

.pde-entry > :not(.pde-entry-video) { position: relative; z-index: 2; }
.pde-entry.is-leaving { visibility: hidden; opacity: 0; transform: scale(1.035); pointer-events: none; }

.pde-entry-header,
.pde-entry-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  color: rgba(255, 226, 216, .78);
  text-transform: uppercase;
  font-size: 9px;
  letter-spacing: .16em;
}

.pde-entry-header > a {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 215, 201, .38);
  color: #fff;
  text-decoration: none;
  font-size: 19px;
}

.pde-entry-header > :last-child,
.pde-entry-footer span:last-child { justify-self: end; }

.pde-entry-location {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 11px;
  text-align: right;
}

.pde-entry-plan {
  display: inline-flex;
  padding: 2px 0 3px;
  border-bottom: 1px solid rgba(255, 255, 255, .58);
  color: #fff;
  text-decoration: none;
  text-transform: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-shadow: 0 0 7px rgba(255, 255, 255, .6), 0 0 16px rgba(255, 220, 210, .28);
  animation: pde-plan-pulse 2.4s ease-in-out infinite;
  transition: border-color 220ms ease, text-shadow 220ms ease, transform 220ms ease;
}

.pde-entry-plan:hover,
.pde-entry-plan:focus-visible {
  border-color: #fff;
  text-shadow: 0 0 9px rgba(255, 255, 255, .9), 0 0 22px rgba(255, 210, 196, .52);
  transform: translateY(-1px);
}

.pde-entry-plan:focus-visible {
  outline: 1px solid rgba(255, 255, 255, .9);
  outline-offset: 4px;
}

.pde-entry-plan:hover,
.pde-entry-plan:focus-visible { animation: none; }

.pde-entry-content {
  align-self: end;
  display: grid;
  justify-items: start;
  width: min(100%, 980px);
  max-width: 980px;
  padding-bottom: clamp(30px, 7vh, 82px);
}

.pde-entry-content > p:first-child {
  margin: 0 0 20px;
  color: #f2a284;
  text-transform: uppercase;
  font-size: var(--pde-text-copy);
  letter-spacing: .2em;
}

.pde-entry h1 {
  margin: 0;
  font-size: clamp(78px, 17vw, 260px);
  font-weight: 400;
  line-height: .78;
  letter-spacing: -.045em;
}

.pde-entry-copy {
  max-width: 48ch;
  margin: clamp(28px, 5vh, 48px) 0 24px;
  color: rgba(255, 237, 230, .78);
  font-size: var(--pde-text-copy);
}

.pde-entry-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 320px));
  align-items: stretch;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
}

.pde-entry button,
.pde-entry .pde-entry-link {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding: 15px 18px;
  border: 1px solid rgba(255, 228, 218, .62);
  background: rgba(40, 3, 12, .28);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  text-transform: uppercase;
  font: inherit;
  font-size: 10px;
  letter-spacing: .14em;
  transition: background 260ms ease, box-shadow 260ms ease, opacity 260ms ease;
}

.pde-entry button:disabled { cursor: wait; opacity: .5; }
.pde-entry button:not(:disabled):hover,
.pde-entry button:not(:disabled):focus-visible,
.pde-entry .pde-entry-link:hover,
.pde-entry .pde-entry-link:focus-visible { background: rgba(255, 255, 255, .1); box-shadow: 0 0 28px rgba(255, 208, 190, .28); }
.pde-entry button i,
.pde-entry .pde-entry-link i { font-size: 16px; font-style: normal; }
.pde-entry-actions button,
.pde-entry-actions .pde-entry-link { width: 100%; justify-content: space-between; }

.pde-access {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(18, 1, 6, .74);
  backdrop-filter: blur(18px);
  animation: access-in 360ms ease both;
}

.pde-access[hidden] { display: none; }

.pde-access-card {
  position: relative;
  width: min(100%, 590px);
  padding: clamp(26px, 5vw, 54px);
  border: 1px solid rgba(255, 214, 198, .34);
  background: rgba(38, 4, 14, .88);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .38), 0 0 70px rgba(115, 18, 42, .2);
}

.pde-access-card > p:first-of-type {
  margin: 0 0 26px;
  color: #f2a284;
  text-transform: uppercase;
  font-size: var(--pde-text-small);
  letter-spacing: .2em;
}

.pde-access-card h2 {
  max-width: 8ch;
  margin: 0;
  text-transform: uppercase;
  font-size: clamp(44px, 7vw, 82px);
  font-weight: 400;
  line-height: .9;
}

.pde-access-copy {
  max-width: 42ch;
  margin: 22px 0 30px;
  color: rgba(255, 235, 227, .72);
  font-size: 15px;
}

.pde-access form { display: grid; gap: 10px; }
.pde-access label { color: rgba(255, 226, 216, .7); text-transform: uppercase; font-size: var(--pde-text-small); letter-spacing: .16em; }
.pde-access-fields { display: grid; grid-template-columns: 1fr auto; gap: 8px; }

.pde-access input {
  min-width: 0;
  border: 1px solid rgba(255, 215, 201, .42);
  border-radius: 0;
  padding: 14px;
  outline: none;
  background: rgba(15, 1, 5, .48);
  color: #fff;
  font: inherit;
  letter-spacing: .08em;
}

.pde-access input:focus { border-color: #fff; box-shadow: 0 0 22px rgba(255, 196, 174, .18); }
.pde-access-fields button { padding: 13px 16px; }

.pde-entry .pde-access-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 22px;
}

.pde-access-error { min-height: 18px; margin: 0; color: #ffad94; font-size: 10px; letter-spacing: .08em; }
.pde-access small { color: rgba(255, 226, 216, .5); font-size: 9px; }
.pde-access-card.has-error { animation: access-shake 360ms ease; }

@keyframes access-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes access-shake { 25% { transform: translateX(-7px); } 50% { transform: translateX(6px); } 75% { transform: translateX(-3px); } }

.pde-canvas { position: absolute; inset: 0; cursor: grab; touch-action: none; }
.pde-canvas:active { cursor: grabbing; }

.pde-grade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(26, 2, 7, .62), transparent 30%, transparent 65%, rgba(20, 1, 5, .8)),
    radial-gradient(circle at 50% 45%, transparent 38%, rgba(18, 0, 4, .32));
}

.pde-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 28px;
}

.pde-header a,
.pde-header button,
.pde-scenes #sceneList button {
  border: 1px solid rgba(255, 175, 139, .34);
  background: rgba(38, 5, 12, .58);
  backdrop-filter: blur(15px);
  color: #fff3ee;
}

.pde-header a {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  text-decoration: none;
  font-size: 20px;
}

.pde-header div { display: flex; flex-direction: column; gap: 4px; }
.pde-header b { font-size: 13px; letter-spacing: .2em; }
.pde-header span { color: #f2a284; font-size: 9px; letter-spacing: .16em; }
.pde-header button { padding: 11px 15px; cursor: pointer; text-transform: uppercase; font-size: 9px; letter-spacing: .12em; }
.pde-header > #fullscreen,
.pde-header-actions { margin-left: auto; }
.pde-header-actions { display: flex; gap: 8px; }
.pde-header #toggleAudio[aria-pressed="true"] { border-color: #ff895f; background: rgba(126, 25, 38, .52); box-shadow: 0 0 22px rgba(255, 96, 59, .2); }

.pde-loader {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: grid;
  place-content: center;
  gap: 14px;
  background: #160308;
  color: #f5a98d;
  text-align: center;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: .18em;
}

.pde-loader i {
  justify-self: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 145, 106, .25);
  border-top-color: #ff653e;
  border-radius: 50%;
  animation: pde-spin 1s linear infinite;
}

.pde-scenes {
  position: absolute;
  z-index: 4;
  top: 50%;
  right: 26px;
  width: 220px;
  padding: 14px;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 147, 111, .25);
  background: rgba(27, 3, 9, .58);
  backdrop-filter: blur(15px);
  overflow: hidden;
  transition: width 280ms ease, padding 280ms ease, background 280ms ease, border-color 280ms ease;
}

.pde-scenes-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pde-scenes-heading p {
  margin: 2px 4px 10px;
  color: #fff3ee;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: .12em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .9);
  white-space: nowrap;
}
.pde-scenes-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  min-width: 62px;
  margin: 0 0 8px;
  padding: 3px 4px;
  border: 0;
  background: transparent;
  color: rgba(255, 235, 227, .76);
  cursor: pointer;
  text-transform: uppercase;
  font: inherit;
  font-size: var(--pde-text-small);
  font-weight: 600;
  letter-spacing: .12em;
}
.pde-scenes-toggle i { color: #fff; font-size: 14px; font-style: normal; line-height: 1; transition: transform 280ms ease; }
.pde-scenes-toggle:hover,
.pde-scenes-toggle:focus-visible { color: #fff; }
.pde-scenes-toggle:focus-visible { outline: 1px solid #fff; outline-offset: 3px; }
.pde-scenes #sceneList { max-height: 390px; opacity: 1; visibility: visible; transition: max-height 320ms cubic-bezier(.22, 1, .36, 1), opacity 180ms ease, visibility 0ms; }
.pde-scenes #sceneList button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 5px 0;
  padding: 11px 10px;
  border-color: rgba(255, 175, 139, .5);
  background: rgba(38, 5, 12, .7);
  color: #fff3ee;
  cursor: pointer;
  text-align: left;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .07em;
  text-shadow: 0 1px 7px rgba(0, 0, 0, .86);
}
.pde-scenes #sceneList button span {
  color: #ffc0a8;
  font: 600 10px/1 "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: .1em;
}
.pde-scenes #sceneList button:hover,
.pde-scenes #sceneList button:focus-visible {
  border-color: rgba(255, 236, 229, .86);
  background: rgba(72, 13, 25, .78);
}
.pde-scenes #sceneList button:focus-visible {
  outline: 1px solid #fff;
  outline-offset: 2px;
}
.pde-scenes #sceneList button.active { border-color: #ff9a78; background: rgba(126, 25, 38, .72); box-shadow: inset 3px 0 #ff603b; }
.pde-scenes.is-collapsed #sceneList { max-height: 0; opacity: 0; visibility: hidden; transition: max-height 280ms ease, opacity 140ms ease, visibility 0ms 280ms; }
.pde-scenes.is-collapsed .pde-scenes-heading p { margin-bottom: 2px; }
.pde-scenes.is-collapsed .pde-scenes-toggle { margin-bottom: 0; }
.pde-scenes.is-collapsed .pde-scenes-toggle i { transform: rotate(90deg); }

.pde-hotspots { position: absolute; z-index: 5; inset: 0; pointer-events: none; }
.pde-hotspots button {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 170px;
  padding: 8px;
  border: 1px solid rgba(255, 193, 157, .55);
  border-radius: 999px;
  background: rgba(45, 5, 12, .7);
  color: white;
  transform: translate(-50%, -50%);
  cursor: pointer;
  text-align: left;
  pointer-events: auto;
}

.pde-hotspots #previous { left: 30%; top: 58%; }
.pde-hotspots #next { left: 52%; top: 44%; }
.pde-hotspots button i { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: #e84d2e; box-shadow: 0 0 20px rgba(255, 75, 18, .8); font-style: normal; }
.pde-hotspots button span { text-transform: uppercase; font-size: 10px; letter-spacing: .08em; }
.pde-hotspots small { display: block; margin-top: 3px; color: #e9a88e; font-size: var(--pde-text-small); letter-spacing: .08em; }

.pde-reticle { position: absolute; z-index: 3; left: 50%; top: 50%; width: 27px; height: 27px; border: 1px solid rgba(255, 224, 210, .42); border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none; }
.pde-reticle::after { position: absolute; left: 50%; top: 50%; width: 3px; height: 3px; content: ""; border-radius: 50%; background: #ffc1a3; box-shadow: 0 0 10px #ff5b23; transform: translate(-50%, -50%); }

.pde-footer { position: absolute; z-index: 4; left: 28px; right: 28px; bottom: 20px; display: flex; gap: 18px; color: #d9a897; text-transform: uppercase; font-size: var(--pde-text-small); letter-spacing: .12em; }
.pde-footer strong { margin-left: auto; color: #ffc5b0; }
body[data-experience-mode="preview"] .pde-footer > span,
body[data-experience-mode="demo-ia"] .pde-footer > span { color: #fff; text-shadow: 0 1px 10px rgba(0, 0, 0, .9); }

.pde-hand-toggle {
  position: absolute;
  z-index: 7;
  right: 28px;
  bottom: 47px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: min(194px, calc(100vw - 56px));
  padding: 11px 14px;
  border: 1px solid rgba(255, 175, 139, .45);
  background: rgba(38, 5, 12, .66);
  backdrop-filter: blur(15px);
  color: #fff;
  cursor: pointer;
  text-transform: uppercase;
  font: inherit;
  font-size: var(--pde-text-small);
  letter-spacing: .14em;
  transition: border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}
.pde-hand-toggle i {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #f2a284;
  box-shadow: 0 0 10px rgba(242, 162, 132, .45);
}
.pde-hand-toggle:hover,
.pde-hand-toggle:focus-visible { border-color: rgba(255, 226, 216, .85); background: rgba(71, 9, 23, .78); box-shadow: 0 0 28px rgba(255, 96, 59, .16); }
.pde-hand-toggle:focus-visible { outline: 1px solid #fff; outline-offset: 3px; }
.pde-hand-toggle:disabled { cursor: wait; opacity: .58; }
.pde-hand-toggle.is-loading i { animation: pde-pulse 850ms ease-in-out infinite alternate; }
.pde-hand-toggle.is-active { border-color: #ff895f; background: rgba(126, 25, 38, .72); box-shadow: 0 0 24px rgba(255, 96, 59, .22); }
.pde-hand-toggle.is-active i { background: #fff; box-shadow: 0 0 14px #ff603b; }

.pde-hand-panel {
  --hold: 0%;
  position: absolute;
  z-index: 7;
  right: 28px;
  bottom: 94px;
  display: block;
  width: min(194px, calc(100vw - 56px));
  padding: 0;
  border: 0;
  background: transparent;
  animation: pde-hand-in 260ms ease both;
}
.pde-hand-panel[hidden] { display: none; }
.pde-hand-input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; clip-path: inset(50%); pointer-events: none; }
.pde-hand-copy { display: flex; min-width: 0; flex-direction: column; gap: 4px; color: #fff; text-shadow: 0 1px 9px rgba(0, 0, 0, .95); }
.pde-hand-copy b { color: #fff; font-size: 9px; line-height: 1.35; letter-spacing: .08em; text-transform: uppercase; }
.pde-hand-copy span { color: #fff; font-size: var(--pde-text-small); line-height: 1.45; letter-spacing: .05em; }

.pde-transition { position: absolute; z-index: 8; inset: 0; display: grid; place-content: center; opacity: 0; pointer-events: none; }
.pde-transition span { padding: 10px 16px; border: 1px solid rgba(255, 190, 157, .3); border-radius: 999px; background: rgba(40, 7, 14, .4); color: #ffd0c0; text-transform: uppercase; font-size: 9px; letter-spacing: .18em; }
.is-traveling .pde-transition { animation: pde-transition .8s ease-in-out; }
.is-traveling .pde-canvas { animation: pde-move .8s cubic-bezier(.65, 0, .35, 1); }

@keyframes pde-spin { to { transform: rotate(360deg); } }
@keyframes pde-pulse { to { opacity: .25; transform: scale(.72); } }
@keyframes pde-plan-pulse {
  0%, 100% {
    border-color: rgba(255, 255, 255, .42);
    text-shadow: 0 0 5px rgba(255, 255, 255, .42), 0 0 12px rgba(255, 220, 210, .18);
  }
  50% {
    border-color: rgba(255, 255, 255, .9);
    text-shadow: 0 0 10px rgba(255, 255, 255, .92), 0 0 24px rgba(255, 210, 196, .5);
  }
}
@keyframes pde-hand-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes pde-move { 0%, 100% { transform: scale(1); filter: blur(0); } 48% { transform: scale(1.07); filter: blur(1.5px); } }
@keyframes pde-transition { 0%, 16%, 84%, 100% { opacity: 0; } 38%, 62% { opacity: 1; } }

@media (max-width: 700px) {
  .pde-entry { padding: 14px; }
  .pde-entry-header { grid-template-columns: auto 1fr; }
  .pde-entry-location { display: none; }
  .pde-entry-footer { grid-template-columns: 1fr; }
  .pde-entry-footer span:last-child { display: none; }
  .pde-entry-content { padding-bottom: 48px; }
  .pde-entry h1 { font-size: clamp(68px, 23vw, 130px); }
  .pde-entry-actions { width: min(100%, 300px); grid-template-columns: 1fr; }
  .pde-access { padding: 10px; }
  .pde-access-card { padding: 28px 20px; }
  .pde-access-fields { grid-template-columns: 1fr; }
  .pde-access-fields button { justify-content: space-between; }
  .pde-header { padding: 14px; }
  .pde-header > div { min-width: 0; }
  .pde-header b { overflow: hidden; font-size: 10px; letter-spacing: .12em; text-overflow: ellipsis; white-space: nowrap; }
  .pde-header > div span { display: none; }
  .pde-header button { width: 42px; height: 42px; padding: 0; font-size: 0; }
  .pde-header-actions { gap: 6px; }
  .pde-header #fullscreen::after { content: "⛶"; font-size: 17px; }
  .pde-header #toggleAudio::after { content: "SND"; font-size: var(--pde-text-small); letter-spacing: .08em; }
  .pde-header #toggleAudio[aria-pressed="true"]::after { content: "ON"; }
  .pde-header #togglePreviewVariant { width: 52px; }
  .pde-header #togglePreviewVariant::after { content: "PÚB."; font-size: var(--pde-text-small); letter-spacing: .06em; }
  .pde-header #togglePreviewVariant[aria-pressed="true"]::after { content: "VACÍO"; }
  .pde-scenes { left: 10px; right: 10px; top: auto; bottom: 12px; width: auto; padding: 7px; transform: none; }
  .pde-scenes-heading { justify-content: flex-end; }
  .pde-scenes-heading p { display: none; }
  .pde-scenes-toggle { min-width: 74px; margin: 0 2px 5px; }
  .pde-scenes-toggle span { font-size: var(--pde-text-small); }
  .pde-scenes #sceneList { display: grid; grid-template-columns: repeat(4, 1fr); }
  .pde-scenes #sceneList button { justify-content: center; padding: 9px 3px; font-size: 0; }
  .pde-scenes #sceneList button span { font-size: 10px; }
  .pde-scenes.is-collapsed { left: auto; width: auto; }
  .pde-hand-toggle { right: 10px; bottom: 128px; width: min(194px, calc(100vw - 20px)); padding: 10px 12px; }
  .pde-hand-panel { right: 10px; bottom: 174px; width: min(194px, calc(100vw - 20px)); }
  .pde-hotspots #previous { left: 22%; top: 54%; }
  .pde-hotspots #next { left: 68%; top: 44%; }
  .pde-hotspots button { min-width: 0; padding: 7px; }
  .pde-hotspots button span { display: none; }
  .pde-footer { display: none; }
}

@media (orientation: portrait) {
  .pde-entry-actions { width: min(100%, 300px); grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .pde-entry-video { display: none; }
}
