/*
Theme Name: Propalia Sitio
Theme URI: https://propalia.cl/disenos/
Author: Propalia
Author URI: https://propalia.cl
Description: Tema base de Sitio Prediseñado de Propalia con tres diseños: Urbano, Clásico y Cercano. Se elige el diseño con un clic en Apariencia, Elige tu diseño. El listado, el buscador y las fichas los arma el módulo Sitio de Propalia. Requiere el plugin Propalia en modo nativo.
Version: 1.0.2
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: propalia-sitio
*/

/* Valores comunes; cada diseño los reemplaza en kits/*.css */
:root {
	--pt-accent: #2445D4;
	--pt-accent-dark: #1A33A3;
	--pt-accent-soft: #E6EBFB;
	--pt-ink: #10162F;
	--pt-muted: #4B5470;
	--pt-line: #DDE2EE;
	--pt-soft: #F4F6FB;
	--pt-bg: #FFFFFF;
	--pt-night: #10162F;
	--pt-night-text: #C4CBE0;
	--pt-font: system-ui, -apple-system, 'Segoe UI', sans-serif;
	--pt-font-display: var(--pt-font);
	--pt-radius: 14px;
	--pt-radius-btn: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--pt-bg); color: var(--pt-ink); font-family: var(--pt-font); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--pt-accent); }
a:hover { color: var(--pt-accent-dark); }
h1, h2, h3, h4 { font-family: var(--pt-font-display); color: var(--pt-ink); }
:focus-visible { outline: 2px solid var(--pt-accent); outline-offset: 2px; }
.pt-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pt-skip:focus { position: fixed; left: 12px; top: 12px; z-index: 1000; width: auto; height: auto; clip: auto; padding: 10px 16px; background: #fff; border-radius: 8px; }
.pt-wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 560px) { .pt-wrap { padding: 0 16px; } }

/* Botones */
.pt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: var(--pt-radius-btn); border: 0; background: var(--pt-accent); color: #fff; font: inherit; font-size: 16px; font-weight: 700; text-decoration: none; cursor: pointer; transition: background .15s, color .15s; }
.pt-btn:hover { background: var(--pt-accent-dark); color: #fff; }
.pt-btn--ghost { background: transparent; color: var(--pt-ink); border: 1.5px solid var(--pt-ink); min-height: 44px; padding: 0 18px; font-size: 14px; }
.pt-btn--ghost:hover { background: var(--pt-ink); color: #fff; }
.pt-btn--wa { background: #1F8A4C; border-radius: 999px; min-height: 44px; padding: 0 18px; font-size: 14px; }
.pt-btn--wa:hover { background: #17703D; }

/* Cabecera */
.pt-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--pt-line); }
.admin-bar .pt-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .pt-header { top: 0; position: relative; } }
.pt-header__in { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.pt-brand { display: inline-flex; align-items: center; color: var(--pt-ink); text-decoration: none; line-height: 1.1; font-family: var(--pt-font-display); font-weight: 700; font-size: 22px; }
.pt-brand:hover { color: var(--pt-ink); }
.pt-brand img { max-height: 44px; width: auto; display: block; }
.pt-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.pt-nav a { color: var(--pt-ink); text-decoration: none; font-size: 15px; font-weight: 600; padding: 8px 0; border-bottom: 2px solid transparent; }
.pt-nav a:hover, .pt-nav .current-menu-item > a { border-bottom-color: var(--pt-accent); color: var(--pt-ink); }
.pt-header__cta { display: flex; align-items: center; gap: 10px; }
.pt-burger { display: none; width: 44px; height: 44px; border: 1px solid var(--pt-line); border-radius: 10px; background: #fff; color: var(--pt-ink); cursor: pointer; align-items: center; justify-content: center; }
@media (max-width: 960px) {
	.pt-burger { display: inline-flex; }
	.pt-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--pt-line); box-shadow: 0 16px 30px rgba(16,22,47,.08); }
	.pt-nav.is-open { display: block; }
	.pt-nav ul { flex-direction: column; gap: 0; padding: 8px 24px 16px; }
	.pt-nav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--pt-line); color: var(--pt-ink) !important; }
	.pt-header__cta .pt-btn--ghost { display: none; }
}
@media (max-width: 420px) { .pt-header__cta .pt-btn--wa { padding: 0 12px; } }

/* Secciones */
.pt-section { padding: 80px 0; }
.pt-section--soft { background: var(--pt-soft); }
.pt-section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.pt-section__head h2 { margin: 0; font-size: clamp(30px, 4vw, 40px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.pt-section__head p { margin: 8px 0 0; font-size: 17px; color: var(--pt-muted); }
.pt-link { font-size: 15px; font-weight: 700; text-decoration: none; }
@media (max-width: 720px) { .pt-section { padding: 56px 0; } }

/* Páginas internas */
.pt-page { padding: 56px 0 80px; }
.pt-page__head { background: var(--pt-soft); padding: 56px 0 40px; border-bottom: 1px solid var(--pt-line); }
.pt-page__head h1 { margin: 0; font-size: clamp(32px, 5vw, 52px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
.pt-content { max-width: 820px; }
.pt-content--wide { max-width: none; }
.pt-content > *:first-child { margin-top: 0; }

/* Formulario breve (suscripción y "te llamo") */
.pt-mini .pt-mini__row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.pt-mini .ps-field { flex: 1 1 200px; margin: 0; }
.pt-mini .ps-btn { flex: 0 0 auto; min-height: 50px; }
.pt-mini .ps-lead__consent { margin-top: 12px; }

/* Pie */
.pt-footer { background: var(--pt-night); color: var(--pt-night-text); font-size: 14px; }
.pt-footer__in { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-top: 56px; padding-bottom: 40px; }
.pt-footer .pt-brand { color: #fff; }
.pt-footer .pt-brand img { filter: none; }
.pt-footer__about { margin: 14px 0 0; max-width: 320px; }
.pt-footer h3 { margin: 0 0 12px; font-family: var(--pt-font); font-size: 14px; color: #fff; letter-spacing: .02em; }
.pt-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pt-footer a { color: var(--pt-night-text); text-decoration: none; }
.pt-footer a:hover { color: #fff; }
.pt-footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; padding-bottom: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; }
.pt-footer__bottom a { color: #fff; font-weight: 600; }
@media (max-width: 900px) { .pt-footer__in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pt-footer__in { grid-template-columns: 1fr; } }

/* Módulo Sitio de Propalia: tonos comunes */
body .propalia-site {
	--ps-ink: var(--pt-ink);
	--ps-muted: var(--pt-muted);
	--ps-line: var(--pt-line);
	--ps-soft: var(--pt-soft);
}
body .propalia-site .ps-band { background: var(--pt-soft); }
