/* Notaría Pública 267 — notaria267.com. No framework, no third-party runtime. */
@font-face { font-family: "Cormorant"; src: url(../fonts/cormorant-latin-normal.woff2) format("woff2"); font-weight: 400 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant"; src: url(../fonts/cormorant-latin-ext-normal.woff2) format("woff2"); font-weight: 400 700; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Sans"; src: url(../fonts/sourcesans-latin-normal.woff2) format("woff2"); font-weight: 300 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Sans"; src: url(../fonts/sourcesans-latin-ext-normal.woff2) format("woff2"); font-weight: 300 700; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --navy: #14234b;
  --navy-2: #22346a;
  --gold: #a8844f;
  --gold-2: #8c6c3c;
  --cream: #faf8f3;
  --paper: #ffffff;
  --ink: #1d2433;
  --muted: #5a6273;
  --line: #e4ded1;
  --serif: "Cormorant", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Source Sans", "Source Sans 3", -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
section[id] { scroll-margin-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 1.0625rem/1.6 var(--sans); }
a { color: var(--navy-2); text-underline-offset: 2px; }
a:hover { color: var(--gold-2); }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

h1, h2 { font-family: var(--serif); font-weight: 600; color: var(--navy); line-height: 1.15; letter-spacing: .005em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0 0 1.4rem; }
h2::after { content: ""; display: block; width: 64px; height: 2px; background: var(--gold); margin-top: .6rem; }

/* Header */
.top { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.marca { text-decoration: none; display: flex; flex-direction: column; line-height: 1.1; }
.marca-n { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--navy); }
.marca-n b { color: var(--gold); font-weight: 600; }
.marca-t { font-size: .82rem; color: var(--muted); letter-spacing: .04em; }
nav { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; }
nav a:hover { color: var(--gold-2); }
.nav-tel { color: var(--navy) !important; white-space: nowrap; }

/* Portada */
.portada { position: relative; background: var(--navy); color: #fff; overflow: hidden; }
.portada-fondo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .22; }
.portada-in { position: relative; display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.portada-logo { background: var(--cream); padding: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.lema { font-family: var(--serif); font-style: italic; color: #e3cfa6; font-size: 1.35rem; margin: 0 0 .4rem; }
.portada h1 { color: #fff; font-size: clamp(2rem, 4.2vw, 3.1rem); margin: 0 0 .8rem; }
.sub { font-size: 1.15rem; color: #dfe3ee; margin: 0 0 1.8rem; }
.acciones { display: flex; gap: 12px; flex-wrap: wrap; margin: 0; }

.btn { display: inline-block; background: var(--gold); color: #fff; text-decoration: none; font: 600 1rem var(--sans); padding: 12px 22px; border: 0; border-radius: 3px; cursor: pointer; }
.btn:hover { background: var(--gold-2); color: #fff; }
.btn-2 { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.7); }
.btn-2:hover { background: rgba(255,255,255,.1); }

/* Servicios */
.servicios { padding: 72px 0; background: var(--paper); }
.lista-servicios { list-style: none; padding: 0; margin: 0; columns: 3 240px; column-gap: 40px; }
.lista-servicios li { break-inside: avoid; padding: 7px 0 7px 18px; position: relative; border-bottom: 1px solid #f0ece3; }
.lista-servicios li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }

/* Contacto */
.contacto { padding: 72px 0; }
.contacto-in { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.datos-nombre { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; color: var(--navy); margin: 0 0 1.2rem; line-height: 1.2; }
.datos-nombre span { font-family: var(--sans); font-size: .95rem; font-weight: 400; color: var(--muted); }
.datos dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; }
.datos dt { font-weight: 600; color: var(--gold-2); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; padding-top: .2em; }
.datos dd { margin: 0; }

.forma { background: var(--paper); border: 1px solid var(--line); padding: 28px; display: grid; gap: 14px; }
.forma-intro { margin: 0 0 4px; color: var(--muted); }
.forma label { display: grid; gap: 4px; font-weight: 600; font-size: .95rem; }
.forma .lbl i { color: var(--gold-2); font-style: normal; }
.forma input, .forma textarea { font: 400 1rem var(--sans); color: var(--ink); background: #fff; border: 1px solid #cfc8b8; border-radius: 3px; padding: 10px 12px; width: 100%; }
.forma input:focus, .forma textarea:focus { border-color: var(--navy-2); outline: 2px solid rgba(34,52,106,.15); }
.forma textarea { resize: vertical; min-height: 130px; }
.forma .trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.forma-privacidad { font-size: .88rem; color: var(--muted); margin: 0; }
.forma .btn { justify-self: start; min-width: 140px; }
.forma .btn[disabled] { opacity: .6; cursor: wait; }
.aviso-error { background: #fbeceb; color: #8a2a22; border: 1px solid #efc7c2; padding: 10px 12px; border-radius: 3px; }

.mapa { margin-top: 24px; aspect-ratio: 4 / 3; border: 1px solid var(--line); background:
  linear-gradient(135deg, rgba(20,35,75,.06) 25%, transparent 25%) 0 0 / 24px 24px,
  linear-gradient(225deg, rgba(20,35,75,.06) 25%, transparent 25%) 0 0 / 24px 24px, #f1ede4; }
.mapa iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Texto (privacidad, gracias) */
.texto { max-width: 780px; padding-top: 48px; padding-bottom: 72px; }
.texto h1 { font-size: clamp(2.1rem, 5vw, 3rem); margin: 0 0 1.5rem; }
.texto h2 { font-size: 1.5rem; margin: 2rem 0 .6rem; }
.texto h2::after { display: none; }
.texto ul { padding-left: 1.2rem; }
.fecha { color: var(--muted); margin-top: 2.5rem; }
.gracias { text-align: center; padding-top: 96px; padding-bottom: 120px; min-height: 60vh; }

/* Pie */
.pie { background: var(--navy); color: #d5d9e4; font-size: .95rem; }
.pie a { color: #fff; }
.pie a:hover { color: #e3cfa6; }
.pie-in { display: grid; grid-template-columns: 1.2fr 1.4fr auto; gap: 32px; padding-top: 36px; padding-bottom: 36px; }
.pie p { margin: 0 0 .5rem; }
.pie-nombre { font-family: var(--serif); font-size: 1.25rem; color: #fff; }

@media (max-width: 860px) {
  .portada-in { grid-template-columns: 1fr; gap: 32px; padding-top: 40px; padding-bottom: 48px; }
  .portada-logo { max-width: 300px; }
  .contacto-in { grid-template-columns: 1fr; gap: 40px; }
  .pie-in { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 560px) {
  nav { gap: 14px; }
  .nav-tel { display: none; }
  .forma { padding: 20px; }
  .servicios, .contacto { padding: 52px 0; }
}
