/* ============================================================
   ESTILOS NEGRO Y AMARILLO - PERFIL TARIJA
   ============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    background: #1a1a1a;
    color: #e0e0e0;
    padding: 20px;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== HEADER ===== */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    background: #111;
    padding: 18px 28px;
    border-radius: 20px;
    border: 1px solid #2a2a2a;
    margin-bottom: 28px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    background: #f7c948;
    color: #111;
    font-weight: 800;
    font-size: 28px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
}

.logo h1 {
    font-size: 28px;
    color: #f7c948;
}
.logo h1 span {
    font-weight: 300;
    color: #aaa;
}

.header-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ===== BOTONES ===== */
.btn {
    padding: 10px 22px;
    border: none;
    border-radius: 40px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-amarillo {
    background: #f7c948;
    color: #111;
}
.btn-amarillo:hover {
    background: #ffe066;
    transform: scale(1.02);
}

.btn-negro {
    background: #222;
    color: #f7c948;
    border: 2px solid #f7c948;
}
.btn-negro:hover {
    background: #f7c948;
    color: #111;
}

.btn-facebook {
    background: #1877f2;
    color: #fff;
    border: none;
}
.btn-facebook:hover {
    background: #1b8bf5;
    transform: scale(1.02);
}

/* ===== ALERTAS ===== */
.alerta {
    padding: 14px 20px;
    border-radius: 16px;
    margin-bottom: 24px;
    font-weight: 500;
    border-left: 6px solid;
}
.alerta.ok {
    background: #1f2a1f;
    color: #b8e6b8;
    border-color: #6fbf6f;
}
.alerta.error {
    background: #2a1a1a;
    color: #ff8a8a;
    border-color: #cc4444;
}

/* ===== FORMULARIO ===== */
.form-card {
    background: #111;
    border-radius: 24px;
    padding: 28px 30px;
    border: 1px solid #2a2a2a;
    margin-bottom: 32px;
}

.form-card h2 {
    color: #f7c948;
    margin-bottom: 20px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

@media (max-width: 650px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-group label {
    font-weight: 600;
    font-size: 14px;
    color: #ccc;
}
.form-group label .req {
    color: #f7c948;
    margin-left: 3px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    background: #1e1e1e;
    border: 1.5px solid #333;
    border-radius: 14px;
    color: #eee;
    font-size: 15px;
    font-family: inherit;
    transition: 0.2s;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #f7c948;
    box-shadow: 0 0 0 3px rgba(247, 201, 72, 0.15);
}

.form-group textarea {
    min-height: 90px;
    resize: vertical;
}

.form-group input[type="file"] {
    padding: 10px;
    background: #1a1a1a;
    border: 2px dashed #444;
}

.form-group input[type="file"]:hover {
    border-color: #f7c948;
}

.full-width {
    grid-column: 1 / -1;
}

/* ===== FILTROS ===== */
.filtros {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    margin-bottom: 28px;
    background: #111;
    padding: 16px 22px;
    border-radius: 20px;
    border: 1px solid #2a2a2a;
}

.filtros form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    flex: 1;
}

.filtros select,
.filtros input {
    padding: 10px 16px;
    background: #1e1e1e;
    border: 1.5px solid #333;
    border-radius: 40px;
    color: #eee;
    font-size: 14px;
    outline: none;
    min-width: 150px;
}

.filtros select:focus,
.filtros input:focus {
    border-color: #f7c948;
}

/* ===== ANUNCIOS ===== */
.anuncios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 22px;
}

.anuncio-card {
    background: #111;
    border-radius: 20px;
    padding: 18px;
    border: 1px solid #2a2a2a;
    transition: 0.2s;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.anuncio-card:hover {
    border-color: #f7c948;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.anuncio-card .categoria-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 40px;
    font-size: 12px;
    font-weight: 700;
    background: #1f1f1f;
    color: #f7c948;
    border: 1px solid #333;
    align-self: flex-start;
    margin-bottom: 6px;
}

.anuncio-card h3 {
    font-size: 20px;
    color: #f7c948;
    margin: 4px 0 6px;
}

.anuncio-card .desc {
    color: #bbbbbb;
    font-size: 14px;
    line-height: 1.5;
    flex: 1;
}

.galeria {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
    margin: 10px 0;
}

.galeria img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid #2a2a2a;
    transition: 0.2s;
    cursor: pointer;
}

.galeria img:hover {
    border-color: #f7c948;
    transform: scale(1.05);
}

.galeria .foto-principal {
    border-color: #f7c948;
    grid-column: span 2;
    height: 160px;
}

.anuncio-card .meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    margin-top: 12px;
    font-size: 13px;
    color: #999;
    border-top: 1px solid #222;
    padding-top: 12px;
}

.anuncio-card .meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.anuncio-card .precio {
    color: #f7c948;
    font-weight: 700;
    font-size: 18px;
}

.acciones {
    margin-top: 12px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.acciones .btn {
    flex: 1;
    justify-content: center;
    padding: 10px 16px;
    font-size: 14px;
}

.sin-anuncios {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 18px;
    grid-column: 1 / -1;
}

.sin-anuncios p {
    margin: 6px 0;
}

/* ===== FOOTER ===== */
.footer {
    margin-top: 40px;
    text-align: center;
    padding: 20px;
    border-top: 1px solid #222;
    color: #555;
    font-size: 14px;
}
.footer a {
    color: #f7c948;
    text-decoration: none;
}
.footer a:hover {
    text-decoration: underline;
}

/* ===== LIGHTBOX ===== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    border: 3px solid #f7c948;
}

.lightbox .cerrar {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.lightbox .cerrar:hover {
    color: #f7c948;
    transform: scale(1.2);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .header-actions {
        justify-content: center;
    }
    
    .logo {
        justify-content: center;
    }
    
    .anuncios-grid {
        grid-template-columns: 1fr;
    }
    
    .galeria {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    }
    
    .galeria .foto-principal {
        height: 120px;
    }
    
    .filtros form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filtros select,
    .filtros input {
        min-width: auto;
    }
}