/* Planta Baja Inmobiliaria — estilos del tema hijo (Divi 5 + PREVENDE) */
:root {
  --pb-navy: #1F2D3D;
  --pb-copper: #C98A6F;
  --pb-copper-dark: #B8735A;
  --pb-cream: #F6F1EA;
  --pb-ink: #2B3440;
  --pb-muted: #5C6671;
  --pb-line: #E6DFD5;
  --pb-radius: 18px;
  --pb-shadow: 0 18px 50px rgba(31, 45, 61, 0.10);
  --pb-heading: 'Quicksand', 'Nunito', 'Helvetica Neue', Arial, sans-serif;
  --pb-body: 'Nunito', 'Helvetica Neue', Arial, sans-serif;
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
#page-container { overflow-x: clip; }

/* ---------- Cabecera ---------- */
.pb-header { box-shadow: 0 1px 0 var(--pb-line); }
.pb-header .et_pb_row { margin: 0 auto; }
.pb-header .et_pb_column { margin-bottom: 0 !important; }
/* Barra superior: datos de contacto + redes */
.pb-header-top { width: 100% !important; max-width: none !important; padding: 0 !important; }
.pb-header-top .et_pb_code_inner { line-height: 1; }
.pb-topbar { background: var(--pb-navy); color: rgba(255, 255, 255, 0.82); font-size: 13px; }
.pb-topbar-inner { width: 94%; max-width: 1320px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.pb-topbar-info { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 0; }
.pb-topbar-info a, .pb-topbar-info > span { margin-right: 22px; }
.pb-topbar-info a, .pb-topbar-info > span { display: inline-flex; align-items: center; gap: 7px; color: inherit !important; text-decoration: none; white-space: nowrap; }
.pb-topbar-info a:hover { color: #E8C3AE !important; }
.pb-topbar svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; opacity: .9; position: relative; top: -1px; }
.pb-topbar-info a:not(:last-child)::after, .pb-topbar-info > span:not(:last-child)::after { content: ''; display: inline-block; width: 1px; height: 12px; background: rgba(255,255,255,0.22); margin-left: 22px; }
.pb-topbar-social { display: flex; align-items: center; gap: 4px; }
.pb-topbar-social a { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; color: #fff !important; transition: background .15s, color .15s, transform .15s; }
.pb-topbar-social a:hover { background: var(--pb-copper); color: #fff !important; transform: translateY(-1px); }
.pb-topbar-social svg { width: 17px; height: 17px; }
/* Fila principal: logo + menú + teléfono, todo centrado en vertical */
.pb-header-main { display: flex; align-items: center; min-height: 86px; }
.pb-header-main > .et_pb_column:first-child { flex: 1 1 auto; width: auto !important; }
.pb-header-main > .et_pb_column:last-child { flex: 0 0 auto; width: auto !important; display: flex; align-items: center; justify-content: flex-end; }
.pb-header .et_pb_menu__logo-wrap { max-width: none !important; margin-right: 34px; }
.pb-header .et_pb_menu__logo { max-width: none !important; }
.pb-header .et_pb_menu__logo img { max-height: 78px; height: 78px; width: auto; max-width: none !important; }
/* Flecha de submenú: chevron fino en lugar del icono de Divi */
.pb-header .et_pb_menu .nav li.menu-item-has-children > a:first-child { padding-right: 0 !important; display: inline-flex !important; align-items: center; gap: 8px; }
.pb-header .et_pb_menu .nav li.menu-item-has-children > a:first-child:after { content: "" !important; font-family: inherit !important; position: static !important; display: inline-block; width: 7px; height: 7px; margin: 0 0 4px 0 !important; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); font-size: 0 !important; line-height: 0; opacity: .7; transition: transform .2s, margin .2s; flex: none; }
.pb-header .et_pb_menu .nav li.menu-item-has-children:hover > a:first-child:after { transform: rotate(225deg); margin: 4px 0 0 0 !important; }
.pb-header .et_pb_menu__wrap, .pb-header .et_pb_menu__menu, .pb-header .et_pb_menu__menu > nav, .pb-header .et_pb_menu__menu > nav > ul { align-items: center !important; }
.pb-header .et_pb_menu__menu > nav > ul { display: flex; align-items: center; }
.pb-header .et_pb_menu__menu > nav > ul > li { display: flex; align-items: center; padding: 0 13px; }
.pb-header .et_pb_menu__menu > nav > ul > li > a { font-weight: 700; font-size: 16px !important; letter-spacing: .01em; padding: 0 !important; line-height: 1.2 !important; }
.pb-header .et_pb_menu .et_pb_menu__menu > nav > ul > li > ul { top: calc(100% + 20px); }
.pb-header .et_pb_menu .nav li li { padding: 0; }
.pb-header .et_pb_menu .nav li li a { padding: 8px 22px !important; }
.pb-header .et_pb_menu__menu > nav > ul > li.current-menu-item > a,
.pb-header .et_pb_menu__menu > nav > ul > li.current-menu-ancestor > a { color: var(--pb-copper) !important; }
.pb-header .et_pb_menu .nav li ul { border-top: 3px solid var(--pb-copper); border-radius: 0 0 12px 12px; box-shadow: var(--pb-shadow); padding: 14px 0; }
.pb-header .et_pb_menu .nav li ul a { font-size: 14px; padding: 8px 22px; }
.pb-header .et_pb_menu .nav li ul a:hover { color: var(--pb-copper); background: transparent; }
.pb-header .et_mobile_menu { border-top: 3px solid var(--pb-copper); border-radius: 0 0 14px 14px; box-shadow: var(--pb-shadow); padding: 12px 10px; }
.pb-header .et_mobile_menu li a { border-color: var(--pb-line); font-size: 16px; }
.pb-header .mobile_menu_bar:before { color: var(--pb-navy); }
.pb-header-phone { margin: 0 !important; padding: 0 !important; }
.pb-header-phone .et_pb_code_inner { display: flex; justify-content: flex-end; align-items: center; }
.pb-phone { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px 0 18px; border-radius: 999px; background: var(--pb-navy); color: #fff !important; font-weight: 700; font-size: 15px; letter-spacing: .02em; text-decoration: none; white-space: nowrap; box-shadow: 0 8px 20px rgba(31, 45, 61, 0.18); transition: background .15s, transform .15s, box-shadow .15s; }
.pb-phone svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pb-phone:hover { background: var(--pb-copper); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(201, 138, 111, 0.35); }
@media (max-width: 980px) {
  .pb-topbar-info a:not(:first-child), .pb-topbar-hours { display: none; }
  .pb-topbar-inner { min-height: 38px; }
  .pb-header-main { min-height: 72px; }
  .pb-header-main > .et_pb_column:last-child { margin-left: 12px; }
  .pb-phone span { display: none; }
  .pb-phone { width: 46px; height: 46px; min-height: 0; padding: 0; justify-content: center; }
  .pb-phone svg { width: 20px; height: 20px; }
}
@media (max-width: 640px) {
  .pb-topbar-info { display: none; }
  .pb-topbar-inner { justify-content: center; }
}

/* ---------- Hero ---------- */
.pb-hero h1 { text-wrap: balance; letter-spacing: -.01em; }
.pb-hero-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin: 0; }
.pb-hero-links a { color: #fff !important; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.45); padding-bottom: 2px; font-weight: 500; transition: border-color .15s, color .15s; }
.pb-hero-links a:hover { color: #E8C3AE !important; border-color: #E8C3AE; }
.pb-hero-links span { color: rgba(255, 255, 255, 0.5); }

/* Buscador PREVENDE dentro del hero */
.pb-hero .pv-public { margin: 0 auto; }
.pb-hero .pv-public .pv-search-form { background: #ffffff; border: 0; border-radius: var(--pb-radius); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); padding: 32px 32px 28px; }
.pb-hero .pv-public .pv-search-form .pv-help { display: none; }
.pb-hero .pv-public .pv-field { color: var(--pb-navy); font-size: .8rem; font-weight: 800; letter-spacing: .08em; }
.pb-hero .pv-public .pv-field input, .pb-hero .pv-public .pv-field select { border: 2px solid #D9D1C6; background: #FBF9F6; color: var(--pb-navy); font-weight: 600; min-height: 54px; font-size: 16px; }
.pb-hero .pv-public .pv-field input::placeholder { color: #8A94A0; font-weight: 500; }
.pb-hero .pv-public .pv-field input:focus, .pb-hero .pv-public .pv-field select:focus { border-color: var(--pb-copper); background: #fff; }
.pb-hero .pv-public summary { font-size: .95rem; }
.pb-hero .pv-public .pv-search-actions { margin-top: 10px; }
.pb-hero .pv-public .pv-search-actions .pv-button { min-height: 54px; padding: 12px 28px; font-size: 16px; }
.pb-hero .pv-public .pv-button:not(.pv-button-secondary) { background: var(--pb-copper-dark); border-color: var(--pb-copper-dark); }
.pb-hero .pv-public .pv-button:not(.pv-button-secondary):hover { background: var(--pb-navy); border-color: var(--pb-navy); }
.pb-hero .pv-public .pv-button-secondary { border: 2px solid var(--pb-navy); color: var(--pb-navy); font-weight: 700; }
.pb-hero .pv-public .pv-reset { color: var(--pb-navy); font-weight: 600; text-decoration: underline; }
.pb-hero .et_pb_text, .pb-hero .et_pb_code { margin-bottom: 0; }
.pb-hero .pb-hero-links a { font-size: 16px; }

/* ---------- PREVENDE (buscador, tarjetas, ficha) con la marca ---------- */
.pv-public {
  --pv-ink: var(--pb-ink);
  --pv-muted: var(--pb-muted);
  --pv-line: var(--pb-line);
  --pv-soft: var(--pb-cream);
  --pv-radius: var(--pb-radius);
  font-family: var(--pb-body);
}
.pv-public h2, .pv-public h3 { font-family: var(--pb-heading); color: var(--pb-navy); font-weight: 700; }
.pv-public .pv-field { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--pb-navy); font-weight: 800; }
.pv-public .pv-field input, .pv-public .pv-field select, .pv-public .pv-field textarea { border: 2px solid #D9D1C6; background: #FBF9F6; border-radius: 10px; min-height: 52px; font-size: 16px; letter-spacing: 0; text-transform: none; color: var(--pb-navy); font-weight: 600; transition: border-color .15s, box-shadow .15s, background .15s; }
.pv-public .pv-field input::placeholder, .pv-public .pv-field textarea::placeholder { color: #7B8591; font-weight: 500; opacity: 1; }
/* Misma altura en todos los campos (inputs y selects) */
.pv-public .pv-field input:not([type=checkbox]):not([type=radio]), .pv-public .pv-field select { height: 52px; min-height: 52px; max-height: 52px; padding: 0 16px; line-height: 48px; box-sizing: border-box; }
.pv-public .pv-field select { appearance: none; -webkit-appearance: none; padding-right: 42px; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F2D3D' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; }
.pv-public .pv-field textarea { padding: 14px 16px; }
.pb-form .et_pb_contact_field .input:not(textarea) { height: 52px; min-height: 52px; padding: 0 18px; line-height: 50px; box-sizing: border-box; }
.pb-form .et_pb_contact_field textarea.input { padding: 14px 18px; }
.pv-public .pv-field select option { color: var(--pb-navy); }
.pv-public summary, .pv-public .pv-reset, .pv-public .pv-help { color: var(--pb-navy); }
.pv-public .pv-reset { font-weight: 700; text-decoration: underline; }
.pv-public .pv-consent, .pv-public .pv-consent span { color: var(--pb-ink); }
.pv-public .pv-field input:focus, .pv-public .pv-field select:focus, .pv-public .pv-field textarea:focus { border-color: var(--pb-copper); box-shadow: 0 0 0 3px rgba(201, 138, 111, 0.18); outline: none; }
.pv-public .pv-button { background: var(--pb-navy); border-color: var(--pb-navy); border-radius: 999px; min-height: 52px; padding: 12px 26px; font-weight: 700; letter-spacing: .01em; }
.pv-public .pv-button:hover { background: var(--pb-copper); border-color: var(--pb-copper); color: #fff; }
.pv-public .pv-button-secondary { background: #fff; color: var(--pb-navy); border-color: var(--pb-line); }
.pv-public .pv-button-secondary:hover { background: var(--pb-cream); color: var(--pb-navy); border-color: var(--pb-copper); }
.pv-public .pv-reset { color: var(--pb-muted); }
.pv-public .pv-search-form { background: var(--pb-cream); border-color: var(--pb-line); }
.pv-public summary { color: var(--pb-navy); font-weight: 600; cursor: pointer; }

/* Resultados */
.pv-public .pv-results-heading { margin: 36px 0 24px; padding-bottom: 16px; border-bottom: 1px solid var(--pb-line); }
.pv-public .pv-results-heading h2 { font-size: 1.9rem; margin: 0; }
.pv-public .pv-results-heading p { font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; }
.pv-public .pv-property-grid { gap: 28px; }
.pv-public .pv-property-card { border-color: var(--pb-line); border-radius: var(--pb-radius); box-shadow: 0 6px 20px rgba(31, 45, 61, 0.05); transition: transform .2s ease, box-shadow .2s ease; display: flex; flex-direction: column; }
.pv-public .pv-property-card:hover { transform: translateY(-4px); box-shadow: var(--pb-shadow); }
.pv-public .pv-card-photo { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--pb-cream); }
.pv-public .pv-card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.pv-public .pv-property-card:hover .pv-card-photo img { transform: scale(1.04); }
.pv-public .pv-status { background: var(--pb-navy); color: #fff; border-radius: 999px; padding: 5px 12px; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; box-shadow: none; }
.pv-public .pv-card-body { padding: 22px 22px 20px; display: flex; flex-direction: column; flex: 1; }
.pv-public .pv-card-location { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--pb-copper); font-weight: 600; margin: 0 0 8px; }
.pv-public .pv-card-body h3 { font-size: 1.22rem; line-height: 1.3; margin: 0 0 10px; }
.pv-public .pv-card-body h3 a { color: var(--pb-navy); }
.pv-public .pv-card-body h3 a:hover { color: var(--pb-copper); text-decoration: none; }
.pv-public .pv-price { color: var(--pb-navy); font-family: var(--pb-heading); font-size: 1.3rem; font-weight: 700; margin: 0 0 14px; }
.pv-public .pv-attribute-stats-compact { border-top: 1px solid var(--pb-line); padding-top: 14px; margin-top: auto; }
.pv-public .pv-attribute-stat { color: var(--pb-ink); }
.pv-public .pv-stat-icon { color: var(--pb-copper); }
.pv-public .pv-attribute-value { font-weight: 600; color: var(--pb-navy); }
.pv-public .pv-card-body .pv-reference { margin-top: 12px; font-size: .74rem; letter-spacing: .04em; }
.pv-public .pv-pagination a, .pv-public .pv-pagination .current, .pv-public .pv-pagination .dots { border-radius: 10px; border-color: var(--pb-line); color: var(--pb-navy); }
.pv-public .pv-pagination a:hover { border-color: var(--pb-copper); color: var(--pb-copper); }
.pv-public .pv-pagination .page-numbers.current { background: var(--pb-navy) !important; border-color: var(--pb-navy) !important; color: #fff !important; font-weight: 700; }
.pv-public .pv-pagination { margin: 40px 0 10px; }
.pv-public .pv-pagination a, .pv-public .pv-pagination .current, .pv-public .pv-pagination .dots { font-weight: 600; min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; background: #fff; }
.pv-public .pv-empty { text-align: center; padding: 60px 20px; background: var(--pb-cream); border-radius: var(--pb-radius); }
.pv-public .pv-notice { background: var(--pb-cream); border-left: 4px solid var(--pb-copper); padding: 14px 18px; border-radius: 10px; }

/* Destacados en la portada: sin cabecera del buscador */
.pb-destacados { margin: 0; max-width: none; }
.pb-destacados .pv-results-heading { display: none; }

/* Ficha de inmueble */
.pv-public.pv-detail { margin-top: 10px; }
.pv-public .pv-back { color: var(--pb-copper); font-weight: 600; text-decoration: none; font-size: .9rem; letter-spacing: .02em; }
.pv-public .pv-back:hover { color: var(--pb-navy); }
.pv-public .pv-detail-heading { margin-bottom: 30px; }
.pv-public .pv-detail-heading h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); line-height: 1.15; margin: 4px 0 12px; }
.pv-public .pv-detail-heading .pv-price { font-size: 1.9rem; margin-bottom: 20px; }
.pv-public .pv-detail-heading .pv-attribute-stats { gap: 14px; margin-bottom: 18px; }
.pv-public .pv-detail-heading .pv-attribute-stat { background: var(--pb-cream); border: 1px solid var(--pb-line); border-radius: 14px; }
.pv-public .pv-detail-heading .pv-stat-icon { background: #fff; color: var(--pb-copper); }
.pv-public .pv-inline-status { background: var(--pb-navy); color: #fff; border-radius: 999px; padding: 5px 12px; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.pv-public .pv-contact-link { margin-top: 8px; background: var(--pb-copper-dark); border-color: var(--pb-copper-dark); }
.pv-public .pv-contact-link:hover { background: var(--pb-navy); border-color: var(--pb-navy); }
.pv-public .pv-gallery-help { display: none; }
.pv-public .pv-gallery { gap: 12px; margin-bottom: 44px; }
.pv-public .pv-gallery a { border-radius: 14px; background: var(--pb-cream); }
.pv-public .pv-gallery a:first-child { border-radius: var(--pb-radius); }
.pv-public .pv-gallery img { transition: transform .5s ease; }
.pv-public .pv-gallery a:hover img { transform: scale(1.03); }
.pv-public .pv-description { font-size: 1.05rem; line-height: 1.7; color: var(--pb-ink); }
.pv-public .pv-description h2, .pv-public .pv-description h3, .pv-public .pv-amenities-section h2, .pv-public .pv-amenities-section h3 { font-size: 1.4rem; margin: 0 0 16px; }
.pv-public .pv-amenities-section { margin-top: 36px; padding-top: 32px; border-top: 1px solid var(--pb-line); }
.pv-public .pv-amenities { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px 20px; list-style: none; padding: 0; margin: 0 0 18px; }
.pv-public .pv-amenities li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--pb-line); font-weight: 500; }
.pv-public .pv-amenity-icon { color: var(--pb-copper); }
.pv-public .pv-reference { margin-top: 24px; }
.pv-public .pv-inquiry-panel { background: #fff; border: 1px solid var(--pb-line); border-radius: var(--pb-radius); padding: 30px 28px; box-shadow: var(--pb-shadow); position: sticky; top: 120px; }
.pv-public .pv-inquiry-panel h2, .pv-public .pv-inquiry-panel h3 { font-size: 1.35rem; margin: 0 0 6px; }
.pv-public .pv-inquiry-panel > p { color: var(--pb-muted); font-size: .95rem; margin: 0 0 18px; }
.pv-public .pv-inquiry-form .pv-button { width: 100%; background: var(--pb-copper-dark); border-color: var(--pb-copper-dark); }
.pv-public .pv-inquiry-form .pv-button:hover { background: var(--pb-navy); border-color: var(--pb-navy); }
.pv-public .pv-consent { font-size: .85rem; color: var(--pb-muted); font-weight: 400; text-transform: none; letter-spacing: 0; }
.pv-public .pv-consent a { color: var(--pb-copper); }
.pv-public .pv-help { color: var(--pb-muted); font-size: .85rem; }
.pv-public .pv-map { border-radius: var(--pb-radius); overflow: hidden; border: 1px solid var(--pb-line); }
.pv-public .pv-thanks { text-align: center; padding: 70px 20px; background: var(--pb-cream); border-radius: var(--pb-radius); }
.pv-public .pv-thanks-mark { color: var(--pb-copper); }

/* ---------- Módulos Divi ---------- */
.et_pb_button { letter-spacing: .01em; }
/* Botones con estilos garantizados (independientes de los ajustes del módulo) */
.pb-btn .et_pb_button, .pb-btn.et_pb_button { border-radius: 999px !important; border-width: 2px !important; font-weight: 700 !important; padding: 14px 30px !important; transition: background .18s, color .18s, border-color .18s, transform .18s, box-shadow .18s !important; }
.pb-btn .et_pb_button:hover, .pb-btn.et_pb_button:hover { transform: translateY(-2px); padding: 14px 30px !important; }
.pb-btn .et_pb_button:after, .pb-btn.et_pb_button:after { display: none !important; }
.pb-btn-primary .et_pb_button, .pb-btn-primary.et_pb_button { background: var(--pb-copper-dark) !important; border-color: var(--pb-copper-dark) !important; color: #fff !important; box-shadow: 0 10px 24px rgba(201, 138, 111, 0.30); }
.pb-btn-primary .et_pb_button:hover, .pb-btn-primary.et_pb_button:hover { background: var(--pb-navy) !important; border-color: var(--pb-navy) !important; color: #fff !important; box-shadow: 0 12px 28px rgba(31, 45, 61, 0.25); }
.pb-btn-navy .et_pb_button, .pb-btn-navy.et_pb_button { background: var(--pb-navy) !important; border-color: var(--pb-navy) !important; color: #fff !important; box-shadow: 0 10px 24px rgba(31, 45, 61, 0.20); }
.pb-btn-navy .et_pb_button:hover, .pb-btn-navy.et_pb_button:hover { background: var(--pb-copper) !important; border-color: var(--pb-copper) !important; color: #fff !important; }
.pb-btn-outline .et_pb_button, .pb-btn-outline.et_pb_button { background: transparent !important; border-color: var(--pb-navy) !important; color: var(--pb-navy) !important; }
.pb-btn-outline .et_pb_button:hover, .pb-btn-outline.et_pb_button:hover { background: var(--pb-navy) !important; color: #fff !important; }
.pb-btn-outline-light .et_pb_button, .pb-btn-outline-light.et_pb_button { background: rgba(255,255,255,0.08) !important; border-color: #fff !important; color: #fff !important; }
.pb-btn-outline-light .et_pb_button:hover, .pb-btn-outline-light.et_pb_button:hover { background: #fff !important; color: var(--pb-navy) !important; }
.pb-btn-light .et_pb_button, .pb-btn-light.et_pb_button { background: #fff !important; border-color: #fff !important; color: var(--pb-navy) !important; }
.pb-btn-light .et_pb_button:hover, .pb-btn-light.et_pb_button:hover { background: var(--pb-copper) !important; border-color: var(--pb-copper) !important; color: #fff !important; }
.et_pb_blurb .et_pb_main_blurb_image { margin-bottom: 18px; }
.et_pb_blurb .et_pb_module_header { font-family: var(--pb-heading); }
/* Tarjetas de la misma altura en filas de "blurbs" */
.et_pb_row:has(> .et_pb_column > .et_pb_blurb:only-child) { display: flex; flex-wrap: wrap; align-items: stretch; }
.et_pb_row:has(> .et_pb_column > .et_pb_blurb:only-child) > .et_pb_column { display: flex; flex-direction: column; margin-bottom: 0 !important; }
.et_pb_row:has(> .et_pb_column > .et_pb_blurb:only-child) > .et_pb_column > .et_pb_blurb { flex: 1; margin-bottom: 0 !important; }
.et_pb_toggle { transition: box-shadow .2s; }
.et_pb_toggle_open { box-shadow: 0 10px 30px rgba(31, 45, 61, 0.06); }
.et_pb_toggle_title { font-family: var(--pb-heading) !important; font-weight: 700 !important; }
h1, h2, h3, h4, h5, h6, .et_pb_module_header, .et_pb_number_counter .percent { font-family: var(--pb-heading) !important; font-weight: 700 !important; }
body, .et_pb_text, .et_pb_button, input, select, textarea, button { font-family: var(--pb-body); }
.et_pb_number_counter .title { letter-spacing: .04em; text-transform: uppercase; font-size: 13px !important; }

/* Cifras con icono (portada) */
.pb-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.pb-stat { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 34px 20px 30px; border-radius: var(--pb-radius); background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.10); transition: transform .2s, background .2s, border-color .2s; }
.pb-stat:hover { transform: translateY(-4px); background: rgba(255, 255, 255, 0.07); border-color: rgba(201, 138, 111, 0.6); }
.pb-stat-icon { display: inline-flex; align-items: center; justify-content: center; width: 66px; height: 66px; border-radius: 50%; background: rgba(201, 138, 111, 0.16); margin-bottom: 18px; }
.pb-stat-icon svg { width: 30px; height: 30px; fill: none; stroke: var(--pb-copper); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pb-stat-number { font-family: var(--pb-heading); font-weight: 700; font-size: 54px; line-height: 1; color: #fff; letter-spacing: -.01em; }
.pb-stat-number::after { content: ""; display: block; width: 36px; height: 3px; border-radius: 3px; background: var(--pb-copper); margin: 14px auto 12px; }
.pb-stat-label { color: rgba(255, 255, 255, 0.78); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
@media (max-width: 980px) { .pb-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } .pb-stat-number { font-size: 44px; } }
@media (max-width: 480px) { .pb-stats { grid-template-columns: 1fr; } }

/* Pasos (Qué hacemos) */
.pb-step { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--pb-navy); color: #fff !important; font-family: var(--pb-heading); font-size: 20px; margin-bottom: 14px !important; }

/* Blog */
.pb-blog-grid .et_pb_post { border: 1px solid var(--pb-line); border-radius: var(--pb-radius); overflow: hidden; background: #fff; padding: 0 !important; box-shadow: 0 6px 20px rgba(31, 45, 61, 0.05); transition: transform .2s, box-shadow .2s; }
.pb-blog-grid .et_pb_post:hover { transform: translateY(-4px); box-shadow: var(--pb-shadow); }
.pb-blog-grid .et_pb_post .entry-featured-image-url { margin: 0; aspect-ratio: 3 / 2; overflow: hidden; display: block; }
.pb-blog-grid .et_pb_post .entry-featured-image-url img { width: 100%; height: 100%; object-fit: cover; }
.pb-blog-grid .et_pb_post .entry-title, .pb-blog-grid .et_pb_post .post-meta, .pb-blog-grid .et_pb_post .post-content { padding: 0 24px; }
.pb-blog-grid .et_pb_post .entry-title { padding-top: 22px; font-family: var(--pb-heading); font-size: 20px !important; line-height: 1.3; }
.pb-blog-grid .et_pb_post .entry-title a { color: var(--pb-navy); }
.pb-blog-grid .et_pb_post .entry-title a:hover { color: var(--pb-copper); }
.pb-blog-grid .et_pb_post .post-meta { color: var(--pb-copper); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.pb-blog-grid .et_pb_post .post-content { padding-bottom: 24px; color: var(--pb-muted); }
.pb-blog-grid .et_pb_post .more-link { color: var(--pb-copper); font-weight: 600; }

/* Formularios Divi */
.pb-form .et_pb_contact_form_label { display: none; }
.pb-form .et_pb_contact_field { margin-bottom: 14px; padding: 0 7px; }
.pb-form .et_pb_contact_field .input { background: var(--pb-cream); border: 1px solid var(--pb-line); border-radius: 12px; color: var(--pb-ink); padding: 15px 18px; font-size: 15px; font-family: var(--pb-body); width: 100%; transition: border-color .15s, box-shadow .15s, background .15s; }
.pb-form .et_pb_contact_field .input::placeholder { color: var(--pb-muted); opacity: 1; }
.pb-form .et_pb_contact_field .input:focus { background: #fff; border-color: var(--pb-copper); box-shadow: 0 0 0 3px rgba(201, 138, 111, 0.18); outline: none; }
.pb-form .et_pb_contact_field textarea.input { min-height: 150px; }
.pb-form .et_pb_contact_field_options_title { display: none; }
.pb-form .et_pb_contact_field_checkbox { font-size: 14px; color: var(--pb-muted); }
.pb-form .et_pb_contact_field_checkbox { position: relative; }
.pb-form .et_pb_contact_field_checkbox label { position: relative; padding-left: 34px !important; cursor: pointer; color: var(--pb-ink); font-size: 15px; line-height: 1.5; }
.pb-form .et_pb_contact_field_checkbox label i, .pb-form .et_pb_contact_field_checkbox label:before { left: 0; top: 1px; width: 22px !important; height: 22px !important; border: 2px solid var(--pb-navy) !important; border-radius: 6px !important; background: #fff !important; box-shadow: 0 0 0 3px rgba(31, 45, 61, 0.06); }
.pb-form .et_pb_contact_field_checkbox input[type=checkbox]:checked + label i, .pb-form .et_pb_contact_field_checkbox label.checked i { background: var(--pb-navy) !important; }
.pb-form .et_pb_contact_field_checkbox input[type=checkbox]:checked + label i:before { color: #fff !important; font-size: 14px !important; top: 2px !important; left: 3px !important; }
.pb-form .et_pb_contact_field_checkbox label a { color: var(--pb-copper); font-weight: 700; }
.pv-public .pv-consent { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.pv-public .pv-consent input[type=checkbox], .pv-public input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--pb-navy); outline: 2px solid var(--pb-navy); outline-offset: -2px; border-radius: 6px; background: #fff; cursor: pointer; }
.pb-form .et_contact_bottom_container { float: none !important; display: flex !important; width: 100%; justify-content: flex-start !important; padding: 6px 7px 0; margin: 0; }
.pb-form .et_pb_button_wrapper { text-align: left; margin: 0; }
.pb-form .et_pb_contact_submit { background: var(--pb-copper-dark); border-color: var(--pb-copper-dark); color: #fff; border-radius: 999px; padding: 15px 34px !important; font-weight: 700; margin: 0; }
.pb-form .et_pb_contact_submit:hover { background: var(--pb-navy); border-color: var(--pb-navy); }
.pb-form .et-pb-contact-message { font-size: 15px; }
.pb-form .et-pb-contact-message p { margin: 0 7px 12px; }

/* Página de contacto */
.pb-contact-cards .et_pb_blurb { transition: transform .2s, box-shadow .2s; }
.pb-contact-cards .et_pb_blurb:hover { transform: translateY(-5px); }
.pb-contact-cards .et_pb_blurb .et_pb_blurb_description strong { color: var(--pb-navy); font-size: 1.05em; }
.pb-info-list { list-style: none; margin: 0 0 26px; padding: 0; }
.pb-info-list li { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--pb-line); }
.pb-info-list li:first-child { padding-top: 0; }
.pb-info-list svg { flex: none; width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: #fff; color: var(--pb-copper); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; box-shadow: 0 6px 16px rgba(31, 45, 61, 0.06); }
.pb-info-list strong { display: block; color: var(--pb-navy); font-family: var(--pb-heading); font-size: 15px; margin-bottom: 2px; }
.pb-info-list span { color: var(--pb-muted); font-size: 15px; line-height: 1.5; }
.pb-info-list a { color: var(--pb-copper); font-weight: 700; }
.pb-social-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.pb-social-row a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px 9px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--pb-line); color: var(--pb-navy) !important; font-weight: 700; font-size: 14px; text-decoration: none; transition: background .15s, color .15s, transform .15s, border-color .15s; }
.pb-social-row a:hover { background: var(--pb-navy); border-color: var(--pb-navy); color: #fff !important; transform: translateY(-2px); }
.pb-social-row svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pb-map { border-radius: var(--pb-radius); overflow: hidden; box-shadow: var(--pb-shadow); border: 4px solid #fff; }
.pb-map iframe { display: block; width: 100%; }

/* Listas con icono de check (textos de contenido) */
.et_pb_text ul { list-style: none; padding-left: 0 !important; margin: 0 0 22px; }
.et_pb_text ul li { position: relative; padding-left: 34px; margin-bottom: 10px; line-height: 1.6; }
.et_pb_text ul li::before { content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%; background: var(--pb-cream) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C98A6F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='m5 12 5 5L20 7'/></svg>") center / 12px no-repeat; }
.pb-footer .et_pb_text ul li::before { display: none; }
.pb-footer .et_pb_text ul li { padding-left: 0; }

/* Blurbs: icono con círculo y pequeño realce al pasar */
.et_pb_blurb { transition: transform .2s, box-shadow .2s; }
.et_pb_blurb .et_pb_main_blurb_image { display: block; margin-bottom: 20px; text-align: inherit; }
.et_pb_blurb .et-pb-icon { display: inline-flex !important; align-items: center; justify-content: center; width: 72px !important; height: 72px !important; font-size: 30px !important; line-height: 1 !important; border-radius: 50% !important; background: var(--pb-cream); color: var(--pb-copper) !important; }
.et_pb_blurb .et_pb_image_wrap { display: inline-block; }
.pb-contact-cards .et_pb_blurb_content, .pb-contact-cards .et_pb_main_blurb_image, .pb-contact-cards .et_pb_blurb_container, .pb-contact-cards .et_pb_module_header, .pb-contact-cards .et_pb_blurb_description { text-align: center !important; }
.pb-contact-cards .et_pb_blurb .et-pb-icon { background: var(--pb-copper); color: #fff !important; }
.et_pb_blurb:hover { box-shadow: var(--pb-shadow); }
.et_pb_blurb .et-pb-icon { transition: transform .25s; }
.et_pb_blurb:hover .et-pb-icon { transform: scale(1.08) rotate(-4deg); }

/* ---------- Pie de página ---------- */
.pb-footer a { transition: color .15s; }
.pb-footer-links { list-style: none; padding: 0; margin: 0; }
.pb-footer-links li { margin: 0 0 10px; padding: 0; line-height: 1.45; }
.pb-footer-links a, .pb-footer-social a, .pb-footer-legal a { color: rgba(255, 255, 255, 0.78) !important; text-decoration: none; }
.pb-footer-links a:hover, .pb-footer-social a:hover, .pb-footer-legal a:hover { color: #E8C3AE !important; }
.pb-footer-social { margin-top: 18px; }
.pb-footer-legal { margin: 0; }
/* Crédito del pie: enlace solo en la portada; texto sin enlace en el resto */
body:not(.home) .pb-credit-home { display: none; }
body.home .pb-credit-inner { display: none; }
.pb-footer .et_pb_image { max-width: 300px !important; }
.pb-footer .et_pb_image img { max-height: 92px; height: 92px; width: auto; }

/* ---------- Entradas del blog: contenido y barra lateral ---------- */
.single-post #main-content .container { padding-top: 48px; padding-bottom: 60px; }
.single-post #left-area { padding-right: 48px; }
.single-post article.post .entry-title { font-size: 40px; line-height: 1.15; margin-bottom: 14px; }
.single-post article.post .post-meta { color: var(--pb-copper); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; margin-bottom: 26px; }
.single-post article.post .post-meta a { color: inherit; }
.single-post article.post .et_post_meta_wrapper img.wp-post-image, .single-post article.post .entry-featured-image-url img { border-radius: var(--pb-radius); box-shadow: var(--pb-shadow); margin-bottom: 30px; }
.single-post .entry-content { font-size: 17px; line-height: 1.75; }
.single-post .entry-content h2, .single-post .entry-content h3 { margin: 1.6em 0 .6em; }
.single-post .entry-content a { color: var(--pb-copper); font-weight: 600; }
.single-post .entry-content img { border-radius: 14px; }
.single-post .entry-content blockquote { border-left: 4px solid var(--pb-copper); background: var(--pb-cream); padding: 18px 24px; border-radius: 0 14px 14px 0; font-style: normal; }
#sidebar { padding-left: 0; }
#sidebar:before, #main-content .container:before { display: none !important; }
#sidebar .et_pb_widget { margin: 0 0 24px; background: #fff; border: 1px solid var(--pb-line); border-radius: var(--pb-radius); padding: 26px 26px 22px; box-shadow: 0 6px 20px rgba(31, 45, 61, 0.05); }
#sidebar .et_pb_widget .widgettitle, #sidebar .et_pb_widget h3, #sidebar .et_pb_widget h4 { font-family: var(--pb-heading); font-size: 17px; color: var(--pb-navy); margin: 0 0 14px; padding-bottom: 12px; border-bottom: 2px solid var(--pb-cream); position: relative; }
#sidebar .et_pb_widget .widgettitle:after, #sidebar .et_pb_widget h3:after { content: ""; position: absolute; left: 0; bottom: -2px; width: 44px; height: 2px; background: var(--pb-copper); }
#sidebar .et_pb_widget ul { list-style: none; padding: 0; margin: 0; }
#sidebar .et_pb_widget ul li { padding: 10px 0; border-bottom: 1px dashed var(--pb-line); line-height: 1.45; font-size: 15px; }
#sidebar .et_pb_widget ul li:last-child { border-bottom: 0; padding-bottom: 0; }
#sidebar .et_pb_widget ul li a { color: var(--pb-ink); font-weight: 600; text-decoration: none; }
#sidebar .et_pb_widget ul li a:hover { color: var(--pb-copper); }
#sidebar .widget_recent_entries .post-date { display: block; font-size: 12px; color: var(--pb-copper); letter-spacing: .05em; text-transform: uppercase; margin-top: 2px; }
#sidebar .widget_categories li { display: flex; justify-content: space-between; color: var(--pb-muted); }
#sidebar .widget_search form, #sidebar .et_pb_widget .search-form { position: relative; }
#sidebar .et_pb_widget input[type=search], #sidebar .et_pb_widget input[type=text] { width: 100%; height: 48px; border: 2px solid var(--pb-line); border-radius: 999px; padding: 0 48px 0 18px; background: var(--pb-cream); color: var(--pb-navy); font-weight: 600; font-size: 15px; }
#sidebar .et_pb_widget input[type=search]:focus { border-color: var(--pb-copper); outline: none; background: #fff; }
#sidebar .et_pb_widget input[type=submit], #sidebar .et_pb_widget button[type=submit], #sidebar .et_pb_widget .search-submit { position: absolute; right: 4px; top: 4px; height: 40px; width: 40px; border-radius: 50%; border: 0; background: var(--pb-navy) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round'><circle cx='11' cy='11' r='7'/><path d='m20 20-3.5-3.5'/></svg>") center / 18px no-repeat; color: transparent; font-size: 0; cursor: pointer; }
#sidebar .et_pb_widget label.screen-reader-text { display: none; }
.pb-widget-cta { text-align: center; }
.pb-widget-cta-icon { display: inline-flex; width: 64px; height: 64px; border-radius: 50%; background: var(--pb-cream); align-items: center; justify-content: center; margin-bottom: 12px; }
.pb-widget-cta-icon svg { width: 30px; height: 30px; fill: none; stroke: var(--pb-copper); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pb-widget-cta h3 { border: 0 !important; padding: 0 !important; margin-bottom: 8px !important; }
.pb-widget-cta h3:after { display: none !important; }
.pb-widget-cta p { color: var(--pb-muted); font-size: 15px; margin: 0 0 16px; }
.pb-widget-btn { display: inline-block; background: var(--pb-copper-dark); color: #fff !important; font-weight: 700; padding: 12px 24px; border-radius: 999px; text-decoration: none; transition: background .15s, transform .15s; }
.pb-widget-btn:hover { background: var(--pb-navy); transform: translateY(-2px); }
.pb-widget-contact ul li a, .pb-widget-contact ul li > span { display: inline-flex; align-items: center; gap: 10px; }
.pb-widget-contact svg { width: 18px; height: 18px; fill: none; stroke: var(--pb-copper); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.pb-widget-props .pv-public { margin: 0; }
.pb-widget-props .pv-property-grid { grid-template-columns: 1fr !important; gap: 14px; }
.pb-widget-props .pv-property-card { box-shadow: none; border-radius: 14px; }
.pb-widget-props .pv-card-body { padding: 14px 16px 12px; }
.pb-widget-props .pv-card-body h3 { font-size: 1rem; border: 0 !important; padding: 0 !important; margin: 0 0 6px !important; }
.pb-widget-props .pv-card-body h3:after { display: none !important; }
.pb-widget-props .pv-price { font-size: 1.05rem; margin-bottom: 0; }
.pb-widget-props .pv-attribute-stats, .pb-widget-props .pv-reference, .pb-widget-props .pv-card-location { display: none; }
.pb-widget-link { display: inline-block; margin-top: 14px; color: var(--pb-copper); font-weight: 700; text-decoration: none; }
@media (max-width: 980px) { .single-post #left-area { padding-right: 0; } #sidebar { margin-top: 30px; } }

/* ---------- Páginas legales / entradas ---------- */
/* Aire antes del pie en páginas sin constructor (legales, entradas, búsqueda, 404) */
body:not(.et_pb_pagebuilder_layout) #main-content .container { padding-top: 64px !important; padding-bottom: 96px !important; }
.page-template-default:not(.et_pb_pagebuilder_layout) .entry-title { font-size: 42px; margin-bottom: 26px; }
.page-template-default:not(.et_pb_pagebuilder_layout) .entry-content { max-width: 960px; }
.pb-footer { margin-top: 0; }
.single-post .et_pb_post_content, .page-template-default:not(.home) .entry-content { font-size: 17px; line-height: 1.7; }
.single-post .et_pb_post_content h2, .single-post .et_pb_post_content h3 { font-family: var(--pb-heading); color: var(--pb-navy); margin-top: 1.6em; }

/* ---------- Banner de cookies (Moove): mismo esquema que presenciaeninternet.com ---------- */
#moove_gdpr_cookie_info_bar, #moove_gdpr_cookie_modal .moove-gdpr-modal-content { font-family: var(--pb-body); }
#moove_gdpr_cookie_info_bar .moove-gdpr-info-bar-container .moove-gdpr-info-bar-content p { font-size: 14px; line-height: 1.5; }
#moove_gdpr_cookie_info_bar .mgbutton, #moove_gdpr_cookie_modal .mgbutton { font-family: var(--pb-body) !important; font-weight: 700 !important; }
#moove_gdpr_cookie_modal .moove-gdpr-modal-content .moove-gdpr-modal-title, #moove_gdpr_cookie_modal .moove-gdpr-modal-content h3 { font-family: var(--pb-heading) !important; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .pb-hero .pv-public .pv-search-form { padding: 20px; }
  .pv-public .pv-inquiry-panel { position: static; }
  .pv-public .pv-results-heading { flex-direction: column; align-items: flex-start; gap: 6px; }
}
@media (max-width: 640px) {
  .pb-header .et_pb_menu__logo img { height: 60px; max-height: 60px; }
  .pb-header-main { min-height: 64px; }
  .pb-hero h1 { font-size: 38px !important; }
  .pv-public .pv-detail-heading .pv-price { font-size: 1.5rem; }
  .pv-public .pv-property-grid { gap: 20px; }
}
