/* =========================================================
   HOME — Estilos específicos de la página de inicio
   Estructura:
     1) Reset contenedores Astra
     2) Hero: estructura y media
     3) Hero: contenido y tipografía
     4) Hero: buscador
     5) Hero: tagline y dirección
     6) Bloque SEO principal (home intro)
     7) Sección Zonas
     8) Media queries
   ========================================================= */


/* =========================================================
   1) RESET CONTENEDORES ASTRA
   ========================================================= */

body.home .site-content,
body.home .site-content .ast-container,
body.home .site-content .ast-container .ast-row,
body.home .site-content .ast-container .ast-row .site-main {
  max-width: none !important;
  width: 100% !important;
}

body.home .site-content .ast-container {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.home .site-content,
body.home #content,
body.home #primary,
body.home .site-main {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body.home .entry-header,
body.home .ast-archive-description,
body.home .ast-page-builder-template .entry-header {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}


/* =========================================================
   2) HERO: ESTRUCTURA Y MEDIA
   ========================================================= */

.dt-hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: #000;
  /* fallback mientras carga el video */
}

.dt-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #000;
}

.dt-hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.dt-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}


/* =========================================================
   3) HERO: CONTENIDO Y TIPOGRAFÍA
   ========================================================= */

.dt-hero__content {
  position: relative;
  z-index: 1;
  min-height: inherit;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 18px;
  padding: 72px 20px 220px;
  /* 220px reserva zona segura para tagline + address */
  text-align: center;
  color: #fff;
}

.dt-hero__title {
  font-size: clamp(34px, 3.8vw, 58px);
  line-height: 1.05;
  margin: 0;
  color: #fff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

/* El subtitle queda en flujo normal (no absoluto) */
.dt-hero__subtitle {
  position: static;
  transform: none;
  margin: 0;
  font-size: clamp(16px, 1.6vw, 20px);
  color: rgba(255, 255, 255, 0.9);
  opacity: 0.92;
}


/* =========================================================
   4) HERO: BUSCADOR
   ========================================================= */

.dt-hero-search {
  transform: none;
  margin-top: 18px;
  width: min(980px, 92vw);
  padding: 18px 18px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
}

/* Tabs */
.dt-hero-search__tabs {
  display: inline-flex;
  gap: 10px;
  padding: 6px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.dt-tab {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.dt-tab input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.dt-tab span {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  font-size: 14px;
  background: transparent;
  transition: background .18s ease, color .18s ease;
}

.dt-tab input:checked+span {
  background: rgba(255, 255, 255, 0.92);
  color: #111;
}

/* Grid de campos */
.dt-hero-search__row {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 160px 200px 1fr auto;
  gap: 12px;
  align-items: end;
}

.dt-field label {
  display: block;
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2px;
  color: rgba(255, 255, 255, 0.9);
}

.dt-field select,
.dt-field input {
  width: 100%;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.92);
  color: #111;
  padding: 0 12px;
  outline: none;
}

.dt-field input::placeholder {
  color: rgba(0, 0, 0, 0.45);
}

.dt-actions {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding-bottom: 2px;
}

.dt-btn {
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 800;
  color: #111;
  background: rgba(255, 255, 255, 0.95);
}

.dt-btn:hover {
  filter: brightness(0.95);
}

.dt-clear {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  text-decoration: none;
  padding: 10px;
  border-radius: 999px;
  background: none;
  border: none;
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  cursor: pointer;
}

.dt-clear:hover {
  background: rgba(255, 255, 255, 0.12);
}


/* =========================================================
   5) HERO: TAGLINE Y DIRECCIÓN
   ========================================================= */

.dt-hero__bottom {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: clamp(70px, 10vh, 190px);
  z-index: 20;
  text-align: center;
  width: min(920px, calc(100% - 40px));
}

.dt-hero__tagline {
  margin: 0;
  font-size: clamp(16px, 1.6vw, 22px);
  line-height: 1.35;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.dt-hero__tagline strong {
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.dt-hero__address {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 18px;
  z-index: 2;
  width: min(980px, 92vw);
  margin: 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.90);
}


/* =========================================================
   6) BLOQUE SEO PRINCIPAL (HOME INTRO)
   H1 REAL DE LA HOME + TEXTO DESCRIPTIVO
   ========================================================= */

body.home .dt-home-intro {
  position: relative;
  z-index: 2;
  padding: 80px 20px 40px;
  background: linear-gradient(180deg,
      rgba(255, 255, 255, 0) 0%,
      #f6ecee 100%);
}

/* CONTENEDOR COMO CARD */
body.home .dt-home-intro .dt-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 36px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.06),
    0 2px 6px rgba(0, 0, 0, 0.04);
}

/* H1 */
body.home .dt-home-intro h1 {
  margin: 0 0 22px;
  font-size: clamp(32px, 3.2vw, 44px);
  line-height: 1.1;
  font-weight: 600;
  color: var(--dt-black);
  text-align: center;
}

/* PÁRRAFOS */
body.home .dt-home-intro p {
  max-width: 720px;
  margin: 0 auto 18px;
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--dt-text-soft);
  text-align: center;
}

/* ÚLTIMO PÁRRAFO */
body.home .dt-home-intro p:last-child {
  margin-bottom: 0;
}

/* H1 MÁS ELEGANTE */
body.home .dt-home-intro h1 em {
  font-style: italic;
  font-weight: 400;
  color: #666;
}


/* =========================================================
   7) SECCIÓN ZONAS
   ========================================================= */

body.home .dt-home-zones {
  position: relative;
  z-index: 2;
  padding: 44px 20px 84px;
  background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.00) 0%,
      rgba(255, 255, 255, 0.82) 10%,
      #f6ecee 100%);
}

body.home .dt-home-zones__inner {
  max-width: 1500px;
  margin: 0 auto;
}

body.home .dt-home-zones__heading {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

body.home .dt-home-zones__eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--dt-red);
  text-align: center;
  width: 100%;
}

body.home .dt-home-zones__heading h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.08;
  color: var(--dt-black);
}

body.home .dt-home-zones__heading p {
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
  color: var(--dt-text-soft);
}

body.home .dt-home-zones__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

body.home .dt-zone-card {
  position: relative;
  padding: 30px 28px 26px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(164, 0, 0, 0.08);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

body.home .dt-zone-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.12);
  border-color: rgba(164, 0, 0, 0.18);
}

body.home .dt-zone-card__title {
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1.1;
  color: var(--dt-black);
}

body.home .dt-zone-card__text {
  margin: 0 0 22px;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--dt-text-soft);
}

body.home .dt-zone-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body.home .dt-zone-card__links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--dt-black);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

body.home .dt-zone-card__links a:hover {
  background: var(--dt-red);
  border-color: var(--dt-red);
  color: #ffffff;
  transform: translateY(-1px);
}



body.home .dt-home-intro__subheading {
  margin: 6px 0 24px;

  font-size: 20px;
  font-weight: 500;

  color: #666;

  text-align: center;
}

/* =========================================================
   BLOQUE VENDER PROPIEDAD
   ========================================================= */

body.home .dt-home-sell {
  padding: 60px 20px 80px;
  background: #fff;
}

body.home .dt-home-sell__inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

body.home .dt-home-sell__heading {
  max-width: 720px;
  margin: 0 auto 30px;
}

body.home .dt-home-sell__heading h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.1;
  color: var(--dt-black);
}

body.home .dt-home-sell__heading p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--dt-text-soft);
}

body.home .dt-home-sell__content {
  max-width: 760px;
  margin: 0 auto;
}

body.home .dt-home-sell__content p {
  margin-bottom: 16px;
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--dt-text-soft);
}

/* BOTONES */

.dt-home-sell__actions {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.dt-btn-primary {
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--dt-red);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.dt-btn-primary:hover {
  opacity: 0.9;
}

.dt-btn-secondary {
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid #ccc;
  color: var(--dt-black);
  text-decoration: none;
}

.dt-btn-secondary:hover {
  border-color: var(--dt-red);
  color: var(--dt-red);
}

/* =========================================================
   8) MEDIA QUERIES
   ========================================================= */

/* Pantallas hasta 1440px de ancho O altura menor a 820px (laptop 14") */
@media (max-width: 1440px),
(max-height: 820px) {
  .dt-hero__content {
    padding: 56px 18px 220px;
    gap: 14px;
  }

  .dt-hero__title {
    font-size: clamp(30px, 3.4vw, 48px);
  }

  .dt-hero-search {
    width: min(900px, 92vw);
    padding: 14px 16px;
  }
}

/* Pantallas bajitas: reubicamos el tagline */
@media (max-height: 820px) {
  .dt-hero__bottom {
    bottom: 64px;
  }
}

/* Tablet apaisada */
@media (max-width: 1024px) {
  body.home .dt-home-zones {
    padding: 64px 18px 74px;
  }

  body.home .dt-home-zones__grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  body.home .dt-zone-card {
    padding: 26px 22px 22px;
  }
}

/* Mobile: buscador en columna */
@media (max-width: 900px) {
  .dt-hero-search__row {
    grid-template-columns: 1fr;
  }

  .dt-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 900px) {
  .dt-hero__content {
    padding-bottom: 300px;
  }

  .dt-hero-search {
    width: min(100%, 560px);
  }

  .dt-hero-search__row {
    grid-template-columns: 1fr;
  }

  .dt-hero__bottom {
    bottom: 110px;
    width: min(100%, 560px);
    padding: 0 16px;
  }

  .dt-hero__tagline {
    font-size: 15px;
    line-height: 1.45;
  }

  .dt-hero__address {
    bottom: 26px;
    width: min(100%, 560px);
    padding: 0 16px;
    font-size: 12px;
    line-height: 1.4;
  }
}

@media (max-width: 900px) {
  body.home .dt-home-intro {
    padding: 42px 18px 16px;
  }

  body.home .dt-home-intro h1 {
    font-size: clamp(26px, 7vw, 36px);
  }

  body.home .dt-home-intro p {
    font-size: 15.5px;
    line-height: 1.7;
  }
}

@media (max-width: 768px) {
  body.home .dt-home-intro {
    padding: 60px 16px 30px;
  }

  body.home .dt-home-intro .dt-container {
    padding: 32px 22px;
  }

  body.home .dt-home-intro h1 {
    font-size: clamp(26px, 7vw, 34px);
  }

  body.home .dt-home-intro p {
    font-size: 15px;
  }
}

/* Mobile chico */
@media (max-width: 640px) {
  body.home .dt-home-zones__heading h2 {
    font-size: clamp(26px, 8vw, 34px);
  }

  body.home .dt-home-zones__heading p {
    font-size: 15px;
  }

  body.home .dt-zone-card__title {
    font-size: 24px;
  }

  body.home .dt-zone-card__links a {
    width: 100%;
  }

  .dt-hero__content {
    padding-bottom: 330px;
  }

  .dt-hero__bottom {
    bottom: 95px;
  }

  .dt-hero__address {
    bottom: 20px;
  }

  body.home .dt-home-intro {
    padding: 36px 16px 12px;
  }
}