/* PC Inversiones - rediseño general del sitio */
:root {
	--pci-verde: #1f6b3a; --pci-verde-osc: #124a28; --pci-verde-claro: #e8f1ea;
	--pci-crema: #f5f3ec; --pci-texto: #22291f; --pci-gris: #5d655f; --pci-borde: #e2e7df;
	--pci-radio: 16px; --pci-sombra: 0 4px 22px rgba(20, 40, 28, .10);
}
body { color: var(--pci-texto); -webkit-font-smoothing: antialiased; }
html { scroll-behavior: smooth; }

/* ---------- Encabezado ---------- */
.pci-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); box-shadow: 0 1px 0 var(--pci-borde); }
.admin-bar .pci-header { top: 32px; }
.pci-header .wp-block-site-title a { color: var(--pci-verde-osc); text-decoration: none; letter-spacing: 1.5px; }
.pci-header .wp-block-navigation a { font-weight: 600; font-size: .92rem; }
.pci-header .wp-block-navigation__responsive-container-content { gap: 1.4rem; }

/* ---------- Botones ---------- */
.wp-block-button__link { border-radius: 999px; padding: .85em 1.8em; font-weight: 700; letter-spacing: .3px; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.wp-block-button__link:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(20, 40, 28, .22); }
.wp-block-button.is-style-fill .wp-block-button__link:not(.has-background) { background: var(--pci-verde); color: #fff; }
.wp-block-button.is-style-fill .wp-block-button__link:not(.has-background):hover { background: var(--pci-verde-osc); }
.wp-block-button.is-style-outline .wp-block-button__link { border: 2px solid currentColor; }
.wp-block-button.pci-btn-wa .wp-block-button__link { background: #25d366 !important; color: #fff !important; }

/* ---------- Portada de posteos y páginas ---------- */
.pci-hero { position: relative; margin-top: 0 !important; margin-bottom: 0 !important; }
.pci-hero .wp-block-post-title { color: #fff; font-weight: 800; letter-spacing: .5px; text-shadow: 0 2px 18px rgba(0, 0, 0, .35); margin: 0; }
.pci-hero .pci-chip, .pci-chip { display: inline-block; padding: .35em 1.1em; border-radius: 999px; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .55); color: #fff; font-size: .82rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; backdrop-filter: blur(4px); }
.pci-hero .wp-block-post-terms a { color: #fff; text-decoration: none; }
.pci-pagehero { background: linear-gradient(135deg, var(--pci-verde-osc), var(--pci-verde)); color: #fff; padding: clamp(48px, 8vw, 96px) 24px; text-align: center; margin: 0; }
.pci-pagehero .wp-block-post-title { color: #fff; font-weight: 800; margin: 0; }
.pci-pagehero p { color: rgba(255, 255, 255, .88); }

.pci-hero-home h1 { color: #fff; text-shadow: 0 2px 20px rgba(0, 0, 0, .35); margin: 0; line-height: 1.1; }
.pci-hero-home .pci-lead { color: rgba(255, 255, 255, .92); }
.pci-hero-home .pci-chip { margin: 0; }
.pci-hero-home .is-style-outline .wp-block-button__link, .pci-btn-claro .wp-block-button__link { color: #fff !important; border-color: #fff; background: transparent; }

/* ---------- Secciones ---------- */
.pci-sec { padding: clamp(36px, 6vw, 72px) 0; }
.pci-sec.pci-crema { background: var(--pci-crema); }
.pci-sec h2, .pci-h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; line-height: 1.15; margin: 0 0 .5em; color: var(--pci-verde-osc); }
.pci-sec h2::after { content: ""; display: block; width: 54px; height: 4px; border-radius: 4px; background: var(--pci-verde); margin-top: 14px; }
.has-text-align-center.pci-h2::after, .pci-sec h2.has-text-align-center::after { margin-left: auto; margin-right: auto; }
.pci-lead { font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.6; color: var(--pci-gris); max-width: 780px; margin-left: auto; margin-right: auto; text-align: center; }
.pci-eyebrow { text-transform: uppercase; letter-spacing: 2.5px; font-size: .8rem; font-weight: 700; color: var(--pci-verde); margin: 0 0 .6em; }
.pci-lead-post { margin-top: 36px !important; }
.pci-texto { margin-left: max(0px, calc((100% - 1100px) / 2)) !important; margin-right: auto !important; max-width: 820px; line-height: 1.75; color: var(--pci-texto); }
.pci-lista { list-style: none; padding: 0; margin: 1em 0; display: grid; gap: 10px; }
.pci-lista li { position: relative; padding-left: 34px; line-height: 1.55; }
.pci-lista li::before { content: "\2713"; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%; background: var(--pci-verde-claro); color: var(--pci-verde); font-weight: 800; font-size: .85rem; display: flex; align-items: center; justify-content: center; }

/* ---------- Datos clave ---------- */
.pci-facts { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin: -48px auto 0; position: relative; z-index: 5; }
.pci-fact { background: #fff; border-radius: var(--pci-radio); padding: 22px 24px; box-shadow: var(--pci-sombra); border-top: 4px solid var(--pci-verde); text-align: left; }
.pci-fact .pci-fact__num { font-size: 1.5rem; font-weight: 800; line-height: 1.15; color: var(--pci-verde); margin: 0 0 4px; }
.pci-fact .pci-fact__txt { font-size: .92rem; color: var(--pci-gris); margin: 0; line-height: 1.4; }

/* ---------- Tarjetas ---------- */
.pci-cards { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.pci-card { background: #fff; border-radius: var(--pci-radio); padding: 28px; box-shadow: var(--pci-sombra); border: 1px solid var(--pci-borde); }
.pci-card h3 { font-size: 1.25rem; font-weight: 800; color: var(--pci-verde-osc); margin: 0 0 .5em; }
.pci-card p:last-child { margin-bottom: 0; }
.pci-card .pci-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--pci-verde-claro); color: var(--pci-verde); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin: 0 0 14px; }

/* ---------- Galería y mapa ---------- */
/* Galería: filas centradas cuando no se completan (1 o 2 fotos) */
.pci-gallery { display: flex !important; flex-wrap: wrap; justify-content: center; align-items: stretch; gap: 16px; }
.pci-gallery > * { flex: 1 1 260px; max-width: calc((100% - 32px) / 3); }
@media (min-width: 1240px) { .pci-gallery > * { max-width: calc((100% - 48px) / 4); } }
@media (max-width: 600px) { .pci-gallery > * { max-width: 100%; } }
.pci-gallery figure { margin: 0; }
.pci-gallery img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; display: block; box-shadow: 0 2px 12px rgba(20, 40, 28, .12); transition: transform .3s ease; }
.pci-gallery img:hover { transform: scale(1.02); }
.pci-plano img { aspect-ratio: auto; object-fit: contain; background: #fff; }
.pci-map iframe { width: 100%; height: 400px; border: 0; border-radius: var(--pci-radio); box-shadow: var(--pci-sombra); display: block; }

/* ---------- Contacto ---------- */
.pci-contact { background: #fff; border: 1px solid var(--pci-borde); border-radius: var(--pci-radio); box-shadow: var(--pci-sombra); padding: 26px 28px; max-width: 520px; margin-left: auto; margin-right: auto; text-align: center; }
.pci-contact .pci-contact__name { font-size: 1.25rem; font-weight: 800; color: var(--pci-verde-osc); margin: 0 0 4px; }
.pci-contact .pci-contact__rol { font-size: .8rem; text-transform: uppercase; letter-spacing: 2px; color: var(--pci-gris); margin: 0 0 12px; }
.pci-contact p { margin: 0 0 6px; }
.pci-contact a { color: var(--pci-verde); font-weight: 700; text-decoration: none; }
.pci-contact .wp-block-buttons { margin-top: 16px; }
.pci-contacts-grid { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; align-items: stretch; }
.pci-contacts-grid .pci-contact { max-width: none; width: 100%; }
.pci-cta { background: linear-gradient(135deg, var(--pci-verde-osc), var(--pci-verde)); color: #fff; border-radius: 22px; padding: clamp(32px, 5vw, 56px); text-align: center; }
.pci-cta h2 { color: #fff; }
.pci-cta h2::after { background: #fff; margin-left: auto; margin-right: auto; }
.pci-cta p { color: rgba(255, 255, 255, .9); max-width: 640px; margin-left: auto; margin-right: auto; }
.pci-cta .is-style-outline .wp-block-button__link { color: #fff; }

/* ---------- Pie de página ---------- */
.pci-footer { background: #0f2a1a; color: rgba(255, 255, 255, .85); padding: clamp(40px, 6vw, 64px) 24px 24px; margin: 0 !important; }
.pci-footer h3 { color: #fff; font-size: 1rem; letter-spacing: 2px; text-transform: uppercase; margin: 0 0 1em; }
.pci-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.pci-footer a:hover { color: #fff; text-decoration: underline; }
.pci-footer p { margin: 0 0 .4em; font-size: .95rem; }
.pci-footer .pci-footer__cols { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.pci-footer .pci-footer__copy { border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 32px; padding-top: 18px; font-size: .85rem; opacity: .75; text-align: center; }

@media (max-width: 781px) {
	.pci-facts { margin-top: -28px; }
	.admin-bar .pci-header { top: 46px; }
}

/* ---------- Columnas con foto y servicios ---------- */
.pci-cols { gap: clamp(24px, 5vw, 64px); }
.pci-cols img, img.pci-foto, .pci-foto img { border-radius: 18px; box-shadow: var(--pci-sombra); width: 100%; height: auto; display: block; }
.pci-cols h3 { margin-top: 0; }
.pci-contacts-grid h3 { text-align: center; font-size: 1.05rem; color: var(--pci-verde-osc); margin: 0 0 14px; }
.pci-item { border-left: 3px solid var(--pci-verde); padding: 2px 0 2px 16px; margin: 0 0 16px; }
.pci-item .pci-item__t { margin: 0 0 2px; color: var(--pci-texto); }
.pci-item .pci-item__d { margin: 0; color: var(--pci-gris); line-height: 1.55; }

/* Tamaño de títulos principales */
.pci-hero-home h1 { font-size: clamp(2rem, 4.6vw, 3.5rem) !important; max-width: 820px; margin-left: auto; margin-right: auto; }
.pci-hero .wp-block-post-title, .pci-pagehero .wp-block-post-title { font-size: clamp(2rem, 4.5vw, 3.2rem) !important; }

/* Grillas: sin márgenes automáticos entre hijos */
.pci-cards > *, .pci-facts > *, .pci-gallery > *, .pci-contacts-grid > *, .pci-footer__cols > * { margin-block-start: 0 !important; margin-block-end: 0 !important; }

/* ---------- Franja de números ---------- */
.pci-stats-band { background: var(--pci-verde-osc); color: #fff; padding: clamp(32px, 5vw, 52px) 24px; margin: 0 !important; }
.pci-stats { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.pci-stat { text-align: center; }
.pci-stat .pci-stat__num { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800; line-height: 1.1; color: #fff; margin: 0 0 6px; }
.pci-stat .pci-stat__txt { font-size: .85rem; letter-spacing: 2px; text-transform: uppercase; color: rgba(255, 255, 255, .8); margin: 0; }
.pci-stats > * { margin-block-start: 0 !important; }

/* Logos de contacto: mismo alto en todas las tarjetas */
.pci-contact figure { margin: 0 0 14px; height: 84px; display: flex; align-items: center; justify-content: center; }
.pci-contact figure img { height: 100%; width: auto; max-width: 100%; object-fit: contain; box-shadow: none; border-radius: 0; }

.pci-contact .pci-contact__proy { font-size: .9rem; color: var(--pci-gris); line-height: 1.5; margin: 0 0 10px; }
.pci-contact .pci-contact__proy a { color: var(--pci-verde-osc); }
.pci-sec .pci-eyebrow + .pci-contacts-grid { margin-bottom: 28px; }
.pci-sec .pci-contacts-grid + .pci-eyebrow, .pci-sec .pci-lead + .pci-eyebrow { margin-top: 40px; margin-bottom: 18px; }

/* Portada simple común a posteos y páginas */
.pci-hero-simple { min-height: 300px; padding: 40px 24px; }
.pci-hero-simple .wp-block-cover__background { background: linear-gradient(135deg, rgba(18, 74, 40, .90), rgba(31, 107, 58, .78)) !important; opacity: 1 !important; }
.pci-hero-simple .wp-block-post-title { color: #fff; text-align: center; margin: 0; }
.pci-hero-simple .pci-chip { display: table; margin: 0 auto; }
.pci-facts { margin-top: -36px; }
