/* ==========================================================
   Tecniplast — Página "En construcción"
   Paleta y tipografía tomadas del sitio Tecniplast
   ========================================================== */
:root {
  --shell:      oklch(31% 0.095 288);
  --shell-deep: oklch(24% 0.085 288);
  --paper:      oklch(97.5% 0.003 288);
  --paper-dim:  oklch(93.5% 0.006 288);
  --ink:        oklch(24% 0.05 288);
  --ink-dim:    oklch(45% 0.03 288);
  --milk:       oklch(96% 0.01 288);
  --milk-dim:   oklch(80% 0.035 288);
  --brand:      oklch(42% 0.145 288);
  --accent:     oklch(78% 0.14 75);
  --accent-ink: oklch(30% 0.07 75);
  --hair:       oklch(100% 0 0 / 0.18);
  --hair-ink:   oklch(45% 0.03 288 / 0.28);
  --ok:         oklch(55% 0.14 155);
  --wa:         #25d366;

  --font-serif: "Young Serif", Georgia, serif;
  --font-sans:  "Figtree", system-ui, sans-serif;
  --gutter: clamp(1rem, 4vw, 3rem);
  --radius: 3px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  color: var(--ink);
  background-color: var(--paper);
  /* cuadrícula de plano, como el hero de Tecniplast */
  background-image:
    linear-gradient(var(--hair-ink) 1px, transparent 1px),
    linear-gradient(90deg, var(--hair-ink) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: -1px -1px;
  background-attachment: fixed;
  line-height: 1.55;
  overflow-x: hidden;
}
body::before { /* velo para suavizar la cuadrícula */
  content: "";
  position: fixed; inset: 0;
  background: radial-gradient(ellipse at 30% 40%, oklch(97.5% 0.003 288 / 0.55), oklch(97.5% 0.003 288 / 0.92) 70%);
  pointer-events: none;
  z-index: -1;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }

.wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Encabezado ---------- */
.top { border-bottom: 1px solid var(--hair-ink); background: oklch(97.5% 0.003 288 / 0.85); backdrop-filter: blur(6px); }
.top__row {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-block: 1rem;
}
.top__logo { height: 3.4rem; width: auto; }

.badge {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .45rem .85rem;
  font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent-ink);
  background: oklch(78% 0.14 75 / 0.22);
  border: 1px solid oklch(78% 0.14 75 / 0.6);
  border-radius: 999px;
  white-space: nowrap;
}
.badge__dot {
  width: .5rem; height: .5rem; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 oklch(78% 0.14 75 / 0.7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  70%  { box-shadow: 0 0 0 .55rem oklch(78% 0.14 75 / 0); }
  100% { box-shadow: 0 0 0 0 oklch(78% 0.14 75 / 0); }
}

/* ---------- Hero ---------- */
.hero {
  flex: 1;
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand);
  display: flex; align-items: center; gap: .75rem;
}
.eyebrow::before { content: ""; width: 2rem; height: 2px; background: var(--accent); }

h1 {
  margin: 0 0 1.25rem;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 5.6vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--shell-deep);
  text-wrap: balance;
}
h1 em {
  font-style: italic;
  color: var(--brand);
  background: linear-gradient(transparent 62%, oklch(78% 0.14 75 / 0.55) 62% 92%, transparent 92%);
  padding-inline: .06em;
}
.lead {
  margin: 0 0 2rem;
  max-width: 36rem;
  font-size: clamp(1rem, 1.4vw, 1.14rem);
  color: var(--ink-dim);
}

/* ---------- Avance ---------- */
.progress {
  max-width: 36rem;
  margin-bottom: 2rem;
  padding: 1.1rem 1.25rem 1.2rem;
  background: var(--paper);
  border: 1px solid var(--hair-ink);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
}
.progress__head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: .6rem;
}
.progress__pct { font-family: var(--font-serif); font-size: 1.35rem; letter-spacing: 0; color: var(--shell); font-variant-numeric: tabular-nums; }
.progress__track {
  height: .5rem;
  background: var(--paper-dim);
  border-radius: 999px;
  overflow: hidden;
}
.progress__bar {
  height: 100%; width: 0;
  background: repeating-linear-gradient(-45deg, var(--brand) 0 10px, var(--shell) 10px 20px);
  background-size: 28px 28px;
  border-radius: inherit;
  transition: width 1.6s var(--ease);
  animation: stripes 1.2s linear infinite;
}
@keyframes stripes { to { background-position: 28px 0; } }

.stages {
  list-style: none; margin: .9rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: .35rem;
  counter-reset: st;
}
.stages li {
  counter-increment: st;
  position: relative;
  padding-top: .9rem;
  font-size: .72rem; font-weight: 500; line-height: 1.25;
  color: var(--ink-dim);
  opacity: .6;
  transition: opacity .4s, color .4s;
}
.stages li::before {
  content: counter(st, decimal-leading-zero);
  position: absolute; top: 0; left: 0;
  font-size: .62rem; font-weight: 700; letter-spacing: .06em;
  color: var(--milk-dim);
}
.stages li.is-done { opacity: 1; color: var(--ink); }
.stages li.is-done::before {
  content: ""; top: .05rem; left: .1rem;
  width: .3rem; height: .55rem;
  border: solid var(--ok); border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.stages li.is-active { opacity: 1; color: var(--brand); font-weight: 700; }
.stages li.is-active::before { color: var(--accent-ink); }

/* ---------- Botones ---------- */
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.25rem; }
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  min-height: 3rem;
  padding: .8rem 1.35rem;
  font: 600 .95rem/1 var(--font-sans);
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: transform .25s var(--ease), background-color .25s, box-shadow .25s;
}
.btn svg, .mail svg, .foot svg {
  width: 1.15rem; height: 1.15rem; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.btn-brand { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 18px -8px oklch(78% 0.14 75 / 0.9); }
.btn-brand:hover { background: oklch(82% 0.14 75); }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 6px 18px -8px rgb(37 211 102 / .8); }
.btn-wa:hover { background: #1fbe5b; }

.mail {
  display: flex; align-items: center; gap: .55rem; flex-wrap: wrap;
  margin: 0;
  font-size: .95rem; color: var(--ink-dim);
}
.mail svg { color: var(--brand); }
.mail a { color: var(--brand); font-weight: 600; text-underline-offset: 3px; }

/* ---------- Lámina técnica ---------- */
.plate {
  position: relative;
  margin: 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  aspect-ratio: 4 / 5;
  background: var(--shell-deep);
  border-radius: 6px;
  color: var(--milk);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px oklch(24% 0.085 288 / 0.7);
  display: flex; flex-direction: column;
}
.plate::after { /* marco interior del plano */
  content: "";
  position: absolute; inset: .75rem;
  border: 1px solid var(--hair);
  pointer-events: none;
}
.plate__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--hair) 1px, transparent 1px),
    linear-gradient(90deg, var(--hair) 1px, transparent 1px),
    linear-gradient(oklch(100% 0 0 / 0.06) 1px, transparent 1px),
    linear-gradient(90deg, oklch(100% 0 0 / 0.06) 1px, transparent 1px);
  background-size: 60px 60px, 60px 60px, 12px 12px, 12px 12px;
  opacity: .55;
}
.blueprint { position: relative; flex: 1; width: 100%; min-height: 0; }

.blueprint .draw {
  fill: none; stroke: var(--milk); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round;
  stroke-dasharray: 1200; stroke-dashoffset: 1200;
}
.blueprint .draw.thin { stroke-width: 1.2; opacity: .5; }
.blueprint .ridges line { stroke: var(--milk); stroke-width: 1.2; }
.blueprint .axis { stroke: var(--accent); stroke-width: 1; stroke-dasharray: 10 4 2 4; opacity: .7; }
.blueprint .dim line { stroke: var(--milk-dim); stroke-width: 1; }
.blueprint .dim text { fill: var(--milk-dim); font: 500 11px var(--font-sans); letter-spacing: .04em; }
.blueprint .dim, .blueprint .callout { opacity: 0; transition: opacity 1s ease 1.8s; }
.blueprint .callout line { stroke: var(--accent); stroke-width: 1; }
.blueprint .callout circle { fill: var(--accent); }
.blueprint .callout text { fill: var(--accent); font: 600 10px var(--font-sans); letter-spacing: .06em; }

.blueprint .liquid { transform: translateY(380px); transition: transform 3.2s var(--ease) 1.6s; }
.blueprint .liquid__wave { fill: oklch(80% 0.14 75 / 0.62); animation: wave 3.5s linear infinite; }
@keyframes wave { to { transform: translateX(-100px); } }
.blueprint .bubble { fill: oklch(96% 0.01 288 / 0.6); opacity: 0; }

/* estado "dibujado", lo activa JS */
.plate.is-drawn .draw { animation: draw 2.4s var(--ease) forwards; }
.plate.is-drawn .d2 { animation-delay: .5s; }
.plate.is-drawn .d3 { animation-delay: .8s; }
.plate.is-drawn .ridges { animation-delay: 1.1s; }
.plate.is-drawn .draw.thin { animation-delay: 1.4s; }
.plate.is-drawn .dim, .plate.is-drawn .callout { opacity: 1; }
.plate.is-drawn .liquid { transform: translateY(210px); }
.plate.is-drawn .bubble { animation: rise 4s ease-in infinite; }
.plate.is-drawn .b2 { animation-delay: 1.3s; }
.plate.is-drawn .b3 { animation-delay: 2.6s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes rise {
  0%   { opacity: 0; transform: translateY(0); }
  15%  { opacity: 1; }
  80%  { opacity: .8; }
  100% { opacity: 0; transform: translateY(-150px); }
}

.plate__block {
  position: relative;
  display: grid; gap: .15rem;
  margin-left: auto;
  padding: .7rem .9rem;
  min-width: 14rem;
  font-size: .72rem; letter-spacing: .03em;
  color: var(--milk-dim);
  border: 1px solid var(--hair);
  background: oklch(24% 0.085 288 / 0.8);
}
.plate__block b { display: inline-block; min-width: 4.5rem; font-weight: 600; color: var(--milk); text-transform: uppercase; letter-spacing: .08em; font-size: .64rem; }
.plate__block em { font-style: normal; color: var(--accent); font-weight: 600; }
.blink { animation: blink 1.6s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }

/* ---------- Pie ---------- */
.foot {
  background: var(--shell-deep);
  color: var(--milk-dim);
  border-top: 4px solid var(--accent);
  font-size: .88rem;
}
.foot__row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--hair);
}
.foot__info { display: flex; flex-wrap: wrap; gap: .6rem 1.75rem; font-style: normal; }
.foot__info > * { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; }
.foot__info a:hover { color: var(--milk); }
.foot__info svg { color: var(--accent); }
.social {
  display: grid; place-items: center;
  width: 2.75rem; height: 2.75rem;
  border: 1px solid var(--hair); border-radius: 50%;
  color: var(--milk);
  transition: background-color .25s, color .25s, border-color .25s;
}
.social:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.foot__legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1.5rem;
  padding-block: 1rem;
  font-size: .78rem;
}
.foot__legal p { margin: 0; }
.foot__legal a { color: var(--accent); font-weight: 600; text-decoration: none; letter-spacing: .04em; }
.foot__legal a:hover { text-decoration: underline; }

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .plate { order: -1; aspect-ratio: auto; height: min(82vw, 440px); }
}
@media (max-width: 560px) {
  .top__logo { height: 2.5rem; }
  .badge { font-size: .62rem; padding: .4rem .65rem; }
  .actions .btn { flex: 1 1 100%; justify-content: center; }
  .stages li { font-size: .64rem; }
  .plate__block { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .blueprint .draw { stroke-dashoffset: 0; }
  .blueprint .dim, .blueprint .callout { opacity: 1; }
  .blueprint .liquid { transform: translateY(210px); }
}
