:root {
  --bg: #f5f2ed;
  --paper: #fffaf3;
  --surface: #ffffff;
  --ink: #151b1f;
  --muted: #697178;
  --line: #e3dbcf;
  --brand: #a32620;
  --brand-dark: #741b18;
  --gold: #c49a58;
  --charcoal: #20272d;
  --shadow: 0 22px 60px rgba(21, 27, 31, 0.14);
  --soft-shadow: 0 12px 34px rgba(21, 27, 31, 0.09);
  --radius: 8px;
  --shell: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0 !important;
  background: var(--bg) !important;
  color: var(--ink) !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 16px !important;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none !important;
}

img,
video {
  max-width: 100%;
  display: block;
}

.shell,
#subcont {
  width: min(var(--shell), calc(100% - 40px)) !important;
  margin-inline: auto !important;
}

#contmid {
  width: 100%;
  min-height: auto !important;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: currentColor;
}

.btn,
button.btn,
.nav-cta {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover,
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--soft-shadow);
}

.btn-primary,
.nav-cta {
  background: var(--brand);
  color: #fff;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(8px);
}

.section {
  padding: 92px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.section-heading h2,
.page-hero h1,
.home-hero h1,
#postnombre h1,
#contacto h1,
h1 {
  width: auto !important;
  margin: 8px 0 0 !important;
  color: var(--ink) !important;
  background: none !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: clamp(34px, 5vw, 62px) !important;
  line-height: 0.98 !important;
  letter-spacing: 0 !important;
  text-align: left !important;
}

.section-heading a {
  color: var(--brand);
  font-weight: 800;
}

.site-header {
  position: relative;
  z-index: 50;
  background: var(--surface);
  box-shadow: 0 1px 0 var(--line);
}

.top-strip {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.82);
}

.top-strip__inner,
.main-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.top-strip__inner {
  min-height: 38px;
  font-size: 13px;
}

.top-strip__phone {
  font-weight: 800;
}

.top-strip__social {
  display: flex;
  gap: 16px;
}

.main-nav__inner {
  min-height: 88px;
}

.brand img {
  width: 238px;
  height: auto;
}

.site-header .brand,
.home-hero__nav .brand {
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.logo-frame {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.logo-frame img {
  width: 238px;
  height: auto;
}

.nav-links {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.nav-links a {
  padding: 10px 14px !important;
  color: var(--ink) !important;
  font-size: 13px !important;
  font-weight: 800;
  letter-spacing: 0.08em !important;
  text-transform: uppercase;
  border-radius: var(--radius);
  background-image: none !important;
}

.nav-links a:hover {
  background: #f0e7dc;
  color: var(--brand) !important;
}

.home-hero {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  color: #fff;
  background: #111;
}

.hero-slider,
.hero-slide,
.home-hero__overlay {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: opacity 1s ease, transform 7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.home-hero__overlay {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(9, 12, 15, 0.84), rgba(9, 12, 15, 0.5) 48%, rgba(9, 12, 15, 0.2)),
    linear-gradient(180deg, rgba(9, 12, 15, 0.16), rgba(9, 12, 15, 0.82));
}

.home-hero__nav,
.home-hero__content {
  position: relative;
  z-index: 2;
}

.home-hero__nav {
  min-height: 102px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand--light.logo-frame {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.nav-links--light a {
  color: #fff !important;
}

.nav-links--light a:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff !important;
}

.home-hero__content {
  width: min(820px, calc(100% - 40px));
  margin-top: 120px;
}

.home-hero h1 {
  color: #fff !important;
  font-size: clamp(46px, 7vw, 86px) !important;
}

.home-hero p {
  width: min(650px, 100%);
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(18px, 2vw, 22px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.quick-panel {
  position: relative;
  z-index: 4;
  margin-top: -72px;
}

.quick-panel__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.quick-panel article {
  min-height: 142px;
  padding: 28px;
  background: var(--surface);
}

.quick-panel strong {
  display: block;
  color: var(--ink);
  font-size: 22px;
}

.quick-panel span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.property-card {
  min-width: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.property-card:hover,
.listing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.property-card figure,
.listing-card figure {
  position: relative;
  margin: 0;
  background: #ddd4c8;
  overflow: hidden;
  isolation: isolate;
}

.property-card figure {
  aspect-ratio: 4 / 3;
}

.property-card figure::after,
.listing-card figure::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0));
}

.property-card .media-preview,
.listing-card .media-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
}

.property-card .media-preview-video,
.listing-card .media-preview-video {
  background: #111;
}

.media-placeholder {
  width: 100%;
  height: 100%;
  min-height: 180px;
  display: grid;
  place-items: center;
  background: #ddd4c8;
  color: var(--muted);
  font-weight: 800;
}

.property-card figure span,
.listing-card__top span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.property-card figure .media-kind,
.listing-card figure .media-kind {
  position: absolute;
  left: auto;
  top: auto;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(21, 27, 31, 0.82);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.property-card figure span {
  position: absolute;
  left: 14px;
  top: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand);
  z-index: 2;
}

.property-card figure .media-badge--featured {
  left: auto;
  right: 14px;
  bottom: auto;
  background: var(--brand);
  color: #fff;
  z-index: 2;
}

.property-card__body {
  padding: 20px;
}

.property-card__meta {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.property-card h3 {
  margin: 8px 0 8px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.15;
}

.property-card p {
  min-height: 48px;
  margin: 0 0 16px;
  color: var(--muted);
}

.property-card strong {
  color: var(--brand);
  font-size: 18px;
}

.valuation-band {
  padding: 74px 0;
  background: var(--charcoal);
  color: #fff;
}

.valuation-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.valuation-band h2 {
  margin: 8px 0 12px;
  color: #fff;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
}

.valuation-band p {
  max-width: 650px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

#map {
  width: 100% !important;
  height: 460px !important;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
}

.page-hero {
  padding: 78px 0 64px;
  background:
    linear-gradient(135deg, rgba(32, 39, 45, 0.92), rgba(116, 27, 24, 0.86)),
    url("../imagenes/portada3.jpg") center / cover;
  color: #fff;
}

.page-hero h1 {
  color: #fff !important;
}

.page-hero p {
  width: min(700px, 100%);
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 19px;
}

.catalog-page {
  padding-bottom: 80px;
}

.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: -28px !important;
  margin-bottom: 28px !important;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
}

.catalog-toolbar p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.filter-bar label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.filter-bar select,
.filter-bar button,
.sinborde,
.select1 {
  height: 46px;
  margin: 0 !important;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-size: 15px;
  outline: none;
}

.filter-bar button,
button.sinborde,
.classinborde {
  background: var(--brand) !important;
  border-color: var(--brand) !important;
  color: #fff !important;
  font-weight: 800;
  cursor: pointer;
}

.property-list {
  display: grid;
  gap: 22px;
}

.listing-card {
  display: grid;
  grid-template-columns: 360px 1fr;
  min-height: 270px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.listing-card figure {
  min-height: 270px;
}

.listing-card figure video,
.property-card figure video {
  display: block;
}

.listing-card__content {
  padding: 28px;
}

.listing-card__top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.listing-card__top span:first-child {
  background: #f7e7df;
  color: var(--brand);
}

.listing-card__top span:last-child {
  background: #eee8dd;
  color: var(--ink);
}

.listing-card__top span:nth-child(3) {
  background: var(--brand);
  color: #fff;
}

.listing-card h2 {
  margin: 14px 0 8px;
  color: var(--ink);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.08;
}

.listing-card p {
  margin: 0;
  color: var(--muted);
}

.listing-card__facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin: 18px 0;
}

.listing-card__facts strong {
  color: var(--brand);
  font-size: 22px;
}

.listing-card__facts span {
  color: var(--ink);
  font-weight: 800;
}

.listing-card__description {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.empty-state {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
}

#postnombre {
  width: auto !important;
  margin: 54px 0 18px !important;
  color: var(--ink) !important;
}

.estado-box {
  display: inline-flex !important;
  margin: 0 0 24px !important;
  padding: 10px 14px !important;
  background: #f7e7df !important;
  border: 0 !important;
  border-radius: 999px !important;
  color: var(--ink) !important;
  font-size: 14px !important;
}

.estado-label {
  color: var(--brand) !important;
}

.gallery-wrapper {
  padding: 10px 0 0 !important;
}

.gallery-media-box {
  width: 100% !important;
  overflow: hidden !important;
  background: #111 !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow) !important;
}

.gallery-media-box img,
.gallery-media-box video {
  width: 100% !important;
  height: min(68vh, 660px) !important;
  max-height: none !important;
  object-fit: contain !important;
  border-radius: 0 !important;
}

.thumbnail-menu {
  width: 100% !important;
  gap: 10px !important;
  margin-top: 14px !important;
}

.thumbnail {
  width: 118px !important;
  height: 84px !important;
  object-fit: cover !important;
  border: 2px solid transparent !important;
  border-radius: var(--radius) !important;
  opacity: 0.68 !important;
}

.thumbnail.active {
  border-color: var(--brand) !important;
  opacity: 1 !important;
}

.post-details {
  width: 100% !important;
  margin: 28px 0 0 !important;
  padding: 30px !important;
  background: var(--surface) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--soft-shadow) !important;
}

.detail-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)) !important;
  gap: 14px !important;
}

.detail-box {
  padding: 18px !important;
  background: var(--paper) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius) !important;
  text-align: left !important;
}

.icon {
  display: none !important;
}

.label {
  color: var(--muted) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
}

.value {
  margin-top: 6px;
  color: var(--ink) !important;
  font-size: 19px !important;
  font-weight: 800 !important;
}

.detail-description {
  margin-top: 26px !important;
  padding: 0 !important;
  border: 0 !important;
  color: var(--muted) !important;
}

.detail-description h3 {
  margin: 0 0 8px !important;
  color: var(--ink) !important;
  font-size: 26px !important;
}

.detail-description p {
  color: var(--muted) !important;
}

#shareContainer {
  display: flex !important;
  gap: 10px !important;
  margin: 24px 0 72px !important;
}

#shareBtn,
#instagramBtn,
#whatsappPostBtn,
#storyBtn,
#postBtn {
  min-height: 44px !important;
  padding: 0 18px !important;
  border: 0 !important;
  border-radius: var(--radius) !important;
  color: #fff !important;
  font-weight: 800 !important;
}

#shareBtn {
  background: var(--brand) !important;
}

#whatsappPostBtn {
  display: inline-flex;
  align-items: center;
  background: #1f8f58 !important;
}

#instagramBtn,
#storyBtn,
#postBtn {
  background: var(--charcoal) !important;
}

#contacto {
  width: 100% !important;
  margin: 0 !important;
  padding-top: 72px !important;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 28px 0 58px;
}

#contactoitem {
  width: auto !important;
  height: auto !important;
  min-height: 150px !important;
  float: none !important;
  margin: 0 !important;
  padding: 24px !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
}

#contactoitem img {
  width: 48px !important;
  height: 48px !important;
  object-fit: contain;
}

#contactoitem .titulo {
  color: var(--muted) !important;
  font-size: 12px !important;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-align: left !important;
  text-transform: uppercase;
}

#contactoitem .descripcion {
  margin-top: 8px;
  color: var(--ink) !important;
  font-size: 20px !important;
  font-weight: 800;
  text-align: left !important;
}

#dej-tus-cons {
  width: min(720px, 100%) !important;
  margin: 0 0 58px !important;
  padding: 28px !important;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
}

#dej-tus-cons .sinborde {
  width: 100% !important;
  margin-top: 14px !important;
  background: var(--paper) !important;
  color: var(--ink) !important;
}

#dej-tus-cons textarea.sinborde {
  min-height: 150px;
  padding-top: 14px;
  resize: vertical;
}

.sinborde::placeholder {
  color: var(--muted) !important;
}

.site-footer {
  clear: both;
  position: relative;
  z-index: 5;
  display: block;
  width: 100%;
  margin-top: 86px;
  padding: 58px 0 24px;
  background: var(--charcoal);
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 38px;
  align-items: start;
}

.footer-brand {
  display: inline-flex;
  width: fit-content;
  padding: 0;
  background: transparent;
}

.footer-brand img {
  width: 250px;
  height: auto;
  filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.34));
}

.site-footer p,
.footer-contact span {
  color: rgba(255, 255, 255, 0.68);
}

.footer-links,
.footer-contact {
  display: grid;
  gap: 10px;
}

.footer-links a,
.footer-contact a {
  color: #fff;
  font-weight: 800;
}

.footer-credit {
  width: min(var(--shell), calc(100% - 40px));
  margin: 34px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  text-align: center;
}

#contmid::after,
main::after,
#subcont::after {
  content: "";
  display: block;
  clear: both;
}

#whatsappbutton {
  position: fixed !important;
  right: 18px !important;
  bottom: 82px !important;
  z-index: 1000 !important;
  padding: 0 !important;
}

#whatsappbutton img {
  width: 58px !important;
  height: 58px !important;
  border-radius: 50%;
  box-shadow: var(--shadow);
}

#scrollButton {
  position: fixed !important;
  right: 24px !important;
  bottom: 22px !important;
  z-index: 1000 !important;
  width: 44px !important;
  height: 44px !important;
  padding: 10px !important;
  background: var(--charcoal) !important;
  border: 0 !important;
  border-radius: 50% !important;
}

#scrollButton img {
  width: 100%;
  height: 100%;
}

#solousuario,
#opciones-admin-post {
  z-index: 1001 !important;
  background: var(--charcoal) !important;
  border-radius: var(--radius) !important;
}

.alert {
  width: min(var(--shell), calc(100% - 40px));
  margin: 24px auto !important;
  color: #155724 !important;
  background: #d4edda !important;
  border-radius: var(--radius) !important;
}

@media (max-width: 980px) {
  .main-nav__inner,
  .home-hero__nav,
  .catalog-toolbar,
  .valuation-band__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .quick-panel__grid,
  .property-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .listing-card {
    grid-template-columns: 1fr;
  }

  .listing-card figure {
    min-height: 320px;
  }
}

@media (max-width: 640px) {
  .shell,
  #subcont {
    width: min(100% - 24px, var(--shell)) !important;
  }

  .top-strip__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    padding: 10px 0;
  }

  .brand img {
    width: 210px;
  }

  .home-hero {
    min-height: 720px;
  }

  .home-hero__content {
    margin-top: 70px;
  }

  .home-hero h1,
  .page-hero h1,
  .section-heading h2,
  #postnombre h1,
  #contacto h1,
  h1 {
    font-size: 38px !important;
  }

  .section {
    padding: 62px 0;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .quick-panel {
    margin-top: -42px;
  }

  .quick-panel article,
  .listing-card__content,
  .post-details,
  #dej-tus-cons {
    padding: 20px !important;
  }

  .listing-card figure {
    min-height: 250px;
  }

  .gallery-media-box img,
  .gallery-media-box video {
    height: 360px !important;
  }
}
