/* Guardado Real Estate Core — páginas públicas.
   Estilo neutro por variables: el tema define --gre-* con su marca. */
.gre{--gre-surface:#fff;--gre-ink:#1d1d1b;--gre-muted:#615d55;--gre-line:#e2ddd0;--gre-accent:#7F6410;--gre-btn-bg:#C9A227;--gre-btn-ink:#111;--gre-btn-bg-hover:#b8931f;--gre-radius:8px;--gre-max:1200px;--gre-title-font:inherit;--gre-ok-bg:#E3EEE6;--gre-ok:#2C4F39;--gre-hold-bg:#F7EFD3;--gre-hold:#6B5410;--gre-off-bg:#ECE8DE;--gre-off:#5E584B;
	color:var(--gre-ink);width:100%}
.gre *,.gre *::before,.gre *::after{box-sizing:border-box}
.gre-wrap{max-width:var(--gre-max);margin-inline:auto;padding:16px 16px 48px}
.gre h1,.gre h2,.gre h3{font-family:var(--gre-title-font);color:var(--gre-ink);line-height:1.2}
.gre h2{font-size:1.35rem;margin:0 0 14px}
.gre a{color:var(--gre-accent)}
.gre-muted{color:var(--gre-muted)}

/* Migas */
.gre-crumbs ol{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 14px;padding:0;list-style:none;font-size:.85rem;color:var(--gre-muted)}
.gre-crumbs li+li::before{content:"/";margin-right:6px;opacity:.6}
.gre-crumbs a{color:var(--gre-muted);text-decoration:none}
.gre-crumbs a:hover{color:var(--gre-accent);text-decoration:underline}

/* Encabezado */
.gre-head{margin:0 0 18px}
.gre-eyebrow{margin:0 0 6px;font-size:.75rem;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--gre-accent)}
.gre-eyebrow a{text-decoration:none}
.gre-title{margin:0 0 6px;font-size:clamp(1.7rem,4vw,2.5rem)}
.gre-loc{margin:0;color:var(--gre-muted)}
.gre-lead{margin:10px 0 0;font-size:1.05rem;max-width:62ch}
.gre-offer{display:inline-block;margin:10px 0 0;padding:4px 10px;border-radius:999px;background:var(--gre-hold-bg);color:var(--gre-hold);font-size:.85rem;font-weight:600}

/* Galería */
.gre-gallery{margin:0 0 28px}
.gre-gallery__grid{display:grid;gap:6px;grid-template-columns:repeat(2,1fr);border-radius:var(--gre-radius);overflow:hidden}
.gre-gallery__item{display:block;background:var(--gre-line);aspect-ratio:4/3;overflow:hidden}
.gre-gallery__item:first-child{grid-column:1/-1;aspect-ratio:16/9}
.gre-gallery__grid--1 .gre-gallery__item:first-child{aspect-ratio:16/9}
.gre-gallery__item img,.gre-gallery__rest img,.gre-thumbs img{width:100%;height:100%;object-fit:cover;display:block}
.gre-gallery__more{margin-top:8px}
.gre-gallery__more summary{cursor:pointer;color:var(--gre-accent);font-weight:600;min-height:44px;display:flex;align-items:center}
.gre-gallery__rest,.gre-thumbs{display:grid;gap:6px;grid-template-columns:repeat(auto-fill,minmax(140px,1fr))}
.gre-gallery__rest a,.gre-thumbs a{aspect-ratio:4/3;overflow:hidden;border-radius:4px;display:block}
@media (max-width:759px){
	.gre-gallery__grid--2 .gre-gallery__item:last-child,.gre-gallery__grid--4 .gre-gallery__item:last-child{grid-column:1/-1;aspect-ratio:16/9}
}
@media (min-width:760px){
	.gre-gallery__grid{grid-template-columns:2fr 1fr 1fr;grid-template-rows:repeat(2,minmax(0,1fr));height:min(460px,52vw)}
	.gre-gallery__item,.gre-gallery__item:first-child{aspect-ratio:auto}
	.gre-gallery__item:first-child{grid-column:1;grid-row:1/span 2}
	.gre-gallery__grid--1{grid-template-columns:1fr}
	.gre-gallery__grid--2{grid-template-columns:2fr 1fr}
	.gre-gallery__grid--2 .gre-gallery__item:nth-child(2){grid-row:1/span 2}
	.gre-gallery__grid--3 .gre-gallery__item:nth-child(n+2){grid-column:2/span 2}
	.gre-gallery__grid--4 .gre-gallery__item:nth-child(4){grid-column:2/span 2}
}

/* Distribución: en celular una columna (precio arriba, calculadora tras las
   facilidades); en escritorio contenido + columna lateral. */
.gre-grid{display:flex;flex-direction:column;gap:28px}
.gre-aside{display:contents}
.gre-aside__price{order:1}
.gre-main--a{order:2}
.gre-aside__calc{order:3}
.gre-main--b{order:4}
.gre-aside__contact{order:5}
.gre-main{display:flex;flex-direction:column;gap:32px;min-width:0}
@media (min-width:960px){
	.gre-grid{display:grid;grid-template-columns:minmax(0,1fr) 360px;column-gap:40px;row-gap:32px;align-items:start}
	.gre-main--a{grid-column:1;grid-row:1}
	.gre-main--b{grid-column:1;grid-row:2}
	.gre-aside{display:flex;flex-direction:column;gap:20px;grid-column:2;grid-row:1/span 2}
}
.gre-section{margin:0}

/* Datos rápidos */
.gre-facts{display:grid;gap:8px;grid-template-columns:repeat(auto-fit,minmax(min(100%,140px),1fr));margin:0}
.gre-fact{padding:12px 14px;background:var(--gre-surface);border:1px solid var(--gre-line);border-radius:var(--gre-radius)}
.gre-fact dt{font-size:.75rem;color:var(--gre-muted)}
.gre-fact dd{margin:2px 0 0;font-weight:600}

/* Estados */
.gre-badge{display:inline-flex;align-items:center;gap:6px;padding:3px 10px;border-radius:999px;font-size:.75rem;font-weight:600;letter-spacing:.04em;text-transform:uppercase;white-space:nowrap}
.gre-badge::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}
.gre-badge--disponible{background:var(--gre-ok-bg);color:var(--gre-ok)}
.gre-badge--reservado{background:var(--gre-hold-bg);color:var(--gre-hold)}
.gre-badge--vendido{background:var(--gre-off-bg);color:var(--gre-off)}
.gre-legend{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 10px;padding:0;list-style:none}

/* Tablas */
.gre-plan{margin:0 0 14px}
.gre-plan img{width:100%;height:auto;border:1px solid var(--gre-line);border-radius:var(--gre-radius);background:var(--gre-surface)}
.gre-plan figcaption{font-size:.8rem;color:var(--gre-muted);margin-top:4px}
.gre-table-wrap{overflow-x:auto;background:var(--gre-surface);border:1px solid var(--gre-line);border-radius:var(--gre-radius)}
.gre-table-wrap:focus-visible{outline:2px solid var(--gre-accent);outline-offset:2px}
.gre-table{width:100%;border-collapse:collapse;font-size:.9rem;margin:0}
.gre-table th,.gre-table td{padding:11px 14px;border:0;border-bottom:1px solid var(--gre-line);text-align:left;white-space:nowrap;vertical-align:middle}
.gre-table thead th{font-size:.72rem;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--gre-muted)}
.gre-table tbody tr:last-child>*{border-bottom:0}
.gre-table tbody th{font-weight:600}
.gre-table tbody th a{display:inline-block;min-height:24px}
.gre-table .is-vendido td,.gre-table .is-vendido th a{color:var(--gre-muted)}
.gre-table--numbers td{font-variant-numeric:tabular-nums}
.gre-note{font-size:.8rem;color:var(--gre-muted);margin:8px 0 0}
.gre-conditions{margin:12px 0 0;padding-left:1.2em}
.gre-conditions li{margin:0 0 4px}
.gre-disclaimer{font-size:.75rem;line-height:1.5;color:var(--gre-muted);margin:10px 0 0}

/* Detalles */
.gre-details{margin:0;padding:4px 18px;background:var(--gre-surface);border:1px solid var(--gre-line);border-radius:var(--gre-radius)}
.gre-details>div{display:flex;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid var(--gre-line)}
.gre-details>div:last-child{border-bottom:0}
.gre-details dt{color:var(--gre-muted);flex:0 0 auto}
.gre-details dd{margin:0;font-weight:600;text-align:right}
@media (max-width:520px){.gre-details>div{flex-direction:column;gap:2px}.gre-details dd{text-align:left}}

/* Mapa y video que se cargan al tocar */
.gre-embed{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;aspect-ratio:16/9;background:var(--gre-off-bg);border:1px solid var(--gre-line);border-radius:var(--gre-radius);overflow:hidden;text-align:center;padding:16px}
.gre-embed--map{aspect-ratio:4/3}
@media (min-width:760px){.gre-embed--map{aspect-ratio:2/1}}
.gre-embed iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.gre-embed__note{margin:0;font-size:.8rem;color:var(--gre-muted)}

/* Avance */
.gre-bar{height:10px;background:var(--gre-line);border-radius:999px;overflow:hidden}
.gre-bar span{display:block;height:100%;background:var(--gre-btn-bg)}
.gre-bar__label{margin:4px 0 8px;font-weight:600}

/* Botones */
.gre-btn,.gre-embed__button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:12px 22px;border:1px solid var(--gre-btn-bg);border-radius:var(--gre-radius);background:var(--gre-btn-bg);color:var(--gre-btn-ink)!important;font-weight:600;text-decoration:none;cursor:pointer;font:inherit;font-weight:600}
.gre-btn:hover,.gre-embed__button:hover{background:var(--gre-btn-bg-hover);border-color:var(--gre-btn-bg-hover)}
.gre-btn--outline{background:transparent;border-color:var(--gre-ink);color:var(--gre-ink)!important}
.gre-btn--outline:hover{background:var(--gre-ink);color:var(--gre-surface)!important}
.gre-btn--block{width:100%}
.gre-btn:focus-visible,.gre-embed__button:focus-visible,.gre a:focus-visible{outline:2px solid var(--gre-accent);outline-offset:2px}

/* Caja de precio y asesor */
.gre-price-box,.gre-agent{display:flex;flex-direction:column;gap:6px;padding:20px;background:var(--gre-surface);border:1px solid var(--gre-line);border-radius:var(--gre-radius)}
.gre-price-box .gre-badge{align-self:flex-start;margin-bottom:4px}
.gre-price-box__label{margin:0;font-size:.72rem;letter-spacing:.12em;text-transform:uppercase;color:var(--gre-muted)}
.gre-price-box__amount{margin:0;font-size:2rem;font-weight:700;line-height:1.1;color:var(--gre-accent)}
.gre-price-box__amount--muted{color:var(--gre-muted);font-size:1.4rem}
.gre-price-box__monthly{margin:0;font-weight:600}
.gre-price-box__monthly .gre-link{margin-left:6px;font-weight:500;font-size:.85rem}
.gre-price-box__meta{margin:0;font-size:.9rem;color:var(--gre-muted)}
.gre-price-box .gre-offer{align-self:flex-start;margin:4px 0}
.gre-price-box .gre-btn{margin-top:10px}
.gre-agent__head{display:flex;gap:12px;align-items:center}
.gre-agent__photo{width:56px;height:56px;border-radius:50%;object-fit:cover}
.gre-agent__label{margin:0;font-size:.72rem;letter-spacing:.1em;text-transform:uppercase;color:var(--gre-muted)}
.gre-agent__name{margin:0;font-weight:600}
.gre-agent .gre-btn{margin-top:8px}
.gre-aside .gre-calc{--gre-calc-line:var(--gre-line);--gre-calc-radius:var(--gre-radius);--gre-calc-bg:var(--gre-surface);--gre-calc-accent:var(--gre-accent)}

/* Tarjetas */
.gre-cards{display:grid;gap:22px;grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr))}
.gre-card{background:var(--gre-surface);border:1px solid var(--gre-line);border-radius:var(--gre-radius);overflow:hidden;transition:box-shadow .2s,transform .2s}
.gre-card:hover{box-shadow:0 10px 30px rgba(0,0,0,.08);transform:translateY(-2px)}
@media (prefers-reduced-motion:reduce){.gre-card{transition:none}.gre-card:hover{transform:none}}
.gre-card__link{display:flex;flex-direction:column;height:100%;color:inherit!important;text-decoration:none}
.gre-card__media{position:relative;aspect-ratio:4/3;background:var(--gre-line);overflow:hidden}
.gre-card__media img{width:100%;height:100%;object-fit:cover;display:block}
.gre-tag{position:absolute;top:12px;left:12px;padding:4px 10px;border-radius:4px;background:rgba(15,15,15,.82);color:#fff;font-size:.68rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase}
.gre-card__body{display:flex;flex-direction:column;gap:4px;padding:16px 18px 18px}
.gre-card__loc{margin:0;font-size:.8rem;color:var(--gre-muted)}
.gre-card__title{margin:0;font-size:1.15rem!important}
.gre-price{margin:6px 0 0;font-size:1.15rem;font-weight:700;color:var(--gre-accent)}
.gre-price small{margin-right:4px;font-size:.75rem;font-weight:500;color:var(--gre-muted)}
.gre-monthly{margin:0;font-size:.85rem;color:var(--gre-muted)}
.gre-card__meta{margin:6px 0 0;padding-top:8px;border-top:1px solid var(--gre-line);font-size:.85rem;color:var(--gre-muted)}
.gre-empty{padding:32px;text-align:center;background:var(--gre-surface);border:1px dashed var(--gre-line);border-radius:var(--gre-radius)}
.gre-pagination{margin-top:28px}
.gre-pagination .nav-links{display:flex;flex-wrap:wrap;gap:6px}
.gre-pagination .page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:0 12px;border:1px solid var(--gre-line);border-radius:var(--gre-radius);text-decoration:none;color:var(--gre-ink);background:var(--gre-surface)}
.gre-pagination .page-numbers.current{background:var(--gre-ink);color:var(--gre-surface);border-color:var(--gre-ink)}
.gre-content>*:first-child{margin-top:0}
/* Celular: columnas secundarias fuera y celdas más compactas para que el estado y las cuotas se vean sin desplazar. */
@media (max-width:600px){
	.gre-col-optional{display:none}
	.gre-table th,.gre-table td{padding:10px 8px;font-size:.85rem}
	.gre-table thead th{font-size:.66rem;letter-spacing:.03em;white-space:normal}
}

/* Buscador */
.gre-results{display:flex;flex-direction:column;gap:20px}
@media (min-width:960px){.gre-results{display:grid;grid-template-columns:300px minmax(0,1fr);gap:32px;align-items:start}}
.gre-filters{background:var(--gre-surface);border:1px solid var(--gre-line);border-radius:var(--gre-radius)}
.gre-filters>summary{display:flex;align-items:center;gap:8px;min-height:48px;padding:0 18px;font-weight:600;cursor:pointer}
.gre-filters__count{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;border-radius:999px;background:var(--gre-btn-bg);color:var(--gre-btn-ink);font-size:.75rem}
@media (min-width:960px){.gre-filters>summary{pointer-events:none}.gre-filters>summary::marker,.gre-filters>summary::-webkit-details-marker{display:none}}
.gre-search{display:flex;flex-direction:column;gap:14px;padding:4px 18px 18px}
.gre-search--compact{padding:16px;background:var(--gre-surface);border:1px solid var(--gre-line);border-radius:var(--gre-radius)}
@media (min-width:760px){.gre-search--compact{display:grid;grid-template-columns:auto 1fr 1fr auto;align-items:end}}
.gre-search__ops{display:flex;gap:4px;margin:0;padding:4px;border:1px solid var(--gre-line);border-radius:var(--gre-radius)}
.gre-seg{flex:1;position:relative}
.gre-seg input{position:absolute;opacity:0;inset:0;margin:0;cursor:pointer}
.gre-seg span{display:flex;align-items:center;justify-content:center;min-height:40px;padding:0 12px;border-radius:calc(var(--gre-radius) - 2px);font-weight:600;font-size:.9rem;white-space:nowrap}
.gre-seg input:checked+span{background:var(--gre-ink);color:var(--gre-surface)}
.gre-seg input:focus-visible+span{outline:2px solid var(--gre-accent);outline-offset:2px}
.gre-field{display:flex;flex-direction:column;gap:4px;margin:0;padding:0;border:0;min-width:0}
.gre-field>span,.gre-field legend{font-size:.8rem;color:var(--gre-muted);padding:0}
.gre-field select,.gre-field input{width:100%;min-height:44px;padding:8px 10px;border:1px solid var(--gre-line);border-radius:var(--gre-radius);background:var(--gre-surface);color:var(--gre-ink);font:inherit}
.gre-field select:disabled{opacity:.55}
.gre-field--range{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.gre-field--range legend{grid-column:1/-1;margin-bottom:4px}
.gre-check{display:flex;align-items:center;gap:10px;min-height:44px;cursor:pointer}
.gre-check input{width:20px;height:20px;accent-color:var(--gre-accent)}
.gre-search__actions{display:flex;flex-direction:column;align-items:center;gap:10px}
.gre-chips{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px;padding:0;list-style:none}
.gre-chips a{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:0 12px;border:1px solid var(--gre-line);border-radius:999px;background:var(--gre-surface);color:var(--gre-ink);text-decoration:none;font-size:.85rem}
.gre-chips a:hover{border-color:var(--gre-ink)}
.gre-cards--results{grid-template-columns:repeat(auto-fill,minmax(min(100%,260px),1fr))}
.gre-shortcode{margin:0 0 1.5em}
.gre-demo{margin:0 0 16px;padding:10px 14px;border:1px dashed var(--gre-hold);border-radius:var(--gre-radius);background:var(--gre-hold-bg);color:var(--gre-hold);font-size:.9rem}

/* Equipo */
.gre-agents{display:grid;gap:22px;grid-template-columns:repeat(auto-fill,minmax(min(100%,240px),1fr))}
.gre-agent-card{display:flex;flex-direction:column;background:var(--gre-surface);border:1px solid var(--gre-line);border-radius:var(--gre-radius);overflow:hidden}
.gre-agent-card__photo{display:block;aspect-ratio:1;background:var(--gre-line)}
.gre-agent-card__photo img{width:100%;height:100%;object-fit:cover;display:block}
.gre-agent-card__body{display:flex;flex-direction:column;gap:6px;padding:16px 18px 18px}
.gre-agent-card__name{margin:0;font-size:1.15rem!important}
.gre-agent-card__name a{color:var(--gre-ink);text-decoration:none}
.gre-agent-card .gre-muted{margin:0}
.gre-agent-card .gre-btn{margin-top:8px}
.gre-agent-profile{display:flex;flex-wrap:wrap;gap:24px;align-items:center;margin:0 0 28px}
.gre-agent-profile__photo img{width:160px;height:160px;border-radius:50%;object-fit:cover}
.gre .gre-section+.gre-section{margin-top:32px}

/* Encabezado con imagen de fondo (gre_header_image) */
.gre-head--image{position:relative;margin:0 0 24px;padding:clamp(36px,7vw,72px) clamp(18px,4vw,40px);border-radius:var(--gre-radius);overflow:hidden;color:#fff;
	background:linear-gradient(90deg,rgba(0,0,0,.78) 0%,rgba(0,0,0,.55) 55%,rgba(0,0,0,.25) 100%),var(--gre-head-img) center/cover no-repeat,#111}
.gre .gre-head--image .gre-title,.gre .gre-head--image .gre-lead{color:#fff}
.gre .gre-head--image .gre-lead{opacity:.92}

/* Formularios */
.gre-hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}
.gre-form-wrap{max-width:860px;margin-inline:auto}
.gre-form{background:var(--gre-surface);border:1px solid var(--gre-line);border-radius:var(--gre-radius);padding:clamp(18px,3vw,32px)}
.gre-form__group{border:0;margin:0 0 22px;padding:0;min-width:0}
.gre-form__group legend{font-family:var(--gre-title-font);font-size:1.15rem;font-weight:700;margin:0 0 12px;padding:0;color:var(--gre-ink)}
.gre-form__grid{display:grid;gap:14px 18px;grid-template-columns:1fr}
@media (min-width:640px){.gre-form__grid{grid-template-columns:1fr 1fr}.gre-form__field--full{grid-column:1/-1}}
.gre-form__field{display:flex;flex-direction:column;gap:6px;min-width:0}
.gre-form__field label{font-size:.9rem;font-weight:600}
.gre-form__inline{display:flex;gap:8px}
.gre-form__inline input{flex:1;min-width:0}
.gre-form__inline select{flex:0 0 auto;width:auto}
.gre-form input[type=text],.gre-form input[type=tel],.gre-form input[type=email],.gre-form select,.gre-form textarea{width:100%;min-height:44px;padding:10px 12px;border:1px solid var(--gre-line);border-radius:6px;background:#fff;color:var(--gre-ink);font:inherit}
.gre-form textarea{min-height:110px;resize:vertical}
.gre-form input:focus,.gre-form select:focus,.gre-form textarea:focus{outline:2px solid var(--gre-btn-bg);outline-offset:1px;border-color:var(--gre-btn-bg)}
.gre-req{color:#a12a1f}
.gre-opt{font-weight:400;color:var(--gre-muted);font-size:.82rem}
.gre-check{display:flex;gap:10px;align-items:flex-start;font-size:.92rem;margin:0 0 10px}
.gre-check input{margin-top:3px;width:18px;height:18px;flex:0 0 auto}
.gre-form__note{font-size:.85rem;color:var(--gre-muted);margin:0 0 16px}
.gre-form .gre-btn{width:100%;min-height:48px;font-size:1rem}
@media (min-width:640px){.gre-form .gre-btn{width:auto;padding-inline:32px}}
.gre-alert{padding:14px 16px;border-radius:var(--gre-radius);margin:0 0 16px}
.gre-alert--ok{background:var(--gre-ok-bg);color:var(--gre-ok)}
.gre-alert--error{background:#FBE9E7;color:#8A1F14}
.gre-form .gre-form__inline select{flex:0 0 auto;width:auto;min-width:96px}
.gre-form .gre-form__inline input{flex:1 1 auto;width:auto;min-width:0}
