/**
 * Viviaza © 2026 — Todos los derechos reservados.
 *
 * Tipo de archivo: CSS
 * Nombre del archivo: landing_ciudad.css
 * Versión nueva: 1.0.0
 * Tipo de cambio: major (extracción del <style> inline de landing_ciudad.php)
 * Fecha de creación: 15/06/2026
 * Fecha de modificación: 15/06/2026
 * Descripción: Estilos de la landing SEO de propiedades por ciudad
 *              (landing_ciudad.php). Extraídos del <style> inline para
 *              que el navegador los cachee y para usar los tokens de
 *              paleta de _tokens.css (cada país hereda su marca vía
 *              var(--c-*) en vez de azul/dorado fijos).
 * Descripción del cambio (1.0.0 — 15/06/2026): creación. Se migran todos
 *              los colores fijos (#002f5b azul, dorado #C5A059/#dcb866,
 *              grises) a var(--c-*). Se ELIMINAN los overrides muertos de
 *              .cards-grid .property-card .property-* (el partial unificado
 *              renderTarjetaAnuncio ya emite clases .tarjeta-*, no .property-*,
 *              así que esas reglas no aplicaban a nada).
 * Estado: listo para producción
 */

/* ============================================================
   BASE
============================================================ */
.landing-container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 20px 60px 20px; }

.land-breadcrumb { margin-top: 24px; font-size: 0.9rem; color: var(--c-text-dim); }
.land-breadcrumb a { color: var(--c-primary); text-decoration: none; font-weight: 600; }
.land-breadcrumb a:hover { text-decoration: underline; }
.land-breadcrumb span { color: var(--c-text-dim); }

/* Paginación de anuncios */
.land-paginacion { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 10px 0 45px; }
.land-paginacion .pag-link { display: inline-block; padding: 9px 15px; border: 1px solid var(--c-border); border-radius: 8px; color: var(--c-primary); text-decoration: none; font-weight: 600; background: var(--c-bg-alt); }
.land-paginacion .pag-link:hover { background: var(--c-bg-soft); }
.land-paginacion .pag-link.actual { background: var(--c-primary); color: var(--c-text-on-dark); border-color: var(--c-primary); }
.land-paginacion .pag-gap { padding: 9px 6px; color: var(--c-text-muted); }

.city-header { margin-top: 18px; margin-bottom: 30px; text-align: center; }
.city-header h1 { color: var(--c-primary); font-size: 2.5rem; font-weight: 800; margin-bottom: 15px; line-height: 1.2; }
.city-header p { color: var(--c-text-dim); font-size: 1.25rem; max-width: 900px; margin: 0 auto; line-height: 1.6; }

/* ============================================================
   GRID DE TARJETAS
   (las tarjetas en sí las estiliza css/tarjeta-anuncio.css; aquí
   solo definimos la rejilla contenedora.)
============================================================ */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 50px;
}

/* ============================================================
   BLOQUES DE ESTADÍSTICAS (precio/m²)
============================================================ */
.stat-box { margin-bottom: 30px; padding: 30px; background: var(--c-bg-alt); border-radius: 16px; border: 1px solid var(--c-border); box-shadow: var(--shadow-md); }
.stat-title { color: var(--c-primary); font-size: 1.4rem; font-weight: 700; margin-bottom: 25px; display: flex; align-items: center; }
.stat-title::after { content: ''; flex: 1; height: 2px; background: var(--c-border); margin-left: 15px; }
.stat-item { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px dashed var(--c-border); }
.stat-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.stat-cat-name { font-size: 1.15rem; font-weight: 700; color: var(--c-text); margin-bottom: 5px; }
.stat-avg-row { font-size: 1.05rem; color: var(--c-text); margin-bottom: 5px; }
.stat-range-row { font-size: 0.95rem; color: var(--c-text-dim); }
.val-min { color: var(--c-success); font-weight: 600; }
.val-max { color: var(--c-danger); font-weight: 600; }

/* ============================================================
   ENLACES RÁPIDOS (píldoras)
============================================================ */
.quick-links-container { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; justify-content: center; }
.btn-quick-link { display: inline-block; padding: 12px 24px; background-color: var(--c-bg-alt); border: 1px solid var(--c-border); color: var(--c-primary); border-radius: 50px; text-decoration: none; font-weight: 600; font-size: 0.95rem; transition: all 0.3s ease; box-shadow: var(--shadow-sm); }
.btn-quick-link:hover { background-color: var(--c-primary); color: var(--c-text-on-dark); border-color: var(--c-primary); transform: translateY(-3px); box-shadow: var(--shadow-md); }

/* ============================================================
   TEXTO SEO + FAQs
============================================================ */
.seo-text-section { margin: 50px 0; padding: 35px 40px; background: var(--c-bg-alt); border-radius: 16px; border: 1px solid var(--c-border); box-shadow: var(--shadow); color: var(--c-text); line-height: 1.85; font-size: 1.05rem; font-family: var(--font-sans); border-left: 6px solid var(--c-accent); }
.seo-text-section p { margin-bottom: 20px; text-align: justify; }
.seo-text-section p:last-child { margin-bottom: 0; }

.seo-faqs-section { margin: 60px 0 30px 0; }
.seo-faqs-section h2 { text-align: center; margin-bottom: 35px; color: var(--c-primary); font-size: 1.8rem; font-weight: 800; }
.faq-details { margin-bottom: 15px; border: 1px solid var(--c-border); border-radius: 10px; overflow: hidden; background: var(--c-bg-alt); transition: all 0.3s ease; }
.faq-details[open] { border-color: var(--c-accent); box-shadow: 0 4px 12px var(--c-accent-soft); }
.faq-summary { padding: 18px 25px; font-weight: 700; color: var(--c-primary); cursor: pointer; list-style: none; position: relative; font-size: 1.1rem; display: flex; justify-content: space-between; align-items: center; background: var(--c-bg-soft); transition: background 0.3s; }
.faq-summary:hover { background: var(--c-border); }
.faq-summary::-webkit-details-marker { display: none; }
.faq-summary::after { content: '+'; font-size: 1.5rem; color: var(--c-accent); font-weight: 300; line-height: 1; margin-left: 15px; }
.faq-details[open] .faq-summary::after { content: '−'; color: var(--c-primary); }
.faq-answer { padding: 20px 25px 25px 25px; color: var(--c-text-dim); line-height: 1.7; border-top: 1px solid var(--c-border); background: var(--c-bg-alt); font-size: 1.05rem; }

@media (max-width: 768px) {
    .city-header h1 { font-size: 2rem; }
    .seo-text-section { padding: 25px; font-size: 1rem; text-align: left; border-left-width: 4px; }
}

/* ============================================================
   MODAL (compartir / favoritos)
============================================================ */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); z-index: var(--z-modal, 9999);
    display: none; justify-content: center; align-items: center;
    backdrop-filter: blur(2px);
}
.modal-overlay.visible { display: flex; animation: fadeIn 0.2s; }

.modal-card {
    background: var(--c-bg-alt); width: 90%; max-width: 400px;
    padding: 30px 25px; border-radius: 12px;
    position: relative; box-shadow: var(--shadow-lg);
    text-align: center;
}

.modal-close {
    position: absolute; top: 10px; right: 10px;
    background: transparent; border: none;
    font-size: 1.2rem; cursor: pointer; color: var(--c-text-dim);
}

.modal-card h3 {
    margin-top: 0; margin-bottom: 10px; color: var(--c-primary); font-size: 1.3rem;
}

.modal-subtle {
    font-size: 0.9rem; color: var(--c-text-dim); margin-bottom: 20px; line-height: 1.4;
}

.share-grid { display: flex; gap: 10px; flex-direction: column; }

.btn-mail.vivid, .btn-sms.vivid {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 12px; border-radius: 8px; text-decoration: none; font-weight: 600;
    cursor: pointer; border: none; transition: 0.2s; font-size: 1rem;
}

.btn-mail.vivid { background: var(--c-primary); color: var(--c-text-on-dark); }
.btn-sms.vivid { background: var(--c-bg-soft); color: var(--c-text); border: 1px solid var(--c-border); }

.btn-mail.vivid:hover { background: var(--c-primary-dark); }
.btn-sms.vivid:hover { background: var(--c-border); }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
