/* ================================================================
   Docenpro · v4 Bauhaus — Geometric blocks + primary colors
   Space Grotesk + bloques de color + cuts agresivos
   ================================================================ */
:root {
  --blue: #0066ff;
  --red: #ff3366;
  --yellow: #ffd400;
  --black: #000;
  --white: #fafaf7;
  --ink: #0a0a0a;
  --muted: #444;
  --soft: #888;
  --border: #000;
  --display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--red); }
img, svg { display: block; max-width: 100%; height: auto; }
strong { font-weight: 700; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }

.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 4px;
  width: 0;
  background: var(--blue);
  z-index: 1000;
  transition: width 0.1s linear;
}

/* ===== Botones ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  padding: 13px 22px;
  border: 2px solid var(--black);
  border-radius: 0;
  cursor: pointer;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all 0.2s var(--ease-out);
  position: relative;
}
.btn-primary {
  background: var(--black);
  color: var(--white);
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--blue);
  z-index: -1;
  transform: translate(0, 0);
  transition: transform 0.2s var(--ease-out);
}
.btn-primary:hover {
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0 var(--yellow);
  color: var(--white);
}
.btn-ghost {
  background: var(--white);
  color: var(--black);
}
.btn-ghost:hover {
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0 var(--yellow);
  background: var(--yellow);
}
.btn-red {
  background: var(--red) !important;
  color: var(--white);
}
.btn-red:hover { box-shadow: 6px 6px 0 var(--black) !important; }
.btn-lg { font-size: 14px; padding: 16px 28px; }
.btn-block { display: flex; width: 100%; }

/* ===== Topbar ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 3px solid var(--black);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.brand {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand-square {
  width: 18px; height: 18px;
  background: var(--blue);
  display: inline-block;
}
.brand-dot { color: var(--red); }
.topbar-nav { display: flex; align-items: center; gap: 22px; }
.topbar-nav a {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--black);
}
.topbar-nav a:not(.btn):hover { color: var(--blue); }

@media (max-width: 980px) { .topbar-nav a:not(.btn) { display: none; } }

/* ===== Hero ===== */
.hero { padding: 0; border-bottom: 3px solid var(--black); }
.hero-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: 180px 180px 180px;
  gap: 0;
  min-height: 540px;
}
.hero-block {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.hero-block-blue {
  grid-column: 1 / span 4;
  grid-row: 1;
  background: var(--blue);
  color: var(--white);
}
.hero-block-red {
  grid-column: 9 / span 4;
  grid-row: 1 / span 2;
  background: var(--red);
  color: var(--white);
}
.hero-block-yellow {
  grid-column: 1 / span 3;
  grid-row: 3;
  background: var(--yellow);
  color: var(--black);
}
.hero-block .block-num {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.hero-block .block-label {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 0.9;
  text-align: right;
}
.hero-text {
  grid-column: 5 / span 4;
  grid-row: 1 / span 3;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 3px solid var(--black);
  border-right: 3px solid var(--black);
  background: var(--white);
}
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto auto;
  }
  .hero-block-blue { grid-column: 1; grid-row: 1; min-height: 120px; }
  .hero-block-red { grid-column: 2; grid-row: 1 / span 2; }
  .hero-block-yellow { grid-column: 1; grid-row: 2; min-height: 120px; }
  .hero-text { grid-column: 1 / span 2; grid-row: 3; border-left: 0; border-right: 0; border-top: 3px solid var(--black); }
}
.hero-title {
  font-family: var(--display);
  font-size: clamp(48px, 6vw, 84px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--black);
  margin-bottom: 24px;
}
.hero-title .word { display: inline-block; }
.hero-title .word-fill {
  background: var(--blue);
  color: var(--white);
  padding: 0 12px;
}
.hero-subtitle {
  font-family: var(--body);
  font-size: clamp(15px, 1.4vw, 17px);
  color: var(--muted);
  margin-bottom: 28px;
  line-height: 1.55;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* ===== Stats ===== */
.stats { padding: 56px 0; border-bottom: 3px solid var(--black); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
}
.stat { padding: 0 4px; }
.stat-bar {
  display: block;
  width: 64px;
  height: 6px;
  background: var(--blue);
  margin-bottom: 18px;
}
.stat-bar-red { background: var(--red); }
.stat-bar-yellow { background: var(--yellow); }
.stat-bar-black { background: var(--black); }
.stat-num {
  font-family: var(--display);
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 700;
  color: var(--black);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.stat-label {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* ===== Sections ===== */
.section { padding: 96px 0; }
.section-alt { background: var(--white); border-top: 3px solid var(--black); border-bottom: 3px solid var(--black); }
.section-head { margin-bottom: 64px; max-width: 800px; }
.section-num {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 12px;
  display: inline-block;
}
.section-title {
  font-family: var(--display);
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--black);
  margin-bottom: 16px;
}
.section-sub {
  font-family: var(--body);
  font-size: 17px;
  color: var(--muted);
}

/* ===== Productos ===== */
.productos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 32px;
}
.producto {
  background: var(--white);
  border: 3px solid var(--black);
  padding: 32px;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.producto:hover {
  transform: translate(-4px, -4px);
  box-shadow: 12px 12px 0 var(--black);
}
.producto-blue { background: var(--white); }
.producto-blue:hover { box-shadow: 12px 12px 0 var(--blue); }
.producto-red { background: var(--white); }
.producto-red:hover { box-shadow: 12px 12px 0 var(--red); }
.producto-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--black);
}
.producto-num {
  font-family: var(--display);
  font-size: 48px;
  font-weight: 700;
  line-height: 0.9;
  color: var(--blue);
}
.producto-red .producto-num { color: var(--red); }
.producto-tag {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.producto-nombre {
  font-family: var(--display);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--black);
  line-height: 1;
  margin-bottom: 10px;
}
.producto-tagline {
  font-family: var(--body);
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 24px;
}
.producto-img {
  margin: 0 -32px 24px;
  border-top: 2px solid var(--black);
  border-bottom: 2px solid var(--black);
}
.producto-img img { width: 100%; }
.producto-bullets { list-style: none; margin-bottom: 28px; }
.producto-bullets li {
  padding: 9px 0 9px 28px;
  position: relative;
  font-size: 14px;
  color: var(--ink);
  border-bottom: 1px solid #e5e5e5;
}
.producto-bullets li:last-child { border-bottom: 0; }
.producto-bullets li::before {
  content: "■";
  position: absolute;
  left: 0;
  color: var(--blue);
  font-size: 10px;
  top: 12px;
}
.producto-red .producto-bullets li::before { color: var(--red); }

/* ===== Pricing ===== */
.pricing-group-title {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  color: var(--black);
  margin: 48px 0 24px;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 760px;
  margin: 0 auto;
}
.pricing-grid-single { max-width: 380px; }
.price-card {
  position: relative;
  background: var(--white);
  border: 3px solid var(--black);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.price-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 10px 10px 0 var(--black);
}
.price-card-featured { background: var(--blue); color: var(--white); }
.price-card-featured h4,
.price-card-featured .price-amount,
.price-card-featured ul li { color: var(--white); }
.price-card-featured ul li::before { color: var(--yellow); }
.price-card-featured:hover { box-shadow: 10px 10px 0 var(--yellow); }
.price-card-sad { background: var(--red); color: var(--white); }
.price-card-sad h4,
.price-card-sad .price-amount,
.price-card-sad ul li { color: var(--white); }
.price-card-sad ul li::before { color: var(--yellow); }
.price-card-sad:hover { box-shadow: 10px 10px 0 var(--black); }
.price-card-num {
  position: absolute;
  top: -22px; left: -22px;
  width: 50px; height: 50px;
  background: var(--blue);
  color: var(--white);
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--black);
}
.price-card-num-featured { background: var(--yellow); color: var(--black); }
.price-card-num-red { background: var(--red); color: var(--white); }
.price-ribbon {
  position: absolute;
  top: -3px; right: -3px;
  background: var(--yellow);
  color: var(--black);
  font-family: var(--display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border: 3px solid var(--black);
  border-top: 0; border-right: 0;
}
.price-card h4 {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--black);
  margin-bottom: 6px;
}
.price-amount {
  font-family: var(--display);
  font-size: 56px;
  font-weight: 700;
  color: var(--black);
  line-height: 1;
  margin: 10px 0 24px;
  letter-spacing: -0.03em;
}
.price-amount sub { font-family: var(--display); font-size: 12px; font-weight: 600; margin-left: 6px; opacity: 0.75; letter-spacing: 0.08em; }
.price-card ul { list-style: none; flex-grow: 1; margin-bottom: 24px; }
.price-card ul li {
  padding: 8px 0 8px 22px;
  position: relative;
  font-size: 14px;
  color: var(--ink);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.price-card ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 700;
}

/* ===== Contact ===== */
.section-contact { background: var(--black); color: var(--white); }
.section-contact .section-title { color: var(--white); }
.section-contact .section-num { color: var(--yellow); }
.section-contact .section-sub { color: #aaa; }
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}
.step {
  background: var(--white);
  color: var(--black);
  padding: 28px 24px;
  border: 3px solid var(--white);
  transition: transform 0.3s var(--ease-out), background 0.3s var(--ease-out);
}
.step:hover { background: var(--yellow); transform: translate(-3px, -3px); box-shadow: 8px 8px 0 var(--red); }
.step .step-num {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--blue);
  display: block;
  margin-bottom: 12px;
}
.step h3 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.step p { font-size: 14px; color: var(--muted); }
.contact-cta { text-align: center; }
.contact-cta .btn-primary {
  background: var(--yellow);
  color: var(--black);
  border-color: var(--yellow);
}
.contact-cta .btn-primary:hover { box-shadow: 6px 6px 0 var(--white); background: var(--yellow); color: var(--black); }

/* ===== Design selector ===== */
.section-designs { background: var(--white); }
.design-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.design-card {
  position: relative;
  display: block;
  background: var(--white);
  border: 3px solid var(--black);
  color: inherit;
  text-decoration: none;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.design-card:hover {
  transform: translate(-4px, -4px);
  color: inherit;
  box-shadow: 10px 10px 0 var(--blue);
}
.design-card-active { box-shadow: 8px 8px 0 var(--yellow); }
.design-badge {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 2;
  background: var(--yellow);
  color: var(--black);
  font-family: var(--display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  border: 2px solid var(--black);
}
.design-thumb { aspect-ratio: 600 / 400; overflow: hidden; border-bottom: 3px solid var(--black); }
.design-thumb img { width: 100%; height: 100%; object-fit: cover; }
.design-info { padding: 18px; display: flex; align-items: center; gap: 12px; }
.design-num {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: -0.02em;
}
.design-info h3 {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: 0.04em;
}

/* ===== Footer ===== */
.footer { background: var(--black); color: var(--white); padding: 56px 0 24px; }
.footer-top { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding-bottom: 32px; border-bottom: 1px solid #333; margin-bottom: 24px; flex-wrap: wrap; }
.footer-brand {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
}
.footer-dot { color: var(--red); }
.footer-tagline {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #aaa;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #888;
  flex-wrap: wrap;
}
.footer-bottom a { color: var(--yellow); }

/* ===== Reveal ===== */
.reveal {
  opacity: 0;
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal[data-anim="slide-up"] { transform: translateY(40px); }
.reveal[data-anim="slide-right"] { transform: translateX(-40px); }
.reveal[data-anim="slide-left"] { transform: translateX(40px); }
.reveal[data-anim="slide-down"] { transform: translateY(-40px); }
.reveal[data-anim="fade-in"] { transform: none; }
.reveal.in { opacity: 1; transform: translate(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
