/* =========================================================
   REALTOR CENTER — RESTAURACIÓN CONTROLADA DE INICIO
   No toca header/logo. No toca footer interno.
   Recupera hero con imagen, buscador y secciones sin romper.
========================================================= */

:root {
	--rc-deep: #0B0B0B;
	--rc-deep-2: #1A1A1A;
	--rc-petrol: #6F6F6F;
	--rc-lime: #D9A84E;
	--rc-ice: #F2F2F2;
	--rc-soft: #F2F2F2;
	--rc-white: #FFFFFF;
	--rc-hero-image: none;
}

html,
body {
	background: var(--rc-ice) !important;
	color: var(--rc-deep) !important;
}

#page,
.site,
.site-main,
main {
	background: transparent !important;
}

/* =========================================================
   HERO INICIO — RECUPERA IMAGEN PRINCIPAL
========================================================= */

body.home .rc-hero,
body.home .hero,
body.home .hero-section,
body.home section:first-of-type {
	position: relative !important;
	isolation: isolate !important;
	overflow: hidden !important;

	min-height: clamp(620px, 74vh, 860px) !important;

	background-image:
		linear-gradient(
			90deg,
			rgba(11, 11, 11, 0.82) 0%,
			rgba(11, 11, 11, 0.58) 42%,
			rgba(11, 11, 11, 0.20) 100%
		),
		var(--rc-hero-image) !important;

	background-size: cover !important;
	background-position: center center !important;
	background-repeat: no-repeat !important;
	background-color: var(--rc-deep) !important;
}

body.home .rc-hero::before,
body.home .hero::before,
body.home .hero-section::before {
	content: none !important;
}

body.home .rc-hero::after,
body.home .hero::after,
body.home .hero-section::after {
	content: "" !important;
	position: absolute !important;
	inset: 0 !important;
	z-index: 0 !important;
	pointer-events: none !important;
	background:
		radial-gradient(circle at 20% 30%, rgba(111, 111, 111, .16), transparent 38%),
		linear-gradient(90deg, rgba(11, 11, 11, .48), rgba(11, 11, 11, .10)) !important;
}

body.home .rc-hero > *,
body.home .hero > *,
body.home .hero-section > * {
	position: relative !important;
	z-index: 1 !important;
}

body.home .rc-hero h1,
body.home .hero h1,
body.home .hero-section h1,
body.home section:first-of-type h1 {
	color: #FFFFFF !important;
	text-shadow: 0 18px 48px rgba(0,0,0,.25) !important;
}

body.home .rc-hero p,
body.home .hero p,
body.home .hero-section p,
body.home section:first-of-type p {
	color: rgba(242, 242, 242, .86) !important;
}

/* Botones del hero */
body.home .rc-hero a,
body.home .hero a,
body.home .hero-section a {
	text-decoration: none !important;
}

body.home .rc-hero a:first-of-type,
body.home .hero a:first-of-type,
body.home .hero-section a:first-of-type {
	background: var(--rc-lime) !important;
	color: var(--rc-deep) !important;
	border-color: rgba(217, 168, 78,.42) !important;
}

body.home .rc-hero a[href*="wa.me"],
body.home .hero a[href*="wa.me"],
body.home .hero-section a[href*="wa.me"] {
	background: rgba(11, 11, 11, .72) !important;
	color: #FFFFFF !important;
	border: 1px solid rgba(242, 242, 242,.22) !important;
}

/* =========================================================
   BUSCADOR DE INICIO
========================================================= */

body.home form[action],
body.home .rc-search,
body.home .rc-search-box,
body.home .property-search,
body.home .search-card,
body.home .hero-search {
	background: rgba(255,255,255,.94) !important;
	border: 1px solid rgba(11, 11, 11,.10) !important;
	border-radius: 22px !important;
	box-shadow: 0 28px 76px rgba(11, 11, 11,.18) !important;
	backdrop-filter: blur(18px) !important;
	-webkit-backdrop-filter: blur(18px) !important;
}

body.home form[action] label,
body.home .rc-search label,
body.home .property-search label,
body.home .hero-search label {
	color: rgba(11, 11, 11,.70) !important;
	font-size: 12px !important;
	font-weight: 900 !important;
	letter-spacing: .08em !important;
	text-transform: uppercase !important;
}

body.home form[action] input,
body.home form[action] select,
body.home .rc-search input,
body.home .rc-search select,
body.home .property-search input,
body.home .property-search select,
body.home .hero-search input,
body.home .hero-search select {
	background: #FFFFFF !important;
	color: var(--rc-deep) !important;
	border: 1px solid rgba(11, 11, 11,.12) !important;
	border-radius: 12px !important;
}

body.home form[action] button,
body.home .rc-search button,
body.home .property-search button,
body.home .hero-search button {
	background: var(--rc-deep) !important;
	color: #FFFFFF !important;
	border: 1px solid rgba(11, 11, 11,.16) !important;
	border-radius: 14px !important;
	font-weight: 900 !important;
}

/* =========================================================
   SECCIONES CLARAS DE HOME
========================================================= */

body.home section:not(.rc-hero):not(.hero):not(.hero-section):not(.rc-site-header):not(footer):not(.site-footer) {
	position: relative !important;
	isolation: isolate !important;
	background:
		linear-gradient(
			135deg,
			rgba(242, 242, 242, .92) 0%,
			rgba(255,255,255,.72) 48%,
			rgba(242, 242, 242,.78) 100%
		) !important;
	border-top: 1px solid rgba(11, 11, 11,.06) !important;
	border-bottom: 1px solid rgba(11, 11, 11,.06) !important;
}

body.home section:not(.rc-hero):not(.hero):not(.hero-section) h2,
body.home section:not(.rc-hero):not(.hero):not(.hero-section) h3 {
	color: var(--rc-deep) !important;
}

body.home section:not(.rc-hero):not(.hero):not(.hero-section) p,
body.home section:not(.rc-hero):not(.hero):not(.hero-section) li {
	color: rgba(11, 11, 11,.68) !important;
}

/* =========================================================
   CONTACTO ANTES DEL FOOTER
========================================================= */

body.home #contacto,
body.home .rc-contact-cta,
body.home .section-contact,
body.home .contact-section {
	background:
		linear-gradient(135deg, rgba(11, 11, 11,.96), rgba(8,35,30,.94)) !important;
	color: var(--rc-ice) !important;
}

body.home #contacto h2,
body.home .rc-contact-cta h2,
body.home .section-contact h2,
body.home .contact-section h2 {
	color: #FFFFFF !important;
}

body.home #contacto p,
body.home .rc-contact-cta p,
body.home .section-contact p,
body.home .contact-section p {
	color: rgba(242, 242, 242,.80) !important;
}

body.home #contacto form,
body.home .rc-contact-cta form,
body.home .section-contact form,
body.home .contact-section form {
	background: rgba(242, 242, 242,.94) !important;
	border: 1px solid rgba(242, 242, 242,.24) !important;
	border-radius: 24px !important;
	box-shadow: 0 28px 78px rgba(0,0,0,.24) !important;
}

/* =========================================================
   FOOTER — QUITA CUADROS GRISES/BLANCOS
========================================================= */

footer,
.site-footer,
.rc-footer,
#rcxFooterPremium {
	background:
		radial-gradient(circle at 18% 12%, rgba(217, 168, 78,.08), transparent 30%),
		linear-gradient(135deg, #0B0B0B 0%, #1A1A1A 52%, #0B0B0B 100%) !important;
	color: var(--rc-ice) !important;
	border-top: 1px solid rgba(217, 168, 78,.16) !important;
}

/* Todo dentro del footer debe integrarse al fondo, sin cards claros */
footer div,
footer section,
footer article,
footer aside,
.site-footer div,
.site-footer section,
.site-footer article,
.site-footer aside,
.rc-footer div,
.rc-footer section,
.rc-footer article,
.rc-footer aside,
#rcxFooterPremium div,
#rcxFooterPremium section,
#rcxFooterPremium article,
#rcxFooterPremium aside {
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
	backdrop-filter: none !important;
	-webkit-backdrop-filter: none !important;
}

footer h2,
footer h3,
footer h4,
.site-footer h2,
.site-footer h3,
.site-footer h4,
.rc-footer h2,
.rc-footer h3,
.rc-footer h4,
#rcxFooterPremium h2,
#rcxFooterPremium h3,
#rcxFooterPremium h4 {
	color: #FFFFFF !important;
}

footer p,
footer li,
footer span,
footer a,
.site-footer p,
.site-footer li,
.site-footer span,
.site-footer a,
.rc-footer p,
.rc-footer li,
.rc-footer span,
.rc-footer a,
#rcxFooterPremium p,
#rcxFooterPremium li,
#rcxFooterPremium span,
#rcxFooterPremium a {
	color: rgba(242, 242, 242,.78) !important;
}

footer [class*="label"],
footer [class*="eyebrow"],
.site-footer [class*="label"],
.site-footer [class*="eyebrow"],
.rc-footer [class*="label"],
.rc-footer [class*="eyebrow"],
#rcxFooterPremium [class*="label"],
#rcxFooterPremium [class*="eyebrow"] {
	color: var(--rc-lime) !important;
}

/* Redes y WhatsApp del footer */
footer a[href*="facebook"],
footer a[href*="instagram"],
footer a[href*="twitter"],
footer a[href*="google"],
.site-footer a[href*="facebook"],
.site-footer a[href*="instagram"],
.site-footer a[href*="twitter"],
.site-footer a[href*="google"],
.rc-footer a[href*="facebook"],
.rc-footer a[href*="instagram"],
.rc-footer a[href*="twitter"],
.rc-footer a[href*="google"],
#rcxFooterPremium a[href*="facebook"],
#rcxFooterPremium a[href*="instagram"],
#rcxFooterPremium a[href*="twitter"],
#rcxFooterPremium a[href*="google"] {
	background: rgba(242, 242, 242,.06) !important;
	color: var(--rc-lime) !important;
	border: 1px solid rgba(217, 168, 78,.26) !important;
	border-radius: 14px !important;
}

footer a[href*="wa.me"],
.site-footer a[href*="wa.me"],
.rc-footer a[href*="wa.me"],
#rcxFooterPremium a[href*="wa.me"] {
	background: var(--rc-lime) !important;
	color: var(--rc-deep) !important;
	border: 1px solid rgba(217, 168, 78,.36) !important;
	border-radius: 14px !important;
	font-weight: 900 !important;
}

/* =========================================================
   LIMPIEZA DE RESALTADOS VERDES CHILLANTES
========================================================= */

mark,
a mark,
button mark {
	background: transparent !important;
	color: inherit !important;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 820px) {
	body.home .rc-hero,
	body.home .hero,
	body.home .hero-section,
	body.home section:first-of-type {
		min-height: 640px !important;
		background-position: center center !important;
	}
}
