/* brand.css — capa de normalización RA
   Regla: solo radios, colores de pie y sombras que sean EQUIVALENCIA EXACTA
   de un token. Prohibido introducir elevación donde la página no la tenía. */

/* ── Radios (aprobados 6/10/14/20/pill) ─────────────────── */
body:not(:has(.ab-hero)) :is(
  .button,.button-blue,.button-gold,.button-light,
  .ap-button,.dm-cta,.dm-cta-primary,.dm-btn,
  .hp-city-primary,.hp-city-service,.nav-contact,.search-submit,
  .ra-broker-button-lime,.ra-about-primary,.ra-about-lime,
  .card-photo-prev,.card-photo-next,.image-arrow,.gallery-dialog button
){ border-radius: var(--radius-md) !important; }

body:not(:has(.ab-hero)) :is(.property-card,.dm-card,.mh-visual-card,.dm-panel,.mh-filter-empty){
  border-radius: var(--radius-xl) !important;
}

body:not(:has(.ab-hero)) :is(.field input,.field select,.field textarea,.dm-grid input,.dm-grid select){
  border-radius: var(--radius-md) !important;
}

body:not(:has(.ab-hero)) :is(.tag,.collection-label,.demo-tag){ border-radius: var(--radius-sm) !important; }
body:not(:has(.ab-hero)) :is(.dm-filter,.dm-cta-primary,.dm-infoicon){ border-radius: var(--radius-pill) !important; }
body:not(:has(.ab-hero)) :is(dialog,.dm-dialog){ border-radius: var(--radius-xl) !important; }

/* ── Pie ────────────────────────────────────────────────── */
body:not(:has(.ab-hero)) :is(.site-footer,.ra-footer,.ra-footer-contact){
  background: var(--ra-footer-bg) !important;
  color: var(--tone-footer-ink) !important;
}

/* ── Sombras: solo equivalencias exactas ────────────────── */
/* 0 1px 2px rgba(34,39,30,.10) = --shadow-sm */
body:not(:has(.ab-hero)) :is(.property-card,.dm-card){ box-shadow: var(--shadow-sm) !important; }
/* 0 12px 30px rgba(34,39,30,.14) = --shadow-lg */
body:not(:has(.ab-hero)) :is(.dm-dialog,.gallery-dialog){ box-shadow: var(--shadow-lg) !important; }

/* El resto de las sombras queda como está hasta F3, que se decide una por una. */

/* -- F2 � B: chips ---------------------------------------- */
/* .tag ya est� en 6px; el �nico fuera de escala es .ra-ba-label (7px). */
body:not(:has(.ab-hero)) :is(.ra-ba-label){ border-radius: var(--radius-sm) !important; }
body:not(:has(.ab-hero)) :is(.dm-chip){ border-radius: var(--radius-sm) !important; }

/* -- F2 � A: header Rolex (I1) --------------------------- */
body:not(:has(.ab-hero)) .rh-inner{ background: var(--header-bg) !important; }
body:not(:has(.ab-hero)) :is(.site-header .rh-nav-link,.site-header .nav-group>summary){ color: var(--header-ink) !important; }
body:not(:has(.ab-hero)) :is(.site-header .nav-luxury){ color: var(--header-detail) !important; }
body:not(:has(.ab-hero)) :is(.site-header .nav-owner,.site-header .rh-client-publish){
  background: var(--header-cta) !important; border-color: var(--header-cta) !important;
  color: var(--header-cta-ink) !important; box-shadow: inset 0 0 0 1px var(--header-ink) !important;
}
body:not(:has(.ab-hero)) :is(.site-header .rh-nav-link[aria-current],.site-header .nav-group.is-current>summary){
  background: transparent !important; color: #FFFFFF !important;
  box-shadow: inset 0 -2px 0 var(--header-detail) !important;
}
/* Hablemos: texto accent-light (5,59) e �cono heredando ese color (antes #004D2E = 1,34) */
body:not(:has(.ab-hero)) :is(.site-header .rh-contact){ color: #8CAFA1 !important; }
body:not(:has(.ab-hero)) :is(.site-header .rh-contact svg){ color: inherit !important; stroke: currentColor !important; }
/* Especificidad reforzada: el dorado de RA Luxury debe ganarle al color de nav */
body:not(:has(.ab-hero)) .site-header.rh-header .rh-nav-link.nav-luxury.nav-luxury{ color: var(--header-detail) !important; }

/* -- Men�: mismo verde que el header (sin segundo color) -- */
body:not(:has(.ab-hero)) :is(.services-dropdown,.rh-properties-menu){ background: var(--header-bg) !important; }
body:not(:has(.ab-hero)) :is(.rh-service-links>a:not(.rh-service-airbnb),.rh-property-links>a){
  background: transparent !important;
  border: 1px solid rgba(237,232,221,.42) !important;
}
body:not(:has(.ab-hero)) :is(.rh-service-links>a:not(.rh-service-airbnb):hover,.rh-property-links>a:hover){
  background: rgba(237,232,221,.08) !important;
}

/* Excepción Airbnb: recupera su ciruela propia */
body:not(:has(.ab-hero)) .rh-service-links>a.rh-service-airbnb{ background:#39292D !important; border-color:rgba(223,49,81,.42) !important; }

/* Tarjetas: tinte marfil suave en vez de verde solido */
body:not(:has(.ab-hero)) .rh-service-links>a:not(.rh-service-airbnb){ background:rgba(237,232,221,.05) !important; border-color:rgba(237,232,221,.44) !important; }
body:not(:has(.ab-hero)) .rh-service-links>a:not(.rh-service-airbnb):hover{ background:rgba(237,232,221,.09) !important; }
/* Iconos: contenedor con tinte marfil y trazo claro */
body:not(:has(.ab-hero)) .rh-service-links>a:not(.rh-service-airbnb) .rh-service-icon{ background:rgba(237,232,221,.10) !important; color:#EDE8DD !important; }
body:not(:has(.ab-hero)) .rh-service-links>a:not(.rh-service-airbnb) .rh-service-icon svg{ color:inherit !important; stroke:currentColor !important; }

/* Hablemos: texto e �cono a marfil pleno (antes accent-light) */
body:not(:has(.ab-hero)) :is(.site-header .rh-contact){ color: var(--header-ink) !important; }
body:not(:has(.ab-hero)) :is(.site-header .rh-contact svg){ color: inherit !important; stroke: currentColor !important; }

/* Bot�n "Busca tu propiedad": invertido a fondo blanco y letras verdes */
body:not(:has(.ab-hero)) :is(.site-header .rh-search-path>summary){
  background: #FFFFFF !important;
  color: var(--header-bg) !important;
  border-color: #FFFFFF !important;
}
body:not(:has(.ab-hero)) :is(.site-header .rh-search-path>summary svg){ color: inherit !important; stroke: currentColor !important; }
body:not(:has(.ab-hero)) :is(.site-header .rh-search-path>summary:hover){ background: #F2F4EF !important; border-color: #F2F4EF !important; }

/* Buscador de /propiedades (variante .rh-client-search, desktop y m�vil) */
body:not(:has(.ab-hero)) :is(.site-header .rh-client-search){
  background: #FFFFFF !important;
  color: var(--header-bg) !important;
  border-color: #FFFFFF !important;
}
body:not(:has(.ab-hero)) :is(.site-header .rh-client-search svg){ color: inherit !important; stroke: currentColor !important; }
body:not(:has(.ab-hero)) :is(.site-header .rh-client-search:hover){ background: #F2F4EF !important; border-color: #F2F4EF !important; }

/* Bot�n Men� (m�vil): outline marfil en vez del chip oscuro viejo */
body:not(:has(.ab-hero)) :is(.site-header .menu-toggle){
  background: transparent !important;
  color: var(--header-ink) !important;
  border: 1px solid rgba(237,232,221,.45) !important;
}
/* CTA m�vil con el mismo anillo que el de escritorio */
body:not(:has(.ab-hero)) :is(.site-header .rh-client-publish){
  box-shadow: inset 0 0 0 1px var(--header-ink) !important;
}

/* /propiedades marca el buscador como .is-current y eso pisaba el bot�n invertido */
body:not(:has(.ab-hero)) .site-header .nav-group.rh-search-path.is-current>summary{
  background: #FFFFFF !important;
  color: var(--header-bg) !important;
  border-color: #FFFFFF !important;
}
body:not(:has(.ab-hero)) .site-header .nav-group.rh-search-path.is-current>summary svg{
  color: inherit !important; stroke: currentColor !important;
}

/* -- Radios del header seg�n la escala aprobada ----------- */
body:not(:has(.ab-hero)) :is(.site-header .nav-owner,.site-header .rh-client-publish,.site-header .rh-client-search,.site-header .menu-toggle,.site-header .nav-contact,.site-header .rh-contact){
  border-radius: var(--radius-md) !important;
}
body:not(:has(.ab-hero)) :is(.site-header .nav-group>summary){
  border-radius: var(--radius-md) !important;
}
/* Paneles del men� y sus tarjetas */
body:not(:has(.ab-hero)) :is(.services-dropdown,.rh-properties-menu){ border-radius: var(--radius-lg) !important; }
body:not(:has(.ab-hero)) :is(.rh-service-links>a,.rh-property-links>a){ border-radius: var(--radius-lg) !important; }

/* -- Home: segundos tonos y botones fuera de sistema ------- */
/* Dos t�tulos usaban el sage viejo (#8CAFA1) como segundo tono */
body:not(:has(.ab-hero)) :is(.ra-rent-home-panel h2 span,.ha-contact-copy h2 span){
  color: var(--tone-accent-light) !important;
}
/* "Solicitar evaluaci�n" se llama button-white pero ten�a fondo sage */
body:not(:has(.ab-hero)) :is(.button.button-white){
  background: #FFFFFF !important;
  color: var(--header-bg) !important;
  border-color: #FFFFFF !important;
}
body:not(:has(.ab-hero)) :is(.button.button-white svg){ color: inherit !important; stroke: currentColor !important; }
/* Link-bot�n del encabezado de secci�n: radio de la escala */
body:not(:has(.ab-hero)) :is(.mh-section-heading .text-link){ border-radius: var(--radius-md) !important; }

/* -- �conos sobre fondo oscuro: heredan el color del texto -- */
body:not(:has(.ab-hero)) :is(.site-header .rh-menu-heading svg,.site-header .rh-service-links>a svg,.site-header .rh-property-links>a svg){
  stroke: currentColor !important;
  color: inherit !important;
}
body:not(:has(.ab-hero)) :is(.ha-contact-person svg){
  stroke: currentColor !important;
  color: var(--header-ink) !important;
}
body:not(:has(.ab-hero)) :is(.ha-contact-person span){
  border-color: rgba(237,232,221,.45) !important;
}
/* Eyebrow del bloque de contacto: sage -> segundo tono aprobado */
body:not(:has(.ab-hero)) :is(.ha-contact .ha-eyebrow,.ha-contact .ha-eyebrow i){
  color: var(--tone-accent-light) !important;
  border-color: var(--tone-accent-light) !important;
}

/* Los �conos de las tarjetas del men� heredan del <i>, no del svg */
body:not(:has(.ab-hero)) :is(.site-header .rh-service-links>a>i,.site-header .rh-property-links>a>i){
  color: var(--header-ink) !important;
}
body:not(:has(.ab-hero)) :is(.site-header .rh-service-links>a>i svg,.site-header .rh-property-links>a>i svg){
  stroke: currentColor !important;
  color: inherit !important;
}

/* -- Arreglos por p�gina (19-nov) -------------------------- */

/* /publica-tu-propiedad */
body:not(:has(.ab-hero)) :is(.owner-hero .owner-paths a.button.owner-path){
  background: #FFFFFF !important; color: var(--header-bg) !important; border-color: #FFFFFF !important;
}
body:not(:has(.ab-hero)) :is(.owner-hero .owner-paths a.button.owner-path svg){ color: inherit !important; stroke: currentColor !important; }
body:not(:has(.ab-hero)) :is(.owner-hero .owner-copy h1 em){ color: #2E5B4E !important; }

/* /servicios */
body:not(:has(.ab-hero)) :is(.ra-broker-hero-file svg){ stroke: currentColor !important; color: var(--tone-footer-ink) !important; }
body:not(:has(.ab-hero)) :is(.ra-broker-process h2 span,.ra-broker-final h2 span){ color: var(--tone-accent-light) !important; }
body:not(:has(.ab-hero)) :is(.ra-broker-scope h2 span,.ra-broker-agreement h2 span,.ra-broker-complements h2 span){ color: #2E5B4E !important; }

/* /fotografia-video-3d */
body:not(:has(.ab-hero)) :is(.ra-immersive h2 span,.ra-visual-review h2 span){ color: #2E5B4E !important; }
body:not(:has(.ab-hero)) :is(.ra-mixed-reality h2 span){ color: var(--tone-accent-light) !important; }

/* /la-experiencia-ra */
body:not(:has(.ab-hero)) :is(.ra-about-hero-copy h1 span){ color: #2E5B4E !important; }
body:not(:has(.ab-hero)) :is(.ra-about-manifesto h2 span,.ra-about-director h2 span,.ra-about-method h2 span,.ra-about-technology h2 span){ color: #2E5B4E !important; }
body:not(:has(.ab-hero)) :is(.ra-about-contact h2 span){ color: var(--tone-accent-light) !important; }
body:not(:has(.ab-hero)) :is(.ra-about-hero-copy .button,.ra-about-director .button){
  background: var(--ra-accent) !important; border-color: var(--ra-accent) !important; color: #FFFFFF !important;
}
body:not(:has(.ab-hero)) :is(.ra-about-contact .button){
  background: #FFFFFF !important; border-color: #FFFFFF !important; color: var(--header-bg) !important;
}
body:not(:has(.ab-hero)) :is(.ra-about-luxury-path span){ color: #8A6A2F !important; }
/* /servicios: el span del proceso tiene una regla !important m�s espec�fica */
body:not(:has(.ab-hero)) .ra-broker-process .ra-broker-heading h2 span,
body:not(:has(.ab-hero)) .ra-broker-process h2>span{
  color: #AAC4B9 !important;
  font-weight: 700 !important;
}
/* Etiqueta RA LUXURY de las fichas: dorado claro sobre tarjeta clara no se lee */
body:not(:has(.ab-hero)) :is(.collection-label){ color: #8A6A2F !important; }

/* -- Segundo tono: marfil + un poco m�s de peso (solo bloques oscuros) -- */
body:not(:has(.ab-hero)) :is(.hp-city-copy h1 span){ color: #AAC4B9 !important; font-weight: 550 !important; }
body:not(:has(.ab-hero)) :is(.ra-rent-home-panel h2 span){ color: #AAC4B9 !important; font-weight: 700 !important; }
body:not(:has(.ab-hero)) :is(.ha-contact h2 span){ color: #AAC4B9 !important; font-weight: 600 !important; }
body:not(:has(.ab-hero)) :is(.ra-broker-process h2 span,.ra-broker-final h2 span){ color: #AAC4B9 !important; font-weight: 700 !important; }
body:not(:has(.ab-hero)) :is(.ra-mixed-reality h2 span){ color: #AAC4B9 !important; font-weight: 700 !important; }
body:not(:has(.ab-hero)) :is(.ra-about-contact h2 span){ color: #AAC4B9 !important; font-weight: 650 !important; }
/* Cierre de la familia celeste: dos segundos tonos que quedaban en oliva */
body:not(:has(.ab-hero)) :is(.ra-broker-hero h2 span,.ra-broker-hero-copy h2 span,.ra-broker-hero h1 span){ color: #2E5B4E !important; }
body:not(:has(.ab-hero)) :is(.ra-faq-home h2 span){ color: #2E5B4E !important; }
