/* =========================================================
   ÁUREO · Estudio digital — sistema de diseño premium
   Verde bosque + oro champagne + crema · Cormorant + Jost
   ========================================================= */

:root {
  /* Paleta de marca */
  --forest: #11231c;
  --forest-soft: #16302550; /* overlays */
  --ink: #0e1a2b;
  --gold: #c9a84c;
  --gold-soft: #ddc079;
  --cream: #f4ecdd;
  --cream-deep: #ece1cc;
  --burgundy: #5c1a2e;

  --text-on-dark: #e9e3d4;
  --muted-on-dark: #a9b3a6;
  --text-on-light: #1d2a23;
  --muted-on-light: #5c6b60;

  /* Tipografía */
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Segoe UI", system-ui, sans-serif;

  /* Espacio y ritmo */
  --container: 1180px;
  --pad-x: clamp(1.25rem, 5vw, 4rem);
  --section-y: clamp(4.5rem, 9vw, 9rem);
  --radius: 4px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  background: var(--cream);
  color: var(--text-on-light);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.05;
  margin: 0;
  letter-spacing: 0.005em;
}

p { margin: 0; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.section { padding-block: var(--section-y); }
.section--cream { background: var(--cream); color: var(--text-on-light); }
.section--forest { background: var(--forest); color: var(--text-on-dark); }
.section--ink { background: var(--ink); color: var(--text-on-dark); }

.eyebrow {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.74rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}

.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-title { font-size: clamp(2rem, 4.4vw, 3.4rem); }
.section--cream .section-title { color: var(--text-on-light); }
.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--muted-on-light);
  margin-top: 1.25rem;
  max-width: 42rem;
}
.section--forest .lead, .section--ink .lead { color: var(--muted-on-dark); }
.text-gold { color: var(--gold); }
.serif-accent { font-family: var(--serif); font-style: italic; font-weight: 500; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.95rem 1.7rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease),
    color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.btn-gold {
  background: var(--gold);
  color: var(--forest);
  box-shadow: 0 10px 30px -12px rgba(201, 168, 76, 0.55);
}
.btn-gold:hover { background: var(--gold-soft); transform: translateY(-2px); }
.btn-ghost {
  border-color: rgba(201, 168, 76, 0.55);
  color: var(--gold);
  background: transparent;
}
.btn-ghost:hover { background: var(--gold); color: var(--forest); transform: translateY(-2px); }
.btn-lg { padding: 1.1rem 2.2rem; font-size: 0.9rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease),
    border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(17, 35, 28, 0.86);
  backdrop-filter: blur(10px);
  border-bottom-color: rgba(201, 168, 76, 0.18);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.1rem;
}
.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand svg { width: 38px; height: 38px; }
.brand-name {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cream);
  padding-left: 0.3em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.1rem;
}
.nav-links a {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-on-dark);
  opacity: 0.85;
  transition: color 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-links a:hover { color: var(--gold); opacity: 1; }
.nav-links .btn { color: var(--gold); }
.nav-links .btn:hover { color: var(--forest); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--cream);
  transition: 0.3s var(--ease);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(120% 120% at 80% -10%, #1a3a2c 0%, var(--forest) 55%);
  color: var(--text-on-dark);
  padding-top: clamp(8rem, 16vh, 12rem);
  padding-bottom: var(--section-y);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -120px;
  top: -120px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.16), transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 56rem; }
.hero-title {
  font-size: clamp(2.9rem, 8vw, 6rem);
  margin-block: 0.5rem 0;
}
.hero-title em { font-style: italic; color: var(--gold); }
.hero-sub {
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  color: var(--muted-on-dark);
  max-width: 40rem;
  margin-top: 1.8rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.6rem;
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 5vw, 3.5rem);
  margin-top: 3.5rem;
  padding-top: 2.2rem;
  border-top: 1px solid rgba(201, 168, 76, 0.2);
}
.hero-stats .stat strong {
  display: block;
  font-family: var(--serif);
  font-size: 2.2rem;
  color: var(--gold);
  line-height: 1;
}
.hero-stats .stat span {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
}

/* ---------- Grillas genéricas ---------- */
.grid {
  display: grid;
  gap: 1.6rem;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* ---------- Cards de servicio ---------- */
.card {
  padding: 2.2rem 2rem;
  border-radius: var(--radius);
  border: 1px solid rgba(201, 168, 76, 0.25);
  background: rgba(255, 255, 255, 0.03);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease),
    background 0.4s var(--ease);
}
.section--cream .card { background: #fbf6ec; border-color: rgba(92, 79, 40, 0.18); }
.card:hover { transform: translateY(-6px); border-color: var(--gold); }
.card .card-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--gold);
}
.card .card-mark { width: 40px; height: 40px; margin-bottom: 1.3rem; }
.card h3 { font-size: 1.7rem; margin-bottom: 0.7rem; }
.card p { color: var(--muted-on-light); font-size: 0.98rem; }
.section--forest .card p, .section--ink .card p { color: var(--muted-on-dark); }

/* ---------- Proceso / pasos ---------- */
.steps { counter-reset: step; display: grid; gap: 1.4rem; }
.steps.grid-3 { grid-template-columns: repeat(3, 1fr); }
.step {
  padding: 2rem 1.8rem;
  border-top: 2px solid var(--gold);
  background: rgba(255, 255, 255, 0.02);
}
.step .step-num {
  font-family: var(--serif);
  font-size: 3rem;
  color: var(--gold);
  line-height: 1;
  display: block;
  margin-bottom: 0.6rem;
}
.step h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.step p { color: var(--muted-on-dark); font-size: 0.96rem; }

/* ---------- Trabajos (bento) ---------- */
.works {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 150px;
  gap: 1rem;
}
.work {
  border-radius: var(--radius);
  border: 1px solid rgba(201, 168, 76, 0.25);
  background: linear-gradient(160deg, #16302520, #11231c);
  display: flex;
  align-items: flex-end;
  padding: 1.3rem;
  color: var(--muted-on-dark);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.work:hover { border-color: var(--gold); transform: translateY(-4px); }
.work.tall { grid-row: span 2; }
.work.wide { grid-column: span 2; }

/* ---------- Por qué (features) ---------- */
.feature { padding: 1.6rem 0; border-top: 1px solid rgba(201, 168, 76, 0.2); }
.feature h3 { font-size: 1.55rem; color: var(--gold); margin-bottom: 0.4rem; }
.feature p { color: var(--muted-on-light); }
.section--forest .feature p { color: var(--muted-on-dark); }

/* ---------- Precios ---------- */
.plan {
  position: relative;
  padding: 2.6rem 2.1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(92, 79, 40, 0.2);
  background: #fbf6ec;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.plan:hover { transform: translateY(-6px); }
.plan--featured {
  background: var(--forest);
  color: var(--text-on-dark);
  border-color: var(--gold);
  box-shadow: 0 30px 60px -30px rgba(17, 35, 28, 0.6);
}
.plan-tag {
  position: absolute;
  top: -0.8rem;
  left: 2.1rem;
  background: var(--gold);
  color: var(--forest);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
}
.plan h3 { font-size: 1.7rem; margin-bottom: 0.3rem; }
.plan .plan-price {
  font-family: var(--serif);
  font-size: 2.6rem;
  color: var(--gold);
  margin: 0.6rem 0 0.2rem;
}
.plan .plan-price small { font-size: 0.95rem; color: inherit; opacity: 0.6; }
.plan ul { list-style: none; padding: 0; margin: 1.4rem 0 2rem; display: grid; gap: 0.7rem; }
.plan li { position: relative; padding-left: 1.5rem; font-size: 0.95rem; }
.plan li::before { content: "—"; position: absolute; left: 0; color: var(--gold); }
.plan--featured li { color: var(--text-on-dark); }
.plan .btn { width: 100%; justify-content: center; margin-top: auto; }
.plan--featured .btn-ghost { color: var(--gold); }

/* ---------- Testimonios ---------- */
.quote {
  padding: 2.4rem 2.2rem;
  border-left: 2px solid var(--gold);
  background: rgba(255, 255, 255, 0.03);
}
.quote blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.4;
  margin: 0 0 1.2rem;
}
.quote cite {
  font-style: normal;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid rgba(92, 79, 40, 0.2);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.4rem 0;
  font-family: var(--serif);
  font-size: 1.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--gold); font-family: var(--sans); font-size: 1.6rem; transition: transform 0.3s var(--ease); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--muted-on-light); padding-bottom: 1.4rem; max-width: 50rem; }

/* ---------- CTA final ---------- */
.cta-final { text-align: center; }
.cta-final .section-title { font-size: clamp(2.2rem, 5vw, 4rem); max-width: 24ch; margin-inline: auto; }
.cta-final .hero-actions { justify-content: center; margin-top: 2.4rem; }

/* ---------- Footer ---------- */
.site-footer { background: #0c1813; color: var(--muted-on-dark); padding-block: 4rem 2rem; }
.footer-top { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; align-items: flex-start; }
.footer-brand { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1rem; }
.footer-brand svg { width: 34px; height: 34px; }
.footer-brand .brand-name { font-size: 1.3rem; color: var(--cream); }
.footer-col h4 { font-family: var(--sans); font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin: 0 0 1rem; font-weight: 500; }
.footer-col a, .footer-col p { display: block; font-size: 0.92rem; margin-bottom: 0.5rem; color: var(--muted-on-dark); }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(201, 168, 76, 0.15);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

/* ---------- Reveal ---------- */
/* Solo se oculta si hay JS (html.js); sin JS el contenido se ve siempre. */
html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .grid-3, .steps.grid-3 { grid-template-columns: 1fr 1fr; }
  .works { grid-template-columns: repeat(2, 1fr); }
  .nav-links {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(78vw, 320px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.6rem;
    padding: 2rem;
    background: rgba(12, 24, 19, 0.97);
    backdrop-filter: blur(12px);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    border-left: 1px solid rgba(201, 168, 76, 0.2);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-toggle { display: flex; }
}

@media (max-width: 560px) {
  .grid-3, .grid-2, .steps.grid-3 { grid-template-columns: 1fr; }
  .works { grid-template-columns: 1fr; grid-auto-rows: 130px; }
  .work.wide { grid-column: span 1; }
  .footer-top { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
