/* =========================================================
   TASACIONES — valuation.css (scoped a .dt-is-tasaciones)
   Usa variables de :root (style.css) para paleta / cards / forms
   Estructura:
     0)  Base página
     1)  Reset contenedores Astra
     2)  Layout hero
     3)  Títulos, texto e imagen
     4)  Form card + status
     5)  Form grid + fields
     6)  Floating labels
     7)  Checkbox judicial
     8)  Actions + CTA
     9)  FAQ
     10) Imagen de tasación
     11) SEO content
     12) Internal links
     13) Honeypot anti-spam
     14) Media queries
   ========================================================= */


/* =========================================================
   0) BASE: PÁGINA
   ========================================================= */

.dt-is-tasaciones .dt-valuation-page {
  margin-top: 0 !important;
  padding: 0 0 60px !important;
}


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

.dt-is-tasaciones #content.site-content,
.dt-is-tasaciones #content.site-content > .ast-container,
.dt-is-tasaciones #primary,
.dt-is-tasaciones #primary.content-area {
  padding-top: 0 !important;
  margin-top: 0 !important;
}


/* =========================================================
   2) LAYOUT HERO
   ========================================================= */

.dt-is-tasaciones .ast-container {
  max-width: 2400px !important;
  width: 100% !important;
  padding-left: 40px !important;
  padding-right: 40px !important;
}

.dt-is-tasaciones .dt-container {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.dt-is-tasaciones .dt-valuation-layout--hero {
  display: grid !important;
  padding-top: 24px;
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  grid-template-columns: 1fr 1.25fr !important;
  gap: 42px !important;
  align-items: start !important;
}

.dt-is-tasaciones .dt-valuation-left {
  max-width: 720px;
  justify-self: start;
  padding-left: clamp(0px, 2vw, 42px);
  padding-right: 0;
  margin-left: 0;
}


/* =========================================================
   3) TÍTULOS, TEXTO E IMAGEN
   ========================================================= */

.dt-is-tasaciones .dt-valuation-title {
  text-align: center;
  margin-bottom: 14px;
}

.dt-is-tasaciones .dt-valuation-lead {
  max-width: 1100px;
  margin: 0 auto 10px;
  color: var(--dt-text-soft);
  font-size: 18px;
  line-height: 1.55;
  text-align: justify;
  text-justify: inter-word;
}


/* =========================================================
   4) FORM CARD + STATUS
   ========================================================= */

.dt-is-tasaciones .dt-valuation-card {
  margin-top: 0;
  padding: 40px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(20, 35, 59, 0.06);
  border-radius: 22px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(6px);
}

.dt-is-tasaciones .dt-valuation-card__title {
  margin: 0 0 26px;
  font-size: clamp(28px, 2vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #14233b;
}

.dt-is-tasaciones .dt-valuation-status {
  margin-top: 14px;
  font-weight: 500;
}

.dt-is-tasaciones .dt-valuation-status.is-ok {
  color: #1b7a1b;
}

.dt-is-tasaciones .dt-valuation-status.is-err {
  color: #b10000;
}


/* =========================================================
   5) FORM GRID + FIELDS
   ========================================================= */

.dt-is-tasaciones .dt-valuation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: stretch;
}

.dt-is-tasaciones .dt-full {
  grid-column: 1 / -1;
}

.dt-is-tasaciones .dt-field {
  position: relative;
  display: flex;
}

.dt-is-tasaciones .dt-field :is(input, select, textarea) {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(20, 35, 59, 0.12);
  border-radius: 12px;
  background: #fff;
  font-size: 15px;
  color: #14233b;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.dt-is-tasaciones .dt-field :is(input, select) {
  min-height: 52px;
}

.dt-is-tasaciones .dt-field textarea {
  min-height: 150px;
  resize: vertical;
}

.dt-is-tasaciones .dt-field :is(input, select, textarea):hover {
  border-color: rgba(245, 158, 11, 0.55);
}

.dt-is-tasaciones .dt-field :is(input, select, textarea):focus {
  outline: none;
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}


/* =========================================================
   6) FLOATING LABELS
   ========================================================= */

.dt-is-tasaciones .dt-valuation-form .dt-field.dt-floating {
  position: relative;
}

.dt-is-tasaciones .dt-valuation-form .dt-field.dt-floating :is(input, select) {
  padding: 22px 14px 8px;
  line-height: 1.2;
}

.dt-is-tasaciones .dt-valuation-form .dt-field.dt-floating textarea {
  padding: 24px 14px 14px;
  line-height: 1.55;
}

.dt-is-tasaciones .dt-valuation-form .dt-field.dt-floating > label {
  position: absolute;
  top: 16px;
  left: 12px;
  padding: 0 6px;
  background: #fff;
  color: #6b7280;
  font-size: 14px;
  line-height: 1;
  pointer-events: none;
  transition: all .16s ease;
}

.dt-is-tasaciones .dt-valuation-form .dt-field.dt-floating:focus-within > label,
.dt-is-tasaciones .dt-valuation-form .dt-field.dt-floating input:not(:placeholder-shown) + label,
.dt-is-tasaciones .dt-valuation-form .dt-field.dt-floating textarea:not(:placeholder-shown) + label,
.dt-is-tasaciones .dt-valuation-form .dt-field.dt-floating--select select:valid + label {
  top: 7px;
  font-size: 12px;
  color: #f59e0b;
}

.dt-is-tasaciones .dt-valuation-form .dt-field.dt-floating--select select {
  padding-right: 38px;
  appearance: auto;
  -webkit-appearance: menulist;
  -moz-appearance: menulist;
  background-color: #fff;
}

.dt-is-tasaciones .dt-valuation-form .dt-field.dt-floating--select select:invalid {
  color: #8a94a6;
}

.dt-is-tasaciones .dt-valuation-form .dt-field.dt-floating--select select:valid {
  color: #14233b;
}

.dt-is-tasaciones .dt-valuation-form .dt-field.dt-floating--select select option {
  color: #1f2937;
  background: #fff;
}


/* =========================================================
   7) CHECKBOX JUDICIAL
   ========================================================= */

.dt-is-tasaciones .dt-check {
  display: flex;
  align-items: center;
  min-height: 52px;
  margin: 2px 0 0;
  padding: 0 14px;
  background: rgba(164, 0, 0, 0.04);
  border: 1px solid rgba(164, 0, 0, 0.14);
  border-radius: 12px;
}

.dt-is-tasaciones .dt-check__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  cursor: pointer;
  user-select: none;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: #4a5568;
}

.dt-is-tasaciones .dt-check__label input {
  width: 16px;
  height: 16px;
  margin: 0;
  flex: 0 0 16px;
  accent-color: var(--dt-btn-bg);
}

.dt-is-tasaciones .dt-check__label span {
  margin: 0;
}


/* =========================================================
   8) ACTIONS + CTA
   ========================================================= */

.dt-is-tasaciones .dt-actions {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 18px;
}

.dt-is-tasaciones .dt-btn.dt-btn--send {
  width: 100%;
  min-height: 52px;
  border: none;
  border-radius: 12px;
  background: var(--dt-btn-bg);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(164, 0, 0, 0.18);
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.dt-is-tasaciones .dt-btn.dt-btn--send:hover {
  background: var(--dt-btn-bg-hover);
  transform: translateY(-1px);
}

.dt-is-tasaciones .dt-separator {
  position: relative;
  margin: 14px 0 12px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: rgba(20, 35, 59, 0.45);
}

.dt-is-tasaciones .dt-separator::before,
.dt-is-tasaciones .dt-separator::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 42%;
  height: 1px;
  background: rgba(20, 35, 59, 0.08);
}

.dt-is-tasaciones .dt-separator::before { left: 0; }
.dt-is-tasaciones .dt-separator::after  { right: 0; }

.dt-is-tasaciones .dt-wa-btn,
.dt-is-tasaciones #dtTasacionesWaBtn.dt-wa-btn--tasaciones {
  width: 100%;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 0;
  border: none;
  border-radius: 12px;
  background: var(--dt-wa);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.18);
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}

.dt-is-tasaciones .dt-wa-btn:hover,
.dt-is-tasaciones #dtTasacionesWaBtn.dt-wa-btn--tasaciones:hover {
  transform: translateY(-1px);
  filter: brightness(.98);
}

.dt-is-tasaciones .dt-wa-btn img,
.dt-is-tasaciones #dtTasacionesWaBtn.dt-wa-btn--tasaciones img {
  width: 20px;
  height: 20px;
  display: block;
}


/* =========================================================
   9) FAQ
   ========================================================= */

.dt-is-tasaciones .dt-faq {
  position: relative;
  max-width: 980px;
  margin: 26px auto 0;
  padding: 22px 0 20px;
  font-family: 'Inter', sans-serif;
}

.dt-is-tasaciones .dt-faq::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 60%;
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(
    to right,
    transparent,
    rgba(163, 0, 0, 0.6),
    transparent
  );
}

.dt-is-tasaciones .dt-faq__inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 40px;
}

.dt-is-tasaciones .dt-faq__title {
  margin: 0 0 8px;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #1f2937;
}

.dt-is-tasaciones .dt-faq__lead {
  margin: 0 0 40px;
  font-size: 16px;
  font-weight: 400;
  color: #6b7280;
}

.dt-is-tasaciones .dt-faq__list {
  display: grid;
  gap: 12px;
}

.dt-is-tasaciones .dt-faq__item {
  position: relative;
  margin: 16px 0;
  overflow: visible !important;
  height: auto !important;
  max-height: none !important;
  background: var(--dt-card-bg);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.07);
  transition: transform 0.2s ease, box-shadow 0.25s ease;
}

.dt-is-tasaciones .dt-faq__item:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.12);
}

.dt-is-tasaciones .dt-faq__item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 0;
  background: var(--dt-btn-bg);
  transition: width 0.25s ease;
}

.dt-is-tasaciones .dt-faq__item[open]::before,
.dt-is-tasaciones .dt-faq__item.is-open::before {
  width: 5px;
}

.dt-is-tasaciones .dt-faq__head,
.dt-is-tasaciones summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px 20px 28px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.2px;
}

.dt-is-tasaciones .dt-faq__content {
  display: block !important;
  overflow: visible !important;
  height: auto !important;
  max-height: none !important;
  padding: 14px 28px 22px !important;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: normal;
  text-wrap: pretty;
}

.dt-is-tasaciones .dt-faq__content p {
  margin: 12px 0 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--dt-text-soft);
}

.dt-is-tasaciones .dt-faq__content p + p {
  margin-top: 10px;
}

.dt-is-tasaciones .dt-faq__plus {
  font-size: 20px;
  font-weight: 700;
  color: var(--dt-btn-bg);
  transition: transform 0.25s ease;
}

.dt-is-tasaciones .dt-faq__item[open] .dt-faq__plus,
.dt-is-tasaciones .dt-faq__item.is-open .dt-faq__plus {
  transform: rotate(45deg);
}


/* =========================================================
   10) IMAGEN DE TASACIÓN
   ========================================================= */

.dt-valuation-image {
  width: 100%;
  min-height: 320px;
  margin-top: 22px;
  overflow: hidden;
  background: #f3f4f6;
  border-radius: 18px;
}

.dt-valuation-image img {
  display: block;
  width: 100%;
  height: 440px;
  min-height: 320px;
  object-fit: cover;
  border-radius: var(--dt-card-radius);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}


/* =========================================================
   11) SEO CONTENT
   ========================================================= */

.dt-page__content--seo {
  padding: 52px 0 0;
  background: transparent;
}

.dt-valuation-seo {
  max-width: 1240px;
  margin: 34px auto 0;
  padding: 0 12px;
}

.dt-seo-badge {
  margin: 0 0 18px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #a40000;
}

.dt-seo-badge::after {
  content: "";
  display: block;
  width: 54px;
  height: 2px;
  margin: 10px auto 0;
  border-radius: 999px;
  background: #a40000;
}

.dt-valuation-seo-card--intro {
  max-width: 980px;
  margin: 0 auto 24px;
}

.dt-valuation-seo-card {
 background: #fff;
  border: 1px solid rgba(20, 35, 59, 0.06);
  border-radius: 20px;
  padding: 34px 34px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.dt-valuation-seo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
  border-color: rgba(164, 0, 0, 0.16);
}

.dt-valuation-seo-card h2 {
  position: relative;
  margin: 0 0 18px;
  padding-left: 16px;
  font-size: clamp(26px, 2vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #14233b;
}

.dt-valuation-seo-card h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 4px;
  height: 1.1em;
  border-radius: 999px;
  background: #a40000;
}

.dt-valuation-seo-card p {
  margin: 0 0 15px;
  font-size: 16.5px;
  line-height: 1.82;
  color: #4a5568;
  text-align: justify;
  text-justify: inter-word;
}

.dt-valuation-seo-card p:last-child {
  margin-bottom: 0;
}

.dt-valuation-seo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}


/* =========================================================
   12) INTERNAL LINKS
   ========================================================= */

.dt-valuation-links {
  max-width: 1240px;
  margin: 18px auto 0;
  padding-top: 12px;
  border-top: 1px solid rgba(20, 35, 59, 0.08);
  text-align: center;
}

.dt-valuation-links__title {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: #6b7280;
}

.dt-valuation-links__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.dt-valuation-links__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid rgba(20, 35, 59, 0.08);
  background: #ffffff;
  color: #14233b;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.dt-valuation-links__item:hover {
  transform: translateY(-2px);
  border-color: rgba(164, 0, 0, 0.22);
  color: #a40000;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}


/* =========================================================
   13) HONEYPOT ANTI-SPAM
   ========================================================= */

.dt-hp {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}


/* =========================================================
   14) MEDIA QUERIES
   ========================================================= */

@media (max-width: 992px) {
  .dt-is-tasaciones .dt-valuation-layout--hero {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }

  .dt-is-tasaciones .dt-valuation-left {
    max-width: none !important;
    margin-left: 0;
    padding-left: 0;
  }

  .dt-is-tasaciones .dt-valuation-card {
    padding: 28px;
  }

  .dt-is-tasaciones .dt-valuation-grid {
    grid-template-columns: 1fr;
  }

  .dt-is-tasaciones .dt-check--right,
  .dt-is-tasaciones .dt-check.dt-full {
    grid-column: 1 / -1;
  }

  .dt-is-tasaciones .dt-faq__inner {
    padding: 0 18px;
  }
}

@media (max-width: 900px) {
  .dt-page__content--seo {
    padding-top: 40px;
  }

  .dt-valuation-seo {
    padding: 0;
  }

  .dt-valuation-seo-card--intro {
    max-width: 100%;
    margin-bottom: 22px;
  }

  .dt-valuation-seo-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .dt-valuation-seo-card {
    padding: 24px 20px;
  }

  .dt-valuation-seo-card h2 {
    font-size: 22px;
  }

  .dt-seo-badge {
    margin-bottom: 18px;
    font-size: 11px;
  }
}

@media (max-width: 768px) {
  .dt-valuation-seo {
    margin-top: 40px;
    padding: 0 16px;
  }

  .dt-valuation-seo-card--intro {
    max-width: 100%;
    margin-bottom: 22px;
  }

  .dt-valuation-links {
    margin-top: 14px;
    padding-top: 14px;
  }

  .dt-valuation-links__grid {
    gap: 8px;
  }

  .dt-valuation-links__item {
    min-height: 38px;
    padding: 8px 13px;
    font-size: 13px;
  }

  .dt-is-tasaciones .dt-faq__head,
  .dt-is-tasaciones summary {
    padding: 16px;
  }

  .dt-is-tasaciones .dt-faq__content {
    padding: 14px 16px 16px !important;
  }
}

@media (max-width: 600px) {
  .dt-is-tasaciones .ast-container {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  .dt-is-tasaciones .dt-valuation-card {
    padding: 22px;
  }

  .dt-is-tasaciones .dt-valuation-card__title {
    font-size: 22px;
  }

  .dt-valuation-image img {
    height: 280px !important;
  }

  .dt-is-tasaciones .dt-separator::before,
  .dt-is-tasaciones .dt-separator::after {
    width: 38%;
  }

  .dt-valuation-seo-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .dt-valuation-seo-card {
    padding: 22px 20px;
  }
}

/* ==========================================================
   LINKS INTERNOS - ZONAS DE TASACION
   ========================================================== */

.dt-valuation-related {
  margin: 30px 0 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(20, 35, 59, 0.08);
  text-align: center;
}

.dt-valuation-related__title {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.4;
  color: #5b6575;
}

.dt-valuation-related__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dt-valuation-related__list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(20, 35, 59, 0.08);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  color: #14233b;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.dt-valuation-related__list a:hover {
  transform: translateY(-2px);
  border-color: rgba(164, 0, 0, 0.2);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.07);
  color: #a40000;
}

@media (max-width: 768px) {
  .dt-valuation-related {
    margin: 24px 0 26px;
    padding-top: 16px;
  }

  .dt-valuation-related__title {
    margin-bottom: 12px;
    font-size: 13px;
  }

  .dt-valuation-related__list {
    gap: 8px;
  }

  .dt-valuation-related__list a {
    min-height: 36px;
    padding: 9px 14px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .dt-valuation-related {
    margin: 22px 0 28px;
  }

  .dt-valuation-related__title {
    font-size: 12.5px;
  }

  .dt-valuation-related__list {
    justify-content: center;
    gap: 8px;
  }

  .dt-valuation-related__list a {
    font-size: 12.5px;
    padding: 9px 12px;
  }
}