/* ================================================================
   Docenpro · v2 Editorial — Magazine vibe
   Fraunces serif + paleta navy/amber/cream
   ================================================================ */
:root {
  --navy: #1e3a5f;
  --navy-dark: #142a48;
  --amber: #d97706;
  --amber-light: #f59e0b;
  --cream: #fbf6ec;
  --cream-dark: #f1e9d8;
  --ink: #0f1a2c;
  --muted: #4a5775;
  --soft: #7e8aa1;
  --sage: #6b8e6b;
  --serif: 'Fraunces', 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --max-width: 1240px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--navy); text-decoration: none; transition: color 0.18s ease; }
a:hover { color: var(--amber); }
img, svg { display: block; max-width: 100%; height: auto; }

em { font-style: italic; }
strong { font-weight: 700; color: var(--ink); }

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

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

/* ===== Botones ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 28px;
  border: 2px solid transparent;
  border-radius: 0;
  cursor: pointer;
  text-align: center;
  letter-spacing: 0.01em;
  transition: all 0.22s var(--ease-out);
}
.btn-primary { background: var(--navy); color: var(--cream); }
.btn-primary:hover { background: var(--navy-dark); color: var(--cream); transform: translateY(-1px); box-shadow: 6px 6px 0 var(--amber); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--cream); }
.btn-sad { background: var(--sage); }
.btn-sad:hover { background: #4f6f4f; box-shadow: 6px 6px 0 var(--amber); }
.btn-lg { font-size: 15px; padding: 14px 32px; }
.btn-sm { font-size: 12px; padding: 8px 18px; }
.btn-block { display: flex; width: 100%; }

/* ===== Topbar ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 2px solid var(--ink);
  transition: box-shadow 0.2s ease;
}
.topbar.is-scrolled { box-shadow: 0 4px 0 rgba(15, 26, 44, 0.08); }
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  gap: 24px;
}
.brand { display: flex; flex-direction: column; line-height: 1; }
.brand-text {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.brand-text em { font-style: italic; font-weight: 500; color: var(--amber); }
.brand-sub {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--soft);
  margin-top: 4px;
}
.topbar-nav { display: flex; align-items: center; gap: 28px; }
.topbar-nav a {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  position: relative;
}
.topbar-nav a:not(.btn):hover { color: var(--ink); }

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

/* ===== Hero ===== */
.hero { padding: 64px 0 96px; border-bottom: 2px solid var(--ink); }
.hero-inner { display: flex; flex-direction: column; gap: 48px; }
.hero-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 12px;
}
.hero-divider {
  display: inline-block;
  width: 30px;
  height: 1px;
  background: var(--ink);
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(48px, 8.4vw, 116px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin-bottom: 48px;
  max-width: 1100px;
}
.hero-title em { font-style: italic; font-weight: 500; color: var(--amber); }
.hero-title .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.hero-title.in .word { opacity: 1; transform: translateY(0); }
.hero-title.in .word:nth-child(1) { transition-delay: 0.05s; }
.hero-title.in .word:nth-child(2) { transition-delay: 0.15s; }
.hero-title.in .word:nth-child(3) { transition-delay: 0.25s; }
.hero-title.in .word:nth-child(4) { transition-delay: 0.35s; }
.hero-title.in .word:nth-child(5) { transition-delay: 0.45s; }
.hero-title.in .word:nth-child(6) { transition-delay: 0.55s; }
.hero-title.in .word:nth-child(7) { transition-delay: 0.65s; }
.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr);
  gap: 56px;
  align-items: start;
}
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; }
}
.hero-body { max-width: 460px; }
.hero-lead {
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.45;
  color: var(--ink);
  margin-bottom: 18px;
  font-weight: 400;
}
.hero-body p { color: var(--muted); margin-bottom: 12px; font-size: 15px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

.hero-figure { position: relative; }
.hero-fig {
  position: relative;
  border: 2px solid var(--ink);
  background: var(--ink);
  margin-bottom: 28px;
  transition: transform 0.4s var(--ease-out);
}
.hero-fig:hover { transform: translate(-4px, -4px); box-shadow: 8px 8px 0 var(--amber); }
.hero-fig img { display: block; width: 100%; }
.hero-fig figcaption {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 14px 16px;
  background: var(--cream);
  border-top: 2px solid var(--ink);
  font-size: 13px;
  color: var(--ink);
}
.hero-fig .fig-num {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 900;
  color: var(--amber);
  font-style: italic;
}
.hero-fig figcaption em { color: var(--muted); font-size: 12px; }
.fig-1 { transform: rotate(-1deg); }
.fig-2 { transform: rotate(1deg); margin-left: 36px; }
.fig-2:hover { transform: rotate(1deg) translate(-4px, -4px); }
.fig-1:hover { transform: rotate(-1deg) translate(-4px, -4px); }

/* ===== Stats ===== */
.stats { padding: 56px 0; background: var(--cream-dark); border-bottom: 2px solid var(--ink); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}
.stat { display: flex; flex-direction: column; gap: 4px; padding: 0 4px; }
.stat-key {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
  font-weight: 700;
}
.stat-num {
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 60px);
  font-weight: 900;
  color: var(--navy);
  line-height: 1;
  margin: 6px 0;
}
.stat-label { color: var(--muted); font-size: 13px; }

/* ===== Sections ===== */
.section { padding: 96px 0; }
.section-alt { background: var(--cream-dark); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.section-head { margin-bottom: 64px; max-width: 800px; }
.section-eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--amber);
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.section-title em { font-style: italic; font-weight: 500; color: var(--amber); }

/* ===== Productos ===== */
.productos { display: flex; flex-direction: column; gap: 80px; }
.producto {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 32px;
  align-items: start;
}
.producto-reverse { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 90px; }
.producto-reverse .producto-num { order: 3; }
.producto-reverse .producto-body { order: 2; }
.producto-reverse .producto-img { order: 1; }
@media (max-width: 1024px) {
  .producto, .producto-reverse { grid-template-columns: 1fr; }
  .producto-reverse .producto-num { order: 1; }
  .producto-reverse .producto-body { order: 2; }
  .producto-reverse .producto-img { order: 3; }
}
.producto-num {
  font-family: var(--serif);
  font-size: 80px;
  font-weight: 900;
  font-style: italic;
  color: var(--amber);
  line-height: 0.9;
}
.producto-num-sad { color: var(--sage); }
.producto-body { max-width: 500px; }
.producto-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 8px;
}
.producto-nombre {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1;
}
.producto-tagline {
  font-family: var(--serif);
  font-size: 20px;
  font-style: italic;
  font-weight: 500;
  color: var(--amber);
  margin-bottom: 18px;
}
.producto-desc { color: var(--muted); margin-bottom: 24px; font-size: 15px; line-height: 1.7; }
.producto-bullets { list-style: none; margin-bottom: 28px; }
.producto-bullets li {
  padding: 8px 0 8px 22px;
  position: relative;
  font-size: 14px;
  color: var(--ink);
  border-bottom: 1px dashed rgba(15, 26, 44, 0.15);
}
.producto-bullets li:last-child { border-bottom: 0; }
.producto-bullets li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--amber);
  font-weight: 700;
}
.producto-img img {
  border: 2px solid var(--ink);
  width: 100%;
  transition: transform 0.4s var(--ease-out);
}
.producto-img img:hover { transform: translate(-4px, -4px); box-shadow: 10px 10px 0 var(--amber); }

/* ===== Pricing ===== */
.pricing-group-title {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 900;
  font-style: italic;
  color: var(--ink);
  margin: 48px 0 24px;
  text-align: center;
}
.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(--cream);
  border: 2px solid var(--ink);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
}
.price-card-featured { background: var(--navy); color: var(--cream); }
.price-card-featured .price-key,
.price-card-featured ul li,
.price-card-featured strong { color: var(--cream); }
.price-card-featured ul li { border-bottom-color: rgba(251, 246, 236, 0.2); }
.price-card-featured ul li::before { color: var(--amber); }
.price-card-sad { background: var(--sage); color: var(--cream); }
.price-card-sad .price-key,
.price-card-sad ul li,
.price-card-sad strong { color: var(--cream); }
.price-card-sad ul li { border-bottom-color: rgba(251, 246, 236, 0.2); }
.price-card-sad ul li::before { color: var(--cream); }
.price-ribbon {
  position: absolute;
  top: -12px; left: 32px;
  background: var(--amber);
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
}
.price-key {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  color: var(--muted);
}
.price-amount {
  font-family: var(--serif);
  font-size: 64px;
  font-weight: 900;
  line-height: 1;
  margin: 10px 0 28px;
  color: inherit;
}
.price-amount sup { font-size: 24px; vertical-align: top; margin-right: 4px; color: var(--amber); }
.price-amount sub { font-size: 13px; font-family: var(--sans); font-weight: 500; opacity: 0.75; margin-left: 8px; }
.price-card ul { list-style: none; flex-grow: 1; margin-bottom: 24px; }
.price-card ul li {
  padding: 10px 0 10px 22px;
  position: relative;
  font-size: 14px;
  color: var(--ink);
  border-bottom: 1px dashed rgba(15, 26, 44, 0.15);
}
.price-card ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--amber);
  font-weight: 700;
}

/* ===== Contacto / Steps ===== */
.section-contact { background: var(--ink); color: var(--cream); border-bottom: 0; }
.section-contact .section-title { color: var(--cream); }
.section-contact .section-title em { color: var(--amber); }
.section-contact .section-eyebrow { color: var(--amber); }
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  margin: 0 0 48px;
}
.steps li { border-top: 2px solid var(--cream); padding-top: 20px; }
.step-key {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 900;
  font-style: italic;
  color: var(--amber);
  display: block;
  margin-bottom: 12px;
}
.steps h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 8px;
}
.steps p { color: #c8d0dd; font-size: 14px; line-height: 1.6; }
.contact-cta { text-align: center; }
.contact-cta .btn-primary { background: var(--amber); color: var(--ink); }
.contact-cta .btn-primary:hover { background: #b45309; box-shadow: 6px 6px 0 var(--cream); }

/* ===== Design selector ===== */
.section-designs { background: var(--cream); }
.design-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.design-card {
  position: relative;
  display: block;
  background: var(--cream);
  border: 2px solid var(--ink);
  text-decoration: none;
  color: inherit;
  transition: transform 0.32s var(--ease-out), box-shadow 0.32s var(--ease-out);
}
.design-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 10px 10px 0 var(--amber);
  color: inherit;
}
.design-card-active { box-shadow: 8px 8px 0 var(--amber); }
.design-badge {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 2;
  background: var(--amber);
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
}
.design-thumb { aspect-ratio: 600 / 400; overflow: hidden; border-bottom: 2px solid var(--ink); }
.design-thumb img { width: 100%; height: 100%; object-fit: cover; }
.design-info { padding: 20px; }
.design-info h3 {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.design-info p { color: var(--muted); font-size: 13px; }

/* ===== Footer ===== */
.footer {
  background: var(--ink);
  color: #c8d0dd;
  padding: 64px 0 28px;
}
.footer-top { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding-bottom: 32px; border-bottom: 1px solid rgba(251, 246, 236, 0.15); margin-bottom: 24px; flex-wrap: wrap; }
.footer-brand {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 900;
  color: var(--cream);
  letter-spacing: -0.02em;
}
.footer-brand em { font-style: italic; color: var(--amber); font-weight: 500; }
.footer-tagline { font-size: 12px; text-transform: uppercase; letter-spacing: 0.15em; color: var(--soft); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  flex-wrap: wrap;
}
.footer-bottom a { color: var(--amber); }

/* ===== Reveal animaciones ===== */
.reveal {
  opacity: 0;
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal[data-anim="fade-in-up"] { transform: translateY(36px); }
.reveal[data-anim="fade-in-right"] { transform: translateX(36px); }
.reveal[data-anim="text-reveal"] { opacity: 1; }
.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; }
  .hero-title .word { opacity: 1; transform: none; }
}

@media print {
  .topbar, .footer, .scroll-progress { display: none; }
  .section { padding: 24px 0; }
}
