/* Pinturas León — estilos globales */

/* Tipografías alojadas en la propia web: sin peticiones a terceros ni cookies */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-wght-italic.woff2") format("woff2");
  font-weight: 300 900; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}

:root {
  --ink: #14120f;
  --ink-2: #1d1a16;
  --ink-3: #2a2621;
  --bone: #f4efe6;
  --paper: #faf7f1;
  --text: #1c1915;
  --muted: #6b645a;
  --line: #e3dbcc;
  --line-dark: #3a352e;
  --brass: #b08d57;
  --brass-light: #d6b98a;
  --brass-soft: #efe5d3;
  --on-dark: #ece6db;
  --on-dark-muted: #a9a195;
  --radius: 4px;
  --shadow: 0 30px 60px -30px rgba(20, 18, 15, .35);
  --max: 1200px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--text); text-decoration-color: var(--brass); text-underline-offset: 3px; }
a:hover { color: var(--brass); }

h1, h2, h3 {
  font-family: var(--serif); font-weight: 400; line-height: 1.12;
  margin: 0 0 .55em; letter-spacing: -.015em; text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); font-weight: 350; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.35rem; font-weight: 500; letter-spacing: -.005em; }
h1 em, h2 em { font-style: italic; color: var(--brass); }
p { margin: 0 0 1em; }
strong { font-weight: 700; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .container { padding: 0 16px; } }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--brass); color: var(--ink); padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 10px; top: 10px; }

/* Cabecera */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20, 18, 15, .92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(214, 185, 138, .14);
  color: var(--on-dark);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 76px;
}
.logo {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--serif); font-weight: 400; font-size: 1.35rem; letter-spacing: .01em;
  color: var(--on-dark); text-decoration: none; white-space: nowrap;
}
.logo:hover { color: #fff; }
.logo svg { width: 38px; height: 38px; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  color: var(--on-dark-muted); text-decoration: none; font-size: .78rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; transition: color .2s; white-space: nowrap;
}
.nav a:hover { color: #fff; }
.nav .btn { color: var(--ink); }
.nav .btn:hover { color: var(--ink); }

.nav-toggle {
  display: none; background: none; color: var(--on-dark);
  border: 1px solid var(--line-dark); border-radius: var(--radius);
  padding: 9px 14px; cursor: pointer; font: inherit; font-size: .78rem;
  font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}

.header-call {
  display: none; margin-left: auto; color: var(--brass-light); text-decoration: none;
  font-weight: 700; font-size: .95rem; letter-spacing: .04em; white-space: nowrap;
}
.header-call:hover { color: #fff; }

@media (max-width: 1080px) {
  .header-call { display: block; }
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 76px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); border-bottom: 1px solid var(--line-dark);
    padding: 8px 24px 20px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 15px 0; border-bottom: 1px solid var(--line-dark); }
  .nav .btn { margin-top: 16px; text-align: center; border-bottom: 0; }
}

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: var(--radius); border: 1px solid transparent;
  font-family: var(--sans); font-size: .8rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; text-decoration: none; cursor: pointer; line-height: 1.2;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brass); color: var(--ink); }
.btn-primary:hover { background: var(--brass-light); color: var(--ink); }
.btn-outline { border-color: currentColor; color: var(--text); background: transparent; }
.btn-outline:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-group { display: flex; flex-wrap: wrap; gap: 14px; }

/* Cabeceras de página en oscuro: portada, servicios y zonas */
.hero {
  position: relative; overflow: hidden;
  padding: 96px 0 104px;
  background:
    radial-gradient(ellipse 60% 70% at 88% 10%, rgba(176, 141, 87, .16) 0, transparent 60%),
    radial-gradient(ellipse 50% 60% at 0% 100%, rgba(176, 141, 87, .08) 0, transparent 60%),
    var(--ink);
  color: var(--on-dark);
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(214, 185, 138, .35), transparent);
}
.hero h1 { color: #fff; max-width: 16ch; }
.hero .lead { color: var(--on-dark-muted); }
.hero .btn-outline { color: var(--on-dark); border-color: rgba(236, 230, 219, .35); }
.hero .btn-outline:hover { background: var(--on-dark); border-color: var(--on-dark); color: var(--ink); }
.hero a:not(.btn) { color: var(--on-dark); }
.hero a:not(.btn):hover { color: var(--brass-light); }

.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: .74rem; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: var(--brass); margin-bottom: 24px;
}
.eyebrow::before { content: ""; width: 36px; height: 1px; background: currentColor; }
.hero .eyebrow { color: var(--brass-light); }
.lead { font-size: 1.18rem; line-height: 1.7; color: var(--muted); max-width: 52ch; margin-bottom: 1.6em; }
.hero-points { list-style: none; padding: 0; margin: 0 0 40px; display: grid; gap: 12px; }
.hero-points li { display: flex; gap: 14px; align-items: baseline; color: var(--on-dark); }
.hero-points li::before {
  content: ""; width: 7px; height: 7px; flex: none; transform: rotate(45deg) translateY(-2px);
  background: var(--brass);
}
.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; filter: drop-shadow(0 40px 50px rgba(0, 0, 0, .45)); }

@media (max-width: 900px) {
  .hero { padding: 64px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-art { max-width: 460px; }
}

/* Franja de compromisos bajo la portada */
.pledges { background: var(--ink-2); color: var(--on-dark); border-bottom: 1px solid var(--line-dark); }
.pledges ul {
  list-style: none; margin: 0 auto; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.pledges li {
  padding: 26px 24px; border-left: 1px solid var(--line-dark);
  font-size: .9rem; color: var(--on-dark-muted); line-height: 1.5;
}
.pledges li:first-child { border-left: 0; padding-left: 0; }
.pledges strong {
  display: block; font-family: var(--serif); font-weight: 400; font-size: 1.15rem;
  color: var(--on-dark); margin-bottom: 2px;
}
@media (max-width: 900px) {
  .pledges ul { grid-template-columns: 1fr 1fr; }
  .pledges li { padding: 20px 16px; border-left: 0; border-top: 1px solid var(--line-dark); }
  .pledges li:nth-child(-n+2) { border-top: 0; }
  .pledges li:first-child { padding-left: 16px; }
}
@media (max-width: 480px) {
  .pledges ul { grid-template-columns: 1fr; }
  .pledges li:nth-child(2) { border-top: 1px solid var(--line-dark); }
}

/* Secciones */
.section { padding: 112px 0; }
.section-alt { background: var(--bone); }
.section-dark { background: var(--ink); color: var(--on-dark); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: var(--on-dark-muted); }
.section-head { max-width: 700px; margin-bottom: 64px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }
}

.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); gap: 64px; }
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; gap: 24px; } }

.card {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 34px 32px 30px;
  display: flex; flex-direction: column;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}
.card:hover { border-color: var(--brass-light); box-shadow: var(--shadow); transform: translateY(-3px); }
.card h3 { margin-top: 4px; }
.card p { color: var(--muted); }
.card .icon {
  width: 52px; height: 52px; display: grid; place-items: center;
  border: 1px solid var(--brass-light); border-radius: 50%;
  color: var(--brass); margin-bottom: 26px;
}
.card .icon svg { width: 22px; height: 22px; stroke-width: 1.5; }
.card-link {
  margin-top: auto; padding-top: 10px; align-self: flex-start;
  font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; color: var(--text); border-bottom: 1px solid var(--brass); padding-bottom: 4px;
}
.card-link::after { content: " →"; color: var(--brass); }
.card-link:hover { color: var(--brass); }
.card-featured::before {
  content: ""; position: absolute; left: 0; top: 0; right: 0; height: 2px; background: var(--brass);
}

/* Pasos */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li {
  counter-increment: step; position: relative; padding: 0 0 32px 92px; margin-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.steps li:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.steps li::before {
  content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: -10px;
  font-family: var(--serif); font-size: 3rem; font-weight: 300; line-height: 1;
  color: var(--brass);
}
.steps h3 { margin-bottom: .3em; }
.steps p { color: var(--muted); margin: 0; }

/* Nuestro estándar */
.standard { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line-dark); }
.standard > div { padding: 40px 28px 8px 0; }
.standard > div + div { padding-left: 28px; border-left: 1px solid var(--line-dark); }
.standard .num {
  display: block; font-family: var(--serif); font-style: italic; font-size: 1rem;
  color: var(--brass-light); margin-bottom: 18px;
}
.standard h3 { font-size: 1.3rem; }
.standard p { font-size: .97rem; }
@media (max-width: 960px) {
  .standard { grid-template-columns: 1fr 1fr; }
  .standard > div:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 560px) {
  .standard { grid-template-columns: 1fr; }
  .standard > div, .standard > div + div { padding: 32px 0 0; border-left: 0; }
}

/* Zonas */
.tags { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.tags li {
  background: transparent; border: 1px solid var(--line);
  padding: 9px 18px; border-radius: 999px; font-size: .93rem; color: var(--muted);
}
.tags-title { margin-top: 44px; font-size: 1.15rem; }
.tags-links a { text-decoration: none; font-weight: 600; color: var(--text); }
.tags-links li { transition: border-color .2s, background .2s; }
.tags-links li:hover { border-color: var(--brass); background: var(--brass-soft); }
.tags-more { margin-top: 36px; }
.tags-more a {
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; border-bottom: 1px solid var(--brass); padding-bottom: 4px;
}
.tags-more a::after { content: " →"; color: var(--brass); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer; font-family: var(--serif); font-size: 1.25rem; font-weight: 400;
  padding: 24px 48px 24px 0; list-style: none; position: relative; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px;
  border-right: 1px solid var(--brass); border-bottom: 1px solid var(--brass);
  transform: translateY(-75%) rotate(45deg); transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq summary:hover { color: var(--brass); }
.faq details p { color: var(--muted); padding-right: 48px; }
.faq details > :last-child { margin-bottom: 26px; }

/* CTA */
.cta {
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 60% 90% at 100% 0%, rgba(176, 141, 87, .22) 0, transparent 60%),
    var(--ink);
  color: var(--on-dark); border-radius: var(--radius);
  padding: 72px 64px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center;
}
.cta h2 { color: #fff; }
.cta p { color: var(--on-dark-muted); margin: 0; font-size: 1.08rem; }
.cta .btn-group { justify-content: flex-end; }
.cta .btn-outline { border-color: rgba(236, 230, 219, .35); color: var(--on-dark); }
.cta .btn-outline:hover { background: var(--on-dark); border-color: var(--on-dark); color: var(--ink); }
@media (max-width: 860px) {
  .cta { grid-template-columns: 1fr; padding: 48px 28px; }
  .cta .btn-group { justify-content: flex-start; }
}

/* Página de servicio */
.breadcrumb { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 36px; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--brass); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--brass); }
.hero .breadcrumb { color: var(--on-dark-muted); }
.hero .breadcrumb a { color: var(--on-dark-muted); }

.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.prose > h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--brass); }

.summary-box {
  background: var(--bone); border-left: 2px solid var(--brass);
  padding: 24px 28px; margin: 0 0 48px; font-size: 1.05rem;
}
.summary-box p:last-child { margin: 0; }

.layout-aside { display: grid; grid-template-columns: 1fr 320px; gap: 72px; align-items: start; }
.aside-card { position: sticky; top: 108px; }
.aside-card:hover { transform: none; }
@media (max-width: 960px) {
  .layout-aside { grid-template-columns: 1fr; gap: 48px; }
  .aside-card { position: static; }
}

/* Pie */
.site-footer { background: var(--ink); color: var(--on-dark-muted); padding: 88px 0 32px; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--brass-light); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; }
.footer-grid h2 {
  font-family: var(--sans); font-size: .74rem; font-weight: 700; color: var(--brass-light);
  text-transform: uppercase; letter-spacing: .22em; margin-bottom: 20px;
}
.footer-grid > div:first-child h2 {
  font-family: var(--serif); font-size: 1.9rem; font-weight: 400; letter-spacing: 0;
  text-transform: none; color: #fff;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid p { max-width: 36ch; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  border-top: 1px solid var(--line-dark); margin-top: 64px; padding: 24px 80px 0 0; font-size: .85rem;
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-legal a { color: var(--on-dark-muted); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 36px; } }

/* Botón de llamada: círculo flotante en ordenador, barra fija en el móvil */
.float-call {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; background: var(--brass);
  display: grid; place-items: center; box-shadow: 0 12px 30px rgba(0, 0, 0, .3);
  color: var(--ink); text-decoration: none;
  transition: transform .25s var(--ease), background .25s var(--ease);
}
.float-call:hover { transform: translateY(-2px); background: var(--brass-light); color: var(--ink); }
.float-call svg { width: 24px; height: 24px; fill: currentColor; }
.float-call span {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
@media (max-width: 640px) {
  .header-call { display: none; }
  body { padding-bottom: 72px; }
  .float-call {
    left: 0; right: 0; bottom: 0; width: auto; height: 64px; border-radius: 0;
    display: flex; justify-content: center; gap: 12px;
    font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, .25);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .float-call:hover { transform: none; }
  .float-call span { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
}

:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card, .float-call { transition: none; }
  .card:hover, .btn:hover { transform: none; }
}

/* Blog */
.post-hero { padding: 80px 0 40px; background: var(--bone); border-bottom: 1px solid var(--line); }
.post-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
.post-container { max-width: 820px; }
.post-meta { color: var(--muted); font-size: .9rem; margin: 0; }
.post-body { max-width: none; padding-top: 24px; font-size: 1.1rem; }
.post-body h2 { margin-top: 1.8em; scroll-margin-top: 100px; }
.post-body h3 { margin-top: 1.4em; }
.post-body table {
  width: 100%; border-collapse: collapse; margin: 0 0 1.6em; font-size: .95rem;
  background: #fff; border: 1px solid var(--line);
}
.post-body th, .post-body td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.post-body th {
  background: var(--ink); color: var(--on-dark); font-size: .74rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
}
.table-wrap { overflow-x: auto; margin-bottom: 1.6em; }
.table-wrap table { margin: 0; min-width: 520px; }
.post-body blockquote, .nota {
  margin: 0 0 1.6em; padding: 20px 24px; border-left: 2px solid var(--ink);
  background: var(--bone);
}
.post-body .respuesta {
  font-family: var(--serif); font-size: 1.3rem; line-height: 1.5;
  border-left: 2px solid var(--brass); padding: 4px 0 4px 26px; margin-bottom: 2em;
}
.toc { border: 1px solid var(--line); background: #fff; padding: 26px 30px; margin-bottom: 40px; }
.toc-title {
  font-size: .74rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--brass); margin-bottom: .8em;
}
.toc ol { margin: 0; padding-left: 1.2em; }
.toc li { margin-bottom: .35em; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.post-cta {
  margin-top: 56px; background: var(--ink); color: var(--on-dark);
  border-radius: var(--radius); padding: 44px 40px;
}
.post-cta h2 { color: #fff; margin-top: 0; font-size: 1.9rem; }
.post-cta p { color: var(--on-dark-muted); }
.post-cta .btn-outline { border-color: rgba(236, 230, 219, .35); color: var(--on-dark); }
.post-cta .btn-outline:hover { background: var(--on-dark); color: var(--ink); }
.post-cat {
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .2em;
  color: var(--brass); margin-bottom: 10px;
}
.card h3 a { color: var(--text); text-decoration: none; }
.card h3 a:hover { color: var(--brass); }
.blog-cat { padding: 72px 0 8px; }

/* Imágenes del blog */
.post-cover { margin: 40px 0 8px; }
.post-cover img { width: 100%; height: auto; border-radius: var(--radius); background: var(--bone); }
.card-thumb { display: block; margin: -34px -32px 26px; overflow: hidden; }
.card-thumb img {
  width: 100%; height: auto; display: block;
  aspect-ratio: 1200 / 630; object-fit: cover; background: var(--bone);
  transition: transform .6s var(--ease);
}
.card:hover .card-thumb img { transform: scale(1.03); }

/* Páginas legales */
.legal h2 { font-size: 1.6rem; }
.legal table { width: 100%; border-collapse: collapse; margin: 0 0 1.6em; font-size: .95rem; }
.legal th, .legal td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.legal-updated { color: var(--muted); font-size: .9rem; }
