/* ===== Camaj3D — Hoja de estilos principal ===== */

:root {
  --bg: #0e0f12;
  --bg-alt: #16181d;
  --bg-card: #1b1e24;
  --border: #2a2d35;
  --text: #e9eaec;
  --text-muted: #a4a8b0;
  --accent: #e0b23a;
  --accent-hover: #f0c363;
  --accent-2: #3d82dc;
  --radius: 14px;
  --max-width: 1180px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --header-h: 69px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

h1, h2, h3, h4 {
  font-family: "Poppins", sans-serif;
  line-height: 1.25;
  margin: 0 0 0.6em;
  font-weight: 600;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; color: var(--text-muted); }

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

/* ===== Skip link ===== */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #111;
  padding: 10px 16px;
  z-index: 999;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ===== Header ===== */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 15, 18, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text);
}
.logo:hover { color: var(--text); }
.logo svg { flex-shrink: 0; }

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

nav.main-nav a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.98rem;
}
nav.main-nav a:hover, nav.main-nav a[aria-current="page"] { color: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}

/* ===== Hero ===== */
.hero {
  padding: 90px 0 70px;
  background: radial-gradient(ellipse at top right, rgba(224, 178, 58, 0.14), transparent 60%),
              radial-gradient(ellipse at bottom left, rgba(61, 130, 220, 0.10), transparent 55%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

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

.hero p.lead {
  font-size: 1.15rem;
  max-width: 52ch;
}

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.15s ease, background 0.15s ease;
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--accent); color: #16110d; }
.btn-primary:hover { background: var(--accent-hover); color: #16110d; }

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

.hero-visual {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 30px;
  box-shadow: var(--shadow);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 8px;
}
.stat-card {
  text-align: center;
  padding: 18px 10px;
  background: var(--bg-alt);
  border-radius: 12px;
  border: 1px solid var(--border);
}
.stat-num { font-size: 1.6rem; font-weight: 700; color: var(--accent); }
.stat-label { font-size: 0.85rem; color: var(--text-muted); }

/* ===== Escena de impresión (scroll-driven) ===== */
.print-scene {
  position: relative;
  height: 320vh;
  padding: 0;
}

.print-sticky {
  position: sticky;
  top: var(--header-h, 73px);
  height: calc(100vh - var(--header-h, 73px));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(ellipse at center, rgba(217,165,33,0.09), transparent 65%);
  padding: 20px 0;
}

.print-sticky .section-head {
  text-align: center;
  max-width: 46rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: clamp(10px, 2vh, 26px);
}
.print-sticky .section-head h1 {
  font-size: clamp(1.6rem, 3.4vh, 3.2rem);
  margin-bottom: 0.4em;
}
.print-sticky .section-head p {
  font-size: clamp(0.85rem, 1.8vh, 1.05rem);
  margin-bottom: 0;
}

.print-rig {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(8px, 1.6vh, 20px);
}

.print-svg {
  height: min(42vh, 420px);
  width: auto;
  max-width: 85vw;
  overflow: visible;
}

.scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  animation: scrollCueBounce 1.8s ease-in-out infinite;
}

@keyframes scrollCueBounce {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(6px); opacity: 1; }
}

.printer-head {
  transform: translateY(calc(var(--print-progress, 0) * -180px));
  transition: transform 0.05s linear;
}

.print-progress-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.print-progress-value {
  color: var(--accent);
  font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
  .print-scene { height: auto; }
  .print-sticky { position: relative; height: auto; padding: 60px 0; }
  .printer-head { transition: none; }
}

@media (max-width: 640px) {
  .print-scene { height: 200vh; }
}

/* ===== Sections ===== */
section { padding: 70px 0; }
section.alt { background: var(--bg-alt); }

.section-head { max-width: 62ch; margin-bottom: 42px; }
.section-head .eyebrow { margin-bottom: 10px; }

/* ===== Cards / grid ===== */
.grid {
  display: grid;
  gap: 26px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card:hover { border-color: var(--accent); transform: translateY(-3px); }

.card .icon {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(224, 178, 58, 0.14);
  border-radius: 10px;
  margin-bottom: 16px;
  color: var(--accent);
}

/* ===== Portfolio cards ===== */
.model-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.model-thumb {
  height: 140px;
  background: linear-gradient(135deg, rgba(224,178,58,0.18), rgba(61,130,220,0.14));
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  border-bottom: 1px solid var(--border);
}
.model-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.tag {
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.model-stats { font-size: 0.82rem; color: var(--text-muted); margin: 10px 0 16px; }
.model-body .btn { margin-top: auto; align-self: flex-start; }

/* ===== Pricing / shop ===== */
.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  text-align: left;
}
.price-card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.price-tag { font-size: 2rem; font-weight: 700; color: var(--accent); margin: 10px 0; }
.price-tag span { font-size: 0.95rem; color: var(--text-muted); font-weight: 400; }
.feature-list { list-style: none; padding: 0; margin: 18px 0; }
.feature-list li { padding: 6px 0; color: var(--text-muted); font-size: 0.95rem; }
.feature-list li::before { content: "✓ "; color: var(--accent-2); font-weight: 700; }

/* ===== Steps ===== */
.steps { counter-reset: step; }
.step {
  display: flex;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}
.step:last-child { border-bottom: none; }
.step-num {
  counter-increment: step;
  min-width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--accent);
  color: #16110d;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.step-num::before { content: counter(step); }

/* ===== FAQ ===== */
details.faq {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 14px;
}
details.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  list-style: none;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; float: right; color: var(--accent); font-size: 1.2rem; }
details.faq[open] summary::after { content: "−"; }
details.faq p { margin-top: 12px; }

/* ===== Forms ===== */
form.contact-form, form.request-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.92rem;
}
.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--accent);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-note { font-size: 0.85rem; color: var(--text-muted); margin-top: 10px; }

/* ===== Contact info list ===== */
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.contact-list li:last-child { border-bottom: none; }

/* ===== CTA band ===== */
.cta-band {
  text-align: center;
  background: linear-gradient(135deg, rgba(224,178,58,0.16), rgba(61,130,220,0.12));
  border-radius: 20px;
  padding: 60px 30px;
  border: 1px solid var(--border);
}
.cta-band h2 { margin-bottom: 12px; }
.cta-band p { max-width: 55ch; margin-left: auto; margin-right: auto; }

/* ===== Breadcrumbs ===== */
.breadcrumbs {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 18px 0 0;
}
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent); }

/* ===== Footer ===== */
footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 50px 0 30px;
  background: var(--bg-alt);
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
}
.footer-grid h4 { color: var(--text); font-size: 0.95rem; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: var(--text-muted); font-size: 0.92rem; }
.footer-bottom {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  nav.main-nav {
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    display: none;
    padding: 10px 24px 20px;
  }
  nav.main-nav.open { display: block; }
  nav.main-nav ul { flex-direction: column; gap: 4px; }
  nav.main-nav li { padding: 10px 0; border-bottom: 1px solid var(--border); }
  .nav-toggle { display: block; }
  .grid-3, .grid-2, .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 50px 0; }
  .hero { padding: 60px 0 40px; }
}
