/* ============================================================
   Grabados BioBio - Demo
   Paleta: piedra/negro + dorado/bronce
   ============================================================ */

:root {
  color-scheme: dark;
  --bg-0: #0d0f12;          /* negro profundo */
  --bg-1: #14181d;          /* card base */
  --bg-2: #1c2128;          /* card hover */
  --stone: #2a2f37;         /* gris piedra */
  --stone-2: #3a4049;
  --line: rgba(212, 175, 90, 0.18);
  --gold: #d4af5a;          /* dorado/bronce principal */
  --gold-soft: #b8923f;
  --gold-bright: #f0c878;
  --text: #e8e6e1;          /* texto principal marfil */
  --text-dim: #9aa0aa;      /* texto secundario */
  --text-faint: #6b7280;
  --danger: #c0392b;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(0,0,0,.45);
  --maxw: 1200px;
  --font-head: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --font-body: "Inter", "Helvetica Neue", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; background-color: var(--bg-0); }

body {
  font-family: var(--font-body);
  background: var(--bg-0);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  animation: pageIn .45s ease both;
}

@keyframes pageIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Textura sutil de metal */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(212,175,90,.06), transparent 60%),
    radial-gradient(900px 500px at 0% 100%, rgba(212,175,90,.04), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

a { color: var(--gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-bright); }

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: .01em;
  color: var(--text);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.35rem; }

p { color: var(--text-dim); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

/* ---------- Vistas (SPA una sola pagina) ---------- */
.view { display: none; }
.view-active { display: block; }
.no-vt .view-active { animation: viewIn .3s ease; }
@keyframes viewIn { from { opacity: 0; } to { opacity: 1; } }

section { padding: 80px 0; position: relative; z-index: 1; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .02em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .25s ease;
  text-transform: uppercase;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-soft));
  color: #1a1407;
  box-shadow: 0 8px 20px rgba(212,175,90,.25);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(212,175,90,.35); color: #1a1407; }
.btn-outline {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold-bright); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(13, 15, 18, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: background .3s;
}
.site-header.scrolled { background: rgba(13,15,18,0.96); }
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-mark {
  width: 42px; height: 42px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--gold);
  font-size: 1.2rem;
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--font-head); font-size: 1.15rem; letter-spacing: .03em; }
.brand-text span { font-size: .68rem; color: var(--gold); letter-spacing: .25em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  color: var(--text-dim);
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .03em;
  text-transform: uppercase;
  position: relative;
  padding: 6px 0;
}
.nav a:hover, .nav a.active { color: var(--gold-bright); }
.nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--gold);
}

.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--text);
  width: 42px; height: 42px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.2rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url("../assets/img/bronce-placas.jpg") center/cover no-repeat;
  opacity: .25;
  filter: grayscale(20%);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(13,15,18,.85) 0%, rgba(13,15,18,.6) 50%, rgba(13,15,18,1) 100%),
    linear-gradient(90deg, rgba(13,15,18,.9), rgba(13,15,18,.3));
}
.hero-content { position: relative; z-index: 2; max-width: 720px; }
.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  font-size: .8rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.hero .eyebrow::before {
  content: "";
  width: 40px; height: 1px;
  background: var(--gold);
}
.hero h1 { margin-bottom: 24px; }
.hero h1 .accent { color: var(--gold); font-style: italic; }
.hero .lead {
  font-size: 1.15rem;
  color: var(--text-dim);
  max-width: 560px;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 60px;
  flex-wrap: wrap;
}
.hero-stat .num {
  font-family: var(--font-head);
  font-size: 2.2rem;
  color: var(--gold-bright);
  display: block;
  line-height: 1;
}
.hero-stat .lbl { font-size: .8rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: .15em; margin-top: 6px; }

/* ---------- Sección divisora ---------- */
.divider {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 auto 18px;
  justify-content: center;
}
.divider .line { height: 1px; width: 60px; background: var(--gold); opacity: .5; }
.divider .dot { width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); }

.section-eyebrow {
  text-align: center;
  color: var(--gold);
  font-size: .78rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-title { text-align: center; margin-bottom: 18px; }
.section-sub {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
  color: var(--text-dim);
}

/* ---------- Grid de categorias ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 26px;
}
.cat-card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s, border-color .3s, box-shadow .3s;
  display: flex;
  flex-direction: column;
}
.cat-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: var(--shadow);
}
.cat-card .thumb {
  aspect-ratio: 1 / 1;
  background: var(--stone);
  overflow: hidden;
  position: relative;
}
.cat-card .thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
  filter: grayscale(15%) brightness(.95);
}
.cat-card:hover .thumb img { transform: scale(1.06); filter: none; }
.cat-card .thumb::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(13,15,18,.4));
}
.cat-card .body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.cat-card h3 { margin-bottom: 8px; color: var(--text); }
.cat-card p { font-size: .9rem; color: var(--text-dim); margin-bottom: 16px; flex: 1; }
.cat-card .more {
  font-size: .82rem;
  color: var(--gold);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cat-card .more::after { content: "→"; transition: transform .25s; }
.cat-card:hover .more::after { transform: translateX(4px); }

/* ---------- Materiales ---------- */
.materials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.mat-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 26px;
  background: linear-gradient(180deg, var(--bg-1), var(--bg-0));
  text-align: center;
  transition: border-color .3s;
}
.mat-card:hover { border-color: var(--gold); }
.mat-card .icon {
  width: 56px; height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--gold);
  border: 1px solid var(--gold);
  background: rgba(212,175,90,.06);
}
.mat-card .icon svg { width: 26px; height: 26px; }
.mat-card h3 { margin-bottom: 8px; }
.mat-card p { font-size: .88rem; }

/* ---------- Proceso ---------- */
.process { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; counter-reset: step; }
.step {
  position: relative;
  padding: 30px 26px 26px;
  border-left: 1px solid var(--line);
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-head);
  font-size: 2.4rem;
  color: var(--gold);
  opacity: .4;
  display: block;
  margin-bottom: 10px;
}
.step h3 { margin-bottom: 8px; }
.step p { font-size: .9rem; }

/* ---------- Banner de plazos ---------- */
.lead-banner {
  background: linear-gradient(135deg, var(--stone), var(--bg-1));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 48px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}
.lead-banner h2 { margin-bottom: 14px; }
.lead-banner ul { list-style: none; }
.lead-banner li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 20px;
  font-size: .95rem;
}
.lead-banner li:last-child { border-bottom: none; }
.lead-banner li strong { color: var(--gold); }

/* ---------- Premiacion ---------- */
.trophy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
}
.trophy-item {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 18px;
  text-align: center;
  transition: all .3s;
}
.trophy-item:hover { border-color: var(--gold); transform: translateY(-4px); }
.trophy-item .ico { margin-bottom: 14px; color: var(--gold); display: flex; justify-content: center; }
.trophy-item .ico svg { width: 48px; height: 48px; }
.trophy-item h4 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; color: var(--text); }

/* ---------- Contacto ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.info-row {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.info-row .ic {
  width: 44px; height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--gold);
  display: grid; place-items: center;
  color: var(--gold);
  font-size: 1.1rem;
}
.info-row .ic svg { width: 22px; height: 22px; }
.info-row h4 { font-family: var(--font-body); font-size: .82rem; text-transform: uppercase; letter-spacing: .15em; color: var(--gold); margin-bottom: 4px; }
.info-row p { color: var(--text); font-size: 1rem; }
.info-row a { color: var(--text); }
.info-row a:hover { color: var(--gold-bright); }

.social-row { display: flex; gap: 12px; margin-top: 8px; }
.social-row a {
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--text-dim);
  transition: all .25s;
}
.social-row a:hover { border-color: var(--gold); color: var(--gold-bright); transform: translateY(-3px); }

/* Formulario */
.form {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 36px;
}
.form h3 { margin-bottom: 22px; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--gold);
  margin-bottom: 8px;
}
.field input, .field textarea, .field select {
  width: 100%;
  background: var(--bg-0);
  border: 1px solid var(--stone);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: .95rem;
  transition: border-color .2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--gold);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: .8rem; color: var(--text-faint); margin-top: 14px; }
.form-success {
  display: none;
  background: rgba(46, 204, 113, .12);
  border: 1px solid rgba(46,204,113,.4);
  color: #6ee7a8;
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 18px;
  font-size: .9rem;
}
.form-success.show { display: block; }

.map-embed {
  margin-top: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 7;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; filter: grayscale(40%) invert(92%) contrast(85%); }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 14px;
  overflow: hidden;
  background: var(--bg-1);
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-head);
  font-size: 1.1rem;
  padding: 20px 24px;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-q .pm { color: var(--gold); font-size: 1.4rem; transition: transform .25s; }
.faq-item.open .pm { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  padding: 0 24px;
}
.faq-item.open .faq-a { max-height: 300px; padding-bottom: 22px; }
.faq-a p { color: var(--text-dim); font-size: .95rem; }

/* ---------- CTA barra ---------- */
.cta-bar {
  background: linear-gradient(135deg, rgba(212,175,90,.12), rgba(212,175,90,.02));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.cta-bar h2 { margin-bottom: 18px; }
.cta-bar p { max-width: 560px; margin: 0 auto 28px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-0);
  border-top: 1px solid var(--line);
  padding: 60px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h4 {
  font-family: var(--font-body);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--gold);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--text-dim); font-size: .92rem; }
.footer-col a:hover { color: var(--gold-bright); }
.footer-col p { font-size: .9rem; line-height: 1.7; }
.footer-brand .brand { margin-bottom: 16px; }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: .82rem;
  color: var(--text-faint);
}
.footer-bottom a { color: var(--text-faint); }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 90;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25d366;
  display: grid; place-items: center;
  color: #fff;
  box-shadow: 0 10px 24px rgba(37,211,102,.4);
  transition: transform .25s;
}
.wa-float:hover { transform: scale(1.08); color: #fff; }
.wa-float svg { width: 30px; height: 30px; fill: currentColor; }

/* ---------- Hero pagina interior ---------- */
.page-hero {
  padding: 160px 0 60px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(800px 400px at 80% 20%, rgba(212,175,90,.08), transparent 70%),
    var(--bg-0);
}
.page-hero .eyebrow {
  color: var(--gold);
  letter-spacing: .3em;
  text-transform: uppercase;
  font-size: .78rem;
  margin-bottom: 14px;
}
.page-hero h1 { margin-bottom: 16px; }
.page-hero p { max-width: 620px; color: var(--text-dim); font-size: 1.05rem; }

.breadcrumb { font-size: .82rem; color: var(--text-faint); margin-bottom: 18px; }
.breadcrumb a { color: var(--text-faint); }
.breadcrumb a:hover { color: var(--gold); }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .nav-cta .btn { display: none; }
  .nav-toggle { display: grid; place-items: center; }
  .nav {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: rgba(13,15,18,.98);
    border-bottom: 1px solid var(--line);
    padding: 0 24px;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: max-height .32s ease, opacity .25s ease, transform .25s ease, padding .32s ease, gap .32s ease;
  }
  .nav.open {
    max-height: 460px;
    opacity: 1;
    transform: none;
    padding: 16px 24px 22px;
    gap: 6px;
  }
  .nav a {
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
  }
  .nav a:last-child { border-bottom: none; }
  .lead-banner { grid-template-columns: 1fr; padding: 32px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { min-height: auto; padding: 104px 0 50px; }
  .hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; }
  section { padding: 56px 0; }
  .page-hero { padding: 120px 0 40px; }
  .cat-grid { gap: 18px; }
  .lead-banner { padding: 28px; }
  .form { padding: 24px; }
  .map-embed { aspect-ratio: 4 / 3; }
  .wa-float { width: 52px; height: 52px; right: 16px; bottom: 16px; }
  .wa-float svg { width: 26px; height: 26px; }
  .section-sub { margin-bottom: 36px; }
  .hero .lead { font-size: 1.02rem; }
  .page-hero p { font-size: .98rem; }
}

@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1; justify-content: center; }
  .brand-text span { display: none; }
  .hero { padding: 88px 0 36px; }
  .hero h1 { font-size: 1.95rem; }
  .hero .lead { font-size: .96rem; }
  .hero-stats { gap: 16px 20px; }
  .hero-stat .num { font-size: 1.55rem; }
  .mat-card { padding: 24px 18px; }
  .lead-banner { padding: 22px; }
  .lead-banner li { font-size: .9rem; }
  .form { padding: 20px; }
  .page-hero { padding: 110px 0 30px; }
  .header-inner { padding: 12px 18px; }
  .brand-mark { width: 38px; height: 38px; font-size: 1.05rem; }
  .container { padding: 0 18px; }
  .section-title { margin-bottom: 12px; }
  .cat-grid { grid-template-columns: 1fr; }
  .trophy-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Animaciones de entrada ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Transicion entre paginas (cross-document view transitions) ----------
   En navegadores compatibles (Chromium 126+), navegar entre paginas hace un
   cross-fade suave en vez de un corte seco. En el resto, no hace nada (la
   animacion pageIn del body ya suaviza la entrada). */
@view-transition { navigation: auto; }

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: .28s;
  animation-timing-function: ease;
}

@media (prefers-reduced-motion: reduce) {
  body { animation: none; }
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none; }
  .reveal { transition: none; }
}
