/* style.css - Estilos principales del sistema */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #ffffff;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* =========================
   HEADER - NO sticky en mobile
   ========================= */
header {
    background: linear-gradient(135deg, #8b00ff 0%, #ff00ff 50%, #00d4ff 100%);
    color: white;
    padding: 0.8rem 0;
    box-shadow: 0 2px 10px rgba(139, 0, 255, 0.3);
}

/* Solo sticky en desktop */
@media (min-width: 769px) {
    header {
        position: sticky;
        top: 0;
        z-index: 1000;
    }
}

.top-bar {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.top-bar-left {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.top-bar-left span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.nav-container {
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid #f0f0f0;
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6rem;
    font-weight: bold;
    background: linear-gradient(135deg, #8b00ff, #ff00ff, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding: 1rem 0;
    text-decoration: none;
}

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

.nav-links a {
    color: #333;
    text-decoration: none;
    padding: 0.7rem 1.2rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.nav-links a:hover {
    background: linear-gradient(135deg, #8b00ff15, #ff00ff15);
    color: #8b00ff;
}

.btn-publicar {
    background: linear-gradient(135deg, #ff00ff, #00d4ff) !important;
    color: white !important;
    padding: 0.7rem 1.5rem !important;
    font-weight: 600;
}

/* =========================
   BREADCRUMB
   ========================= */
.breadcrumb-section {
    background: linear-gradient(135deg, #f8f4ff 0%, #fff5ff 100%);
    padding: 2rem 0;
    border-bottom: 3px solid #ff00ff;
}

.breadcrumb {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.breadcrumb a {
    color: #8b00ff;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.page-title {
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.page-subtitle {
    color: #666;
    font-size: 1.05rem;
}

/* =========================
   PROFILE CARDS
   ========================= */
.profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.profile-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    border: 1px solid #f0f0f0;
    position: relative;
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(139, 0, 255, 0.15);
    border-color: #ff00ff;
}

.profile-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #8b00ff, #ff00ff);
    color: white;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
}

.status-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #00ff88;
    color: #000;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
}

.profile-image {
    width: 100%;
    height: 350px;
    background: linear-gradient(135deg, #f5f0ff, #fff0f5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    position: relative;
    overflow: hidden;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info {
    padding: 1.2rem;
}

.profile-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.verified-icon {
    color: #00d4ff;
    font-size: 1.1rem;
}

.profile-location {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.profile-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.tag {
    background: #f5f0ff;
    color: #8b00ff;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid #e5d5ff;
}

.profile-price {
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(135deg, #8b00ff, #ff00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.price-label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 400;
}

.profile-actions {
    display: flex;
    gap: 0.6rem;
}

/* =========================
   BOTONES - FIXED bottom en mobile
   ========================= */
.btn-contact, .btn-view {
    flex: 1;
    padding: 0.8rem;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-contact {
    background: linear-gradient(135deg, #8b00ff, #ff00ff);
    color: white;
}

.btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 0, 255, 0.3);
}

.btn-view {
    background: white;
    color: #8b00ff;
    border: 2px solid #8b00ff;
}

.btn-view:hover {
    background: #f5f0ff;
}

/* Botones de contacto en perfil - FIXED en mobile */
.profile-contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.contact-btn {
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
}

.btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.btn-telegram {
    background: #0088cc;
    color: white;
}

.btn-telegram:hover {
    background: #0066aa;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 136, 204, 0.3);
}

.btn-call {
    background: linear-gradient(135deg, #8b00ff, #ff00ff);
    color: white;
}

.btn-call:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 0, 255, 0.3);
}

/* CRITICAL: Fixed buttons en mobile solo en página de perfil */
@media (max-width: 768px) {
    body.profile-page .profile-contact-buttons {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 999;
        background: white;
        padding: 1rem;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
        margin-bottom: 0;
    }
    
    body.profile-page .profile-sidebar {
        padding-bottom: 220px; /* Espacio para botones fixed */
    }
}

/* =========================
   PROFILE PAGE LAYOUT
   ========================= */







.profile-container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.profile-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.profile-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.info-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

.gallery-section {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

.main-gallery-image {
    width: 100%;
    height: 600px;
    background: linear-gradient(135deg, #f5f0ff, #fff0f5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10rem;
    position: relative;
}




/* 🔥 ESTA ES LA CLAVE */
.main-gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .main-gallery-image {
        height: 400px;
    }
}




.verified-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, #8b00ff, #ff00ff);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    z-index: 10;
}

.status-indicator {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #00ff88;
    color: #000;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    z-index: 10;
}

/* =========================
   HERO & SECTIONS
   ========================= */
.hero {
    background: linear-gradient(135deg, #f8f4ff 0%, #fff5ff 100%);
    padding: 4rem 0;
    text-align: center;
    border-bottom: 3px solid #ff00ff;
}

.hero h1 {
    font-size: 3rem;
    background: linear-gradient(135deg, #8b00ff, #ff00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.2rem;
    color: #666;
}

.cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.city-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    color: #333;
    border: 2px solid #f0f0f0;
    transition: all 0.3s;
}

.city-card:hover {
    border-color: #ff00ff;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(139, 0, 255, 0.15);
}

.city-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #8b00ff;
}

.count {
    color: #666;
    font-size: 0.9rem;
}

/* =========================
   FOOTER
   ========================= */
footer {
    background: #1a1a1a;
    color: #aaa;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #aaa;
    text-decoration: none;
    display: block;
    margin: 0.5rem 0;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #ff00ff;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #333;
    color: #666;
    font-size: 0.85rem;
}

/* =========================
   PAGINACIÓN
   ========================= */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

.pagination a {
    padding: 0.6rem 1.2rem;
    background: white;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s;
}

.pagination a:hover,
.pagination a.active {
    border-color: #ff00ff;
    background: linear-gradient(135deg, #8b00ff, #ff00ff);
    color: white;
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 1024px) {
    .profile-container {
        grid-template-columns: 1fr;
    }
    
    .profile-sidebar {
        position: static;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .top-bar {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .profiles-grid {
        grid-template-columns: 1fr;
    }
    
    .cities-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .main-gallery-image {
        height: 400px;
        font-size: 6rem;
    }
}

/* =========================
   UTILITIES
   ========================= */
.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 2rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.seo-intro {
    background: #f8f8f8;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    line-height: 1.8;
}

.results-count {
    font-size: 1.1rem;
    color: #333;
    margin: 2rem 0 1rem;
}

.results-count strong {
    color: #8b00ff;
    font-weight: 700;
}
