/*
 Theme Name:   Astra Child
 Theme URI:    https://ensayo.chambaynegocios.com
 Description:  Tema hijo para el sitio Avisos Perú y Tarjetas Digitales
 Author:       Chamba y Negocios
 Author URI:   https://ensayo.chambaynegocios.com
 Template:     astra
 Version:      3.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  astra-child
*/

/**
 * ESTE ARCHIVO YA NO CONTIENE ESTILOS DIRECTOS.
 * Los estilos ahora se cargan desde la carpeta /assets/css/
 * y se gestionan a través de functions.php
 *
 * Aquí solo definimos variables globales para que estén
 * disponibles en todos los demás archivos CSS.
 */

:root {
    --ap-marca-primario: #D3542B; /* Naranja/Rojo Ladrillo */
    --ap-marca-secundario: #076445; /* Verde Oscuro */
    --ap-color-ayuda-ia: #1a73e8; /* Azul para el botón de IA */
    --ap-borde-suave: #d1d5db;
    --ap-fondo-suave: #f9fafb;
    --ap-radio-borde: 6px;
}
/* =========================================
   ESTILOS AVISOS PERU (Vistas Single)
   ========================================= */

/* --- AVISO (Empleo/Servicio) --- */
.ap-single-aviso {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

.ap-badge-type {
    background: #0073aa;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: bold;
}

.ap-meta-header {
    margin-top: 10px;
    color: #666;
    font-size: 0.95rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 20px;
}
.ap-meta-header span { margin-right: 15px; }

/* Grid Principal Aviso */
.ap-main-grid {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Izquierda ancho, Derecha estrecho */
    gap: 30px;
}
@media (max-width: 768px) {
    .ap-main-grid { grid-template-columns: 1fr; }
}

.ap-featured-img img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.ap-description { margin-top: 25px; }
.ap-description h3 { 
    font-size: 1.2rem; 
    border-left: 4px solid #0073aa; 
    padding-left: 10px; 
    margin-bottom: 15px; 
}

/* Caja Lateral (Precio/Contacto) */
.ap-price-box {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #eee;
    text-align: center;
}

.ap-price {
    font-size: 1.8rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}
.ap-price small { font-size: 0.9rem; color: #777; font-weight: normal; }

.ap-btn-whatsapp {
    display: block;
    background: #25D366;
    color: white;
    text-decoration: none;
    padding: 12px;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
}
.ap-btn-whatsapp:hover { background: #1ebe57; color: white; }

/* Mapa en Single */
#ap-single-map, #ap-card-map {
    z-index: 1; /* Asegurar que no tape menús desplegables */
    border: 1px solid #ddd;
}
/* --- ESTILOS AVISO SINGLE --- */
.ap-single-layout { max-width: 1200px; margin: 0 auto; padding: 20px; }
.ap-aviso-container { background: #fff; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); overflow: hidden; }
.ap-aviso-header { padding: 30px; background: #f8f9fa; border-bottom: 1px solid #eee; }
.ap-badge-type { background: #333; color: #fff; padding: 4px 10px; border-radius: 4px; font-size: 0.8rem; text-transform: uppercase; }
.ap-meta-header { margin-top: 10px; color: #666; font-size: 0.9rem; }
.ap-meta-item { margin-right: 15px; }

.ap-aviso-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; padding: 30px; }
@media (max-width: 768px) { .ap-aviso-grid { grid-template-columns: 1fr; } }

.ap-gallery-row { display: flex; gap: 10px; margin: 20px 0; }
.ap-gallery-item { width: 80px; height: 80px; object-fit: cover; border-radius: 4px; cursor: pointer; border: 1px solid #ddd; }

.ap-price-tag { font-size: 2rem; font-weight: bold; color: #2c3e50; margin-bottom: 20px; }
.ap-price-tag .currency { font-size: 1rem; vertical-align: super; }
.ap-price-tag .unit { font-size: 1rem; color: #888; font-weight: normal; }

.ap-btn-whatsapp { display: block; background: #25D366; color: white; text-align: center; padding: 15px; border-radius: 50px; text-decoration: none; font-weight: bold; margin-bottom: 15px; transition: transform 0.2s; }
.ap-btn-whatsapp:hover { transform: scale(1.02); color: white; }
.ap-map-container { height: 250px; border-radius: 8px; margin-top: 20px; z-index: 1; }

/* --- ESTILOS TARJETA SINGLE --- */
.ap-card-layout { background: #f0f2f5; min-height: 100vh; padding: 20px 0; }
.ap-card-wrapper { max-width: 450px; margin: 0 auto; background: white; border-radius: 20px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.1); position: relative; }
.ap-card-header-bg { height: 120px; width: 100%; }
.ap-card-content { padding: 0 25px 30px; text-align: center; margin-top: -60px; position: relative; }
.ap-card-profile .profile-img { width: 120px; height: 120px; border-radius: 50%; border: 5px solid white; object-fit: cover; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.ap-card-title { font-size: 1.5rem; margin: 15px 0 10px; }
.ap-card-desc { font-size: 0.95rem; color: #555; margin-bottom: 25px; line-height: 1.5; }

.ap-btn-action { display: block; width: 100%; padding: 15px; border-radius: 12px; color: white; text-decoration: none; font-weight: bold; margin-bottom: 15px; }
.ap-social-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ap-social-item { background: #f8f9fa; padding: 12px; border-radius: 10px; font-size: 0.9rem; color: #333; text-decoration: none; border: 1px solid #eee; }
.ap-social-item:hover { background: #e9ecef; }
.ap-card-map-box { height: 180px; width: 100%; border-radius: 12px; margin-top: 20px; z-index: 1; }