/* Home — CPC solo cubre HTML dinámico y la foto del Hero.
   Tipografía, padding, alturas y composición de secciones: Elementor 6296. */

body.cpc-exp-home{background:#FAF9F6;color:#2A332C}

/* Foto del Hero: el shortcode debe llenar la sección, no es un widget de contenido. */
.cpc-home-hero-sec{position:relative;overflow:hidden}
.cpc-home-hero-sec .cpc-home-photo-w,
.cpc-home-hero-sec .elementor-widget-shortcode:first-child{position:absolute !important;inset:0;width:100% !important;height:100% !important;max-width:none !important;margin:0 !important;padding:0 !important;z-index:0}
.cpc-home-hero-media,
.cpc-home-hero-sec .cpc-home-photo{position:absolute;inset:0;z-index:0;margin:0}
.cpc-home-hero-media img,
.cpc-home-hero-sec .cpc-home-photo img{width:100%;height:100%;object-fit:cover;object-position:center right;display:block;border-radius:0}
.cpc-home-hero-sec .elementor-widget-heading,
.cpc-home-hero-sec .elementor-widget-text-editor,
.cpc-home-hero-sec .elementor-widget-button{position:relative;z-index:2}

/* Raya bajo el H1 (Elementor no tiene este control). No toca font-size. */
.cpc-home-hero-sec .cpc-home-h1 .elementor-heading-title::after{content:"";display:block;width:52px;height:2px;background:#2E4B3A;margin:18px 0 0}
.cpc-home-sub{max-width:36ch}

/* Buscador: overlap de sección lo define Elementor (margin). El form es HTML CPC. */
.cpc-home-search-sec{position:relative;z-index:4;overflow:visible}
.cpc-home-search{display:flex;align-items:stretch;flex-wrap:nowrap;gap:0;background:#fff;border:0;border-radius:12px;padding:10px 10px 10px 8px;width:100%;box-sizing:border-box;box-shadow:0 16px 40px rgba(28,38,33,.12);min-width:0}
.cpc-home-search-field{display:flex;flex-direction:column;justify-content:center;gap:6px;flex:1 1 0;min-width:0;padding:16px 28px}
.cpc-home-search-field + .cpc-home-search-field{border-left:1px solid #E8E4DA}
.cpc-home-search-label{font-size:.875rem;text-transform:none;letter-spacing:0;color:#5A625B;font-weight:500}
.cpc-home-search select{min-height:32px;border:0;border-radius:0;background:transparent;padding:0;font:inherit;font-size:1.125rem;color:#1C2621;width:100%;max-width:100%;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' stroke='%237B827B' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 0 center;padding-right:22px;font-weight:500}
.cpc-home-search select:focus{outline:none}
.cpc-home-search-submit{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:72px;min-width:240px;border-radius:10px;border:0;padding:0 26px;background:#2E4B3A;color:#fff;font-weight:600;letter-spacing:0;font-size:1.05rem;cursor:pointer}
.cpc-home-search-submit:hover{background:#24382E;color:#fff}
.cpc-home-search-submit svg{flex:0 0 auto}

/* Anclas del header CPC (sticky). */
#cpc-tipos,#cpc-ubicaciones{scroll-margin-top:120px}

/* HTML interno del text-editor (kicker + enlace). */
.cpc-sec-kicker,
.cpc-home-section-sub p strong{display:block;font-size:.82rem;letter-spacing:.16em;text-transform:uppercase;color:#4F7A58;font-weight:700;margin:0 0 8px}
.cpc-sec-row{display:flex;align-items:baseline;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:8px 0 28px}
.cpc-sec-row a{color:#2E4B3A;font-weight:600;text-decoration:none;font-size:1.02rem}
.cpc-sec-row a:hover{text-decoration:underline}

/* Cards dinámicas [cpc_featured_cards] */
body.cpc-exp-home .cpc-home-featured{gap:28px}
body.cpc-exp-home .cpc-home-featured .cpc-card{background:#fff;border:1px solid #E8E4DA;border-radius:10px;overflow:hidden;box-shadow:none;position:relative}
body.cpc-exp-home .cpc-home-featured .cpc-card:hover{border-color:#D4CFC3}
body.cpc-exp-home .cpc-home-featured .cpc-card-media{aspect-ratio:3/2;border-radius:0;background:#ECE8DE;position:relative}
body.cpc-exp-home .cpc-home-featured .cpc-card:hover .cpc-card-media img{transform:none}
body.cpc-exp-home .cpc-home-featured .cpc-card-badge{position:absolute;top:12px;left:12px;background:#24382E;color:#fff;font-size:.72rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;padding:6px 10px;border-radius:4px}
body.cpc-exp-home .cpc-home-featured .cpc-card-body{padding:18px 18px 20px;display:flex;flex-direction:column;gap:6px}
body.cpc-exp-home .cpc-home-featured .cpc-card-kicker{display:none}
body.cpc-exp-home .cpc-home-featured .cpc-card-location{order:1;font-size:.95rem;color:#5A625B}
body.cpc-exp-home .cpc-home-featured .cpc-card-title{order:2;font-family:'Fraunces',Georgia,serif;font-weight:600;font-size:1.28rem;line-height:1.28;color:#1C2621}
body.cpc-exp-home .cpc-home-featured .cpc-card-features{order:3;font-size:.95rem;color:#5A625B}
body.cpc-exp-home .cpc-home-featured .cpc-card-price{order:4;font-family:'Inter',sans-serif;font-weight:700;font-size:1.35rem;margin:8px 0 0;color:#1C2621}

/* Tiles: estilos en cpc-explore-tiles.css (encolado por el shortcode). */

@media (max-width:1024px){
 .cpc-home-search-field{padding:14px 20px}
 .cpc-home-search-submit{min-width:200px;min-height:64px}
}
@media (max-width:767px){
 .cpc-home-search{flex-direction:column;align-items:stretch;border-radius:12px;padding:8px}
 .cpc-home-search-field + .cpc-home-search-field{border-left:0;border-top:1px solid #E8E4DA}
 .cpc-home-search-submit{width:100%;min-width:0;min-height:52px;border-radius:8px}
 body.cpc-exp-home .cpc-home-featured .cpc-card-title{font-size:1.18rem}
 body.cpc-exp-home .cpc-home-featured .cpc-card-price{font-size:1.22rem}
}
@media (max-width:374px){
 .cpc-home-search-field{padding:12px 16px}
}
