/* Carrusel curvo de ejemplos (ver carrusel.js). El alto lo fija quien lo usa; las medidas salen de ese alto. */
.tg { position: relative; overflow: hidden; height: clamp(300px, 46vw, 520px); }
.tg-band { position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease; }
.tg-tile { position: absolute; display: block; transform-style: preserve-3d; }
.tg-band, .tg-tile { cursor: pointer; }
.tg-slice { position: absolute; top: 0; overflow: hidden; background: var(--bg-3, #222); }
.tg-first { border-radius: 10px 0 0 10px; }
.tg-last { border-radius: 0 10px 10px 0; }
.tg-slice img { position: absolute; top: 0; max-width: none; object-fit: cover; -webkit-user-drag: none; user-select: none; }
.tg-ver { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 14px 0 0; }
.tg-lb { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .72); animation: tg-fade .25s ease; }
.tg-lb[hidden] { display: none; }
@keyframes tg-fade { from { opacity: 0; } }
.tg-lb-in { position: relative; width: min(100%, 1180px); max-height: 100%; display: grid; gap: 12px; padding: 14px; border: 1px solid var(--line, #333); border-radius: 20px; background: var(--bg-2, #111); color: var(--fg, #fff); animation: tg-up .4s cubic-bezier(.23, 1, .32, 1); }
@keyframes tg-up { from { opacity: 0; translate: 0 18px; scale: .97; } }
.tg-lb-x { position: absolute; top: -14px; right: -14px; z-index: 2; width: 44px; height: 44px; border: 1px solid var(--line, #333); border-radius: 50%; background: var(--bg-2, #111); color: var(--fg, #fff); font-size: 22px; cursor: pointer; transition: transform .2s, border-color .2s; }
.tg-lb-x:hover { transform: rotate(90deg); border-color: var(--c1, #0da5ff); }
.tg-lb-cab { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 2px 4px 0; }
.tg-lb-cab b { display: block; font-size: 18px; letter-spacing: -.01em; }
.tg-lb-cab small { display: block; margin-top: 2px; font-size: 13px; color: var(--fg-3, #888); }
.tg-lb-modo { display: inline-flex; padding: 3px; border: 1px solid var(--line, #333); border-radius: 99px; background: var(--bg-3, #222); }
.tg-lb-modo button { min-height: 38px; padding: 0 14px; border: 0; border-radius: 99px; background: transparent; color: var(--fg-2, #bbb); font: inherit; font-size: 13px; cursor: pointer; transition: background .25s, color .25s; }
.tg-lb-modo button[aria-pressed="true"] { background: var(--fg, #fff); color: var(--bg, #000); }
.tg-lb-vista { position: relative; display: grid; justify-items: center; transition: height .45s cubic-bezier(.23, 1, .32, 1); }
.tg-lb-pantalla { position: relative; height: 100%; display: grid; grid-template-rows: auto 1fr; overflow: hidden; border: 1px solid var(--line, #333); border-radius: 12px; background: var(--bg-3, #222); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8); transition: width .45s cubic-bezier(.23, 1, .32, 1), border-radius .45s; }
.tg-lb-barra { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: var(--bg-3, #222); border-bottom: 1px solid var(--line, #333); }
.tg-lb-barra i { width: 9px; height: 9px; border-radius: 50%; background: var(--fg-3, #666); opacity: .45; }
.tg-lb-dir { flex: 1; margin: 0 8px 0 10px; padding: 3px 10px; border-radius: 99px; background: var(--bg-2, #111); color: var(--fg-3, #888); font-size: 12px; text-align: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tg-lb-marco { position: relative; overflow: hidden; }
.tg-lb-marco iframe { position: absolute; top: 0; left: 0; border: 0; transform-origin: 0 0; background: #fff; }
.tg-lb-ph { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: opacity .4s; }
.tg-lb.cargando .tg-lb-marco::after { content: ""; position: absolute; z-index: 2; left: 0; top: 0; height: 3px; width: 40%; background: linear-gradient(90deg, transparent, var(--c1, #0da5ff), var(--c2, #00e5d0)); animation: tg-carga 1.1s ease-in-out infinite; }
@keyframes tg-carga { from { translate: -100% 0; } to { translate: 260% 0; } }
.tg-lb.es-cel .tg-lb-pantalla { border-radius: 28px; }
.tg-lb.es-cel .tg-lb-barra { height: 26px; }
.tg-lb-pie { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 0 4px 2px; }
.tg-lb-pie small { font-size: 12px; color: var(--fg-3, #888); }
.tg-lb-nav { display: flex; gap: 8px; }
html.tg-lb-abierto { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .tg-lb, .tg-lb-in { animation: none; } .tg-lb-vista, .tg-lb-pantalla { transition: none; } }
@media (max-width: 560px) { .tg-lb { padding: 8px; } .tg-lb-in { padding: 10px; } .tg-lb-x { top: 6px; right: 6px; } .tg-lb-cab { padding-right: 44px; } .tg-lb-pie .tg-lb-abrir { order: -1; width: 100%; justify-content: center; } }
.tg-sec { position: relative; margin-top: clamp(28px, 5vw, 56px); padding-bottom: clamp(28px, 5vw, 56px); }
.tg-head { text-align: center; display: grid; gap: 10px; justify-items: center; margin-bottom: 8px; }
.tg-head p { max-width: 38em; }
