/* css/gallery.css - VERSIÓN CORRECTA CON CITY BLOCKS Y BADGES AUTOMÁTICOS */

/* ===============================
1. SECCIÓN HERO
=============================== */
.gallery-hero {
    padding-top: 120px;
    padding-bottom: 40px;
    padding-left: 5%;
    padding-right: 5%;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
}

.gallery-hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: white;
    line-height: 1;
    margin: 0;
}

/* ===============================
2. CONTENEDOR DE FILTROS
=============================== */
.gallery-filters {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

/* Tabs ciudad */
.tabs-container {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: none;
    width: 100%;
    -webkit-overflow-scrolling: touch;
}
.tabs-container::-webkit-scrollbar { display: none; }

/* Fila selectores */
.filter-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
    border-top: 1px solid #222;
    padding-top: 20px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group span {
    font-size: 0.75rem;
    color: #888;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
}

/* ===============================
3. BOTONES Y SELECTS
=============================== */
.tab-btn,
.filter-select {
    background-color: #000;
    border: 1px solid #333;
    color: #ccc;
    padding: 10px 15px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    white-space: nowrap;
}

.tab-btn:hover,
.filter-select:hover {
    border-color: #666;
    color: white;
}

.tab-btn.active {
    border-color: var(--gold-accent);
    color: var(--gold-accent);
    background: rgba(197, 160, 89, 0.1);
    font-weight: 700;
}

.filter-select {
    appearance: none;
    padding-right: 30px;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23C5A059'%3e%3cpath d='M12 16L6 10H18L12 16Z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
}
.filter-select option {
    background-color: #000;
    color: white;
}

#btn-trans {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ===============================
4. GRID DE FOTOS (ORIGINAL — NO TOCAR)
=============================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 60px 5% 100px 5%;
}

/* ===============================
5. BLOQUE POR CIUDAD (SOLO ENVUELVE)
=============================== */
.city-wrapper {
    position: relative;
    margin-bottom: 110px;

    /* Aire interior */
    padding: 56px 4.5% 70px;

    /* Fondo VIP, muy sutil */
    background: linear-gradient(
        180deg,
        rgba(255,255,255,0.025),
        rgba(0,0,0,0.65)
    );

    /* Borde con acento de ciudad */
    border: 1px solid color-mix(
        in srgb,
        var(--city-accent, rgba(255,255,255,0.15)) 40%,
        rgba(255,255,255,0.08)
    );

    /* Profundidad */
    box-shadow:
        0 25px 70px rgba(0,0,0,0.45),
        0 0 50px color-mix(
            in srgb,
            var(--city-accent, transparent) 22%,
            transparent
        );

    transition: box-shadow 0.6s ease, border-color 0.6s ease;
}

/* Quita padding del grid SOLO dentro de ciudad */
.city-wrapper > .gallery-grid {
    padding: 0;
}

/* Etiqueta ciudad */
.city-header {
    position: sticky;
    top: -25px; /* debajo del header */
    z-index: 20;

    display: flex;
    align-items: center;

    height: 44px;                /* ← más delgada */
    padding-left: 5%;

    background: linear-gradient(
        180deg,
        rgba(0,0,0,0.88),
        rgba(0,0,0,0.65)
    );

    border-bottom: 1px solid color-mix(
        in srgb,
        var(--city-accent, rgba(197,160,89,0.4)) 55%,
        transparent
    );

    backdrop-filter: blur(4px);
}

.city-wrapper {
    transform: translateY(25px);
    transition: transform 0.8s ease;
}

.city-wrapper.active {
    transform: translateY(0);
}

.city-wrapper:hover {
    box-shadow:
        0 35px 90px rgba(0,0,0,0.55),
        0 0 70px color-mix(
            in srgb,
            var(--city-accent) 35%,
            transparent
        );
}

.city-wrapper .gallery-grid {
    max-width: 1400px;
    margin: 0 auto;
}

/* ===============================
PALETA VIP POR CIUDAD
=============================== */
.city-cdmx { --city-accent: #c5a059; }
.city-guadalajara { --city-accent: #8c2f2f; }
.city-monterrey { --city-accent: #2c3e50; }
.city-tijuana { --city-accent: #1f6f54; }
.city-europa { --city-accent: #6b4fa1; }
.city-otras { --city-accent: #a14f6a; }

.city-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 10px;
    color: var(--gold-accent);
    text-transform: uppercase;
}


/* ===============================
6. TARJETAS (ORIGINAL — NO TOCAR)
=============================== */
.chicas-card {
    background-color: #0a0a0a;
    border: 1px solid #222;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    height: 100%;
}

.chicas-card:hover {
    border-color: var(--gold-accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.card-image {
    width: 100%;
    height: 350px;
    overflow: hidden;
    position: relative;
    background-color: #000;
    border-bottom: 1px solid #222;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s ease;
}
.chicas-card:hover .card-image img {
    transform: scale(1.05);
}

.card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: white;
    margin-bottom: 5px;
}

.card-desc {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-specs {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #222;
}

.card-footer {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.btn-card {
    margin-top: auto;
    display: block;
    width: 100%;
    border: 1px solid #333;
    color: white;
    padding: 12px 0;
    text-align: center;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
}
.btn-card:hover {
    background-color: #b91d1d;
    border-color: #b91d1d;
}

/* ===============================
   CONTENEDOR DE ETIQUETAS (NUEVO)
=============================== */
.badges-container {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px; /* Espacio automático entre badges */
    z-index: 10;
}

/* ===============================
   BADGE BASE (VIP / TRANS)
=============================== */
.vip-badge {
    /* Eliminamos el position: absolute, top y left */
    padding: 4px 10px;

    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 2px;
    font-weight: 600;

    color: #fff;
    background: linear-gradient(
        135deg,
        #8c2f2f,
        #b14a4a
    );

    border-radius: 2px;
    text-transform: uppercase;

    box-shadow: 0 2px 8px rgba(0,0,0,0.5);

    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ===============================
   BADGE TRANS PREMIUM
=============================== */
.trans-icon {
    width: 12px;
    height: 12px;
    margin-right: 4px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    opacity: 0.85;
}

.vip-badge.vip-trans {
    background: linear-gradient(135deg, #c39bd9, #9b59b6);
    color: #140018;
    border: 1px solid rgba(255,255,255,0.25);
    box-shadow:
        0 0 12px rgba(155,89,182,0.45),
        0 2px 8px rgba(0,0,0,0.5);

    display: inline-flex;
    align-items: center;
}

/* Icono discreto */
.vip-badge.vip-trans::before {
    content: "⚧";
    font-size: 0.7rem;
    opacity: 0.75;
    margin-right: 2px;
}

/* ===============================
   BADGE VIDEOLLAMADA PREMIUM
=============================== */
.vip-badge.vip-video {
    background: linear-gradient(135deg, #1c1c1c, #050505);
    color: var(--gold-accent); 
    border: 1px solid rgba(197, 160, 89, 0.4); 
    box-shadow:
        0 0 12px rgba(197, 160, 89, 0.15),
        0 2px 8px rgba(0,0,0,0.5);
}

.vip-badge.vip-video i {
    font-size: 0.8rem;
}

/* ===============================
   TOOLTIP TRANS / VIDEO (luxury)
=============================== */
.has-tooltip {
    position: relative;
}

.tooltip-trans {
    position: absolute;
    top: 135%;                
    left: 0; /* ← Cambiado: Empieza justo donde empieza la etiqueta */
    transform: translateY(-6px); /* ← Quitamos el centrado que lo empujaba afuera */

    background: rgba(10, 6, 16, 0.96);
    color: #e9d9ff;

    font-size: 0.6rem;
    letter-spacing: 1px;
    padding: 6px 10px;
    border-radius: 4px;

    border: 1px solid rgba(197,160,89,0.45);
    white-space: nowrap;

    opacity: 0;
    pointer-events: none;
    transition: all 0.25s ease;

    z-index: 999;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

.has-tooltip:hover .tooltip-trans {
    opacity: 1;
    transform: translateY(0); /* ← Quitamos el centrado también aquí */
}

/* ===============================
   CARD BORDE SUTIL TRANS
=============================== */
.chicas-card.is-trans {
    border: 1px solid rgba(155,89,182,0.5);
    box-shadow:
        0 0 0 1px rgba(155,89,182,0.12),
        0 0 22px rgba(155,89,182,0.18);
}

/* --- CARD META (EJECUTIVO / EDITORIAL) --- */
.card-meta {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 18px;

    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;

    color: #999;
}

/* Base neutra */
.meta-category {
    font-weight: 600;
    letter-spacing: 2px;
    transition: color 0.3s ease;
}

/* VIP → dorado */
.chicas-card:has(.vip-badge) .meta-category {
    color: var(--gold-accent);
}

/* Ejecutiva → carmesí */
.chicas-card:not(:has(.vip-badge)) .meta-category {
    color: #b91d1d;
}

.meta-separator {
    opacity: 0.4;
}

.meta-region {
    font-weight: 400;
    color: #bbb;
}

/* ===============================
7. VARIABLES GENERALES (TRANS/GOLD)
=============================== */
:root {
    --gold-accent: #c5a059;
    --purple-accent: #c39bd9;
}

.chicas-card.is-trans {
    border-color: var(--purple-accent);
    box-shadow: 0 0 10px rgba(155,89,182,0.4);
}

/* ===============================
8. RESPONSIVE
=============================== */
@media (max-width: 768px) {
    .gallery-hero {
        padding-top: 100px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .filter-row {
        flex-direction: column;
        gap: 15px;
    }

    .filter-group {
        width: 100%;
        justify-content: space-between;
    }

    .filter-select,
    .tab-btn {
        width: 100%;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        padding: 30px 20px;
        gap: 40px;
    }

    .city-wrapper {
        margin-bottom: 60px;
    }

    .city-wrapper > .gallery-grid {
        padding: 0;
    }

    .card-image {
        height: 280px;
    }
}