/* ════════════════════════════════════════════════════════════
   Librería San José — estilos compartidos por todas las páginas
   ════════════════════════════════════════════════════════════ */
:root {
  /* Warm, paper-like palette inspired by the hand-drawn logo */
  --ink:        #1A1410;        /* deep near-black */
  --ink-soft:   #3A322B;
  --ink-mute:   #6B5E52;
  --ink-faint:  #A89B8C;
  --paper:      #F5EFE3;        /* main background — warm cream */
  --paper-2:    #EDE4D2;        /* panels / darker cream */
  --paper-3:    #FBF7EE;        /* card surface */
  --line:       #D9CFBC;        /* hairline */
  --line-soft:  #E6DDCA;

  --moss:       #3D5B47;        /* main accent — librería vibe */
  --moss-dark:  #2C4434;
  --moss-soft:  #DCE4D9;

  --clay:       #B9593A;        /* secondary accent — terracotta */
  --clay-soft:  #F0DDD3;

  --yellow:     #E8B84A;
  --red:        #B9593A;
  --green:      #3D5B47;

  --radius:     14px;
  --radius-lg:  22px;
  --shadow-sm:  0 1px 0 rgba(26,20,16,.04), 0 2px 8px rgba(26,20,16,.05);
  --shadow-md:  0 2px 0 rgba(26,20,16,.04), 0 10px 30px rgba(26,20,16,.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { overflow-x: hidden; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Subtle paper grain */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .35;
  mix-blend-mode: multiply;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(139,110,80,.04) 0, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(139,110,80,.04) 0, transparent 40%);
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; position: relative; z-index: 2; }

.serif { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; letter-spacing: -.01em; }
.mono  { font-family: 'JetBrains Mono', ui-monospace, monospace; }

/* Editorial small label */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-mute);
}
.eyebrow::before {
  content: ''; width: 22px; height: 1px; background: var(--ink-mute);
}
.eyebrow.no-dash::before { display: none; }

/* ──────────── BUTTONS ──────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  font: 600 14.5px/1 'Inter', sans-serif;
  letter-spacing: -.005em;
  cursor: pointer; text-decoration: none; border: 1.5px solid transparent;
  transition: transform .15s ease, background .15s, color .15s, border-color .15s;
}
.btn-primary   { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-primary:hover { background: var(--moss); border-color: var(--moss); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--paper); }
.btn-moss      { background: var(--moss); color: var(--paper); border-color: var(--moss); }
.btn-moss:hover{ background: var(--moss-dark); border-color: var(--moss-dark); transform: translateY(-1px); }
.btn .arr { transition: transform .2s; }
.btn:hover .arr { transform: translateX(3px); }

/* ──────────── NAV ──────────── */
nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245,239,227,.85);
  backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  max-width: 1180px; margin: 0 auto;
  height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px;
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.nav-logo img { width: 42px; height: 42px; object-fit: contain; }
.nav-brand {
  font-family: 'DM Serif Display', serif;
  font-size: 20px; line-height: 1; letter-spacing: -.015em;
}
.nav-brand small {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px; font-weight: 500;
  color: var(--ink-mute); letter-spacing: .22em; text-transform: uppercase;
  margin-top: 3px;
}
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  color: var(--ink-soft); text-decoration: none;
  font-size: 14px; font-weight: 500;
  padding: 10px 14px; border-radius: 8px;
  transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--ink); background: var(--paper-2); }
.nav-links .nav-cta {
  background: var(--ink); color: var(--paper);
  padding: 10px 18px; border-radius: 999px;
  margin-left: 8px;
}
.nav-links .nav-cta:hover { background: var(--moss); color: var(--paper); }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.hamburger span { width: 22px; height: 1.5px; background: var(--ink); border-radius: 2px; }
.mobile-menu {
  display: none; position: fixed; inset: 72px 0 0;
  background: var(--paper); z-index: 49;
  padding: 18px 28px; flex-direction: column; gap: 2px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--ink); text-decoration: none;
  font-size: 20px; font-family: 'DM Serif Display', serif;
  padding: 18px 4px; border-bottom: 1px solid var(--line-soft);
}

/* ──────────── HERO ──────────── */
#hero {
  padding: 72px 28px 100px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: 60px; align-items: center;
}
.hero-eye { margin-bottom: 28px; }
.hero-title {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: clamp(48px, 8vw, 96px);
  line-height: .92;
  letter-spacing: -.025em;
  color: var(--ink);
  margin-bottom: 26px;
}
.hero-title em {
  font-style: italic;
  color: var(--moss);
}
.hero-lead {
  font-size: 18px; line-height: 1.55;
  color: var(--ink-soft);
  max-width: 48ch;
  margin-bottom: 36px;
}
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid; place-items: center;
}
.hero-mark {
  position: relative;
  width: 86%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: var(--paper-3);
  display: grid; place-items: center;
  box-shadow:
    inset 0 0 0 1px var(--line),
    0 30px 60px -20px rgba(26,20,16,.18);
  animation: floaty 8s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(0); }
  50%      { transform: translateY(-10px) rotate(-.6deg); }
}
.hero-mark img {
  width: 82%; height: 82%;
  object-fit: contain;
}
/* Decorative revolving ring labels */
.ring-labels {
  position: absolute;
  inset: -14%;
  animation: spin 60s linear infinite;
  pointer-events: none;
}
@keyframes spin { to { transform: rotate(360deg); } }
.ring-labels svg { width: 100%; height: 100%; }
.ring-labels text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .3em;
  fill: var(--ink-mute);
  text-transform: uppercase;
}
/* Small decorative dots */
.dot {
  position: absolute;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--clay);
}
.dot.d1 { top: 6%; left: 12%; background: var(--moss); }
.dot.d2 { bottom: 10%; right: 8%; }
.dot.d3 { top: 40%; right: 2%; width: 6px; height: 6px; background: var(--yellow); }

/* Running marquee of services */
.marquee {
  margin-top: 60px;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
  padding: 18px 0;
  white-space: nowrap;
  background: var(--paper-2);
}
.marquee-track {
  display: inline-flex; gap: 40px;
  animation: marq 40s linear infinite;
  font-family: 'DM Serif Display', serif;
  font-size: 26px;
  color: var(--ink);
}
.marquee-track span { display: inline-flex; align-items: center; gap: 40px; }
.marquee-track em { font-style: italic; color: var(--clay); }
.marquee-track .sep {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ink);
  display: inline-block;
}
@keyframes marq {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ──────────── SERVICIOS ──────────── */
#servicios {
  padding: 110px 28px 80px;
  background: var(--paper);
  position: relative;
}
.sec-head {
  display: grid; grid-template-columns: auto 1fr;
  gap: 40px; align-items: end;
  max-width: 1180px; margin: 0 auto 56px;
}
.sec-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(36px, 5.2vw, 60px);
  line-height: .98; letter-spacing: -.02em;
}
.sec-title em { font-style: italic; color: var(--moss); }
.sec-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; color: var(--ink-mute);
  letter-spacing: .1em;
  text-align: right;
  line-height: 1.7;
}

.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper-3);
}
.service-card {
  padding: 36px 30px;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  position: relative;
  transition: background .2s;
}
.service-card:nth-child(3n) { border-right: none; }
.service-card:nth-last-child(-n+3) { border-bottom: none; }
.service-card:hover { background: var(--paper-2); }
.srv-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--ink-faint);
  letter-spacing: .15em;
  margin-bottom: 32px;
  display: flex; justify-content: space-between; align-items: center;
}
.srv-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--moss);
}
.srv-title {
  font-family: 'DM Serif Display', serif;
  font-size: 26px; line-height: 1.1; letter-spacing: -.01em;
  margin-bottom: 10px;
}
.srv-desc {
  font-size: 14.5px; line-height: 1.6; color: var(--ink-mute);
}

/* ──────────── CATÁLOGO / DESTACADOS ──────────── */
#catalogo, #destacados {
  padding: 110px 28px;
  background: var(--paper-2);
  position: relative;
  overflow: hidden;
}
.catalog-intro {
  max-width: 1180px; margin: 0 auto 60px;
}
.catalog-intro p {
  font-size: 17px; line-height: 1.6; color: var(--ink-mute);
  max-width: 58ch; margin-top: 20px;
}
.catalog-grid {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.prod-card {
  background: var(--paper-3);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  transition: transform .2s, box-shadow .2s;
}
.prod-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.prod-img {
  aspect-ratio: 1 / 1;
  background:
    repeating-linear-gradient(45deg,
      var(--paper-2) 0 12px,
      transparent 12px 24px),
    var(--paper-3);
  display: grid; place-items: center;
  border-bottom: 1px solid var(--line-soft);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; color: var(--ink-faint);
  letter-spacing: .1em; text-align: center; padding: 14px;
}
.prod-body { padding: 16px 18px 20px; }
.prod-cat {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; color: var(--moss);
  letter-spacing: .15em; text-transform: uppercase;
  margin-bottom: 7px;
}
.prod-name {
  font-family: 'DM Serif Display', serif;
  font-size: 19px; line-height: 1.15;
  margin-bottom: 4px;
}
.prod-brand {
  font-size: 13px; color: var(--ink-mute);
}
.catalog-note {
  max-width: 1180px; margin: 44px auto 0;
  padding: 22px 26px;
  background: var(--paper-3);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.catalog-note-txt {
  font-size: 14.5px; color: var(--ink-soft);
}
.catalog-note-txt strong { color: var(--ink); }

/* ──────────── FORM SECTIONS ──────────── */
.form-section {
  padding: 110px 28px;
  position: relative;
}
#fotos  { background: var(--paper); }
#planos { background: var(--moss); color: var(--paper); }
#planos .sec-title, #planos .eyebrow, #planos .sec-meta { color: var(--paper); }
#planos .eyebrow::before { background: var(--paper); }
#planos .sec-title em { color: var(--yellow); }

.form-card {
  background: var(--paper-3);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  max-width: 760px;
  color: var(--ink);
}

/* FILE DROP */
.file-drop {
  border: 1.5px dashed var(--ink-faint);
  border-radius: var(--radius);
  padding: 42px 20px; text-align: center;
  background: var(--paper);
  cursor: pointer; transition: all .2s;
  margin-bottom: 14px; position: relative;
}
.file-drop:hover, .file-drop.over {
  background: var(--paper-2);
  border-color: var(--moss);
  border-style: solid;
}
.file-drop input[type="file"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%;
}
.drop-icon  {
  width: 52px; height: 52px; margin: 0 auto 14px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--moss);
}
.drop-icon svg { width: 24px; height: 24px; }
.drop-title { font-size: 15px; font-weight: 600; margin-bottom: 4px; color: var(--ink); }
.drop-sub   { font-size: 13px; color: var(--ink-mute); }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; margin-bottom: 16px; }
.photo-thumb { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--paper-2); }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-del {
  position: absolute; top: 4px; right: 4px;
  background: rgba(26,20,16,.75); color: var(--paper);
  border: none; border-radius: 50%;
  width: 22px; height: 22px; font-size: 14px;
  cursor: pointer; display: flex; align-items: center; justify-content: center; line-height: 1;
}
.file-chip {
  display: flex; align-items: center; gap: 10px;
  background: var(--paper-2); border-radius: 10px;
  padding: 12px 16px; margin-bottom: 8px;
  font-size: 13.5px; color: var(--ink-soft);
}
.file-chip .chip-del {
  background: none; border: none; cursor: pointer;
  color: var(--clay); font-size: 20px; margin-left: auto; padding: 0; line-height: 1;
}

/* CAMPOS */
.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 500;
  color: var(--ink-mute);
  letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: 10px;
}
.field label .req { color: var(--clay); }
.field label small { text-transform: none; letter-spacing: 0; color: var(--ink-faint); font-weight: 400; }
input.fi, select.fi, textarea.fi {
  width: 100%; padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: 400 15px 'Inter', sans-serif;
  color: var(--ink);
  background: var(--paper);
  outline: none; transition: border-color .15s, background .15s;
}
input.fi:focus, select.fi:focus, textarea.fi:focus {
  border-color: var(--moss); background: #fff;
}
textarea.fi { resize: vertical; min-height: 90px; font-family: 'Inter', sans-serif; }
input[type=number].fi { max-width: 130px; }

.opt-row { display: flex; flex-wrap: wrap; gap: 8px; }
.opt {
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  cursor: pointer;
  font: 500 13.5px 'Inter', sans-serif;
  color: var(--ink-soft);
  transition: all .15s;
}
.opt:hover:not(:disabled) { border-color: var(--ink); color: var(--ink); }
.opt.sel {
  background: var(--ink); color: var(--paper); border-color: var(--ink);
}
.opt:disabled { opacity: .35; cursor: not-allowed; }
.soon-tag {
  margin-left: 6px; padding: 2px 7px;
  border-radius: 999px; background: var(--paper-2);
  font: 600 10px 'JetBrains Mono', monospace;
  letter-spacing: .08em; text-transform: uppercase;
}

/* PRECIO */
.price-box {
  background: var(--ink); color: var(--paper);
  border-radius: var(--radius);
  padding: 22px 26px; margin-bottom: 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.price-box.hidden { display: none; }
.price-lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(245,239,227,.55);
}
.price-amount {
  font-family: 'DM Serif Display', serif;
  font-size: 40px; line-height: 1;
  margin-top: 4px;
}
.price-detail { font-size: 12px; color: rgba(245,239,227,.6); margin-top: 6px; }

/* GRUPOS */
.groups-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.groups-list:empty { display: none; }
.group-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  background: var(--paper);
  display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center;
}
.group-thumbs { display: flex; gap: 4px; }
.group-thumbs .gt { width: 38px; height: 38px; border-radius: 6px; object-fit: cover; background: var(--paper-2); }
.group-thumbs .gt-more {
  display: grid; place-items: center;
  font: 600 11px 'JetBrains Mono', monospace;
  color: var(--ink-mute); background: var(--paper-2);
}
.group-body { min-width: 0; }
.group-size { font-family: 'DM Serif Display', serif; font-size: 18px; line-height: 1.1; }
.group-meta { font-size: 12.5px; color: var(--ink-mute); margin-top: 3px; }
.group-sub { font-family: 'DM Serif Display', serif; font-size: 20px; color: var(--moss); margin-top: 3px; }
.group-del {
  background: none; border: 1px solid var(--line); color: var(--ink-mute);
  width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
  font-size: 18px; display: grid; place-items: center; transition: all .15s;
}
.group-del:hover { background: var(--clay); color: var(--paper); border-color: var(--clay); }
.group-step-label {
  display: flex; align-items: center; gap: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: 18px;
}
.group-step-num {
  display: inline-grid; place-items: center;
  min-width: 28px; height: 28px; padding: 0 8px;
  border-radius: 14px; background: var(--ink); color: var(--paper);
  font-weight: 600; letter-spacing: .08em;
}
.add-group-btn { width: 100%; justify-content: center; margin-bottom: 8px; }
.grand-total {
  background: var(--ink); color: var(--paper);
  border-radius: var(--radius); padding: 22px 26px;
  margin: 22px 0 8px;
}
.grand-total.hidden { display: none; }
.grand-amount { font-family: 'DM Serif Display', serif; font-size: 46px; line-height: 1; margin-top: 4px; }
.tiny-note { font-size: 12.5px; color: var(--ink-mute); font-style: italic; margin-top: 8px; }

/* BANCO */
.bank-box {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 18px; margin-top: 12px;
}
.bank-row {
  display: flex; justify-content: space-between;
  padding: 7px 0; font-size: 13.5px;
  border-bottom: 1px solid var(--line-soft);
}
.bank-row:last-of-type { border-bottom: none; }
.bk {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--ink-mute);
  letter-spacing: .12em; text-transform: uppercase;
}
.bv { color: var(--ink); font-weight: 500; }
.copy-btn {
  width: 100%; margin-top: 12px;
  padding: 12px; background: var(--ink); color: var(--paper);
  border: none; border-radius: 10px;
  font: 600 13px 'Inter', sans-serif;
  cursor: pointer;
}
.copy-btn:hover { background: var(--moss); }

/* TOGGLE */
.toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px; cursor: pointer;
}
.toggle-row:hover { border-color: var(--ink); }
.tgl-lbl { font-size: 14px; font-weight: 600; color: var(--ink); }
.tgl-sub { font-size: 12.5px; color: var(--ink-mute); margin-top: 3px; }
.switch {
  width: 46px; height: 26px;
  background: var(--line); border-radius: 13px;
  position: relative; transition: background .2s; flex-shrink: 0;
}
.switch.on { background: var(--moss); }
.knob {
  position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px;
  background: #fff; border-radius: 50%;
  transition: transform .2s;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.switch.on .knob { transform: translateX(20px); }

.note {
  background: #fdf6e3; border: 1px solid #e9d8a6;
  border-radius: 10px; padding: 12px 16px;
  font-size: 13px; color: #7a5a1c; margin-top: 10px;
}
.info {
  background: var(--moss-soft);
  border: 1px solid rgba(61,91,71,.2);
  border-radius: 10px;
  padding: 13px 16px;
  font-size: 13.5px; color: var(--moss-dark);
  margin-bottom: 20px;
}

.divider { border: none; border-top: 1px solid var(--line-soft); margin: 28px 0; }

.prog { display: none; margin-bottom: 20px; }
.prog.show { display: block; }
.prog-track {
  background: var(--paper-2); border-radius: 999px;
  height: 8px; overflow: hidden; margin-bottom: 8px;
}
.prog-bar {
  background: var(--moss); height: 100%; border-radius: 999px;
  width: 0; transition: width .3s;
}
.prog-text { font-size: 13px; color: var(--ink-mute); text-align: center; }

.success { display: none; text-align: center; padding: 50px 24px; }
.success.show { display: block; }
.success-icon {
  width: 66px; height: 66px; margin: 0 auto 18px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--moss-soft); color: var(--moss-dark);
}
.success-icon svg { width: 32px; height: 32px; }
.success-title {
  font-family: 'DM Serif Display', serif;
  font-size: 32px; margin-bottom: 10px;
}
.success-sub { font-size: 15px; color: var(--ink-mute); margin-bottom: 30px; line-height: 1.6; }

/* ──────────── CONTACTO ──────────── */
#contacto {
  background: var(--ink);
  color: var(--paper);
  padding: 110px 28px;
}
.contact-grid {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 70px; align-items: start;
}
#contacto .eyebrow { color: rgba(245,239,227,.55); }
#contacto .eyebrow::before { background: rgba(245,239,227,.4); }
.ct-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(40px, 5vw, 60px);
  line-height: 1;
  margin: 20px 0 14px;
  letter-spacing: -.02em;
}
.ct-title em { font-style: italic; color: var(--yellow); }
.ct-sub { font-size: 16px; color: rgba(245,239,227,.65); margin-bottom: 40px; line-height: 1.55; }
.ct-item {
  display: grid; grid-template-columns: 90px 1fr;
  gap: 20px; align-items: start;
  padding: 18px 0;
  border-top: 1px solid rgba(245,239,227,.14);
}
.ct-item:last-of-type { border-bottom: 1px solid rgba(245,239,227,.14); }
.ct-lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: rgba(245,239,227,.55);
  letter-spacing: .15em; text-transform: uppercase;
  padding-top: 4px;
}
.ct-val { font-size: 16px; color: var(--paper); font-weight: 400; line-height: 1.4; }
.ct-val a { color: var(--paper); text-decoration: none; border-bottom: 1px solid rgba(245,239,227,.25); }
.ct-val a:hover { border-bottom-color: var(--paper); }

.wa-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--paper); color: var(--ink);
  text-decoration: none;
  padding: 15px 26px; border-radius: 999px;
  font: 600 14.5px 'Inter', sans-serif;
  transition: transform .15s;
  margin-top: 28px;
}
.wa-btn:hover { transform: translateY(-1px); background: var(--yellow); }

.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden; height: 460px;
  border: 1px solid rgba(245,239,227,.15);
}
.map-wrap iframe { width: 100%; height: 100%; border: none; display: block; filter: saturate(.85) brightness(.95); }

/* FOOTER */
footer {
  background: #0E0906;
  padding: 50px 28px 30px;
  color: rgba(245,239,227,.5);
}
.ft-inner {
  max-width: 1180px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 20px;
}
.ft-brand {
  display: flex; align-items: center; gap: 12px;
  font-family: 'DM Serif Display', serif;
  font-size: 20px; color: var(--paper);
}
.ft-brand img { width: 34px; height: 34px; filter: invert(1) brightness(1); opacity: .9; }
.ft-links { display: flex; flex-wrap: wrap; gap: 14px 22px; font-size: 13px; font-family: 'JetBrains Mono', monospace; letter-spacing: .1em; }
.ft-links a { color: rgba(245,239,227,.55); text-decoration: none; }
.ft-links a:hover { color: var(--paper); }
.ft-copy { font-family: 'JetBrains Mono', monospace; font-size: 11.5px; letter-spacing: .08em; color: rgba(245,239,227,.35); }

/* ──────────── TARJETAS ──────────── */
#tarjetas { background: var(--paper-2); }

.tarjeta-modes { display: flex; gap: 10px; margin-bottom: 24px; }
.tmode-btn {
  flex: 1; padding: 16px 10px; text-align: center;
  border: 1.5px solid var(--line); border-radius: var(--radius);
  background: var(--paper); cursor: pointer; transition: all .15s;
}
.tmode-btn:hover { border-color: var(--ink-soft); }
.tmode-btn.sel { border-color: var(--moss); background: var(--moss-soft); }
.tmode-btn .tm-icon { font-size: 22px; margin-bottom: 6px; }
.tmode-btn .tm-label { font-weight: 600; font-size: 14px; color: var(--ink); }
.tmode-btn .tm-sub { font-size: 11.5px; color: var(--ink-mute); margin-top: 3px; }

.tpl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.tpl-item {
  border: 2px solid var(--line); border-radius: 12px;
  padding: 10px; cursor: pointer; transition: all .15s; background: var(--paper);
}
.tpl-item:hover { border-color: var(--ink-soft); }
.tpl-item.sel { border-color: var(--moss); box-shadow: 0 0 0 3px var(--moss-soft); }
.tpl-name { font-size: 12px; font-weight: 700; color: var(--ink); margin-top: 8px; text-align: center; }
.tpl-desc { font-size: 10.5px; color: var(--ink-mute); text-align: center; margin-top: 2px; }

.card-prev { width: 100%; aspect-ratio: 1.75 / 1; border-radius: 6px; overflow: hidden; }

/* Elegante */
.cp-elegante { background: #FFF; display: flex; flex-direction: row; }
.cp-elegante .cpe-side {
  width: 30%; border-right: 2px solid #C9A84C;
  display: flex; flex-direction: column; justify-content: space-between; padding: 6px 5px;
}
.cp-elegante .cpe-logo { width: 14px; height: 10px; background: #C9A84C; border-radius: 2px; }
.cp-elegante .cpe-label { font-size: 4.5px; color: #C9A84C; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.cp-elegante .cpe-main { flex: 1; padding: 7px 8px; display: flex; flex-direction: column; justify-content: center; }
.cp-elegante .cpe-name { font-size: 8px; font-weight: 800; color: #1A1A1A; }
.cp-elegante .cpe-cargo { font-size: 5.5px; color: #888; margin-top: 1px; }
.cp-elegante .cpe-dots { display: flex; gap: 3px; margin-top: 6px; }
.cp-elegante .cpe-dot { width: 5px; height: 5px; border-radius: 50%; background: #C9A84C; }

/* Minimalista */
.cp-minimalista { background: #FFF; display: flex; flex-direction: column; }
.cp-minimalista .cpm-header { background: #1A1A1A; padding: 5px 8px; display: flex; align-items: center; justify-content: space-between; }
.cp-minimalista .cpm-name { font-size: 7px; font-weight: 800; color: #FFF; }
.cp-minimalista .cpm-line { width: 12px; height: 2px; background: #E53935; border-radius: 1px; }
.cp-minimalista .cpm-body { flex: 1; padding: 5px 8px; display: flex; flex-direction: column; justify-content: space-between; }
.cp-minimalista .cpm-cargo { font-size: 5.5px; color: #E53935; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.cp-minimalista .cpm-info { display: flex; flex-direction: column; gap: 2px; }
.cp-minimalista .cpm-row { display: flex; align-items: center; gap: 4px; }
.cp-minimalista .cpm-dot { width: 3px; height: 3px; border-radius: 50%; background: #E53935; }
.cp-minimalista .cpm-text { font-size: 5px; color: #555; }

/* Clásica */
.cp-clasica { background: #5C5552; display: flex; flex-direction: column; justify-content: space-between; padding: 8px; }
.cp-clasica .cpc-top { display: flex; justify-content: space-between; align-items: flex-start; }
.cp-clasica .cpc-logo { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid #D4B49A; }
.cp-clasica .cpc-tag { font-size: 4.5px; color: #D4B49A; letter-spacing: 1px; text-transform: uppercase; }
.cp-clasica .cpc-name { font-size: 9px; font-weight: 800; color: #F5EDE0; }
.cp-clasica .cpc-cargo { font-size: 5.5px; color: #D4B49A; margin-top: 1px; }
.cp-clasica .cpc-sep { height: 1px; background: rgba(212,180,154,.35); margin: 4px 0; }
.cp-clasica .cpc-info { font-size: 4.5px; color: #D4B49A; line-height: 1.8; }

/* ──────────── RESPONSIVE ──────────── */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 420px; margin: 0 auto; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .service-card:nth-child(3n)        { border-right: 1px solid var(--line-soft); }
  .service-card:nth-child(2n)        { border-right: none; }
  .service-card:nth-last-child(-n+3) { border-bottom: 1px solid var(--line-soft); }
  .service-card:nth-last-child(-n+2) { border-bottom: none; }
  .catalog-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 50px; }
  .sec-head { grid-template-columns: 1fr; gap: 12px; }
  .sec-meta { text-align: left; }
}
@media (max-width: 720px) {
  .nav-links  { display: none; }
  .hamburger  { display: flex; }
  #hero { padding: 48px 20px 70px; }
  .form-section, #servicios, #catalogo, #destacados, #encargos, #contacto { padding: 70px 20px; }
  .form-card { padding: 26px 22px; }
  .marquee-track { font-size: 20px; gap: 28px; }
}
@media (max-width: 520px) {
  .services-grid { grid-template-columns: 1fr; }
  .service-card { border-right: none !important; border-bottom: 1px solid var(--line-soft) !important; }
  .service-card:last-child { border-bottom: none !important; }
  .catalog-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .tpl-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .tpl-item { padding: 7px; }
  .tpl-name { font-size: 11px; margin-top: 5px; }
  .tpl-desc { font-size: 9.5px; }
  .ft-inner { flex-direction: column; align-items: center; text-align: center; gap: 16px; }
  .ft-links { justify-content: center; gap: 10px 18px; font-size: 12px; }
  .ft-copy { font-size: 11px; }
  .tarjeta-modes { flex-direction: column; gap: 8px; }
  .tmode-btn { width: 100%; justify-content: flex-start; }
}

/* ──────────── BANNERS (se cargan desde banners-admin.html) ──────────── */
.banners { position: relative; z-index: 2; max-width: 1180px; margin: 24px auto 0; padding: 0 28px; }
.banners[hidden] { display: none; }
.bn-stage {
  position: relative; display: grid;
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--paper-2); aspect-ratio: 3 / 1;
  box-shadow: var(--shadow-md);
}
.bn-slide {
  grid-area: 1 / 1; display: block;
  opacity: 0; visibility: hidden;
  transition: opacity .6s ease, visibility .6s;
}
.bn-stage { grid-template: 100% / 100%; }
.bn-slide.on { opacity: 1; visibility: visible; }
.bn-slide picture { display: block; height: 100%; }
.bn-slide img { width: 100%; height: 100%; object-fit: cover; }
.bn-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%;
  border: none; cursor: pointer;
  background: rgba(245,239,227,.85); color: var(--ink);
  font-size: 20px; line-height: 1;
  display: grid; place-items: center;
  box-shadow: var(--shadow-sm); transition: background .15s;
}
.bn-arrow:hover { background: var(--paper); }
.bn-prev { left: 14px; }
.bn-next { right: 14px; }
.bn-dots {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px;
}
.bn-dot {
  width: 9px; height: 9px; border-radius: 50%; border: none; padding: 0; cursor: pointer;
  background: rgba(245,239,227,.6); box-shadow: 0 0 0 1px rgba(26,20,16,.2);
  transition: background .2s, transform .2s;
}
.bn-dot.on { background: var(--paper); transform: scale(1.25); }
.banners.single .bn-arrow, .banners.single .bn-dots { display: none; }

@media (max-width: 720px) {
  .banners { padding: 0 16px; margin-top: 16px; }
  .bn-stage { border-radius: var(--radius); }
  /* Si todos los banners tienen versión celular, se usa formato vertical */
  .banners.has-mobile .bn-stage { aspect-ratio: 4 / 5; }
  .bn-arrow { width: 34px; height: 34px; font-size: 17px; }
  .bn-prev { left: 8px; }
  .bn-next { right: 8px; }
}

/* ════════════════════════════════════════════════════════════
   SITIO MULTIPÁGINA
   ════════════════════════════════════════════════════════════ */

/* Menú: página actual marcada */
.nav-links a.active { color: var(--ink); background: var(--paper-2); }
.mobile-menu a.active { color: var(--moss); }

/* En las páginas interiores la primera sección no necesita tanto aire arriba */
main > .form-section:first-child,
main > #catalogo:first-child { padding-top: 72px; }

/* Botón "ver más" bajo una sección */
.sec-more { max-width: 1180px; margin: 40px auto 0; text-align: center; }

/* Enlace dentro de las tarjetas de servicio */
.srv-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 14px;
  font-size: 13.5px; font-weight: 600; color: var(--moss); text-decoration: none;
}
.srv-link:hover { text-decoration: underline; }

/* ──────────── INICIO: ENCARGOS EN LÍNEA ──────────── */
#encargos { padding: 110px 28px; background: var(--paper); }
.quick-grid {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.quick-card {
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  padding: 28px 24px; min-height: 220px;
  background: var(--paper-3); color: var(--ink); text-decoration: none;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.quick-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--ink-faint); }
.quick-card.dark { background: var(--moss); color: var(--paper); border-color: var(--moss); }
.qc-ico {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--paper-2); color: var(--moss);
}
.quick-card.dark .qc-ico { background: rgba(245,239,227,.15); color: var(--paper); }
.qc-ico svg { width: 22px; height: 22px; }
.qc-title { font-family: 'DM Serif Display', serif; font-size: 25px; line-height: 1.1; margin-bottom: 6px; }
.qc-desc { font-size: 14px; line-height: 1.5; color: var(--ink-mute); }
.quick-card.dark .qc-desc { color: rgba(245,239,227,.75); }
.qc-go { font-size: 13.5px; font-weight: 600; }

/* ──────────── CATÁLOGO: BUSCADOR Y FILTROS ──────────── */
.cat-tools {
  max-width: 1180px; margin: 0 auto 32px;
  display: flex; flex-direction: column; gap: 16px;
}
.cat-search { max-width: 420px; }
.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-count {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute);
}

/* ──────────── PIE DE PÁGINA: DATOS ──────────── */
.ft-info {
  max-width: 1180px; margin: 0 auto 32px; padding-bottom: 32px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  border-bottom: 1px solid rgba(245,239,227,.1);
  font-size: 14px; line-height: 1.6; color: rgba(245,239,227,.7);
}
.ft-info strong {
  display: block; margin-bottom: 6px;
  font: 500 11px 'JetBrains Mono', monospace; letter-spacing: .15em; text-transform: uppercase;
  color: rgba(245,239,227,.45);
}
.ft-info a { color: var(--paper); text-decoration: none; border-bottom: 1px solid rgba(245,239,227,.25); }

@media (max-width: 960px) {
  .quick-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  #encargos { padding: 70px 20px; }
  main > .form-section:first-child,
  main > #catalogo:first-child { padding-top: 48px; }
  .ft-info { grid-template-columns: 1fr; text-align: center; }
}
@media (max-width: 520px) {
  .quick-grid { grid-template-columns: 1fr; }
  .quick-card { min-height: 0; }
}
