/* ============================================================
   POWER GYM - ESTILOS GLOBALES Y UTILIDADES v2.5
   OPTIMIZADO: Sin transiciones, renderizado instantáneo
   AJUSTES: Logo y Reloj más grandes
   ============================================================ */
   
/* CORRECIONES APLICADAS v2.5:
   1. ✅ Aumentado tamaño del logo (POWER + GYM)
   2. ✅ Aumentado tamaño del reloj (SplitFlap)
   3. ✅ Mejorado responsive intermedio
   4. ✅ Ajustado espaciado del header
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    background: #000000;
    color: #ffffff;
}

#view-container {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    position: relative;
    background: #0a0a0a;
    /* Optimización de renderizado */
    contain: layout style paint;
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #1a1a1a;
}
::-webkit-scrollbar-thumb {
    background: #fbbf24;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #f59e0b;
}

/* ========== ANIMACIONES GLOBALES ========== */
@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

@keyframes glow {
    0% {
        text-shadow: 0 0 10px rgba(251, 191, 36, 0.3),
                     0 0 20px rgba(251, 191, 36, 0.2);
    }
    100% {
        text-shadow: 0 0 20px rgba(251, 191, 36, 0.6),
                     0 0 40px rgba(251, 191, 36, 0.4),
                     0 0 80px rgba(251, 191, 36, 0.2);
    }
}

@keyframes pulse-slow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes pulse-loading {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

/* Solo animaciones esenciales */
.animate-glow {
    animation: glow 2s ease-in-out infinite alternate;
}

.animate-pulse-slow {
    animation: pulse-slow 3s ease-in-out infinite;
}

/* ========== MODO KIOSCO ========== */
.kiosk-mode {
    cursor: none;
    user-select: none;
}

.kiosk-mode * {
    cursor: none;
}

/* ========== TRANSICIONES ENTRE VISTAS - ELIMINADAS ========== */
/* Sin transiciones para cambios instantáneos */

/* ========== TEMAS (SKINS) ========== */

/* --- TEMA: CYBER / NEON POWER --- */
.theme-cyber_neon {
    --bg-primary: #0a0a0f;
    --bg-secondary: #1a1a2e;
    --text-primary: #ffffff;
    --text-secondary: #fbbf24;
    --accent-1: #fbbf24;
    --accent-2: #ef4444;
    --accent-3: #8b5cf6;
    --glow-color: rgba(251, 191, 36, 0.3);
    --border-color: rgba(251, 191, 36, 0.2);
    --card-bg: rgba(26, 26, 46, 0.8);
}

/* --- TEMA: INDUSTRIAL RAW --- */
.theme-industrial {
    --bg-primary: #1a1816;
    --bg-secondary: #2a2723;
    --text-primary: #e8e0d8;
    --text-secondary: #f59e0b;
    --accent-1: #f59e0b;
    --accent-2: #92400e;
    --accent-3: #78716c;
    --glow-color: rgba(245, 158, 11, 0.2);
    --border-color: rgba(245, 158, 11, 0.15);
    --card-bg: rgba(42, 39, 35, 0.85);
}

/* --- TEMA: CLEAN & HEALTH --- */
.theme-clean {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #38bdf8;
    --accent-1: #38bdf8;
    --accent-2: #818cf8;
    --accent-3: #64748b;
    --glow-color: rgba(56, 189, 248, 0.15);
    --border-color: rgba(56, 189, 248, 0.1);
    --card-bg: rgba(30, 41, 59, 0.8);
}

/* --- TEMA: GOLDEN CHAMPION --- */
.theme-golden {
    --bg-primary: #0f0a00;
    --bg-secondary: #1a1208;
    --text-primary: #fef3c7;
    --text-secondary: #fbbf24;
    --accent-1: #fbbf24;
    --accent-2: #f59e0b;
    --accent-3: #d97706;
    --glow-color: rgba(251, 191, 36, 0.4);
    --border-color: rgba(251, 191, 36, 0.3);
    --card-bg: rgba(26, 18, 8, 0.85);
}

.theme-cyber_neon body,
.theme-industrial body,
.theme-clean body,
.theme-golden body {
    background: var(--bg-primary);
    color: var(--text-primary);
}

/* ========== LOGO POWER GYM ========== */
.power-logo {
    font-family: 'Bebas Neue', sans-serif;
    display: flex;
    align-items: center;
    gap: 4px;
}

.power-logo .power {
    font-size: 2.5rem;
    font-weight: 900;
    color: #fbbf24;
    letter-spacing: 1px;
}

.power-logo .power-o {
    position: relative;
    display: inline-block;
}

.power-logo .power-o .lightning {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
}

.power-logo .gym {
    font-family: 'Inter', sans-serif;
    font-size: 1.8rem;
    font-weight: 300;
    color: #ffffff;
    letter-spacing: 1px;
    margin-left: 2px;
}

.power-logo .subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    color: #fbbf24;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: rgba(251, 191, 36, 0.1);
    padding: 2px 8px;
    border-radius: 2px;
    border-left: 2px solid #fbbf24;
}

/* ========== VISTA: PROFESOR POSTER ========== */
.professor-poster .photo-container {
    flex-shrink: 0;
    width: 35%;
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--accent-1, #fbbf24);
    box-shadow: 0 0 60px var(--glow-color, rgba(251, 191, 36, 0.3));
    /* Optimización */
    will-change: transform;
    contain: layout style paint;
}

.professor-poster .photo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Optimización */
    will-change: transform;
}

/* ========== DASHBOARD - Optimizado ========== */
.dashboard-container {
    width: 100%;
    height: 100%;
    max-width: 100vw;
    max-height: 100vh;
    background: #0a0a0a;
    display: flex;
    flex-direction: column;
    padding: clamp(0.6rem, 2vw, 2rem) clamp(0.6rem, 3vw, 3rem);
    position: relative;
    overflow: hidden;
    /* Optimización */
    contain: layout style paint;
}

/* HEADER - Espaciado mejorado */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-shrink: 0;
    padding-bottom: clamp(0.8rem, 1.5vw, 1.5rem);
    border-bottom: 1px solid rgba(251, 191, 36, 0.08);
    gap: clamp(0.8rem, 2vw, 2rem);
    flex-wrap: wrap;
}

/* LOGO - Tamaño aumentado */
.dashboard-logo {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
}

.dashboard-logo .logo-p,
.dashboard-logo .logo-wer {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2rem, 5vw, 4.5rem);
    font-weight: 900;
    color: #fbbf24;
    line-height: 1;
}

.dashboard-logo .logo-o {
    width: clamp(36px, 6vw, 72px);
    height: clamp(44px, 7.2vw, 88px);
    vertical-align: middle;
    margin: 0 -4px;
    flex-shrink: 0;
}

.dashboard-logo .logo-gym {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.6rem, 4vw, 3.5rem);
    font-weight: 300;
    color: #ffffff;
    letter-spacing: 2px;
    margin-left: 4px;
    white-space: nowrap;
}

/* CLIMA HEADER */
.dashboard-weather {
    display: flex;
    align-items: center;
    gap: clamp(0.4rem, 1vw, 1rem);
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: clamp(0.3rem, 0.8vw, 0.5rem) clamp(0.6rem, 1.5vw, 1.5rem);
    flex-shrink: 0;
    min-width: 0;
}

.dashboard-weather.loading {
    opacity: 0.6;
    animation: pulse-loading 1.5s ease-in-out infinite;
}

.weather-main {
    display: flex;
    align-items: center;
    gap: clamp(0.3rem, 0.6vw, 0.5rem);
}

.weather-main .weather-icon {
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    line-height: 1;
}

.weather-main .weather-temp {
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
}

.weather-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    padding-left: clamp(0.5rem, 1vw, 1rem);
    min-width: 0;
}

.weather-details .weather-condition {
    font-size: clamp(0.65rem, 1.2vw, 0.85rem);
    color: rgba(255, 255, 255, 0.7);
    text-transform: capitalize;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.weather-details .weather-humidity {
    font-size: clamp(0.55rem, 1vw, 0.75rem);
    color: rgba(255, 255, 255, 0.4);
    white-space: nowrap;
}

.weather-details .weather-location {
    font-size: clamp(0.5rem, 0.9vw, 0.7rem);
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

/* CENTRO */
.dashboard-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(0.3rem, 0.8vw, 0.5rem);
    min-height: 0;
    padding: clamp(0.3rem, 1vh, 1rem) 0;
}

/* RELOJ - Tamaño aumentado */
.clock-section {
    text-align: center;
}

.clock-time {
    font-family: 'Inter', sans-serif;
    font-size: clamp(4rem, 16vw, 12rem);
    font-weight: 900;
    color: #ffffff;
    letter-spacing: clamp(2px, 1vw, 6px);
    line-height: 1;
    text-shadow: 0 0 60px rgba(255, 255, 255, 0.05);
    /* Optimización */
    will-change: transform;
}

.clock-date {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1rem, 2.2vw, 2rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: clamp(2px, 0.8vw, 4px);
    text-transform: uppercase;
}

/* MENSAJE DEL DÍA */
.message-section {
    display: flex;
    align-items: center;
    gap: clamp(0.4rem, 0.8vw, 0.75rem);
    margin-top: clamp(0.2rem, 0.5vh, 0.5rem);
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(251, 191, 36, 0.08);
    border-radius: 12px;
    padding: clamp(0.3rem, 0.6vw, 0.6rem) clamp(0.8rem, 1.5vw, 2rem);
    max-width: 90%;
}

.message-section .message-icon {
    font-size: clamp(1rem, 1.8vw, 1.4rem);
    opacity: 0.6;
    flex-shrink: 0;
}

.message-section .message-text {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.85rem, 1.8vw, 1.4rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.5px;
    text-align: center;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* TICKER INFERIOR */
.dashboard-ticker {
    flex-shrink: 0;
    width: 100%;
    overflow: hidden;
    padding: clamp(0.4rem, 0.8vh, 0.75rem) 0;
    border-top: 1px solid rgba(251, 191, 36, 0.08);
}

.ticker-track {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.7rem, 1.5vw, 1.1rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.35);
    white-space: nowrap;
    letter-spacing: 2px;
    animation: marquee clamp(20s, 40s, 30s) linear infinite;
    will-change: transform;
}

/* ========== ADMIN PANEL ========== */
.admin-panel {
    max-width: 480px;
    margin: 0 auto;
    padding: 1rem;
    background: var(--bg-primary, #0a0a0a);
    min-height: 100vh;
    overflow-y: auto;
}

.admin-panel .section {
    background: var(--bg-secondary, #1a1a1a);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color, rgba(255,255,255,0.05));
}

.admin-panel .section-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary, #fbbf24);
    margin-bottom: 0.75rem;
}

.admin-panel .grid-cols-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

/* ============================================================
   RESPONSIVE - MANTENIDO Y MEJORADO
   ============================================================ */

/* Pantallas medianas (tablets) */
@media (max-width: 1024px) {
    .dashboard-container {
        padding: clamp(0.8rem, 1.5vw, 1.5rem) clamp(0.8rem, 2vw, 2rem);
    }
    
    .dashboard-header {
        gap: 0.6rem;
        padding-bottom: 0.8rem;
    }
    
    .dashboard-weather {
        padding: 0.4rem 1rem;
    }
    
    .dashboard-logo .logo-p,
    .dashboard-logo .logo-wer {
        font-size: clamp(1.8rem, 4vw, 3rem);
    }
    
    .dashboard-logo .logo-o {
        width: clamp(30px, 5vw, 48px);
        height: clamp(38px, 6vw, 60px);
    }
    
    .dashboard-logo .logo-gym {
        font-size: clamp(1.4rem, 3vw, 2.4rem);
    }
    
    .clock-time {
        font-size: clamp(3.5rem, 14vw, 8rem);
    }
}

/* Móviles grandes */
@media (max-width: 768px) {
    .dashboard-container {
        padding: 0.8rem 1rem;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: center;
        gap: 0.4rem;
        padding-bottom: 0.6rem;
    }
    
    .dashboard-logo .logo-p,
    .dashboard-logo .logo-wer {
        font-size: clamp(2rem, 5vw, 2.8rem);
    }
    
    .dashboard-logo .logo-o {
        width: clamp(32px, 6vw, 44px);
        height: clamp(40px, 7vw, 54px);
    }
    
    .dashboard-logo .logo-gym {
        font-size: clamp(1.4rem, 4vw, 2.2rem);
    }
    
    .clock-time {
        font-size: clamp(3.5rem, 14vw, 6rem);
    }
    
    .clock-date {
        font-size: clamp(0.8rem, 2vw, 1.4rem);
    }
    
    .dashboard-weather {
        width: 100%;
        justify-content: center;
        padding: 0.3rem 0.8rem;
    }
    
    .weather-details {
        flex-direction: row;
        align-items: center;
        gap: 0.8rem;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        padding-left: 0;
        padding-top: 0.2rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .weather-details .weather-condition {
        font-size: 0.7rem;
    }
    
    .weather-details .weather-humidity {
        font-size: 0.6rem;
    }
    
    .weather-details .weather-location {
        font-size: 0.55rem;
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    .dashboard-container {
        padding: 0.5rem;
    }
    
    .dashboard-header {
        gap: 0.3rem;
        padding-bottom: 0.4rem;
    }
    
    .dashboard-logo .logo-p,
    .dashboard-logo .logo-wer {
        font-size: clamp(1.6rem, 5vw, 2.2rem);
    }
    
    .dashboard-logo .logo-o {
        width: clamp(26px, 5vw, 36px);
        height: clamp(32px, 6vw, 44px);
    }
    
    .dashboard-logo .logo-gym {
        font-size: clamp(1.2rem, 3.5vw, 1.8rem);
    }
    
    .clock-time {
        font-size: clamp(2.8rem, 12vw, 4.5rem);
    }
    
    .clock-date {
        font-size: clamp(0.65rem, 1.8vw, 1rem);
    }
    
    .dashboard-weather {
        flex-wrap: wrap;
        justify-content: center;
        padding: 0.2rem 0.6rem;
        gap: 0.3rem;
    }
    
    .weather-main {
        gap: 0.2rem;
    }
    
    .weather-details {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
        border-left: none;
        padding-left: 0;
        padding-top: 0.1rem;
    }
    
    .weather-details .weather-condition {
        font-size: 0.6rem;
    }
    
    .weather-details .weather-humidity {
        font-size: 0.55rem;
    }
    
    .weather-details .weather-location {
        font-size: 0.5rem;
    }
    
    .message-section {
        padding: 0.25rem 0.6rem;
        max-width: 95%;
    }
    
    .message-section .message-text {
        font-size: 0.75rem;
    }
    
    .message-section .message-icon {
        font-size: 0.8rem;
    }
    
    .ticker-track {
        font-size: 0.6rem;
        animation-duration: 18s;
        letter-spacing: 1px;
    }
}

/* Móviles muy pequeños (< 360px) */
@media (max-width: 360px) {
    .dashboard-container {
        padding: 0.3rem;
    }
    
    .dashboard-logo .logo-p,
    .dashboard-logo .logo-wer {
        font-size: clamp(1.2rem, 4.5vw, 1.6rem);
    }
    
    .dashboard-logo .logo-o {
        width: clamp(20px, 4.5vw, 28px);
        height: clamp(26px, 5.5vw, 34px);
    }
    
    .dashboard-logo .logo-gym {
        font-size: clamp(1rem, 3vw, 1.4rem);
    }
    
    .clock-time {
        font-size: clamp(2.2rem, 10vw, 3.5rem);
    }
    
    .clock-date {
        font-size: clamp(0.5rem, 1.5vw, 0.8rem);
    }
    
    .dashboard-weather {
        padding: 0.15rem 0.4rem;
        border-radius: 8px;
    }
    
    .weather-main .weather-icon {
        font-size: 1rem;
    }
    
    .weather-main .weather-temp {
        font-size: 0.9rem;
    }
    
    .weather-details .weather-condition {
        font-size: 0.5rem;
    }
    
    .weather-details .weather-humidity {
        font-size: 0.45rem;
    }
    
    .weather-details .weather-location {
        font-size: 0.4rem;
    }
    
    .message-section {
        padding: 0.15rem 0.4rem;
        border-radius: 8px;
    }
    
    .message-section .message-text {
        font-size: 0.65rem;
    }
    
    .message-section .message-icon {
        font-size: 0.7rem;
    }
    
    .ticker-track {
        font-size: 0.5rem;
        animation-duration: 15s;
        letter-spacing: 0.5px;
    }
}

/* Pantallas muy grandes (> 1920px) */
@media (min-width: 1920px) {
    .dashboard-container {
        padding: 3rem 5rem;
    }
    
    .dashboard-logo .logo-p,
    .dashboard-logo .logo-wer {
        font-size: 5rem;
    }
    
    .dashboard-logo .logo-o {
        width: 80px;
        height: 96px;
    }
    
    .dashboard-logo .logo-gym {
        font-size: 4rem;
    }
    
    .clock-time {
        font-size: 14rem;
        letter-spacing: 8px;
    }
    
    .clock-date {
        font-size: 2.4rem;
        letter-spacing: 6px;
    }
    
    .weather-main .weather-icon {
        font-size: 2.8rem;
    }
    
    .weather-main .weather-temp {
        font-size: 2.4rem;
    }
    
    .message-section .message-text {
        font-size: 1.8rem;
    }
    
    .ticker-track {
        font-size: 1.4rem;
        animation-duration: 35s;
    }
}

/* Pantallas horizontales en móviles */
@media (max-height: 500px) and (orientation: landscape) {
    .dashboard-container {
        padding: 0.4rem 1rem;
    }
    
    .dashboard-header {
        padding-bottom: 0.3rem;
        gap: 0.2rem;
    }
    
    .dashboard-logo .logo-p,
    .dashboard-logo .logo-wer {
        font-size: clamp(1.2rem, 3vw, 1.8rem);
    }
    
    .dashboard-logo .logo-o {
        width: clamp(20px, 3.5vw, 32px);
        height: clamp(26px, 4.2vw, 38px);
    }
    
    .dashboard-logo .logo-gym {
        font-size: clamp(1rem, 2.5vw, 1.6rem);
    }
    
    .dashboard-weather {
        padding: 0.15rem 0.6rem;
        gap: 0.3rem;
    }
    
    .weather-main .weather-icon {
        font-size: 1.2rem;
    }
    
    .weather-main .weather-temp {
        font-size: 1rem;
    }
    
    .weather-details .weather-condition {
        font-size: 0.55rem;
    }
    
    .weather-details .weather-humidity {
        font-size: 0.5rem;
    }
    
    .weather-details .weather-location {
        font-size: 0.45rem;
    }
    
    .clock-time {
        font-size: clamp(2.5rem, 8vw, 4rem);
        letter-spacing: 1px;
    }
    
    .clock-date {
        font-size: clamp(0.5rem, 1.2vw, 0.8rem);
        letter-spacing: 1px;
    }
    
    .message-section {
        padding: 0.15rem 0.6rem;
    }
    
    .message-section .message-text {
        font-size: 0.6rem;
    }
    
    .message-section .message-icon {
        font-size: 0.7rem;
    }
    
    .dashboard-ticker {
        padding: 0.2rem 0;
    }
    
    .ticker-track {
        font-size: 0.5rem;
        animation-duration: 12s;
    }
}

/* ============================================================
   ACCESIBILIDAD - Reducir movimiento
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .ticker-track {
        animation: none !important;
        transform: none !important;
    }
}

/* ============================================================
   SOPORTE PARA PANTALLAS CON MUELLES (NOTCH)
   ============================================================ */
@supports (padding: env(safe-area-inset-top)) {
    #view-container {
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
}

/* ============================================================
   ESTADO DE CARGA PARA VISTAS
   ============================================================ */
.view-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 200px;
}

.view-loading .spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(251, 191, 36, 0.1);
    border-top-color: #fbbf24;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================================
   POWER LOGO - TRUE FOCUS STYLE v2.0
   ============================================================ */

.power-logo-true-focus {
    position: relative;
    display: flex;
    gap: 0.15em;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    outline: none;
    user-select: none;
    padding: 0.5em 0.5em 0.5em 0.5em;
}

.power-logo-true-focus .focus-word {
    position: relative;
    cursor: default;
    user-select: none;
    transition: filter 0.5s ease, opacity 0.5s ease;
    line-height: 1.1;
}

.power-logo-true-focus .focus-word[data-index="0"] {
    color: #fbbf24;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 0.04em;
}

.power-logo-true-focus .focus-word[data-index="1"] {
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    letter-spacing: 0.15em;
}

.power-logo-true-focus .focus-frame {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    box-sizing: content-box;
    border: none;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
    z-index: 10;
}

.power-logo-true-focus .focus-frame .corner {
    position: absolute;
    width: clamp(0.6rem, 1.2vw, 1.2rem);
    height: clamp(0.6rem, 1.2vw, 1.2rem);
    border: 3px solid #fbbf24;
    filter: drop-shadow(0px 0px 8px rgba(251, 191, 36, 0.6));
    border-radius: 2px;
    transition: all 0.5s ease;
}

.power-logo-true-focus .focus-frame .corner.top-left {
    top: -6px;
    left: -6px;
    border-right: none;
    border-bottom: none;
}

.power-logo-true-focus .focus-frame .corner.top-right {
    top: -6px;
    right: -6px;
    border-left: none;
    border-bottom: none;
}

.power-logo-true-focus .focus-frame .corner.bottom-left {
    bottom: -6px;
    left: -6px;
    border-right: none;
    border-top: none;
}

.power-logo-true-focus .focus-frame .corner.bottom-right {
    bottom: -6px;
    right: -6px;
    border-left: none;
    border-top: none;
}

/* Responsive - ajustes para el logo True Focus */
@media (max-width: 768px) {
    .power-logo-true-focus {
        gap: 0.1em;
        padding: 0.3em 0.3em 0.3em 0.3em;
    }
    
    .power-logo-true-focus .focus-frame .corner {
        width: clamp(0.4rem, 1vw, 0.8rem);
        height: clamp(0.4rem, 1vw, 0.8rem);
        border-width: 2px;
    }
    
    .power-logo-true-focus .focus-frame .corner.top-left,
    .power-logo-true-focus .focus-frame .corner.top-right {
        top: -4px;
    }
    
    .power-logo-true-focus .focus-frame .corner.bottom-left,
    .power-logo-true-focus .focus-frame .corner.bottom-right {
        bottom: -4px;
    }
    
    .power-logo-true-focus .focus-frame .corner.top-left,
    .power-logo-true-focus .focus-frame .corner.bottom-left {
        left: -4px;
    }
    
    .power-logo-true-focus .focus-frame .corner.top-right,
    .power-logo-true-focus .focus-frame .corner.bottom-right {
        right: -4px;
    }
}

@media (max-width: 480px) {
    .power-logo-true-focus {
        gap: 0.05em;
        padding: 0.2em 0.2em 0.2em 0.2em;
    }
    
    .power-logo-true-focus .focus-frame .corner {
        width: clamp(0.3rem, 0.8vw, 0.6rem);
        height: clamp(0.3rem, 0.8vw, 0.6rem);
        border-width: 2px;
    }
    
    .power-logo-true-focus .focus-frame .corner.top-left,
    .power-logo-true-focus .focus-frame .corner.top-right {
        top: -3px;
    }
    
    .power-logo-true-focus .focus-frame .corner.bottom-left,
    .power-logo-true-focus .focus-frame .corner.bottom-right {
        bottom: -3px;
    }
    
    .power-logo-true-focus .focus-frame .corner.top-left,
    .power-logo-true-focus .focus-frame .corner.bottom-left {
        left: -3px;
    }
    
    .power-logo-true-focus .focus-frame .corner.top-right,
    .power-logo-true-focus .focus-frame .corner.bottom-right {
        right: -3px;
    }
}

/* Reducir movimiento para True Focus */
@media (prefers-reduced-motion: reduce) {
    .power-logo-true-focus .focus-word,
    .power-logo-true-focus .focus-frame,
    .power-logo-true-focus .focus-frame .corner {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* ============================================================
   TEAM GALLERY v3.0 - ESTILOS 3D CON EFECTO DE COSTADO
   ============================================================ */

/* Contenedor principal */
.team-gallery-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    padding: 2rem;
    background: #0a0a0a;
    position: relative;
    z-index: 2;
    transition: opacity 0.3s ease;
}

/* Foto 3D - contenedor con perspectiva */
.tg-photo-3d {
    flex-shrink: 0;
    width: 35%;
    aspect-ratio: 1;
    perspective: 1200px;
    cursor: default;
    position: relative;
}

/* Inner de la foto - donde se aplica la transformación 3D */
.tg-photo-inner {
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.8),
        0 0 40px rgba(0, 0, 0, 0.4),
        inset 0 0 60px rgba(0, 0, 0, 0.2);
    will-change: transform;
    /* ✅ La transformación se aplica desde JS ahora */
}

/* Imagen dentro del contenedor 3D */
.tg-photo-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 16px;
    transform: translateZ(20px);
    will-change: transform;
}

/* Efecto de brillo sutil en la foto */
.tg-photo-inner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    background: linear-gradient(
        135deg,
        rgba(251, 191, 36, 0.05) 0%,
        transparent 40%,
        transparent 60%,
        rgba(251, 191, 36, 0.03) 100%
    );
    pointer-events: none;
    z-index: 1;
}

/* Borde sutil */
.tg-photo-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    pointer-events: none;
    z-index: 2;
}

/* Badge de rol */
#tg-role-badge {
    display: inline-block;
    padding: 0.2rem 1.2rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    width: fit-content;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

/* Quote con comillas */
#tg-quote {
    font-size: 1.3rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
    padding: 0.75rem 0;
    border-top: 1px solid rgba(251, 191, 36, 0.06);
    border-bottom: 1px solid rgba(251, 191, 36, 0.06);
    line-height: 1.6;
    font-weight: 300;
}

#tg-quote .quote-mark {
    color: #fbbf24;
    opacity: 0.5;
    font-size: 1.6rem;
    font-style: normal;
}

/* Dots indicadores */
#tg-dots {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
    margin-top: 0.5rem;
    padding: 0.5rem 0;
}

.tg-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.tg-dot:hover {
    background: rgba(251, 191, 36, 0.3);
    transform: scale(1.15);
}

.tg-dot.active {
    background: #fbbf24;
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.4), 0 0 60px rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.3);
}

/* Nombre en Bebas Neue */
#tg-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 4rem;
    line-height: 1;
    color: #fbbf24;
    letter-spacing: 0.02em;
    text-shadow: 0 0 40px rgba(251, 191, 36, 0.15);
}

/* ============================================================
   RESPONSIVE - TEAM GALLERY v3.0
   ============================================================ */

/* Tablets */
@media (max-width: 1024px) {
    .team-gallery-wrapper {
        gap: 2.5rem;
        padding: 1.5rem;
    }
    
    .tg-photo-3d {
        width: 40%;
    }
    
    #tg-name {
        font-size: 3.2rem;
    }
    
    #tg-quote {
        font-size: 1.1rem;
    }
}

/* Móviles grandes */
@media (max-width: 768px) {
    .team-gallery-wrapper {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1rem;
        justify-content: center;
    }
    
    .tg-photo-3d {
        width: 55%;
        max-width: 300px;
    }
    
    .tg-info {
        max-width: 90% !important;
        text-align: center;
        align-items: center;
    }
    
    #tg-name {
        font-size: 2.8rem;
    }
    
    #tg-role-badge {
        font-size: 0.8rem;
        padding: 0.15rem 1rem;
    }
    
    #tg-quote {
        font-size: 1rem;
        padding: 0.5rem 0;
    }
    
    #tg-dots {
        justify-content: center;
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    .team-gallery-wrapper {
        gap: 1rem;
        padding: 0.75rem;
    }
    
    .tg-photo-3d {
        width: 65%;
        max-width: 220px;
    }
    
    .tg-photo-inner {
        border-radius: 12px;
    }
    
    .tg-photo-inner img {
        border-radius: 12px;
    }
    
    #tg-name {
        font-size: 2rem;
    }
    
    #tg-role-badge {
        font-size: 0.65rem;
        padding: 0.1rem 0.8rem;
        border-radius: 14px;
    }
    
    #tg-quote {
        font-size: 0.85rem;
        padding: 0.4rem 0;
    }
    
    #tg-quote .quote-mark {
        font-size: 1.2rem;
    }
    
    .tg-dot {
        width: 10px;
        height: 10px;
        gap: 8px;
    }
}

/* Móviles muy pequeños */
@media (max-width: 360px) {
    .team-gallery-wrapper {
        gap: 0.75rem;
        padding: 0.5rem;
    }
    
    .tg-photo-3d {
        width: 70%;
        max-width: 180px;
    }
    
    #tg-name {
        font-size: 1.6rem;
    }
    
    #tg-role-badge {
        font-size: 0.55rem;
        padding: 0.1rem 0.6rem;
    }
    
    #tg-quote {
        font-size: 0.75rem;
        padding: 0.3rem 0;
    }
    
    #tg-quote .quote-mark {
        font-size: 1rem;
    }
    
    .tg-dot {
        width: 8px;
        height: 8px;
        gap: 6px;
    }
}

/* Pantallas muy grandes */
@media (min-width: 1920px) {
    #tg-name {
        font-size: 5.5rem;
    }
    
    #tg-role-badge {
        font-size: 1.2rem;
        padding: 0.3rem 1.6rem;
    }
    
    #tg-quote {
        font-size: 1.6rem;
    }
    
    .tg-photo-3d {
        width: 30%;
    }
}

/* Pantallas horizontales en móviles */
@media (max-height: 500px) and (orientation: landscape) {
    .team-gallery-wrapper {
        flex-direction: row;
        gap: 1.5rem;
        padding: 0.5rem 1.5rem;
    }
    
    .tg-photo-3d {
        width: 25%;
        max-width: 180px;
        max-height: 180px;
    }
    
    .tg-info {
        max-width: 65% !important;
        text-align: left;
        align-items: flex-start;
    }
    
    #tg-name {
        font-size: 2rem;
    }
    
    #tg-role-badge {
        font-size: 0.6rem;
        padding: 0.1rem 0.8rem;
    }
    
    #tg-quote {
        font-size: 0.8rem;
        padding: 0.3rem 0;
    }
    
    #tg-dots {
        justify-content: flex-start;
    }
}

/* ============================================================
   FIN DE ESTILOS - v2.5
   ============================================================ */