:root { --bg: #000; --text: #fff; --btn-bg: #000; --btn-text: #fff; }
* { box-sizing: border-box; }
body.bg { margin: 0; font-family: "Noto Sans", system-ui, sans-serif; color: var(--text);
  background: url("/fondo.png") center/cover no-repeat fixed; }
.header { text-align: center; padding: 24px 16px 8px; }
.title { margin: 0 0 12px; font-weight: 700; letter-spacing: 1px; color: #000; }
.tabs { display: flex; justify-content: center; gap: 12px; }
.tab { background: var(--btn-bg); color: var(--btn-text); text-decoration: none; padding: 10px 16px; border-radius: 8px; }
.content { max-width: 640px; margin: 24px auto; padding: 0 16px; text-align: center; }
.subtitle { margin: -32px 0 16px; }
.card { width: min(420px, 90vw); height: calc(min(600px, 120vw) * 1.2); margin: 0 auto 6px; perspective: 1000px; transform: scale(0.9); transform-origin: center top; }
.card.flip .card-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 0.4s ease; }
.card-face { position: absolute; inset: 0; backface-visibility: hidden; border-radius: 14px; overflow: hidden; background: #111; display: grid; place-items: center; }
.card-face img { width: 100%; height: 100%; object-fit: cover; }
.card-front { transform: rotateY(180deg); padding: 24px; }
.card-text { color: var(--text); font-size: 18px; line-height: 1.4; white-space: pre-line; padding: 8px; }
.actions { margin-top: 12px; }
.btn { display: inline-block; background: var(--btn-bg); color: var(--btn-text); text-decoration: none; padding: 10px 16px; border-radius: 8px; }
.static-card { width: min(420px, 90vw); height: auto; border-radius: 14px; overflow: hidden; background: #111; transform: scale(0.9); transform-origin: center top; }
.static-card img { width: 100%; display: block; }
/* Main page specific spacing */
body.home .subtitle { margin-top: -16px; }
body.home .actions { margin-top: -4px; }
/* end main page overrides */