/* Estilos Luxury para ZonaRoja */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Inter:wght@300;400;600&display=swap');

:root {
    --primary: #ff1a3d;
    --primary-rgb: 255, 26, 61;
    --accent: #f1c40f;
    --bg: #030303;
    --dark: #ffffff;
    --white: #0a0a0a;
    --white-rgb: 10, 10, 10;
    --gray: #888888;
    --card-bg: #0f0f0f;
    --text-main: #ffffff;
    --border-color: rgba(255, 26, 61, 0.15);
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; -webkit-tap-highlight-color: transparent; }
html { 
    height: 100%;
    background: var(--bg);
}
body { 
    background-color: var(--bg); 
    color: var(--text-main); 
    transition: 0.3s; 
    line-height: 1.6; 
    min-height: 100%; 
    margin: 0;
    padding: 0;
}
html, body {
    overflow-x: hidden;
    width: 100%;
}
body.fixed-layout-body {
    height: 100% !important;
    height: 100dvh !important;
    overflow: hidden !important;
}
.main-content {
    height: 100%;
    height: 100dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}
@media (max-width: 768px) {
    .main-content {
        padding-bottom: calc(85px + env(safe-area-inset-bottom, 0px)) !important;
    }
}
h1, h2, h3 { font-family: 'Playfair Display', serif; }
a { color: inherit; text-decoration: none; transition: all 0.3s ease; }

/* Utilities */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; width: 100%; }
.text-center { text-align: center; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 2rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 2rem; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 1rem; }
.gap-2 { gap: 1.5rem; }
.w-full { width: 100%; }

/* Professional 12-Column Grid System */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.75rem;
    width: auto;
}

[class*="col-"] {
    padding: 0 0.75rem;
}

.col-1 { width: 8.33%; }
.col-2 { width: 16.66%; }
.col-3 { width: 25%; }
.col-4 { width: 33.33%; }
.col-5 { width: 41.66%; }
.col-6 { width: 50%; }
.col-7 { width: 58.33%; }
.col-8 { width: 66.66%; }
.col-9 { width: 75%; }
.col-10 { width: 83.33%; }
.col-11 { width: 91.66%; }
.col-12 { width: 100%; }

@media (max-width: 992px) {
    .col-3, .col-4 { width: 50%; }
}

@media (max-width: 768px) {
    .col-3, .col-4, .col-6 { width: 100%; }
    .row { gap: 0; }
}

/* Fluid Images */
img, video { max-width: 100%; height: auto; }

header {
    background-color: var(--white);
    padding: 0.8rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0; z-index: 100;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

/* Elegant Desktop Navigation */
header nav {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

header nav a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0.6rem 1.3rem;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    background: rgba(var(--white-rgb), 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

header nav a:hover {
    color: white;
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(230, 0, 38, 0.35);
    transform: translateY(-2px);
}

/* Gold highlighting for Admin, Profile, Registration buttons */
header nav a[href="perfil.php"],
header nav a[href="admin.php"],
header nav a[href="registro.php"] {
    border-color: rgba(212, 175, 55, 0.4);
    color: var(--accent);
}

header nav a[href="perfil.php"]:hover,
header nav a[href="admin.php"]:hover,
header nav a[href="registro.php"]:hover {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

/* Hide Burger Menu on Desktop */
@media (min-width: 769px) {
    .burger-btn {
        display: none !important;
    }
}

.logo-container { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-circle { width: 40px; height: 40px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-weight: bold; }
.logo-text { margin: 0; font-size: 1.3rem; color: var(--primary); letter-spacing: 2px; }

/* Navigation Icons Hidden for Cleaner Start as requested */
.search-overlay, #openSearchBtn { display: none !important; }

/* Elegant Burger Menu Refined */
.burger-btn {
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 6px;
    cursor: pointer;
    background: transparent;
    border: none;
    z-index: 10015;
    padding: 5px;
    transition: 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

.burger-line {
    height: 1.5px;
    background: var(--primary);
    transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    border-radius: 1px;
}

.line-1 { width: 28px; }
.line-2 { width: 22px; }
.line-3 { width: 28px; }

.burger-btn.active .line-1 { transform: translateY(7.5px) rotate(45deg); width: 28px; background: white; }
.burger-btn.active .line-2 { opacity: 0; width: 0; }
.burger-btn.active .line-3 { transform: translateY(-7.5px) rotate(-45deg); width: 28px; background: white; }

.burger-btn:hover .line-2 { width: 28px; }


/* Action Buttons Header */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.action-icon-btn {
    background: rgba(var(--white-rgb), 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    backdrop-filter: blur(5px);
}

.action-icon-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 0, 38, 0.3);
}

/* Desktop Search Hide */
@media (min-width: 769px) {
    .header-actions .mobile-only-btn { display: none; }
}

/* Responsive adjustments for search */
@media (max-width: 600px) {
    .search-overlay-input { font-size: 1.5rem; }
    .close-search { top: 20px; right: 20px; font-size: 2.5rem; }
}

/* Grid System with Premium Eye-catching Background Stage */
.grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
    gap: 2rem; 
    margin-top: 2rem; 
    background: radial-gradient(circle at 50% 50%, rgba(230, 0, 38, 0.08) 0%, rgba(5, 5, 5, 0.6) 100%);
    padding: 2rem;
    border-radius: 32px;
    border: 1px solid rgba(230, 0, 38, 0.15);
    box-shadow: inset 0 0 50px rgba(0,0,0,0.9), 0 15px 40px rgba(0,0,0,0.5);
    position: relative;
}

.card {
    background: var(--card-bg);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.card:hover { 
    transform: translateY(-12px) scale(1.02); 
    box-shadow: 0 15px 35px rgba(230, 0, 38, 0.25), 0 0 20px rgba(212, 175, 55, 0.2);
    border-color: var(--accent);
}

/* Shine effect */
.card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: 0.6s;
    z-index: 5;
    pointer-events: none;
    opacity: 0;
}

.card:hover::after {
    left: 100%;
    top: 100%;
    opacity: 1;
}

.card-img-container { 
    position: relative; 
    height: 420px; 
    overflow: hidden; 
    background: linear-gradient(135deg, #111 0%, #222 100%);
}
.card-img-container img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.card:hover .card-img-container img { transform: scale(1.05); }

.card-video {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; opacity: 0; transition: 0.5s; z-index: 1;
}
.card:hover .card-video { opacity: 1; }

.card-overlay {
    position: absolute; bottom: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 60%);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 0; color: white; z-index: 2;
    transition: 0.4s;
}

.card:hover .card-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 70%);
}

.card-info-main {
    width: 100%;
    background: linear-gradient(180deg, rgba(15, 15, 15, 0.6) 0%, rgba(5, 5, 5, 0.98) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(212, 175, 55, 0.25);
    padding: 1.2rem 1.5rem;
    transition: all 0.4s ease;
    border-radius: 0 0 24px 24px;
}

.card:hover .card-info-main {
    background: linear-gradient(180deg, rgba(230, 0, 38, 0.15) 0%, rgba(5, 5, 5, 0.99) 100%);
    border-top-color: var(--primary);
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #2ecc71;
    border-radius: 50%;
    display: inline-block;
    margin-left: 6px;
    box-shadow: 0 0 8px #2ecc71;
    animation: statusPulse 1.8s infinite ease-in-out;
    vertical-align: middle;
}

@keyframes statusPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 4px #2ecc71; }
    50% { transform: scale(1.3); box-shadow: 0 0 12px #2ecc71; }
}

.card-top-tags { position: absolute; top: 1rem; left: 1rem; display: flex; gap: 0.5rem; z-index: 3; }
.vip-tag { background: var(--accent); color: #000; padding: 4px 10px; border-radius: 6px; font-size: 0.7rem; font-weight: 800; letter-spacing: 1px; }
.video-tag { background: rgba(255,255,255,0.2); backdrop-filter: blur(5px); color: white; padding: 4px; border-radius: 6px; display: flex; align-items: center; justify-content: center; }

.name-age h3 { font-size: 1.4rem; margin-bottom: 0.2rem; }
.card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 0.5rem; }
.price { color: var(--accent); font-weight: 700; font-size: 1.1rem; }
.location-text { font-size: 0.8rem; opacity: 0.8; text-transform: uppercase; letter-spacing: 1px; }

/* Quick Contact Button */
.quick-wa-btn {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    width: 44px;
    height: 44px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}
.quick-wa-btn:hover {
    transform: scale(1.15) rotate(15deg);
    background: #1ebd56;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}
.quick-wa-btn svg {
    stroke: white;
}

/* Buttons */
.btn {
    background: var(--primary); color: white; padding: 0.9rem 1.8rem;
    border-radius: 50px; border: none; cursor: pointer; text-transform: uppercase;
    letter-spacing: 1.5px; transition: 0.3s; font-weight: 600; font-size: 0.85rem;
    display: inline-block; text-decoration: none;
}
.btn:hover { background: var(--accent); transform: scale(1.02); }
.btn-outline { background: transparent; border: 1px solid var(--accent); color: var(--accent); }

/* Filters */
.filters { margin-bottom: 3rem; }
.city-buttons { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; }
.city-btn { padding: 0.6rem 1.2rem; border-radius: 50px; border: 1px solid var(--primary); background: rgba(255, 26, 61, 0.12); color: #ffffff; text-decoration: none; font-size: 0.85rem; transition: 0.3s; }
.city-btn:hover, .city-btn.active { background: var(--primary); color: white; border-color: var(--primary); box-shadow: 0 0 12px rgba(255, 26, 61, 0.45); }

/* Modal */
.modal { 
    display: none; 
    position: fixed; 
    z-index: 1000005; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0.92); 
    backdrop-filter: blur(10px); 
    padding: 2rem; 
    overflow-y: auto; 
}
.modal-content { 
    background: var(--bg); 
    max-width: 900px; 
    margin: 2rem auto; 
    border-radius: 25px; 
    overflow: hidden; 
    position: relative; 
    box-shadow: 0 30px 60px rgba(0,0,0,0.5); 
}
.close-modal { 
    position: absolute; 
    right: 25px; 
    top: 25px; 
    color: white; 
    font-size: 35px; 
    cursor: pointer; 
    z-index: 10; 
    transition: 0.3s; 
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
}
.close-modal:hover { color: var(--accent); transform: rotate(90deg); }

.modal-city-item-btn {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.modal-city-item-btn:hover {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #ffffff !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 16px rgba(255, 26, 61, 0.4) !important;
}

.carousel-container { height: 600px; background: #000; position: relative; }
.carousel-slide { display: none; height: 100%; }
.carousel-slide img, .carousel-slide video { width: 100%; height: 100%; object-fit: contain; }

.prev, .next { cursor: pointer; position: absolute; top: 50%; transform: translateY(-50%); padding: 1.5rem; color: white; background: rgba(0,0,0,0.2); border-radius: 0 10px 10px 0; transition: 0.3s; }
.next { right: 0; border-radius: 10px 0 0 10px; }
.prev:hover, .next:hover { background: var(--accent); }

.modal-info { padding: 3rem; }
.modal-details { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2rem; }
.detail-item h4 { color: var(--accent); text-transform: uppercase; font-size: 0.8rem; letter-spacing: 2px; margin-bottom: 0.5rem; }

/* Profile & Forms */
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-size: 0.85rem; font-weight: 600; color: var(--gray); }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 0.9rem; border-radius: 12px; border: 1px solid var(--border-color); background: var(--bg); color: var(--text-main); outline: none; transition: 0.3s; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--accent); }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 15px; }
.photo-slot { aspect-ratio: 3/4; border: 2px dashed var(--border-color); border-radius: 15px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; transition: 0.3s; }
.photo-slot.has-image { border: none; }
.photo-slot img { width: 100%; height: 100%; object-fit: cover; }
.delete-photo { position: absolute; top: 8px; right: 8px; background: var(--primary); color: white; border: none; border-radius: 50%; width: 25px; height: 25px; cursor: pointer; font-size: 12px; display: flex; align-items: center; justify-content: center; }
.upload-btn { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--accent); font-size: 2.5rem; }

.theme-toggle { background: none; border: 1px solid var(--border-color); color: var(--accent); width: 40px; height: 40px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: 0.3s; }
.theme-toggle:hover { border-color: var(--accent); background: rgba(197, 160, 89, 0.05); }

/* Responsive */
@media (max-width: 992px) {
    .profile-grid { grid-template-columns: 1fr !important; }
    .modal-details { grid-template-columns: 1fr; }
    .carousel-container { height: 450px; }
}

/* Page Transitions & Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.page-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Smooth transitions for interactive elements */
a, button, .card, .btn {
    transition: all 0.3s ease;
}

/* Admin Background Overlay */
body.page-fade-in::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, #030303 100%),
                radial-gradient(circle at 10% 10%, rgba(114, 47, 55, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 90% 90%, rgba(197, 160, 89, 0.05) 0%, transparent 50%);
    z-index: -1;
}

@media (max-width: 768px) {
    body.page-fade-in::before {
        background: linear-gradient(180deg, rgba(0,0,0,0.75) 0%, rgba(5,5,5,0.92) 100%);
        opacity: 1;
    }
    header { 
        padding: 0.6rem 1rem; 
        display: flex; 
        flex-wrap: nowrap; 
        justify-content: space-between; 
        align-items: center; 
        min-height: 70px; 
        background: rgba(10, 10, 10, 0.9);
        border-bottom: 1px solid rgba(var(--primary-rgb), 0.2);
        z-index: 10002;
        width: 100%;
        position: sticky;
        top: 0;
    }
    .logo-wrapper { 
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        display: flex; 
        align-items: center; 
        justify-content: center;
        width: auto;
    }
    .header-actions { 
        display: flex;
        justify-content: flex-end;
        align-items: center;
        width: 100%;
        pointer-events: none; /* Let logo be clickable if overlapped */
    }
    .header-actions > * { pointer-events: auto; }
    .search-container { display: none; }
    
    header nav { 
        position: fixed; 
        top: 0; 
        right: -300px; /* Fully off-screen */
        width: 280px; 
        height: 100vh; 
        background: rgba(5, 5, 5, 0.98); 
        flex-direction: column; 
        padding: 6rem 1.5rem 2rem; 
        gap: 1.2rem; 
        transform: translateX(0); /* Reset transform */
        transition: 0.6s cubic-bezier(0.19, 1, 0.22, 1); 
        z-index: 10010;
        justify-content: flex-start;
        display: flex;
        box-shadow: none;
        border-left: 1px solid rgba(var(--primary-rgb), 0.3);
        backdrop-filter: blur(30px);
    }
    header nav.active { right: 0; box-shadow: -20px 0 60px rgba(0,0,0,0.9); }
    header nav a { 
        margin: 0; font-size: 1.1rem; padding: 1.2rem; border-bottom: 1px solid rgba(255,255,255,0.05); 
        width: 100%; text-align: left; font-weight: 500; color: white;
        display: flex; align-items: center; justify-content: space-between;
        text-decoration: none;
        transition: 0.3s;
        border-radius: 0 !important;
        border: none !important;
        border-bottom: 1px solid rgba(255,255,255,0.05) !important;
        background: transparent !important;
        box-shadow: none !important;
        transform: none !important;
        text-transform: none !important;
        letter-spacing: normal !important;
    }
    header nav a::after { content: '→'; opacity: 0; transform: translateX(-10px); transition: 0.3s; color: var(--primary); }
    header nav a:hover { color: var(--primary) !important; padding-left: 1.5rem; background: transparent !important; }
    header nav a:hover::after { opacity: 1; transform: translateX(0); }
    
    header nav a[href="perfil.php"],
    header nav a[href="admin.php"],
    header nav a[href="registro.php"] {
        color: var(--accent) !important;
    }
    
    .theme-toggle { margin-top: auto; width: 100%; height: 50px; border: 1px solid var(--border-color); background: rgba(255,255,255,0.05); border-radius: 12px; }
    
    .close-menu-btn { display: none !important; }
    
    .logo-text { font-size: 1.1rem; }

    /* Column stack for mobile - Resetting shared col classes for cleaner grid */
    [class*="col-"] { width: 100% !important; margin-bottom: 1rem; }
    [class*="col-"]:empty { display: none !important; }
    

    
    /* Grid wrap for City Filters so they all appear on mobile */
    .city-buttons {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        padding: 0.4rem 0.25rem !important;
        gap: 0.5rem !important;
        margin-bottom: 1rem !important;
    }
    .city-buttons::-webkit-scrollbar {
        display: none !important;
    }
    .city-btn {
        padding: 0.4rem 0.9rem !important;
        font-size: 0.75rem !important;
        border-radius: 50px !important;
    }

    /* Grid System Responsive - 3 Columns with Square-ish cards and Premium Background Stage */
    .grid { 
        grid-template-columns: repeat(3, 1fr) !important; 
        gap: 0.25rem !important; 
        margin-top: 0.8rem !important;
        background: radial-gradient(circle at 50% 50%, rgba(230, 0, 38, 0.12) 0%, rgba(3, 3, 3, 0.85) 100%) !important;
        padding: 0.35rem !important;
        border-radius: 12px !important;
        border: 1px solid rgba(230, 0, 38, 0.2) !important;
        box-shadow: inset 0 0 20px rgba(0,0,0,0.8) !important;
    }
    .container { padding: 0 0.25rem !important; }
    
    .card { border-radius: 4px !important; padding: 0 !important; }
    .card-img-container { height: auto !important; aspect-ratio: 2 / 3 !important; position: relative !important; width: 100% !important; overflow: hidden !important; }
    .card-img-container img { position: absolute !important; top: 0 !important; left: 0 !important; width: 100% !important; height: 100% !important; object-fit: cover !important; }
    .card-overlay { padding: 0 !important; background: transparent !important; }
    
    .card-info-main {
        width: 100% !important;
        background: linear-gradient(180deg, rgba(10, 10, 10, 0.6) 0%, rgba(3, 3, 3, 0.98) 100%) !important;
        backdrop-filter: blur(8px) !important;
        -webkit-backdrop-filter: blur(8px) !important;
        border-top: 1px solid rgba(212, 175, 55, 0.3) !important;
        padding: 0.35rem 0.4rem !important;
        border-radius: 0 0 4px 4px !important;
    }

    .card-top-tags { top: 0.25rem !important; left: 0.25rem !important; gap: 0.15rem !important; }
    .vip-tag { padding: 1px 4px !important; font-size: 0.45rem !important; border-radius: 2px !important; letter-spacing: 0.5px !important; }
    .video-tag { padding: 1px !important; border-radius: 2px !important; }
    .video-tag svg { width: 8px !important; height: 8px !important; }
    
    .name-age h3 { font-size: 0.65rem !important; font-weight: 700 !important; margin: 0 !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1; margin-bottom: 2px !important; padding-right: 18px !important; }
    .status-dot { width: 5px !important; height: 5px !important; margin-left: 3px !important; box-shadow: 0 0 4px #2ecc71 !important; }
    .card-rating { display: none !important; } 
    
    .card-footer { 
        flex-direction: column !important; 
        justify-content: flex-end !important; 
        align-items: flex-start !important; 
        margin-top: 1px !important; 
        padding-right: 22px !important; /* Leave space for WA button */
    }
    .price { font-size: 0.6rem !important; font-weight: 800 !important; color: white !important; line-height: 1 !important; }
    .location-text { font-size: 0.45rem !important; opacity: 0.5 !important; letter-spacing: 0 !important; line-height: 1 !important; margin-top: 1px !important; }

    /* Mobile Quick WA button */
    .quick-wa-btn {
        top: 0.3rem !important;
        right: 0.3rem !important;
        bottom: auto !important;
        width: 24px !important;
        height: 24px !important;
        box-shadow: 0 2px 6px rgba(37, 211, 102, 0.4) !important;
    }
    .quick-wa-btn svg {
        width: 11px !important;
        height: 11px !important;
    }
    
    .modal { 
        padding: 0 !important; 
        overflow-y: auto !important; 
        -webkit-overflow-scrolling: touch;
        z-index: 1000005 !important;
    }
    .modal-content { 
        margin: 0 !important; 
        width: 100% !important; 
        height: auto !important; 
        min-height: 100vh !important;
        max-height: none !important;
        border-radius: 0 !important; 
        max-width: 100% !important;
        display: block !important;
        overflow: visible !important;
    }
    .carousel-container { height: 50vh !important; flex-shrink: 0; }
    .modal-info { padding: 1.5rem !important; }
    .modal-details { grid-template-columns: 1fr !important; gap: 1rem !important; }
    .close-modal { 
        position: fixed !important;
        top: 15px !important; 
        right: 15px !important; 
        color: white !important; 
        font-size: 24px !important; 
        z-index: 1100000 !important;
        background: rgba(0, 0, 0, 0.6) !important;
        width: 36px !important;
        height: 36px !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5) !important;
        line-height: 1 !important;
    }

    /* Admin Table Responsive */
    table, thead, tbody, th, td, tr { display: block; width: 100%; }
    thead tr { position: absolute; top: -9999px; left: -9999px; }
    tr { border: 1px solid var(--border-color); margin-bottom: 1.5rem; border-radius: 12px; padding: 15px; background: var(--white); box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
    td { border: none; position: relative; padding: 10px 0 10px 45% !important; text-align: right; min-height: 40px; display: flex; align-items: center; justify-content: flex-end; }
    td:before { position: absolute; top: 10px; left: 0; width: 40%; padding-right: 10px; white-space: nowrap; font-weight: bold; text-align: left; color: var(--gray); font-size: 0.8rem; text-transform: uppercase; }
    td:nth-of-type(1):before { content: "Nombre"; }
    td:nth-of-type(2):before { content: "Email"; }
    td:nth-of-type(3):before { content: "Ciudad"; }
    td:nth-of-type(4):before { content: "Venc."; }
    td:nth-of-type(5):before { content: "Visitas"; }
    td:nth-of-type(6):before { content: "Estado"; }
    td:nth-of-type(7):before { content: "Acciones"; }
    
    .star { transition: transform 0.2s, color 0.2s; }
    .star:hover { transform: scale(1.3); }

    .profile-grid { grid-template-columns: 1fr !important; gap: 1rem !important; }

    /* Fix for dashboard stats mobile */
    @media (max-width: 768px) {
        .dashboard-stats { grid-template-columns: 1fr !important; }
    }

}

/* Floating Bottom Navigation for Mobile */
.bottom-nav {
    display: none;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: none !important;
    transform: none !important;
    background: rgba(10, 10, 10, 0.96) !important;
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: none;
    border-top: 1.5px solid rgba(230, 0, 38, 0.55);
    box-shadow: 0 -10px 40px rgba(0,0,0,0.95);
    z-index: 999999 !important;
    padding: 0.6rem 0.5rem calc(0.6rem + env(safe-area-inset-bottom, 0px)) 0.5rem;
    justify-content: space-around;
    align-items: center;
    border-radius: 20px 20px 0 0;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 1;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 0;
}

.bottom-nav-item.active, .bottom-nav-item:hover {
    color: var(--primary);
    text-shadow: 0 0 10px rgba(230, 0, 38, 0.4);
}

.bottom-nav-item.active svg {
    stroke: var(--primary);
    filter: drop-shadow(0 0 5px rgba(230, 0, 38, 0.6));
    transform: translateY(-2px);
}

.bottom-nav-item svg {
    width: 20px;
    height: 20px;
    margin-bottom: 1px;
    stroke: currentColor;
    transition: transform 0.2s ease, stroke 0.2s ease;
}

@media (max-width: 768px) {
    .bottom-nav { display: flex; }
    body { padding-bottom: calc(85px + env(safe-area-inset-bottom, 0px)) !important; } /* Space for floating bottom nav */
}

@media (max-width: 480px) {
    .container { padding: 0 0.25rem !important; }
    .grid { 
        grid-template-columns: repeat(3, 1fr) !important; 
        gap: 0.25rem !important; 
    }
    .city-buttons { gap: 0.4rem; justify-content: center; }
    .city-btn { padding: 0.5rem 0.8rem; font-size: 0.75rem; border-radius: 10px; }
    .logo-text { font-size: 1.1rem; }
    
    header { padding: 0.6rem 0.8rem; height: 65px; min-height: 65px; }
    .logo-wrapper { flex: none; width: auto; }
}
