/* General Body & HTML */
:root {
    --bg-dark: #0a0a0a;
    --bg-card: #161616;
    --accent: #e5e4e2; /* Gris Hueso */
    --detail-red: #b30000; /* Rojo Detalle */
    --text-main: #e0e0e0;
    --text-muted: #a0a0a0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    max-width: 100%;
}


body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Quitar color azul por defecto del navegador en todos los enlaces */
a {
    color: inherit;
    text-decoration: none;
}

h1, h2, h3 { /* .logo removed as it's an image now */
    font-family: 'Playfair Display', serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 3px 3px 4px var(--detail-red);
}

header {
    padding: 0.75rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(5px);
    /* overflow: visible para que el menú desplegable móvil pueda mostrarse */
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 60px; /* Altura fija de la barra de navegación */
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-left: auto;
}

.logo {
    position: absolute;
    left: 5%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
    display: flex;
    align-items: center;
}

.logo img {
    max-height: 50px; /* Contenido dentro de la barra de 60px */
    width: auto;
    display: block;
    object-fit: contain;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 1.5rem;
}

.nav-links li a {
    text-decoration: none;
    color: var(--text-main);
    transition: color 0.3s;
    font-size: 0.9rem;
}

.nav-links li a:hover {
    color: var(--detail-red);
}

.social-links {
    display: flex;
    gap: 1.2rem;
    border-left: 1px solid #333;
    padding-left: 1.2rem;
}

.social-links a {
    color: var(--text-main);
    font-size: 1.2rem;
    transition: color 0.3s, transform 0.3s;
}

.social-links a:hover {
    color: var(--detail-red);
    transform: translateY(-2px);
}

.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1598371839696-5c5bb00bdc28?auto=format&fit=crop&q=80') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: slideInLeft 1.2s ease-out forwards;
}

.hero p, .hero .btn-primary {
    animation: slideInRight 1.2s ease-out forwards;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--accent);
    color: #000;
    text-decoration: none;
    font-weight: bold;
    margin-top: 2rem;
    border-radius: 50px; /* Esquinas redondeadas */
    transition: transform 0.3s, background-color 0.3s, color 0.3s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    background-color: var(--detail-red);
    color: #fff;
}

.section {
    padding: 100px 10%;
}

.section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--accent);
}

.dark-bg {
    background-color: var(--bg-card);
}

.artists-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    justify-content: center;
}

.artist-card {
    background: var(--bg-dark);
    padding: 30px;
    text-align: center;
    border: 1px solid #222;
    border-radius: 20px;
    transition: border-color 0.3s, transform 0.3s;
}

.artist-card:hover {
    border-color: var(--detail-red);
    transform: translateY(-5px);
}

.artist-img {
    width: 180px;
    height: 180px;
    background: #333 url('https://images.unsplash.com/photo-1598371839696-5c5bb00bdc28?auto=format&fit=crop&q=80');
    border-radius: 50%;
    margin: 0 auto 20px;
    background-size: cover;
    background-position: center;
}

.grid-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.work-item {
    height: 350px;
    background-size: cover;
    background-position: center;
    filter: grayscale(100%);
    border-radius: 20px;
    transition: filter 0.5s, transform 0.5s;
}

.work-item:hover {
    filter: grayscale(0%);
    transform: scale(1.02);
}

#contact-form input, #contact-form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    background: var(--bg-card);
    border: 1px solid #333;
    color: white;
}

.contact-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.info p {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.info p i {
    color: #fff;
    margin-right: 10px;
}

/* Estilos Widget Reseñas */
.reviews-widget {
    display: block;
    background: var(--bg-card);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid #222;
    text-align: center;
    text-decoration: none;
    min-width: 280px;
    transition: border-color 0.3s;
}

.reviews-widget:hover {
    border-color: var(--detail-red);
}

.reviews-widget .score {
    font-size: 3rem;
    font-weight: bold;
    color: var(--accent);
    display: block;
    line-height: 1;
}

.reviews-widget .stars {
    color: #ffc107;
    margin: 10px 0;
    font-size: 1.2rem;
}

.btn-review {
    display: inline-block;
    margin-top: 15px;
    color: var(--text-muted);
    text-decoration: underline;
    font-size: 0.8rem;
    transition: color 0.3s;
}

.btn-review:hover {
    color: var(--detail-red);
}

footer {
    text-align: center;
    padding: 40px;
    border-top: 1px solid #1a1a1a;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Estilos para Galerías de Selección (Tatuajes y Piercings) */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.content-card {
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: flex-end;
}

.content-card:hover {
    transform: translateY(-10px);
}

.content-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: grayscale(40%) brightness(70%);
    transition: filter 0.3s ease;
}

.content-card:hover img {
    filter: grayscale(0%) brightness(90%);
}

.content-info {
    position: relative;
    z-index: 2;
    padding: 2rem;
    width: 100%;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    color: white;
}

/* Variación para Instalaciones: Imagen más grande y texto debajo */
.content-card.card-details {
    flex-direction: column;
    height: auto;
    align-items: stretch;
}

.content-card.card-details img {
    position: relative;
    height: 480px; /* Aumentado de los 400px originales para que luzcan más grandes */
}

.content-card.card-details .content-info {
    position: static;
    background: none;
}

/* Animación para títulos de entrada */
.animate-title {
    animation: appear 1.2s ease-out forwards;
    opacity: 0;
}

@keyframes slideInLeft {
    0% { opacity: 0; transform: translateX(-100px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    0% { opacity: 0; transform: translateX(100px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes appear {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .menu-toggle { display: block; }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 10, 0.95);
        padding: 20px;
        text-align: center;
        border-bottom: 1px solid #333;
    }
    .nav-links.active { display: flex; }
    .nav-links li { margin: 15px 0; }
    .social-links { 
        border-left: none;
        padding-left: 0;
    }
    .section { padding: 60px 5%; }
    
    .contact-wrapper {
        flex-direction: column-reverse; /* Esto pone el widget arriba en móvil */
        gap: 2rem;
    }
}

/* Estilos específicos para la página de perfil de Jhon */
body.profile-page {
    background-color: #000;
    margin: 0;
    color: white;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.profile-main {
    padding: 0; /* Remove padding for full-bleed image */
    display: block;
    background-color: #000;
    margin-top: 80px; /* Espacio para el header fijo de 80px */
    width: 100%;
}

.full-hero-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Promo Modal Styles */
.promo-modal {
    display: none; /* Hidden by default, JavaScript will change this */
    position: fixed; /* Stay in place */
    z-index: 2000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.8); /* Black w/ opacity */
    backdrop-filter: blur(5px); /* Optional: blur background */
    display: flex; /* Use flexbox for centering content */
    align-items: center; /* Center vertically */
    justify-content: center; /* Center horizontally */
}

.promo-modal-content {
    background-color: var(--bg-card);
    margin: auto; /* Auto margins for centering with flexbox */
    padding: 40px;
    border: 1px solid var(--detail-red);
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    animation: fadeIn 0.5s ease-out; /* Animation for appearance */
}

.promo-modal-content h3 {
    color: var(--accent);
    margin-bottom: 20px;
    font-size: 2rem;
}

.promo-modal-content p {
    margin-bottom: 30px;
    font-size: 1.1rem;
    color: var(--text-main);
}

.promo-modal-content .btn-primary {
    background-color: var(--detail-red);
    color: #fff;
    padding: 12px 25px;
    font-size: 1rem;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.promo-modal-content .btn-primary:hover {
    background-color: #ff3333;
}

.close-button {
    color: var(--text-muted);
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-button:hover,
.close-button:focus {
    color: var(--detail-red);
    text-decoration: none;
}

/* Keyframe for fade-in animation */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* Responsive adjustments for modal */
@media (max-width: 768px) {
    .promo-modal-content {
        padding: 30px 20px;
        width: 95%;
    }
    .promo-modal-content h3 {
        font-size: 1.5rem;
    }
    .promo-modal-content p {
        font-size: 1rem;
    }
    .close-button {
        font-size: 30px;
        top: 10px;
        right: 20px;
    }
}

/* Bio Section for Jhon Profile */
.bio-section {
    padding: 100px 10%;
    background-color: #000;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden; /* Avoid side scrollbars during animations */
}

.bio-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 60px;
    color: var(--accent);
    text-shadow: 2px 2px 8px var(--detail-red);
}

.bio-content {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.bio-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid #1a1a1a;
    padding: 35px 40px;
    border-radius: 12px;
    max-width: 75%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.bio-card:hover {
    border-color: var(--detail-red);
    transform: translateY(-5px);
}

.bio-card.left {
    align-self: flex-start;
}

.bio-card.right {
    align-self: flex-end;
    text-align: right;
}

.bio-card p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-main);
    font-weight: 300;
}

/* Decorative vertical bar on the side of each card */
.bio-card .bio-decor {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: var(--detail-red);
    border-radius: 4px;
}

.bio-card.left .bio-decor {
    left: 0;
    background-color: var(--detail-red);
}

.bio-card.right .bio-decor {
    right: 0;
    background-color: var(--accent);
}

/* Scroll Animation classes */
.scroll-animate {
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1), 
                transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.bio-title.scroll-animate {
    transform: translateY(50px);
}

.bio-card.left.scroll-animate {
    transform: translateX(-120px);
}

.bio-card.right.scroll-animate {
    transform: translateX(120px);
}

/* Active animation state triggered by JS */
.scroll-animate.visible {
    opacity: 1;
    transform: translate(0) !important;
}

/* Responsive adjustments for Bio Section */
@media (max-width: 768px) {
    .bio-section {
        padding: 60px 5%;
    }
    
    .bio-title {
        font-size: 2.2rem;
        margin-bottom: 40px;
    }
    
    .bio-card {
        max-width: 100%;
        padding: 25px 30px;
    }
    
    .bio-card.right {
        text-align: left;
    }

    .bio-card.left.scroll-animate {
        transform: translateX(-50px);
    }

    .bio-card.right.scroll-animate {
        transform: translateX(50px);
    }
}

/* ==========================================
   GALERÍA ESTILO INSTAGRAM
   ========================================== */
.instagram-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columnas siempre */
    gap: 8px; /* Espaciado pequeño elegante */
    max-width: 935px;
    margin: 40px auto;
    padding: 0 10px;
}

.instagram-item {
    position: relative;
    aspect-ratio: 1 / 1; /* Formato cuadrado perfecto */
    overflow: hidden;
    cursor: pointer;
    background-color: #000;
    border-radius: 4px; /* Bordes sutilmente redondeados para verse premium */
}

.instagram-item img,
.instagram-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.5s cubic-bezier(0.25, 1, 0.5, 1), transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    display: block;
}

/* Efecto hover en ordenadores */
@media (hover: hover) {
    .instagram-item:hover img,
    .instagram-item:hover video {
        filter: grayscale(0%);
        transform: scale(1.04);
    }
}

/* Clase de color forzada mediante toque (móviles/interacción) */
.instagram-item.color-mode img,
.instagram-item.color-mode video {
    filter: grayscale(0%) !important;
    transform: scale(1.04);
}

/* Indicador de video en la esquina */
.instagram-item .video-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    z-index: 2;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
    pointer-events: none;
    transition: opacity 0.3s;
}

/* Ocultar el icono al reproducir/hover */
.instagram-item:hover .video-icon,
.instagram-item.color-mode .video-icon {
    opacity: 0.5;
}

@media (max-width: 768px) {
    .instagram-grid {
        gap: 3px; /* Espaciado aún más ajustado en móvil para imitar a Instagram */
        padding: 0;
        margin: 20px auto;
    }
    
    .instagram-item {
        border-radius: 0; /* Sin bordes redondeados en móvil, igual que la app */
    }
}

/* Etiqueta de Últimos Trabajos / Nuevo */
.latest-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background-color: var(--detail-red);
    color: #fff;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 3;
    pointer-events: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    font-family: 'Roboto', sans-serif;
    transition: transform 0.3s ease;
}

.instagram-item:hover .latest-badge,
.instagram-item.color-mode .latest-badge {
    transform: scale(1.05);
}
/* ============================================================
   LOGIN PAGE
   ============================================================ */
.login-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 60px;
}

.login-card {
    background: var(--bg-card);
    border: 1px solid #222;
    border-radius: 20px;
    padding: 50px 40px;
    width: 100%;
    max-width: 440px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.login-logo {
    margin-bottom: 24px;
}

.login-logo img {
    max-height: 60px;
    width: auto;
    object-fit: contain;
}

.login-title {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 12px;
}

.login-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 28px;
}

.login-subtitle strong {
    color: var(--accent);
}

.login-benefits {
    background: rgba(179,0,0,0.08);
    border: 1px solid rgba(179,0,0,0.2);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 32px;
    text-align: left;
}

.benefit-item {
    color: var(--text-main);
    font-size: 0.88rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.benefit-item:last-child { margin-bottom: 0; }

.benefit-item i {
    color: var(--detail-red);
    width: 16px;
    text-align: center;
}

.login-buttons {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
}

.btn-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 20px;
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
    font-family: 'Roboto', sans-serif;
}

.btn-login:hover { transform: translateY(-2px); opacity: 0.92; }

.btn-google {
    background: #fff;
    color: #3c4043;
}

.btn-facebook {
    background: #1877f2;
    color: #fff;
}

.login-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.login-icon-fa {
    font-size: 1.1rem;
}

.login-legal {
    color: var(--text-muted);
    font-size: 0.78rem;
    margin-bottom: 0;
}

.login-legal a {
    color: var(--text-muted);
    text-decoration: underline;
}

.login-error {
    background: rgba(179,0,0,0.15);
    border: 1px solid var(--detail-red);
    color: #ff6b6b;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.85rem;
    margin-top: 16px;
}

/* ============================================================
   NAV: BOTÓN CUENTA
   ============================================================ */
.account-btn-wrapper {
    position: relative;
}

.btn-account {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.88rem;
    padding: 6px 14px;
    border: 1px solid #333;
    border-radius: 50px;
    transition: border-color 0.3s, color 0.3s;
    white-space: nowrap;
}

.btn-account:hover {
    border-color: var(--detail-red);
    color: var(--accent);
}

.btn-account i { font-size: 1rem; }

.account-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--bg-card);
    border: 1px solid #333;
    border-radius: 12px;
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 2000;
    overflow: hidden;
}

.account-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid #222;
}

.account-info img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.account-info span {
    font-size: 0.85rem;
    color: var(--text-main);
    font-weight: 400;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.88rem;
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    font-family: 'Roboto', sans-serif;
}

.dropdown-item:hover { background: rgba(255,255,255,0.05); }

.dropdown-logout { color: #ff6b6b; }
.dropdown-logout:hover { background: rgba(179,0,0,0.1); }

/* ============================================================
   RULETA PAGE
   ============================================================ */
.ruleta-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 120px 20px 80px;
}

.ruleta-estado {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    color: var(--text-muted);
    margin-top: 60px;
}

.ruleta-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.ruleta-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--detail-red);
    display: none;
}

.ruleta-title {
    font-size: 2.2rem;
    color: var(--accent);
    margin-bottom: 6px;
}

.ruleta-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
}

.cooldown-box {
    background: rgba(179,0,0,0.1);
    border: 1px solid rgba(179,0,0,0.3);
    border-radius: 14px;
    padding: 20px 30px;
    margin-bottom: 28px;
    color: var(--text-main);
    font-size: 0.95rem;
    line-height: 1.8;
    text-align: center;
}

.cooldown-box i {
    font-size: 2rem;
    color: var(--detail-red);
    display: block;
    margin-bottom: 8px;
}

.ruleta-wrapper {
    position: relative;
    display: inline-block;
    margin: 20px auto;
}

.ruleta-pointer {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: var(--accent);
    z-index: 5;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

#ruleta-canvas {
    border-radius: 50%;
    box-shadow: 0 0 40px rgba(179,0,0,0.3), 0 0 0 4px var(--detail-red);
    display: block;
    max-width: 100%;
}

.btn-girar {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 28px auto;
    padding: 16px 42px;
    background: var(--detail-red);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    font-family: 'Playfair Display', serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: transform 0.2s, background 0.2s;
    box-shadow: 0 4px 20px rgba(179,0,0,0.4);
}

.btn-girar:hover:not(:disabled) {
    transform: translateY(-3px);
    background: #cc0000;
}

.btn-girar:disabled {
    cursor: not-allowed;
}

.resultado-box {
    background: var(--bg-card);
    border: 1px solid var(--detail-red);
    border-radius: 20px;
    padding: 36px 40px;
    max-width: 440px;
    margin: 0 auto 30px;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.resultado-emoji {
    font-size: 3.5rem;
    margin-bottom: 12px;
}

.resultado-box h3 {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 8px;
}

.resultado-aviso {
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--detail-red);
    font-weight: bold;
}

.resultado-proximo {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.historial-box {
    background: rgba(255,255,255,0.03);
    border: 1px solid #222;
    border-radius: 12px;
    padding: 16px 24px;
    max-width: 360px;
    margin: 0 auto 24px;
    text-align: center;
}

.historial-box h4 {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 400;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Roboto', sans-serif;
}

.historial-box p {
    color: var(--accent);
    font-size: 1.1rem;
    font-weight: bold;
}

.historial-fecha {
    color: var(--text-muted) !important;
    font-size: 0.8rem !important;
    font-weight: 400 !important;
    margin-top: 4px;
}

.btn-logout-ruleta {
    background: none;
    border: 1px solid #333;
    color: var(--text-muted);
    padding: 10px 22px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.85rem;
    font-family: 'Roboto', sans-serif;
    transition: border-color 0.3s, color 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.btn-logout-ruleta:hover {
    border-color: var(--detail-red);
    color: #ff6b6b;
}

/* Responsive login & ruleta */
@media (max-width: 768px) {
    .login-card { padding: 36px 24px; }
    .ruleta-title { font-size: 1.6rem; }
    #ruleta-canvas { width: 300px; height: 300px; }
    .resultado-box { padding: 28px 20px; }
    .btn-girar { padding: 14px 30px; font-size: 1rem; }
    .btn-account span { display: none; }
}

/* ── Mi cuenta en nav-links ── */
#nav-mi-cuenta {
    font-weight: bold;
}
#nav-mi-cuenta i {
    color: var(--detail-red);
    margin-right: 5px;
}
/* En movil: separador visual */
@media (max-width: 768px) {
    li:has(#nav-mi-cuenta) {
        border-top: 1px solid #333;
        padding-top: 8px;
        margin-top: 4px;
    }
}


/* =======================================================
   RESPONSIVE COMPLETO - MOBILE FIRST
   Breakpoints: 480px (small phone), 768px (tablet/phone)
   ======================================================= */

@media (max-width: 768px) {
    /* NAV - fix horizontal overflow + redes sociales */
    header {
        padding: 0 4%;
        width: 100%;
        max-width: 100vw;
    }
    nav {
        height: 58px;
        width: 100%;
        max-width: 100%;
    }
    .logo {
        flex-shrink: 0;
        max-width: 50%;
    }
    .logo img { max-height: 44px; }
    .nav-right {
        justify-content: flex-end;
        gap: 0;
        flex-shrink: 0;
        overflow: visible;
    }
    /* Ocultar iconos sociales del nav en móvil (se muestran en el menú desplegable) */
    .social-links { display: none; }
    /* Añadir iconos sociales al final del menú desplegable */
    .nav-links.active::after {
        content: '';
        display: block;
    }
    .menu-toggle { font-size: 1.3rem; padding: 10px; }
    .nav-links { z-index: 999; }
    .nav-links li a { font-size: 1rem; padding: 6px 0; display: block; }
    /* Redes sociales dentro del menú desplegable en móvil */
    .nav-links .social-links-mobile {
        display: flex;
        justify-content: center;
        gap: 28px;
        padding-top: 14px;
        margin-top: 8px;
        border-top: 1px solid #333;
    }
    .nav-links .social-links-mobile a {
        font-size: 1.4rem;
        color: var(--text-muted);
        transition: color 0.3s;
    }
    .nav-links .social-links-mobile a:hover { color: var(--accent); }

    /* HERO */
    .hero { min-height: 100svh; padding: 80px 6% 40px; }
    .hero h1 { font-size: clamp(1.8rem, 8vw, 2.4rem); letter-spacing: 1px; }
    .hero p { font-size: 1rem; }
    .btn-primary { padding: 13px 28px; font-size: 0.9rem; }

    /* GRIDS */
    .grid-gallery { grid-template-columns: repeat(2, 1fr); gap: 4px; }
    .work-item { min-height: 160px; }
    .instagram-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 4px !important; }
    .instagram-item { aspect-ratio: 1/1; }

    /* SECCIONES */
    .section { padding: 50px 5%; }
    .section h2 { font-size: 1.6rem; margin-bottom: 24px; }
    .artists-container { flex-direction: column; align-items: center; gap: 24px; }
    .artist-card { width: 100%; max-width: 300px; }
    .artist-img { height: 220px; }
    .contact-wrapper { flex-direction: column; gap: 24px; }
    .reviews-widget { width: 100%; }

    /* PERFIL JHON */
    .bio-section { padding: 90px 5% 40px; }
    .bio-title { font-size: 1.8rem; }
    .bio-content { flex-direction: column; gap: 24px; }
    .bio-image { width: 100%; max-width: 280px; margin: 0 auto; }
    .bio-text { text-align: center; }
    .artist-gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 4px; }

    /* PROMOCIONES */
    .promos-grid, .promociones-grid { grid-template-columns: 1fr; gap: 16px; }
    .promo-card { padding: 24px 16px; }

    /* LOGIN */
    .login-section { padding: 80px 14px 40px; min-height: 100svh; align-items: flex-start; }
    .login-card { padding: 30px 18px 26px; border-radius: 16px; width: 100%; max-width: 100%; }
    .login-logo img { max-height: 52px; }
    .login-title { font-size: 1.5rem; }
    .login-subtitle { font-size: 0.9rem; }
    .benefit-item { font-size: 0.85rem; }
    .btn-login { padding: 14px 20px; font-size: 0.95rem; width: 100%; justify-content: center; }

    /* MI CUENTA - PERFIL */
    .perfil-section { padding: 78px 10px 36px; }
    .perfil-banner { height: 88px; }
    .perfil-avatar, .perfil-avatar-placeholder { width: 86px; height: 86px; }
    .perfil-avatar-wrap { padding: 0 14px 20px; margin-top: -43px; }
    .perfil-nombre { font-size: 1.15rem; }
    .perfil-stats { gap: 20px; }
    .stat-num { font-size: 1.05rem; }

    /* MI CUENTA - RULETA */
    .ruleta-section-cuenta { padding: 40px 10px 50px; }
    .ruleta-section-cuenta h2 { font-size: 1.3rem; }
    #ruleta-canvas { width: 300px !important; height: 300px !important; }
    .btn-girar-cuenta { padding: 14px 32px; font-size: 1rem; }
    .resultado-cuenta { padding: 20px 16px; max-width: 100%; }

    /* FOOTER */
    footer { padding: 20px 5%; font-size: 0.8rem; text-align: center; line-height: 1.9; }
    footer a { display: inline-block; margin: 2px 4px; }

    /* POLÍTICA */
    .content-card { padding: 90px 5% 40px; font-size: 0.92rem; }
    .content-card h1 { font-size: 1.5rem; }
    .content-card h2 { font-size: 1.1rem; }

    /* GLOBAL */
    img, video, canvas { max-width: 100%; }
    h1 { font-size: clamp(1.6rem, 8vw, 2.5rem); }
    h2 { font-size: clamp(1.3rem, 6vw, 2rem); }
}

@media (max-width: 400px) {
    .grid-gallery { grid-template-columns: 1fr; }
    .work-item { min-height: 220px; }
    .instagram-grid { grid-template-columns: 1fr !important; }
    #ruleta-canvas { width: 260px !important; height: 260px !important; }
    .perfil-stats { gap: 14px; }
    .perfil-badge { font-size: 0.72rem; padding: 4px 12px; }
    .login-card { padding: 26px 14px 22px; }
    .btn-login { font-size: 0.88rem; }
}
/* ── Redes sociales en menú desplegable móvil ── */

/* En desktop: ocultar el li de redes dentro del nav */
.social-links-mobile {
    display: none;
}

/* En móvil: mostrar dentro del dropdown */
@media (max-width: 768px) {
    .social-links-mobile {
        display: flex !important;
        justify-content: center;
        align-items: center;
        gap: 32px;
        padding: 16px 0 4px;
        margin-top: 6px;
        border-top: 1px solid #2a2a2a;
        list-style: none;
    }
    .social-links-mobile a {
        font-size: 1.5rem;
        color: var(--text-muted);
        transition: color 0.3s, transform 0.2s;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
    }
    .social-links-mobile a:hover {
        color: var(--accent);
        transform: scale(1.15);
    }
    .social-links-mobile .fa-whatsapp  { color: #25d366; }
    .social-links-mobile .fa-instagram { color: #e1306c; }
    .social-links-mobile .fa-facebook  { color: #1877f2; }
}