/* Turnero intro — boceto preloaders-duaicode/turnero.html — scope .tp- */

html.tp-active.tp-lock {
    position: fixed;
    width: 100%;
    overflow: hidden;
    overscroll-behavior: none;
}

html.tp-active.tp-lock body {
    overflow: hidden;
    height: 100%;
    touch-action: none;
    overscroll-behavior: none;
}

html.tp-active .turnero-logo-wrap {
    opacity: 0;
}

html.tp-revealed .turnero-logo-wrap {
    opacity: 1;
    transition: opacity 0.18s ease;
}

html.tp-active .turnero-hero-animate--copy,
html.tp-active .turnero-hero-animate--visual,
html.tp-active .turnero-hero .tp-hero-reveal {
    opacity: 0;
    transform: translateY(36px);
    animation: none !important;
    will-change: transform, opacity;
}

html.tp-revealed .turnero-hero-animate--copy,
html.tp-revealed .turnero-hero-animate--visual {
    animation: none !important;
}

html.tp-revealed .turnero-hero-animate--copy,
html.tp-revealed .turnero-hero-animate--visual,
html.tp-revealed .turnero-hero .tp-hero-reveal {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html.tp-active .turnero-hero-animate--copy,
    html.tp-active .turnero-hero-animate--visual,
    html.tp-active .turnero-hero .tp-hero-reveal {
        opacity: 1;
        transform: none;
    }
}

.tp-root {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: auto;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    padding:
        env(safe-area-inset-top, 0)
        env(safe-area-inset-right, 0)
        env(safe-area-inset-bottom, 0)
        env(safe-area-inset-left, 0);
    box-sizing: border-box;
}

.tp-root.tp-is-exiting {
    pointer-events: none;
}

.tp-overlay {
    position: absolute;
    inset: 0;
    background: #050708;
}

.tp-glow {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(130vw, 1300px);
    height: min(100vh, 1000px);
    transform: translate(-50%, -50%);
    background: radial-gradient(closest-side, rgba(0, 217, 245, 0.16), rgba(0, 230, 138, 0.08) 50%, transparent 100%);
    pointer-events: none;
}

.tp-cal {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(92vw, 760px);
    transform: translate(-50%, -50%);
    transform-origin: 50% 50%;
}

.tp-dow {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: clamp(4px, 1.2vw, 12px);
    margin-bottom: 14px;
    font-size: clamp(10px, 2vw, 16px);
    font-weight: 700;
    color: #5d6a6e;
    text-align: center;
    letter-spacing: 2px;
}

.tp-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: clamp(4px, 1.2vw, 12px);
}

.tp-cell {
    position: relative;
    height: clamp(36px, 10vw, 86px);
    border-radius: 14px;
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.018);
    font-size: clamp(11px, 2.2vw, 18px);
    font-weight: 600;
    color: #6f7c80;
    padding: clamp(4px, 1vw, 10px) clamp(6px, 1.2vw, 12px);
}

.tp-cell.tp-off {
    color: #353e41;
}

.tp-cell-fill {
    position: absolute;
    inset: -1.5px;
    border-radius: 14px;
    background: linear-gradient(135deg, #00d9f5, #00e68a);
    box-shadow: 0 0 40px rgba(0, 217, 245, 0.55), 0 0 90px rgba(0, 230, 138, 0.3);
    opacity: 0;
}

.tp-cell-n {
    position: relative;
    z-index: 1;
}

.tp-cell svg {
    position: absolute;
    left: 50%;
    top: 54%;
    transform: translate(-50%, -50%);
    width: clamp(28px, 8vw, 56px);
    height: auto;
    z-index: 2;
}

.tp-check-path {
    fill: none;
    stroke: #04110c;
    stroke-width: 6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tp-chip {
    position: fixed;
    z-index: 10001;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: clamp(10px, 2vw, 16px) clamp(14px, 3vw, 24px);
    border-radius: 999px;
    background: rgba(10, 18, 18, 0.92);
    border: 1px solid rgba(0, 230, 138, 0.45);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 230, 138, 0.18);
    font-size: clamp(13px, 2.4vw, 21px);
    font-weight: 700;
    white-space: nowrap;
    transform-origin: 0 50%;
    pointer-events: none;
}

.tp-chip i {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00d9f5, #00e68a);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.tp-chip span {
    color: #7ff5c4;
}

.tp-big {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 10002;
    transform-origin: 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
}

.tp-tw {
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
    font-size: clamp(72px, 18vw, 200px);
    font-weight: 800;
    letter-spacing: -6px;
    line-height: 1;
    padding: 0 8px 18px;
    background: linear-gradient(90deg, #00d9f5, #00e68a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.tp-by {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(8px, 2vw, 14px);
    margin-top: 6px;
}

.tp-by-label {
    font-size: clamp(14px, 2.5vw, 24px);
    color: #8c989c;
    font-weight: 500;
    flex: none;
}

.tp-by-logo-mark {
    position: relative;
    width: min(221px, 52vw);
    max-width: 100%;
    aspect-ratio: 1107 / 285;
    flex: none;
}

.tp-by-logo-mark.dp-logo-mark--fallback img,
.tp-by-logo-mark img {
    object-fit: contain;
}

.tp-skip-hint {
    position: fixed;
    z-index: 10003;
    bottom: max(16px, env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
}

.tp-root.tp-mode-short .tp-cal,
.tp-root.tp-mode-short .tp-chip {
    display: none;
}

/* Landscape mobile / altura baja — no altera portrait celular */
@media (orientation: landscape) and (max-height: 520px) {
    .tp-cal {
        transform: translate(-50%, -50%) scale(0.82);
    }

    .tp-chip {
        font-size: clamp(11px, 2vh, 16px);
        padding: 8px 14px;
    }
}

@media (min-width: 1024px) and (min-height: 900px) {
    .tp-tw {
        font-size: clamp(120px, 10vw, 200px);
    }
}

/* Estado inicial oculto hasta el primer render() (evita flash arriba a la izquierda
   mientras se precargan las piezas del logo). render() pisa con opacidad inline. */
.tp-big,
.tp-tw,
.tp-by,
.tp-chip,
.tp-dow,
.tp-cell {
    opacity: 0;
}
