/* Sistema "El acta": libro notarial en tinta verde, papel crema y sello dorado */
:root {
  --ink: #0d2a21;
  --pine: #12372a;
  --paper: #fbf6e9;
  --parchment: #f3ecda;
  --card: #fffdf6;
  --gold: #c6a052;
  --gold-pale: #e6d3a3;
  --gold-deep: #97742f;
  --text: #22312b;
  --muted: #5f6e65;
  --cream: #fbf6e9;
  --cream-dim: rgba(251, 246, 233, 0.72);
  --danger: #9a3b2e;
  --serif: Georgia, "Palatino Linotype", "Book Antiqua", serif;
  --sans: system-ui, "Segoe UI", Verdana, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--paper);
  color: var(--text);
  line-height: 1.65;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.15; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

/* Header: barra de tinta */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--ink);
  border-bottom: 2px solid var(--gold);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--cream);
  margin-right: auto;
}
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 2px solid var(--gold);
  border-radius: 50%;
  font-family: var(--serif);
  font-weight: bold;
  color: var(--gold-pale);
}
.brand-text { display: grid; line-height: 1.2; font-size: 0.95rem; }
.brand-text small { color: var(--gold-pale); }

.main-nav { display: flex; gap: 1.1rem; }
.main-nav a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.95rem;
}
.main-nav a:hover { color: var(--gold-pale); }

.header-actions { display: flex; align-items: center; gap: 0.6rem; }
.lang-switch {
  display: flex;
  border: 1px solid var(--gold);
  border-radius: 999px;
  overflow: hidden;
}
.lang-switch button {
  border: 0;
  background: transparent;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
  font-weight: bold;
  color: var(--cream);
  font-family: var(--sans);
}
.lang-switch button.active { background: var(--gold); color: var(--ink); }

/* Botones estilo sello */
.btn {
  display: inline-block;
  padding: 0.7rem 1.25rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-family: var(--sans);
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
}
.btn-small { padding: 0.4rem 0.9rem; background: var(--gold); color: var(--ink); font-size: 0.9rem; }
.btn-primary { background: var(--gold); color: var(--ink); }
.btn-primary:hover { background: var(--gold-pale); }
.btn-outline { border-color: var(--gold-pale); color: var(--cream); background: transparent; }
.btn-outline:hover { background: rgba(198, 160, 82, 0.15); }
.btn-ghost { color: var(--gold-pale); }
.btn-outline-light { border-color: var(--cream); color: var(--cream); }

/* Hero: certificado en tinta */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--cream);
  padding: 3.5rem 0 3rem;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-radial-gradient(circle at 88% 12%, rgba(198, 160, 82, 0.07) 0 2px, transparent 2px 14px);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 3rem;
  align-items: center;
}
.photo-arch {
  border-radius: 190px 190px 12px 12px;
  overflow: hidden;
  border: 3px solid var(--gold);
  outline: 1px solid var(--gold);
  outline-offset: 7px;
  background: var(--pine);
}
.photo-arch img {
  display: block;
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: top center;
}
/* Sello grabado: el elemento memorable */
.seal {
  position: absolute;
  top: 1.2rem;
  right: max(4%, calc(50% - 550px + 4%));
  width: 148px;
  height: 148px;
  color: var(--gold);
  opacity: 0.92;
}
.seal svg { width: 100%; height: 100%; animation: seal-spin 48s linear infinite; }
.seal text { font-family: var(--serif); fill: currentColor; }
.seal .seal-ring-text { font-size: 12.5px; letter-spacing: 2.5px; }
.seal .seal-center { font-size: 30px; font-weight: bold; }
@keyframes seal-spin { to { transform: rotate(360deg); } }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--gold-pale);
  font-size: 0.95rem;
  margin: 0;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--gold);
}
.hero-copy h1 {
  font-size: clamp(3.2rem, 8vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  color: var(--cream);
  margin: 0.6rem 0 0.2rem;
}
.hero-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.7rem;
  color: var(--gold-pale);
  margin: 0 0 1.1rem;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  border: 1px solid var(--gold);
  border-radius: 8px;
  padding: 0.7rem 1.2rem;
  background: rgba(198, 160, 82, 0.08);
}
.hero-badge strong { display: block; font-size: 1rem; }
.hero-badge small { display: block; color: var(--gold-pale); letter-spacing: 1px; font-size: 0.8rem; }
.badge-icon { font-size: 2rem; }
.hero-desc { max-width: 34rem; color: var(--cream-dim); font-size: 1.08rem; }
.hero-spanish {
  font-family: var(--serif);
  font-size: 1.25rem;
  letter-spacing: 0.14em;
  color: var(--gold-pale);
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 1.1rem 0; }
.hero-note { font-family: var(--serif); font-style: italic; color: var(--gold-pale); }

/* Cinta dorada */
.contact-strip { background: var(--gold); }
.strip-inner {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 0.7rem 0;
}
.strip-inner a { color: var(--ink); text-decoration: none; font-weight: bold; font-size: 1.08rem; }
.strip-sep { width: 2px; background: var(--ink); opacity: 0.4; }

/* Secciones */
.section { padding: 4rem 0; }
.section-alt { background: var(--ink); color: var(--cream); }
.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--gold-deep);
  font-size: 0.95rem;
  margin: 0 0 0.3rem;
}
.section-eyebrow::before { content: ""; width: 30px; height: 2px; background: var(--gold); }
.section-alt .section-eyebrow { color: var(--gold-pale); }
.section h2 { color: var(--pine); font-size: 2.3rem; margin: 0 0 0.5rem; max-width: 22ch; }
.section-alt h2 { color: var(--cream); }
.section-sub { max-width: 44rem; color: var(--muted); }
.section-alt .section-sub { color: var(--cream-dim); }

/* Servicios: renglones de libro, no tarjetas */
.ledger { border-top: 2px solid var(--gold); margin-top: 1.8rem; }
.ledger-entry { border-bottom: 1px solid var(--gold-pale); }
.ledger-entry[open] { background: var(--card); }
.ledger-entry summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 2.6rem 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.15rem 0.5rem;
}
.ledger-entry summary::-webkit-details-marker { display: none; }
.ledger-entry .card-icon { font-size: 1.9rem; text-align: center; }
.ledger-entry h3 { margin: 0; font-size: 1.3rem; color: var(--pine); }
.ledger-entry summary p { margin: 0.15rem 0 0; font-size: 0.95rem; color: var(--muted); max-width: 52rem; }
.toggle {
  width: 36px;
  height: 36px;
  line-height: 32px;
  text-align: center;
  border: 1.5px solid var(--gold-deep);
  border-radius: 50%;
  color: var(--gold-deep);
  font-size: 1.35rem;
  font-weight: bold;
}
.toggle::after { content: "+"; }
.ledger-entry[open] .toggle::after { content: "−"; }
.ledger-entry ul {
  list-style: none;
  margin: 0;
  padding: 0 0.5rem 1.4rem 3.6rem;
  font-size: 0.95rem;
}
.ledger-entry ul li { margin: 0.35rem 0; padding-left: 1.4rem; position: relative; }
.ledger-entry ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold-deep);
  font-weight: bold;
}
.ledger-entry.card-limit { border-left: 4px solid var(--danger); }
.ledger-entry.card-limit ul li::before { content: "✕"; color: var(--danger); }
.source-note { margin-top: 1.2rem; font-size: 0.85rem; color: var(--muted); max-width: 60rem; }
.source-note a { color: var(--gold-deep); }
.section-alt .source-note { color: var(--cream-dim); }
.section-alt .source-note a { color: var(--gold-pale); }

/* Precios: hoja de tarifas con guías de puntos */
.fees { max-width: 780px; margin-top: 1.8rem; }
.fee {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1.3rem 0;
  border-bottom: 1px solid rgba(198, 160, 82, 0.45);
}
.fee:first-child { border-top: 1px solid rgba(198, 160, 82, 0.45); }
.fee-body h3 { margin: 0; font-size: 1.35rem; color: var(--cream); }
.fee-body p { margin: 0.25rem 0 0; color: var(--cream-dim); font-size: 0.95rem; max-width: 38rem; }
.fee-dots { flex: 1; border-bottom: 2px dotted var(--gold); min-width: 2rem; transform: translateY(-6px); }
.fee-price {
  font-family: var(--serif);
  font-size: 2.1rem;
  font-weight: bold;
  color: var(--gold-pale);
  white-space: nowrap;
  margin: 0;
}
.fee-price small { display: block; font-family: var(--sans); font-size: 0.8rem; font-weight: normal; color: var(--cream-dim); text-align: right; }

/* Proceso: línea de tiempo (es secuencia, los números aplican) */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.2rem;
}
.step { border-top: 2px solid var(--gold); padding-top: 1.1rem; position: relative; }
.step-num {
  position: absolute;
  top: -21px;
  left: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--pine);
  color: var(--cream);
  border: 2px solid var(--gold);
  font-family: var(--serif);
  font-weight: bold;
}
.step h3 { color: var(--pine); margin: 0.4rem 0 0.3rem; font-size: 1.2rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.checklist {
  margin-top: 2rem;
  background: var(--pine);
  color: var(--cream);
  border-radius: 10px;
  padding: 1.3rem 1.6rem;
  border: 1px solid var(--gold);
  max-width: 46rem;
}
.checklist h3 { font-size: 1.15rem; margin: 0; color: var(--gold-pale); }
.checklist ul { margin: 0.6rem 0 0; padding-left: 1.2rem; }

/* Horario y área */
.horario-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2.5rem;
  align-items: center;
  margin-top: 1.8rem;
}
.horario-cards { display: grid; gap: 1rem; }
.card {
  background: rgba(251, 246, 233, 0.04);
  border: 1px solid rgba(198, 160, 82, 0.55);
  border-radius: 10px;
  padding: 1.25rem 1.4rem;
}
.card h3 { margin: 0.3rem 0 0.2rem; font-size: 1.2rem; color: var(--cream); }
.card .card-icon { font-size: 1.9rem; }
.card ul { list-style: none; padding: 0; margin: 0.6rem 0 0; font-size: 0.95rem; color: var(--cream-dim); }
.card ul li { margin: 0.35rem 0; padding-left: 1.4rem; position: relative; }
.card ul li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: bold; }
.horario-map .source-note { text-align: center; max-width: 340px; margin-left: auto; margin-right: auto; }
.map-wrap {
  margin: 0 auto;
  width: min(340px, 80vw);
  aspect-ratio: 1 / 1;
  border: 3px solid var(--gold);
  outline: 2px dashed rgba(198, 160, 82, 0.7);
  outline-offset: 9px;
  border-radius: 50%;
  overflow: hidden;
}
.map-wrap iframe { display: block; width: 100%; height: 100%; border: 0; }

/* Sobre mí */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.about-grid p { max-width: 44rem; }
.about-list { list-style: none; padding: 0; }
.about-list li { margin: 0.45rem 0; font-weight: bold; color: var(--pine); }
.about-card {
  background: var(--pine);
  color: var(--cream);
  border: 1px solid var(--gold);
  border-top: 6px solid var(--gold);
  border-radius: 10px;
  padding: 1.5rem;
}
.about-card-title { font-family: var(--serif); font-weight: bold; letter-spacing: 0.04em; margin: 0; }
.about-card-sub { color: var(--gold-pale); font-weight: bold; margin: 0.25rem 0 1rem; font-size: 0.9rem; }
.about-card p:last-child { margin-bottom: 0; color: var(--cream-dim); font-size: 0.95rem; }

/* Contacto */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}
.contact-buttons { display: flex; flex-direction: column; gap: 0.7rem; margin-top: 1.2rem; align-items: flex-start; }
.contact-form {
  background: var(--card);
  color: var(--text);
  border-radius: 10px;
  padding: 1.6rem;
  display: grid;
  gap: 0.9rem;
  border-top: 6px solid var(--gold);
}
.contact-form label { display: grid; gap: 0.3rem; font-weight: bold; color: var(--pine); font-size: 0.95rem; }
.contact-form input, .contact-form textarea {
  padding: 0.7rem 0.8rem;
  border-radius: 6px;
  border: 1.5px solid #c9bfa4;
  font-family: var(--sans);
  font-size: 1rem;
  background: #fff;
  color: var(--text);
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--gold-deep); outline: 3px solid rgba(198, 160, 82, 0.4); }
.contact-form .btn-primary { justify-self: start; }
.form-note { font-size: 0.85rem; margin: 0; color: var(--muted); }

/* Footer */
.site-footer { background: var(--ink); border-top: 4px double var(--gold); padding: 1.8rem 0; text-align: center; color: var(--cream-dim); }
.site-footer a { color: var(--gold-pale); }
.site-footer strong { color: var(--cream); }
.footer-tag { margin-bottom: 0; font-family: var(--serif); font-style: italic; }

/* Barra fija solo en móvil */
.mobile-cta { display: none; }

/* Responsive */
@media (max-width: 960px) {
  .steps-grid { grid-template-columns: 1fr; gap: 1.6rem; }
}
@media (max-width: 860px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .horario-grid { grid-template-columns: 1fr; }
  .photo-arch img { height: 420px; }
  .main-nav { display: none; }
  .header-actions .btn { display: none; }
  .seal { width: 104px; height: 104px; top: 0.8rem; }
  .ledger-entry summary { grid-template-columns: 2.2rem 1fr auto; }
  .ledger-entry ul { padding-left: 0.5rem; }
  .fee { flex-wrap: wrap; }
  .fee-dots { display: none; }
  body { padding-bottom: 64px; }
  .mobile-cta {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: var(--ink);
    border-top: 2px solid var(--gold);
  }
  .mobile-cta a {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
    padding: 0.9rem 0.5rem;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .mobile-cta-call { color: var(--cream); }
  .mobile-cta-wa { color: #25d366; border-left: 1px solid var(--gold); }
}

/* Movimiento reducido: el sello queda quieto */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .seal svg { animation: none; }
}
