/* doterrasv.com — azul profundo, botones verdes y acentos tricolor */

:root {
  --t-azul-0: #071746;
  --t-azul-1: #0a1f5c;
  --t-azul-2: #0f2a75;
  --t-azul-3: #163891;
  --t-linea: rgba(150, 185, 255, 0.22);
  --t-linea-2: rgba(150, 185, 255, 0.4);
  --t-texto: #e4ecff;
  --t-suave: #a8bbe8;
  --t-blanco: #ffffff;

  --t-verde: #17b865;
  --t-verde-hi: #2dd27c;
  --t-verde-lo: #0f944f;
  --t-tinta-verde: #02230f;
  --t-oro: #ffd400;
  --t-oro-suave: #ffe466;
  --t-rojo: #e8263b;
  --t-cobalto: #2f63ff;

  --t-display: "Space Grotesk", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --t-lectura: "Inter Tight", "Segoe UI", Roboto, Arial, sans-serif;

  --t-ancho: 1180px;
  --t-margen: clamp(1rem, 4vw, 2.4rem);
  --t-tope: 70px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--t-tope) + 18px);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
}

body {
  margin: 0;
  background:
    radial-gradient(900px 500px at 85% 0, rgba(47, 99, 255, 0.35), transparent 70%),
    radial-gradient(700px 500px at 0 35%, rgba(255, 212, 0, 0.06), transparent 70%),
    linear-gradient(180deg, var(--t-azul-1), var(--t-azul-0) 60%);
  background-color: var(--t-azul-0);
  color: var(--t-texto);
  font-family: var(--t-lectura);
  font-size: 1.07rem;
  line-height: 1.7;
}

body.dt-sin-scroll { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--t-oro); outline-offset: 3px; border-radius: 6px; }
[tabindex="-1"]:focus { outline: none; }

.dt-salto {
  position: absolute;
  top: -80px;
  left: 12px;
  z-index: 900;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  background: var(--t-oro);
  color: #1d1700;
  font-weight: 700;
  text-decoration: none;
}
.dt-salto:focus { top: 12px; }

.dt-marco { width: min(100% - 2 * var(--t-margen), var(--t-ancho)); margin-inline: auto; }

.dt-cinta { height: 6px; background: linear-gradient(90deg, var(--t-oro) 0 50%, var(--t-cobalto) 50% 75%, var(--t-rojo) 75% 100%); }

/* ---------- botones ---------- */

.dt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.45rem;
  border: 2px solid transparent;
  border-radius: 999px 999px 999px 8px;
  font-family: var(--t-display);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.dt-btn:hover { transform: translateY(-2px); border-radius: 8px 999px 999px 999px; }
.dt-btn:active { transform: translateY(1px) scale(0.98); }

.dt-btn--verde { background: var(--t-verde); color: var(--t-tinta-verde); box-shadow: 0 0 0 0 rgba(23, 184, 101, 0.5), 0 12px 24px -12px rgba(23, 184, 101, 0.95); }
.dt-btn--verde:hover { background: var(--t-verde-hi); box-shadow: 0 0 0 5px rgba(45, 210, 124, 0.18), 0 14px 28px -12px rgba(23, 184, 101, 1); }
.dt-btn--verde:active { background: var(--t-verde-lo); }

.dt-btn--claro { background: transparent; color: var(--t-oro); border-color: var(--t-oro); }
.dt-btn--claro:hover { background: var(--t-oro); color: #1d1700; }

.dt-btn--xl { min-height: 58px; padding: 0.9rem 2rem; font-size: 1.04rem; }

/* ---------- cabecera ---------- */

.dt-tope {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(7, 23, 70, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--t-linea);
}
.dt-tope__fila {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: var(--t-tope);
  width: min(100% - 2 * var(--t-margen), var(--t-ancho));
  margin-inline: auto;
}

.dt-sello { display: inline-flex; align-items: center; gap: 0.15rem; flex-shrink: 0; color: var(--t-blanco); text-decoration: none; font-family: var(--t-display); font-weight: 700; }
.dt-sello__uno {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50% 50% 50% 10px;
  background: var(--t-verde);
  color: var(--t-tinta-verde);
  font-size: 1.2rem;
}
.dt-sello__win { font-size: 1.55rem; letter-spacing: -0.03em; }
.dt-sello__pais {
  margin-left: 0.45rem;
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
  background: var(--t-oro);
  box-shadow: inset 0 -3px 0 var(--t-rojo);
  color: #10204d;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.dt-barra { margin-left: auto; }
.dt-barra ul { display: flex; gap: 0.1rem; margin: 0; padding: 0; list-style: none; }
.dt-barra__a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 0.65rem;
  border-radius: 10px;
  color: var(--t-suave);
  font-size: 0.93rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.dt-barra__a:hover { color: var(--t-blanco); background: rgba(255, 255, 255, 0.06); }
.dt-barra__a[aria-current="true"] { color: var(--t-blanco); background: var(--t-azul-3); box-shadow: inset 0 -3px 0 var(--t-oro); }

.dt-tope__cta { min-height: 44px; padding: 0.5rem 1.15rem; font-size: 0.92rem; white-space: nowrap; }

.dt-tog {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 0 12px;
  border: 1px solid var(--t-linea-2);
  border-radius: 14px;
  background: var(--t-azul-2);
  cursor: pointer;
}
.dt-tog__l { display: block; height: 2.5px; border-radius: 2px; background: var(--t-blanco); width: 100%; }
.dt-tog__l:nth-child(2) { width: 70%; background: var(--t-oro); }
.dt-tog__l:nth-child(3) { width: 45%; background: var(--t-rojo); }

/* menú lateral */

.dt-capa { position: fixed; inset: 0; z-index: 250; background: rgba(3, 10, 32, 0.68); }
.dt-capa[hidden] { display: none; }

.dt-lado {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 260;
  display: flex;
  flex-direction: column;
  width: min(88vw, 360px);
  padding: 1rem 1.1rem 1.4rem;
  overflow-y: auto;
  background: linear-gradient(200deg, var(--t-azul-3), var(--t-azul-0) 65%);
  border-left: 4px solid var(--t-oro);
  transform: translateX(105%);
  visibility: hidden;
  transition: transform 0.25s ease, visibility 0.25s;
}
.dt-lado.dt-lado--abierto { transform: none; visibility: visible; }
.dt-lado__top { display: flex; align-items: center; justify-content: space-between; min-height: 50px; margin-bottom: 0.6rem; }
.dt-lado__tit { color: var(--t-oro); font-family: var(--t-display); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.dt-lado__x {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--t-linea-2);
  border-radius: 12px;
  background: transparent;
  color: var(--t-blanco);
  cursor: pointer;
}
.dt-lado__x:hover { border-color: var(--t-rojo); color: var(--t-rojo); }
.dt-lado__l { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.dt-lado__a {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 0.4rem 0.8rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--t-linea);
  color: var(--t-blanco);
  font-weight: 600;
  text-decoration: none;
}
.dt-lado__a:hover { border-color: var(--t-verde-hi); background: rgba(23, 184, 101, 0.12); }
.dt-lado__ctas { display: grid; gap: 0.7rem; margin-top: auto; padding-top: 1.4rem; }

/* ---------- portada ---------- */

.dt-heroe { padding: clamp(2rem, 5vw, 4rem) 0 clamp(2rem, 4vw, 3rem); }
.dt-heroe__rejilla { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(1.6rem, 4vw, 3.4rem); align-items: center; }

.dt-heroe__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.1rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 212, 0, 0.12);
  border: 1px solid rgba(255, 212, 0, 0.45);
  color: var(--t-oro-suave);
  font-size: 0.86rem;
  font-weight: 600;
}
.dt-heroe__punto { width: 9px; height: 9px; border-radius: 50%; background: var(--t-verde-hi); box-shadow: 0 0 0 4px rgba(45, 210, 124, 0.25); }

.dt-h1 {
  margin: 0 0 1.1rem;
  color: var(--t-blanco);
  font-family: var(--t-display);
  font-size: clamp(2rem, 1.25rem + 2.9vw, 3.35rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.dt-heroe__btns { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.5rem; }

.dt-heroe__visual { position: relative; margin: 0; }
.dt-heroe__visual::before {
  content: "";
  position: absolute;
  inset: -12px 12px 12px -12px;
  border-radius: 28px;
  border: 2px dashed rgba(255, 212, 0, 0.55);
}
.dt-heroe__visual::after {
  content: "";
  position: absolute;
  right: -10px;
  bottom: -10px;
  width: 38%;
  height: 10px;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--t-oro) 0 50%, var(--t-cobalto) 50% 75%, var(--t-rojo) 75%);
}
.dt-heroe__visual img {
  position: relative;
  width: 100%;
  aspect-ratio: 1380 / 752;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 34px 60px -30px rgba(0, 0, 0, 0.9);
}

/* ---------- bloques ---------- */

.dt-pila { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2.2rem, 4vw, 3.2rem); max-width: 960px; padding-bottom: clamp(3rem, 6vw, 5rem); }
.dt-pila > * { min-width: 0; }

.dt-bloque__cab { display: flex; align-items: flex-end; gap: 1rem; margin-bottom: 1rem; }
.dt-bloque__n {
  flex-shrink: 0;
  font-family: var(--t-display);
  font-size: clamp(2.4rem, 1.8rem + 2vw, 3.4rem);
  font-weight: 700;
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1.6px var(--t-oro);
}
.dt-h2 {
  margin: 0;
  color: var(--t-blanco);
  font-family: var(--t-display);
  font-size: clamp(1.4rem, 1.1rem + 1.25vw, 2.05rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.dt-bloque__cuerpo {
  position: relative;
  padding: clamp(1.3rem, 3vw, 2.1rem);
  border-radius: 6px 26px 26px 26px;
  background: linear-gradient(165deg, rgba(22, 56, 145, 0.75), rgba(10, 31, 92, 0.85));
  border: 1px solid var(--t-linea);
  box-shadow: 0 26px 46px -32px rgba(0, 0, 0, 0.9);
}
.dt-bloque__cuerpo::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 64px;
  height: 4px;
  border-radius: 0 0 4px 0;
  background: linear-gradient(90deg, var(--t-oro) 0 50%, var(--t-cobalto) 50% 75%, var(--t-rojo) 75%);
}
.dt-bloque__cuerpo > :last-child,
.dt-sub > :last-child { margin-bottom: 0; }

.dt-sub { margin-top: 1.6rem; padding-top: 1.3rem; border-top: 1px solid var(--t-linea); }
.dt-h3 {
  margin: 0 0 0.75rem;
  color: var(--t-oro-suave);
  font-family: var(--t-display);
  font-size: clamp(1.08rem, 1rem + 0.4vw, 1.28rem);
  font-weight: 700;
  line-height: 1.3;
}

.dt-accion { margin: 1.6rem 0 0.4rem; }

/* tablas */

.dt-tbl {
  margin: 1.2rem 0;
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid var(--t-linea-2);
  background: var(--t-azul-0);
  -webkit-overflow-scrolling: touch;
}
.dt-tbl table { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
.dt-tbl--ancha table { min-width: 580px; }
.dt-tbl thead th {
  padding: 0.85rem 1rem;
  background: var(--t-azul-3);
  color: var(--t-blanco);
  font-family: var(--t-display);
  font-size: 0.86rem;
  font-weight: 700;
  text-align: left;
  border-bottom: 3px solid var(--t-oro);
}
.dt-tbl tbody th,
.dt-tbl tbody td,
.dt-tbl tfoot th,
.dt-tbl tfoot td { padding: 0.7rem 1rem; text-align: left; vertical-align: top; }
.dt-tbl tbody tr + tr > * { border-top: 1px solid var(--t-linea); }
.dt-tbl tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.03); }
.dt-tbl tbody th { color: var(--t-blanco); font-weight: 600; }
.dt-tbl tbody tr:hover { background: rgba(47, 99, 255, 0.14); }
.dt-tbl tfoot { background: var(--t-verde); }
.dt-tbl tfoot th,
.dt-tbl tfoot td { color: var(--t-tinta-verde); font-weight: 700; }

/* listas */

.dt-lista { display: grid; gap: 0.45rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.dt-lista li { position: relative; padding-left: 1.6rem; line-height: 1.55; }
.dt-lista li::before {
  content: "";
  position: absolute;
  top: 0.55em;
  left: 0.15rem;
  width: 0.7rem;
  height: 0.42rem;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--t-oro) 0 50%, var(--t-cobalto) 50% 75%, var(--t-rojo) 75%);
}

.dt-pasos { display: grid; gap: 0.5rem; margin: 0 0 1.1rem; padding: 0; list-style: none; counter-reset: dt-p; }
.dt-pasos li {
  position: relative;
  padding: 0.65rem 0.9rem 0.65rem 3.3rem;
  border-radius: 14px;
  background: rgba(7, 23, 70, 0.6);
  border: 1px solid var(--t-linea);
  counter-increment: dt-p;
  line-height: 1.5;
}
.dt-pasos li::before {
  content: counter(dt-p);
  position: absolute;
  top: 0.6rem;
  left: 0.75rem;
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50% 50% 50% 6px;
  background: var(--t-verde);
  color: var(--t-tinta-verde);
  font-family: var(--t-display);
  font-size: 0.88rem;
  font-weight: 700;
}

/* preguntas */

.dt-pr { display: grid; gap: 0.6rem; }
.dt-pr__item { border-radius: 16px; background: rgba(7, 23, 70, 0.6); border: 1px solid var(--t-linea); }
.dt-pr__item[open] { border-color: var(--t-verde-hi); }
.dt-pr__sum { display: flex; align-items: center; gap: 0.9rem; min-height: 58px; padding: 0.85rem 1.1rem; list-style: none; cursor: pointer; }
.dt-pr__sum::-webkit-details-marker { display: none; }
.dt-pr__sum::after {
  content: "+";
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-left: auto;
  border-radius: 50%;
  border: 2px solid var(--t-oro);
  color: var(--t-oro);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
}
.dt-pr__item[open] .dt-pr__sum::after { content: "−"; background: var(--t-verde); border-color: var(--t-verde); color: var(--t-tinta-verde); }
.dt-pr__n { flex-shrink: 0; color: var(--t-rojo); font-family: var(--t-display); font-weight: 700; }
.dt-pr__q { margin: 0; color: var(--t-blanco); font-family: var(--t-display); font-size: 1.02rem; font-weight: 600; line-height: 1.4; }
.dt-pr__sum:hover .dt-pr__q { color: var(--t-oro-suave); }
.dt-pr__a { padding: 0 1.1rem 1.1rem; }
.dt-pr__a p { margin: 0; }

/* ---------- pie ---------- */

.dt-pie { background: var(--t-azul-0); border-top: 1px solid var(--t-linea-2); box-shadow: inset 0 6px 0 -0px transparent; padding-bottom: 1.6rem; position: relative; }
.dt-pie::before { content: ""; display: block; height: 4px; background: linear-gradient(90deg, var(--t-oro) 0 50%, var(--t-cobalto) 50% 75%, var(--t-rojo) 75% 100%); }
.dt-pie__arriba { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem; padding: 2.2rem 0 1.4rem; }
.dt-pie__btns { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.dt-pie__nav ul { display: flex; flex-wrap: wrap; gap: 0.2rem 1.4rem; margin: 0; padding: 1rem 0; list-style: none; border-top: 1px solid var(--t-linea); border-bottom: 1px solid var(--t-linea); }
.dt-pie__nav a { display: inline-block; padding: 0.4rem 0; color: var(--t-texto); font-weight: 600; text-decoration: none; }
.dt-pie__nav a:hover { color: var(--t-oro); }
.dt-pie__edad { display: flex; align-items: center; gap: 0.7rem; margin: 1.2rem 0 0.6rem; color: var(--t-suave); font-size: 0.93rem; }
.dt-edad {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--t-rojo);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
}
.dt-pie__copy { margin: 0; color: var(--t-suave); font-size: 0.9rem; }

.dt-subir {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50% 50% 50% 10px;
  background: var(--t-verde);
  color: var(--t-tinta-verde);
  box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.9);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s;
}
.dt-subir.dt-subir--ver { opacity: 1; visibility: visible; }

/* ---------- adaptación ---------- */

@media (max-width: 1140px) {
  .dt-barra { display: none; }
  .dt-tog { display: flex; }
  .dt-tope__cta { margin-left: auto; }
}

@media (max-width: 900px) {
  .dt-heroe__rejilla { grid-template-columns: minmax(0, 1fr); }
  .dt-heroe__visual { order: -1; margin: 12px 0 0 12px; }
}

@media (max-width: 560px) {
  :root { --t-tope: 62px; }
  body { font-size: 1.01rem; }
  .dt-sello__pais { display: none; }
  .dt-tope__cta { padding: 0.5rem 0.9rem; font-size: 0.86rem; }
  .dt-heroe__btns .dt-btn,
  .dt-accion .dt-btn { width: 100%; }
  .dt-bloque__cuerpo { padding: 1.1rem; border-radius: 6px 20px 20px 20px; }
  .dt-lado__l { grid-template-columns: minmax(0, 1fr); }
  .dt-pie__btns, .dt-pie__btns .dt-btn { width: 100%; }
}
