/* =========================================================
   DERANCOURT Chile — Página "En construcción"
   Paleta basada en la identidad DERANCOURT (naranjo #e96032)
   ========================================================= */

:root {
  --bg: #0d1117;
  --bg-alt: #121821;
  --surface: #161d28;
  --surface-2: #1c2532;
  --line: #273243;
  --text: #edf0f4;
  --muted: #9aa5b4;
  --accent: #e96032;        /* naranjo DERANCOURT */
  --accent-hover: #f2774c;
  --accent-2: #f49a17;      /* ámbar secundario */
  --accent-soft: rgba(233, 96, 50, .13);
  --accent-ink: #1a0b05;
  --blue: #4aa8ff;

  --radius: 14px;
  --maxw: 1180px;
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* rejilla técnica de fondo */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: .22;
  mask-image: radial-gradient(ellipse at 70% 10%, #000 0%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 10%, #000 0%, transparent 65%);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.05; }
p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 20px;
}

.accent { color: var(--accent); }

.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 14px;
}

/* ---------- franja de advertencia ---------- */
.hazard {
  height: 8px;
  background: repeating-linear-gradient(
    -45deg,
    var(--accent) 0 14px,
    #111 14px 28px
  );
}

/* ---------- barra superior ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(13, 17, 23, .85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

.brand__logo {
  height: 34px;
  width: auto;
}

.brand__country {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .2em;
  padding: 3px 8px 2px;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 4px;
  flex: none;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  font-weight: 500;
  color: var(--muted);
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  white-space: nowrap;
}

.status-pill__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: ping 1.8s infinite;
}

@keyframes ping {
  0%   { box-shadow: 0 0 0 0 rgba(233, 96, 50, .6); }
  80%  { box-shadow: 0 0 0 8px rgba(233, 96, 50, 0); }
  100% { box-shadow: 0 0 0 0 rgba(233, 96, 50, 0); }
}

/* ---------- hero ---------- */
.hero {
  padding: 72px 0 80px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 48px;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.8rem, 6.4vw, 5.2rem);
  text-transform: uppercase;
  letter-spacing: .01em;
  margin-bottom: 22px;
}

.hero__lead {
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 560px;
}

.hero__lead strong { color: var(--text); font-weight: 600; }

.launch-note {
  margin-top: 26px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

.launch-note strong { color: var(--accent-2); }

.countdown {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.countdown[hidden] { display: none; }

.countdown__item {
  min-width: 76px;
  padding: 12px 10px 10px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.countdown__item span {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.countdown__item small {
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* ilustración */
.hero__art {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 30%, rgba(233, 96, 50, .10), transparent 60%),
    var(--bg-alt);
  padding: 28px 20px 16px;
}

.powerline .ground { stroke: var(--line); stroke-width: 2; }

.powerline .tower path,
.powerline .tower circle {
  fill: none;
  stroke: #5d6a7e;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.powerline .tower circle { fill: var(--bg-alt); }

.powerline .cable {
  fill: none;
  stroke: #36404f;
  stroke-width: 2;
}

.powerline .cable--live {
  stroke: var(--accent-2);
  stroke-width: 2.4;
  stroke-dasharray: 8 14;
  opacity: .9;
  animation: flow 1.4s linear infinite;
  filter: drop-shadow(0 0 4px rgba(244, 154, 23, .65));
}

.powerline .cable--d2 { animation-delay: -.45s; }
.powerline .cable--d3 { animation-delay: -.9s; }

@keyframes flow {
  to { stroke-dashoffset: -44; }
}

.powerline .sign__tri {
  fill: var(--accent-2);
  stroke: #111;
  stroke-width: 3;
  stroke-linejoin: round;
}

.powerline .sign__bolt { fill: #111; }

.voltage-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .14em;
  color: var(--blue);
  padding: 4px 10px;
  border: 1px solid rgba(74, 168, 255, .35);
  border-radius: 6px;
  background: rgba(74, 168, 255, .08);
}

/* ---------- botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 8px 24px -10px rgba(233, 96, 50, .75);
}

.btn--primary:hover { background: var(--accent-hover); }

.btn--ghost {
  border-color: var(--line);
  color: var(--text);
  background: transparent;
}

.btn--ghost:hover { border-color: var(--accent); }

.btn--block { width: 100%; }

/* ---------- credenciales ---------- */
.trust {
  border-block: 1px solid var(--line);
  background: var(--bg-alt);
}

.trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.trust__item {
  padding: 26px 20px;
  border-left: 1px solid var(--line);
}

.trust__item:first-child { border-left: 0; padding-left: 0; }

.trust__item strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.9rem;
  line-height: 1.1;
  color: var(--accent);
  letter-spacing: .02em;
}

.trust__item span {
  font-size: .92rem;
  color: var(--muted);
}

/* ---------- secciones ---------- */
.section { padding: 96px 0; }

/* compensa la barra superior fija al navegar con anclas */
section[id] { scroll-margin-top: 72px; }

.section--alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--line);
}

.section__head {
  max-width: 700px;
  margin-bottom: 48px;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section__lead { color: var(--muted); font-size: 1.08rem; }
.section__lead + .section__lead { margin-top: 14px; }
.section__lead strong { color: var(--text); font-weight: 600; }

/* tarjetas */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.card {
  position: relative;
  padding: 26px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .2s ease, transform .2s ease;
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 3px;
  width: 0;
  background: var(--accent);
  transition: width .3s ease;
}

.card:hover { border-color: #3a475a; transform: translateY(-3px); }
.card:hover::after { width: 100%; }

.card__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--accent-soft);
  margin-bottom: 18px;
}

.card__icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: .02em;
  margin-bottom: 8px;
}

.card p { color: var(--muted); font-size: .96rem; }

/* la marca */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

/* ventajas */
.perks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.perk {
  display: flex;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.perk:last-child { border-bottom: 1px solid var(--line); }

.perk__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--accent);
  min-width: 48px;
}

.perk h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  margin-bottom: 4px;
}

.perk p { color: var(--muted); }

/* formulario */
.notify {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.form {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.form__row { margin-bottom: 18px; }

.form label {
  display: block;
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.optional { color: var(--muted); font-weight: 400; }

.form input:not([type="checkbox"]),
.form select {
  width: 100%;
  padding: 13px 14px;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
                    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}

.form input:focus,
.form select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form input[aria-invalid="true"] { border-color: #ff6b6b; }

.form__check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 18px;
}

.form__check input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: var(--accent);
}

.form__check input[aria-invalid="true"] { outline: 2px solid #ff6b6b; outline-offset: 2px; }

.form__check label {
  margin: 0;
  font-size: .88rem;
  font-weight: 400;
  color: var(--muted);
  cursor: pointer;
}

/* campo trampa anti-bots, fuera de la vista */
.form__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form .btn { margin-top: 6px; }
.form .btn[disabled] { opacity: .6; cursor: progress; transform: none; }

.form__msg {
  min-height: 1.4em;
  margin-top: 14px;
  font-size: .95rem;
  color: var(--muted);
}

.form__msg.is-error { color: #ff8a8a; }
.form__msg.is-ok { color: #7ee2a8; }

/* pie */
.footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 48px;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}

.brand--small .brand__logo { height: 26px; }

.footer__contact a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
}

.footer__legal {
  width: 100%;
  color: var(--muted);
  font-size: .88rem;
}

.footer__legal a { color: var(--text); }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .hero { padding: 48px 0 64px; }
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__art { max-width: 560px; }
  .about,
  .notify { grid-template-columns: 1fr; gap: 32px; }
  .trust__grid { grid-template-columns: repeat(2, 1fr); }
  .trust__item:nth-child(3) { border-left: 0; padding-left: 0; }
  .trust__item:nth-child(n+3) { border-top: 1px solid var(--line); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding-inline: 16px; }
  .section { padding: 64px 0; }
  .topbar__inner { min-height: 62px; }
  .brand { gap: 8px; }
  .brand__logo { height: 24px; }
  .brand__country { font-size: .7rem; padding: 2px 6px 1px; }
  .status-pill { font-size: 0; gap: 0; padding: 8px; }   /* solo el punto en móvil */
  .cards { grid-template-columns: 1fr; }
  .trust__item { padding: 18px 12px; }
  .trust__item strong { font-size: 1.5rem; }
  .countdown { gap: 8px; }
  .countdown__item { min-width: 0; flex: 1; }
  .countdown__item span { font-size: 1.8rem; }
  .hero__actions .btn { flex: 1 1 100%; }
  .form { padding: 22px; }
}

/* ---------- movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .powerline .pulse { display: none; }
}
