:root {
    --color-primary: #eeb914;    /* amarillo */
    --color-secondary: #3b9344;  /* verde */
    --color-dark: #000;
    --color-light: #fff;
    --color-bg: #0a0a0a;
    --color-bg-alt: #1a1a1a;
}

/* ================== INFORMACIÓN ====================== */
.artist-info { color: var(--color-light); }
.artist-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}
.artist-header h2 {
    margin: 0;
    font-size: 2rem;
    color: var(--color-primary);
}
.instagram-link {
    font-size: 1.5rem;
    color: var(--color-secondary);
    transition: color 0.3s;
}
.instagram-link:hover { color: #e1306c; }

/* ================== FILTROS ====================== */
.artist-styles { margin-bottom: 2rem; }
.style-filter-btn {
    display: inline-block;
    background: var(--color-secondary);
    color: var(--color-light);
    padding: 0.5rem 1rem;
    margin: 0.3rem;
    border-radius: 0.3rem;
    font-size: 1.05rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}
.style-filter-btn:hover {
    background: var(--color-primary);
    color: var(--color-dark);
    transform: translateY(-2px);
}
.style-filter-btn.active {
    background: var(--color-primary);
    color: var(--color-dark);
    border-color: var(--color-light);
}
/* Quitamos el estilo negro especial para el último botón */
.style-filter-btn.ubicacion-ultimo {
    background: var(--color-secondary);
    color: var(--color-light);
    font-weight: normal;
    border-color: transparent;
}

/* === BOTÓN DE PIERCING === */
/* Color especial para piercing */
.piercing-estilo {
    background-color: #e1306c;  /* rosa intenso de Instagram, por ejemplo */
    color: #fff;
    font-weight: bold;
    border: 2px solid #fff;
}
.piercing-estilo.active {
    background-color: #ff4d90;
    border-color: #fff;
}


/* ================== GALERÍA ====================== */
.artist-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, max-content));
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    transition: transform 0.3s;
    aspect-ratio: 3/4;
    max-width: 300px;
}
.gallery-item:hover { transform: scale(1.03); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.no-works {
    color: var(--color-light);
    text-align: center;
    width: 100%;
    padding: 2rem;
    grid-column: 1 / -1;
}

/* ================== ANIMACIÓN SUAVE ===================== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fadein { opacity: 0; animation: fadeUp 0.8s forwards; }
.artist-info > * { opacity: 0; animation: fadeUp 0.8s forwards; }
.artist-info > *:nth-child(1) { animation-delay: 0.2s; }
.artist-info > *:nth-child(2) { animation-delay: 0.4s; }
.artist-info > *:nth-child(3) { animation-delay: 0.6s; }

/* Fade-in suave de imágenes */
.gallery-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.gallery-item.loaded {
    opacity: 1;
    transform: translateY(0);
}
.skeleton {
    background-color: #222;
    border-radius: 5px;
    min-height: 200px;
    animation: pulse 1.5s infinite;
}
@keyframes pulse { 0% { opacity: 0.6; } 50% { opacity: 1; } 100% { opacity: 0.6; } }

/* ================== PAGINACIÓN ====================== */
.pagination-container { text-align: center; margin-top: 2rem; }
.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.3rem; }
.page-link {
    background-color: var(--color-dark);
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    padding: 0.5rem 1rem;
    border-radius: 0.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-block;
}
.page-link:hover {
    background-color: var(--color-primary);
    color: var(--color-dark);
    transform: translateY(-2px);
}
.page-item.active .page-link {
    background-color: var(--color-primary);
    color: var(--color-dark);
}
.page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ================== LOADING ====================== */
.loading { opacity: 0.6; pointer-events: none; transition: opacity 0.3s ease; }
.loading-spinner { display: none; text-align: center; padding: 2rem; color: var(--color-primary); }
.loading-spinner.active { display: block; }

/* ================== MODAL ====================== */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    position: relative;
    max-width: 80vw;   /* antes 90% */
    max-height: 85vh;  /* antes 90% */
    display: flex;
    justify-content: center;
    align-items: center;
    animation: modalZoomIn 0.3s ease;
    padding: 2rem 0;   /* 🔹 Añadido: da margen vertical para que no se pegue */
}

@keyframes modalZoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-image-container {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-image {
    max-width: 70vw;   /* 🔹 Limitamos el ancho en escritorio */
    max-height: 80vh;  /* 🔹 Evitamos que toque los bordes */
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
    border: 2px solid var(--color-primary);
}

/* ✅ Responsive móvil */
@media (max-width: 768px) {
    .modal-image {
        max-width: 90vw;
        max-height: 80vh;
    }
}

.modal-close,
.modal-nav {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    font-size: 2.5rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    z-index: 10000;
}

.modal-close {
    position: fixed;
    top: 20px;
    right: 25px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
}

.modal-close:hover {
    background: var(--color-primary);
    color: var(--color-dark);
    transform: scale(1.1);
}

.modal-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 65px;
    height: 65px;
    border-radius: 50%;
}

.modal-prev { left: 25px; }
.modal-next { right: 25px; }

.modal-nav:hover {
    background: var(--color-primary);
    color: var(--color-dark);
    transform: translateY(-50%) scale(1.1);
}

.modal-counter {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-light);
    font-size: 1.1rem;
    background: rgba(0, 0, 0, 0.6);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--color-secondary);
    z-index: 10000;
}


/* ===== ELIMINAR PADDING DEL MAIN CONTENT EN ANILLADOR DETAIL ===== */
.container-fluid.px-2.px-md-4 { padding: 0 !important; }
.main-content.px-2 { padding: 0 !important; }
@media (max-width: 768px) { .main-content { padding: 0.5 !important; } }

/* ================== AJUSTES ESCRITORIO ====================== */
@media (min-width: 1024px) {
    .artist-header h2 { font-size: 2.5rem; }
    .style-filter-btn { font-size: 1.2rem; padding: 0.6rem 1.2rem; }
    .page-link { font-size: 1rem; padding: 0.6rem 1.2rem; }
    .modal-counter { font-size: 1.5rem; }
}
