/* República Checa y México · arte y diseño. Escenario fijo 1080×1920 (Cozyla 32" vertical), escalado a la ventana.
   Solo CSS: sin WebGL ni canvas (chip de entrada). Animaciones de opacidad y transform nada más. */
@font-face { font-family: 'Cormorant'; src: url('../fuentes/cormorantgaramond.woff2') format('woff2'); font-weight: 500 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: 'Cormorant'; src: url('../fuentes/cormorantgaramond-ext.woff2') format('woff2'); font-weight: 500 700; font-display: swap; unicode-range: U+0100-02BA; }
@font-face { font-family: 'Cormorant'; font-style: italic; src: url('../fuentes/cormorantgaramond-it.woff2') format('woff2'); font-weight: 500; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F; }
@font-face { font-family: 'Cormorant'; font-style: italic; src: url('../fuentes/cormorantgaramond-it-ext.woff2') format('woff2'); font-weight: 500; font-display: swap; unicode-range: U+0100-02BA; }
@font-face { font-family: 'Jost'; src: url('../fuentes/jost.woff2') format('woff2'); font-weight: 400 600; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F; }
@font-face { font-family: 'Jost'; src: url('../fuentes/jost-ext.woff2') format('woff2'); font-weight: 400 600; font-display: swap; unicode-range: U+0100-02BA; }

:root {
  --papel: #f4e9d3; --papel2: #ead9b8; --tinta: #2a1a12;
  --azul: #11457e; --rojo: #d7141a; --oro: #b0822f; --oro2: #d9b46a; --terra: #8c3a22; --verde: #006847;
  --serif: 'Cormorant', 'Times New Roman', serif; --sans: 'Jost', system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; background: #0d0d0d; overflow: hidden; overscroll-behavior: none; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; -webkit-user-drag: none; }

#app {
  position: absolute; left: 50%; top: 50%; width: 1080px; height: 1920px; margin: -960px 0 0 -540px;
  transform: scale(var(--esc, 1)); transform-origin: center; overflow: hidden;
  color: var(--tinta); font-family: var(--sans); font-size: 30px; line-height: 1.35;
  background:
    radial-gradient(1200px 900px at 50% 28%, #fbf3e2 0%, transparent 70%),
    linear-gradient(180deg, var(--papel) 0%, var(--papel2) 100%);
}
/* marco dorado doble alrededor de todo, como un cartel */
#app::before { content: ''; position: absolute; inset: 22px 22px 132px; border: 3px solid var(--oro); border-radius: 26px; pointer-events: none; z-index: 5; }
#app::after { content: ''; position: absolute; inset: 34px 34px 144px; border: 1px solid var(--oro); border-radius: 18px; pointer-events: none; z-index: 5; opacity: .7; }

.pantalla { position: absolute; inset: 0 0 110px; padding: 70px 70px 40px; display: none; flex-direction: column; align-items: center; }
#app[data-modo="atraer"] #p-atraer, #app[data-modo="inicio"]:not([data-capa]) #p-inicio, #app[data-capa] #panel { display: flex; animation: entra .5s ease both; }
@keyframes entra { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ───── pie: crédito ───── */
.pie { position: absolute; left: 0; right: 0; bottom: 0; height: 110px; background: #0d0d0d; display: flex; align-items: center; justify-content: center; gap: 18px; z-index: 6; }
.pie span { color: #b9c4b7; font-size: 22px; letter-spacing: .28em; text-transform: uppercase; }
.pie img { height: 62px; width: auto; margin-left: -18px; }

/* ───── reposo ───── */
.sobre { white-space: nowrap; font-size: 21px; letter-spacing: .22em; text-transform: uppercase; color: var(--azul); font-weight: 600; margin-top: 8px; text-align: center; }
.arco-marco { position: relative; width: 700px; height: 930px; margin-top: 46px; flex: none; }
.arco { position: absolute; inset: 0; border-radius: 350px 350px 18px 18px; overflow: hidden; background: #3a2418;
  box-shadow: 0 0 0 5px var(--papel), 0 0 0 9px var(--oro), 0 0 0 20px var(--papel), 0 0 0 22px var(--azul), 0 30px 60px rgba(60, 30, 10, .35); }
.arco img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; opacity: 0; transition: opacity 2.2s ease; }
.arco img.on { opacity: 1; }
.halo { position: absolute; left: 50%; top: 350px; width: 980px; height: 980px; margin: -490px 0 0 -490px; border-radius: 50%;
  border: 2px dashed var(--oro); opacity: .55; animation: gira 120s linear infinite; }
.halo::before { content: ''; position: absolute; inset: 34px; border-radius: 50%; border: 12px double var(--oro2); opacity: .7; }
@keyframes gira { to { transform: rotate(360deg); } }
#p-atraer h1 { font-family: var(--serif); font-weight: 700; text-align: center; margin-top: 70px; line-height: .98; color: var(--azul); }
#p-atraer h1 span { display: block; font-size: 104px; letter-spacing: -.01em; }
#p-atraer h1 em { display: block; font-size: 66px; font-weight: 500; color: var(--terra); margin-top: 10px; }
.paises { display: flex; align-items: center; gap: 24px; margin-top: 34px; font-size: 30px; letter-spacing: .26em; text-transform: uppercase; font-weight: 600; }
.b { width: 78px; height: 52px; border-radius: 5px; box-shadow: 0 0 0 2px var(--oro); flex: none; }
.b.cz { background: linear-gradient(180deg, #fff 50%, var(--rojo) 50%); position: relative; overflow: hidden; }
.b.cz::before { content: ''; position: absolute; left: 0; top: 0; border-style: solid; border-width: 26px 0 26px 39px; border-color: transparent transparent transparent var(--azul); }
.b.mx { background: linear-gradient(90deg, var(--verde) 33.3%, #fff 33.3% 66.6%, #ce1126 66.6%); }
.toca { margin-top: auto; margin-bottom: 26px; text-align: center; }
.toca b { display: inline-block; font-family: var(--serif); font-size: 50px; font-weight: 700; color: #fff; background: var(--rojo); padding: 18px 64px 22px; border-radius: 60px;
  box-shadow: 0 0 0 4px var(--papel), 0 0 0 6px var(--rojo); animation: late 2.4s ease-in-out infinite; }
.toca small { display: block; margin-top: 20px; font-size: 24px; letter-spacing: .2em; text-transform: uppercase; color: var(--azul); }
@keyframes late { 50% { transform: scale(1.05); } }

/* ───── inicio ───── */
.cab { text-align: center; margin-top: 10px; }
.cab small { white-space: nowrap; font-size: 21px; letter-spacing: .22em; text-transform: uppercase; color: var(--azul); font-weight: 600; }
.cab h2 { font-family: var(--serif); font-size: 84px; font-weight: 700; color: var(--azul); margin-top: 26px; line-height: 1; }
.filete { height: 30px; margin: 22px auto 0; width: 420px; position: relative; }
.filete::before { content: ''; position: absolute; left: 0; right: 0; top: 14px; height: 2px; background: linear-gradient(90deg, transparent, var(--oro) 20% 80%, transparent); }
.filete i { position: absolute; left: 50%; top: 4px; width: 22px; height: 22px; margin-left: -11px; background: var(--rojo); transform: rotate(45deg); box-shadow: 0 0 0 4px var(--papel), 0 0 0 6px var(--oro); }
#menu { display: flex; flex-direction: column; gap: 30px; width: 100%; margin-top: 46px; }
.tarjeta { display: flex; align-items: center; gap: 36px; width: 100%; height: 282px; padding: 22px 40px 22px 22px; text-align: left; background: #fffaf0;
  border-radius: 150px 26px 26px 150px; box-shadow: 0 0 0 2px var(--oro), 0 14px 30px rgba(60, 30, 10, .16); transition: transform .15s; }
.tarjeta:active { transform: scale(.975); }
.tarjeta .mini { width: 238px; height: 238px; border-radius: 50%; overflow: hidden; flex: none; box-shadow: 0 0 0 4px var(--papel), 0 0 0 7px var(--oro), 0 0 0 12px var(--papel), 0 0 0 14px var(--azul); background: #0d0d0d; display: flex; align-items: center; justify-content: center; }
.tarjeta .mini img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.tarjeta .mini img.logo { width: 84%; height: auto; object-fit: contain; }
.tarjeta b { display: block; font-family: var(--serif); font-size: 62px; font-weight: 700; color: var(--azul); line-height: 1; }
.tarjeta span { display: block; margin-top: 14px; font-size: 29px; color: #5b463a; }
.tarjeta i { margin-left: auto; font-style: normal; font-size: 70px; color: var(--rojo); font-family: var(--serif); flex: none; }
.barra { display: flex; gap: 18px; margin-top: auto; margin-bottom: 14px; }
.barra button { display: flex; align-items: center; gap: 14px; height: 84px; padding: 0 32px; border-radius: 50px; background: #fffaf0; box-shadow: 0 0 0 2px var(--oro); font-size: 28px; font-weight: 600; color: var(--azul); }
.barra button b { font-size: 30px; color: var(--rojo); }

/* ───── capa ───── */
.cab-panel { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: 4px; }
.cab-panel h2 { font-family: var(--serif); font-size: 70px; font-weight: 700; color: var(--azul); }
.volver { width: 88px; height: 88px; border-radius: 50%; background: var(--azul); color: #fff; font-size: 54px; line-height: 1; font-family: var(--serif); box-shadow: 0 0 0 4px var(--papel), 0 0 0 6px var(--oro); display: flex; align-items: center; justify-content: center; padding-bottom: 8px; }
#cuerpo { flex: 1; width: 100%; min-height: 0; display: flex; flex-direction: column; align-items: center; margin-top: 24px; }
.hint { font-size: 24px; letter-spacing: .26em; text-transform: uppercase; color: var(--terra); font-weight: 600; }

/* línea del tiempo */
.linea { position: relative; width: 100%; flex: 1; margin-top: 22px; display: flex; flex-direction: column; justify-content: space-between; padding: 6px 0 10px; }
.linea::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 4px; margin-left: -2px; background: linear-gradient(180deg, var(--azul), var(--oro) 50%, var(--verde)); border-radius: 2px; }
.hito { position: relative; width: 50%; height: 170px; display: flex; align-items: center; gap: 22px; padding-right: 64px; text-align: right; flex-direction: row-reverse; }
.hito:nth-child(even) { align-self: flex-end; flex-direction: row; text-align: left; padding: 0 0 0 64px; }
.hito::after { content: ''; position: absolute; right: -17px; top: 50%; width: 34px; height: 34px; margin-top: -17px; border-radius: 50%; background: var(--papel); border: 6px solid var(--azul); box-shadow: 0 0 0 3px var(--oro); }
.hito:nth-child(even)::after { right: auto; left: -17px; }
.hito[data-p="am"]::after { border-color: var(--rojo); }
.hito .img { width: 124px; height: 124px; border-radius: 50%; overflow: hidden; flex: none; box-shadow: 0 0 0 3px var(--papel), 0 0 0 6px var(--oro); background: var(--azul); display: flex; align-items: center; justify-content: center; }
.hito .img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.hito .img .b { transform: scale(.9); }
.hito .txt b { display: block; font-family: var(--serif); font-size: 74px; font-weight: 700; line-height: .9; color: var(--azul); }
.hito[data-p="am"] .txt b { color: var(--rojo); }
.hito .txt span { display: block; font-size: 30px; font-weight: 600; line-height: 1.15; margin-top: 6px; }
.hito:active { transform: scale(.97); }

/* estilo Mucha: obra con puntos */
.anat { position: relative; width: 706px; height: 938px; margin-top: 18px; flex: none; border-radius: 14px; box-shadow: 0 0 0 4px var(--papel), 0 0 0 7px var(--oro), 0 20px 40px rgba(60, 30, 10, .3); }
.anat > img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.punto { position: absolute; width: 78px; height: 78px; margin: -39px 0 0 -39px; border-radius: 50%; background: var(--oro2); color: var(--tinta); font-family: var(--serif); font-weight: 700; font-size: 44px; line-height: 70px; text-align: center;
  box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--azul), 0 6px 14px rgba(0, 0, 0, .45); }
.punto::after { content: ''; position: absolute; inset: -14px; border-radius: 50%; border: 3px solid var(--oro2); animation: onda 2.2s ease-out infinite; }
.punto.on { background: var(--rojo); color: #fff; }
.punto.on::after { display: none; }
@keyframes onda { from { transform: scale(.8); opacity: .9; } to { transform: scale(1.5); opacity: 0; } }
.clave { width: 100%; min-height: 250px; margin-top: 30px; padding: 26px 40px; background: #fffaf0; border-radius: 26px; box-shadow: 0 0 0 2px var(--oro); display: flex; gap: 30px; align-items: center; }
.clave .n { width: 96px; height: 96px; border-radius: 50%; background: var(--rojo); color: #fff; font-family: var(--serif); font-weight: 700; font-size: 58px; line-height: 88px; text-align: center; flex: none; }
.clave b { display: block; font-family: var(--serif); font-size: 56px; font-weight: 700; color: var(--azul); line-height: 1; }
.clave p { font-size: 30px; margin-top: 10px; }
.chips { display: flex; gap: 16px; width: 100%; margin-top: auto; padding-bottom: 6px; }
.chips div { flex: 1; padding: 14px 18px; border-radius: 18px; border: 2px solid var(--azul); }
.chips b { display: block; font-size: 27px; color: var(--azul); }
.chips span { display: block; font-size: 23px; line-height: 1.2; margin-top: 4px; }
.mas { width: 100%; font-size: 22px; letter-spacing: .26em; text-transform: uppercase; color: var(--terra); font-weight: 600; margin: auto 0 10px; }
.mas + .chips { margin-top: 0; }

/* galería */
.rejilla { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; width: 100%; margin-top: 26px; }
.obra { position: relative; height: 420px; border-radius: 150px 150px 14px 14px; overflow: hidden; box-shadow: 0 0 0 3px var(--papel), 0 0 0 6px var(--oro), 0 12px 24px rgba(60, 30, 10, .25); background: #3a2418; }
.obra img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 16%; }
.obra span { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 12px 12px; background: linear-gradient(transparent, rgba(20, 10, 5, .85)); color: #fff; font-family: var(--serif); font-size: 30px; font-weight: 700; text-align: center; line-height: 1.05; }
.obra:active { transform: scale(.97); }
.credito { margin-top: auto; font-size: 21px; color: #6b5548; text-align: center; padding-bottom: 6px; }

/* detalle (hito u obra) */
#detalle { position: absolute; inset: 0 0 110px; z-index: 8; background: rgba(20, 12, 8, .93); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 70px; color: #fff; animation: entra .35s ease both; }
#detalle[hidden] { display: none; }
#detalle .vis { flex: none; max-width: 100%; max-height: 1080px; min-height: 0; border-radius: 12px; box-shadow: 0 0 0 4px #1b120c, 0 0 0 7px var(--oro2); object-fit: contain; }
#detalle .anio { font-family: var(--serif); font-size: 200px; font-weight: 700; color: var(--oro2); line-height: 1; }
#detalle .et { font-size: 24px; letter-spacing: .28em; text-transform: uppercase; color: var(--oro2); font-weight: 600; margin-top: 34px; }
#detalle h3 { font-family: var(--serif); font-size: 74px; font-weight: 700; text-align: center; line-height: 1; margin-top: 14px; }
#detalle p { font-size: 34px; text-align: center; margin-top: 22px; max-width: 880px; color: #f1e6d2; }
#detalle .nav { display: flex; align-items: center; gap: 40px; margin-top: 40px; }
#detalle .nav button { width: 96px; height: 96px; border-radius: 50%; background: var(--oro2); color: var(--tinta); font-family: var(--serif); font-size: 60px; line-height: 1; padding-bottom: 8px; }
#detalle .nav .x { width: auto; padding: 0 50px 4px; border-radius: 50px; background: var(--rojo); color: #fff; font-family: var(--sans); font-size: 30px; font-weight: 600; }
#detalle .nav small { font-size: 26px; color: #cdbfa8; min-width: 110px; text-align: center; }

/* ALA */
.ala { width: 100%; flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.ala .banda { width: 100%; height: 250px; margin-top: 10px; border-radius: 125px 125px 16px 16px; overflow: hidden; box-shadow: 0 0 0 4px var(--papel), 0 0 0 7px var(--oro); flex: none; }
.ala .banda img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.ala h3 { font-family: var(--serif); font-size: 88px; font-weight: 700; color: var(--azul); line-height: .98; margin-top: 44px; }
.ala .p { font-family: var(--serif); font-style: italic; font-size: 44px; color: var(--terra); margin-top: 26px; max-width: 860px; line-height: 1.15; }
.ala .que { font-size: 32px; font-weight: 600; margin-top: 40px; max-width: 820px; }
.servs { display: flex; gap: 20px; width: 100%; margin-top: 30px; }
.servs div { flex: 1; padding: 24px 18px; background: #fffaf0; border-radius: 22px; box-shadow: 0 0 0 2px var(--oro); }
.servs b { display: block; font-family: var(--serif); font-size: 44px; color: var(--azul); line-height: 1; }
.servs span { display: block; font-size: 26px; margin-top: 10px; line-height: 1.25; }
.contacto { display: flex; align-items: center; gap: 44px; margin-top: auto; margin-bottom: 10px; padding: 34px 50px; background: #0d0d0d; border-radius: 34px; color: #fff; box-shadow: 0 0 0 4px var(--papel), 0 0 0 7px var(--oro); text-align: left; }
.contacto .cuadro { width: 330px; height: 330px; padding: 20px; background: #fff; border-radius: 18px; flex: none; }
.contacto .cuadro svg { width: 100%; height: 100%; display: block; }
.contacto img { width: 380px; height: auto; margin-left: -34px; }
.contacto b { display: block; font-family: var(--serif); font-size: 76px; font-weight: 700; line-height: 1; color: #d6e2d2; }
.contacto small { display: block; font-size: 28px; color: #b9c4b7; margin-top: 12px; letter-spacing: .08em; }
.casos { font-size: 23px; color: #6b5548; margin-top: 22px; margin-bottom: 26px; letter-spacing: .06em; }

#telon { position: absolute; inset: 0; background: #0d0d0d; opacity: 0; pointer-events: none; transition: opacity .5s; z-index: 20; }
#telon.on { opacity: 1; pointer-events: auto; }
#stats { position: fixed; left: 8px; top: 8px; z-index: 99; background: rgba(0, 0, 0, .8); color: #9f9; font: 12px/1.3 monospace; padding: 8px; white-space: pre; border-radius: 6px; }

.barra button.on { background: var(--azul); color: #fff; box-shadow: 0 0 0 2px var(--azul), 0 0 0 5px var(--oro2); }
/* sonido: botón en el pie, siempre a la mano */
#btn-sonido { position: absolute; right: 34px; bottom: 17px; width: 76px; height: 76px; border-radius: 50%; z-index: 9; color: #d6e2d2; border: 2px solid #5d6b5c; display: flex; align-items: center; justify-content: center; }
#btn-sonido svg { width: 44px; height: 44px; }
#btn-sonido .tache { display: none; }
#btn-sonido.off { color: #e2574c; border-color: #e2574c; }
#btn-sonido.off .ondas { display: none; }
#btn-sonido.off .tache { display: inline; }
