* {
    -webkit-tap-highlight-color: transparent;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Outfit', sans-serif;
    color: #f4f4f5;
    background-image: url('fondo.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    -webkit-text-size-adjust: 100%;
}

/* En móvil, el fondo fijo causa problemas de renderizado en algunos navegadores */
@media (max-width: 768px) {
    body {
        background-attachment: scroll;
    }
}

.gold-gradient-text {
    background: linear-gradient(135deg, #fef08a 0%, #fbbf24 50%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gold-border {
    border: 2px solid rgba(251, 191, 36, 0.4);
}

.gold-glow {
    box-shadow: 0 0 25px rgba(251, 191, 36, 0.35);
}

.tab-btn.active {
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    color: #000000;
    font-weight: 800;
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.4);
}

/* Ocultar scrollbar pero mantener desplazamiento horizontal */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

/* Animación rotación 3D */
@keyframes spin3d {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

.animate-spin-3d {
    perspective: 1000px;
    animation: spin3d 6s linear infinite;
    transform-style: preserve-3d;
}

/* Videos: nunca más altos que el viewport en móvil */
video {
    max-width: 100%;
    display: block;
}

/* Ajustes finos para pantallas muy pequeñas (iPhone SE, etc.) */
@media (max-width: 380px) {
    .tab-btn {
        font-size: 10px !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .tab-btn i {
        font-size: 10px !important;
    }

    #contractAddress {
        font-size: 9px !important;
        line-height: 1.3 !important;
    }
}

/* Safe area para iPhone con notch (arriba y abajo) */
@supports (padding: max(0px)) {
    header {
        padding-top: env(safe-area-inset-top);
    }
    body {
        padding-bottom: env(safe-area-inset-bottom);
    }
}
