/* ---------- Fuentes (alojadas en la propia web) ---------- */
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter Tight";
  src: url("/assets/fonts/inter-tight-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

/* ---------- Identidad ---------- */
:root {
  --cream: #f6f5ee;
  --paper: #ffffff;
  --ink: #142019;
  --text: #2b352f;
  --muted: #56625a;
  --green-900: #1d3b2c;
  --green-700: #2f5541;
  --green-500: #5c7a61;
  --sage-300: #c8d3c4;
  --sage-100: #e5ebe1;
  --slate: #5e7180;
  --yellow: #ffde59;
  --yellow-soft: #fff1b3;
  --line: #dfe3d8;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 32, 25, .06), 0 8px 24px rgba(20, 32, 25, .06);
  --wrap: 1120px;
  --head: "Inter Tight", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--cream); color: var(--text);
  font-family: var(--body); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-700); text-underline-offset: 3px; }
a:hover { color: var(--green-900); }
:focus-visible { outline: 3px solid var(--green-500); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--head); color: var(--ink); line-height: 1.1; letter-spacing: -.025em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }

/* Subrayado amarillo de marca */
.mark { background: linear-gradient(transparent 12%, var(--yellow) 12%, var(--yellow) 88%, transparent 88%); padding: 0 .15em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green-500); margin-bottom: 14px; }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 640px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 700 .95rem/1 var(--body); text-decoration: none; cursor: pointer;
  padding: 15px 24px; border-radius: 999px; border: 2px solid transparent;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green-900); color: #fff; }
.btn-primary:hover { background: var(--green-700); color: #fff; }
.btn-ghost { border-color: var(--green-900); color: var(--green-900); background: transparent; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { color: #fff; background: var(--green-900); }
.btn-light { background: var(--cream); color: var(--ink); }
.btn-light:hover { color: var(--ink); background: #fff; }
.btn-small { padding: 10px 18px; font-size: .88rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Cabecera ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(246, 245, 238, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--green-900); font-family: var(--head); font-size: 1.2rem; font-weight: 600; letter-spacing: -.01em; }
.brand img { border-radius: 8px; mix-blend-mode: multiply; }
.brand b { font-weight: 800; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav a { display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--muted); font-size: .95rem; font-weight: 500; }
.nav a:hover { color: var(--ink); background: var(--sage-100); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 700; }
.nav .btn { color: #fff; background: var(--green-900); margin-left: 8px; padding: 10px 18px; }
.nav .btn:hover { background: var(--green-700); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle .bar { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 70px; left: 0; right: 0; background: var(--cream); border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: 10px 20px 20px; }
  .nav a { padding: 12px 6px; font-size: 1.05rem; }
  .nav .btn { margin: 10px 0 0; }
}

/* ---------- Secciones ---------- */
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-white { background: var(--paper); }
.section-sage { background: var(--sage-100); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

/* Hero */
.hero { padding: 72px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero .lead { font-size: 1.2rem; }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } .hero { padding-top: 44px; } }

/* Documento revisado (ilustración del hero) */
.doc-mock { position: relative; background: #fff; border-radius: 18px; box-shadow: var(--shadow); padding: 26px 26px 30px; transform: rotate(1.5deg); max-width: 440px; margin-left: auto; }
.doc-mock .file { font: 600 .72rem/1 var(--body); letter-spacing: .06em; color: var(--muted); margin-bottom: 18px; display: flex; align-items: center; gap: 8px; }
.doc-mock .file::before { content: ""; width: 14px; height: 16px; border-radius: 3px; background: var(--sage-300); }
.doc-mock .line { height: 11px; border-radius: 6px; background: #e4e6e1; margin: 12px 0; }
.doc-mock .line.hl { background: var(--yellow); width: 72%; }
.doc-mock .w60 { width: 60%; } .doc-mock .w85 { width: 85%; } .doc-mock .w40 { width: 40%; }
.doc-mock .table { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 6px; margin-top: 18px; }
.doc-mock .table span { height: 18px; border-radius: 4px; background: var(--sage-100); }
.doc-mock .table span.bad { background: #fde3c4; outline: 2px solid #e8a33c; }
.note { position: absolute; background: var(--ink); color: #fff; font: 600 .8rem/1.3 var(--body); padding: 9px 12px; border-radius: 10px; box-shadow: var(--shadow); transform: rotate(-1.5deg); }
.note::after { content: ""; position: absolute; width: 10px; height: 10px; background: var(--ink); transform: rotate(45deg); }
.note-1 { left: -26px; top: 70px; } .note-1::after { right: 22px; bottom: -4px; }
.note-2 { right: -14px; bottom: -18px; background: var(--green-900); } .note-2::after { left: 20px; top: -4px; background: var(--green-900); }
@media (max-width: 880px) { .doc-mock { margin: 0 auto; } .note-1 { left: -6px; } .note-2 { right: -4px; } }

/* Cinta de marcos */
.ticker { background: var(--yellow); padding: 15px 0; overflow: hidden; }
.ticker ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; font: 700 .8rem/1.4 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.ticker li + li::before { content: "·"; margin-right: 22px; }

/* Tarjetas */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.section-white .card { background: var(--cream); box-shadow: none; }
.card p { color: var(--muted); }
.card .num { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--yellow); font: 800 1rem var(--head); color: var(--ink); margin-bottom: 16px; }

.service-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .2s ease, box-shadow .2s ease; }
.service-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(20,32,25,.06), 0 16px 36px rgba(20,32,25,.1); color: inherit; }
.service-card .illus { height: 170px; display: grid; place-items: center; margin-bottom: 18px; background: var(--cream); border-radius: 10px; }
.service-card .illus img { max-height: 140px; width: auto; }
.service-card .q { font-weight: 600; color: var(--ink); }
.service-card .more { margin-top: auto; font-weight: 700; color: var(--green-700); font-size: .95rem; }

/* Diferencial */
.why { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.why-list { display: grid; gap: 26px; }
.why-item { display: grid; grid-template-columns: 46px 1fr; gap: 16px; }
.why-item .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--green-900); color: var(--yellow); display: grid; place-items: center; }
.why-item h3 { margin-bottom: .3em; }
.why-item p { color: var(--muted); margin: 0; }
@media (max-width: 880px) { .why { grid-template-columns: 1fr; gap: 30px; } }

.quote-block { border-left: 4px solid var(--yellow); padding: 6px 0 6px 24px; font-family: var(--head); font-size: clamp(1.35rem, 2.6vw, 1.85rem); line-height: 1.3; color: var(--ink); font-weight: 600; letter-spacing: -.015em; }

.path-illus { margin: 0 auto; width: 100%; max-width: 1000px; padding: 0 20px; opacity: .95; }

/* ---------- Páginas interiores ---------- */
.page-hero { padding: 64px 0 40px; }
.page-hero .lead { margin-top: 6px; }

/* Servicios detallados */
.service { padding: 64px 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.service:first-of-type { border-top: 0; }
.service-top { display: grid; grid-template-columns: 1.3fr .7fr; gap: 48px; align-items: center; margin-bottom: 34px; }
.service-top img { max-height: 220px; width: auto; margin-left: auto; }
@media (max-width: 820px) { .service-top { grid-template-columns: 1fr; } .service-top img { margin: 0; max-height: 170px; } }
.service .tag { display: inline-block; background: var(--yellow-soft); color: var(--ink); font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 6px; margin-bottom: 14px; }
.service .q { font-size: 1.2rem; font-weight: 600; color: var(--ink); }
.box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; }
.box h3 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .06em; color: var(--green-700); font-family: var(--body); margin-bottom: 14px; }
.check { list-style: none; padding: 0; margin: 0; }
.check li { position: relative; padding-left: 30px; margin: 10px 0; }
.check li::before { content: ""; position: absolute; left: 0; top: .32em; width: 18px; height: 18px; border-radius: 50%; background: var(--sage-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%231d3b2c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.scope { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.scope li { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: .92rem; font-weight: 500; }
.callout { margin-top: 22px; background: var(--green-900); color: #e9efe6; border-radius: var(--radius); padding: 22px 26px; }
.callout strong { color: var(--yellow); }
.callout a { color: #fff; }

/* Sobre mí */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: start; }
.about-photo { position: sticky; top: 100px; }
.about-photo img { width: 100%; max-width: 380px; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 30px 0; }
.fact { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.fact b { display: block; font: 800 1.7rem/1.1 var(--head); color: var(--green-900); letter-spacing: -.02em; }
.fact span { font-size: .92rem; color: var(--muted); }
@media (max-width: 880px) { .about { grid-template-columns: 1fr; gap: 30px; } .about-photo { position: static; } .about-photo img { max-width: 260px; } }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 0 24px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; position: relative; font: 700 1.08rem/1.35 var(--head); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 6px; }

/* Formulario */
.form-wrap { display: grid; grid-template-columns: 1.3fr .7fr; gap: 48px; align-items: start; }
@media (max-width: 880px) { .form-wrap { grid-template-columns: 1fr; } }
form.contact { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.field { margin-bottom: 20px; }
.field label, .field legend { display: block; font-weight: 600; color: var(--ink); margin-bottom: 7px; font-size: .95rem; }
.field .hint { font-weight: 400; color: var(--muted); font-size: .88rem; }
.field input[type=text], .field input[type=email], .field textarea, .field select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--cream);
  border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--green-500); background: #fff; }
.field textarea { min-height: 130px; resize: vertical; }
fieldset.field { border: 0; padding: 0; margin: 0 0 20px; }
.options { display: grid; gap: 8px; }
.options label { display: flex; gap: 10px; align-items: center; font-weight: 500; background: var(--cream); border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 14px; margin: 0; cursor: pointer; }
.options input { accent-color: var(--green-900); width: 18px; height: 18px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.consent input { margin-top: 4px; accent-color: var(--green-900); }
.hp { display: none; }
.side-note { background: var(--sage-100); border-radius: var(--radius); padding: 26px; }
.side-note h3 { font-size: 1.1rem; }
.side-note ol { padding-left: 20px; margin: 0; color: var(--muted); }
.side-note li { margin: 8px 0; }

/* ---------- Blog ---------- */
.post-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .post-list { grid-template-columns: 1fr; } }
.post-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; transition: transform .2s ease, box-shadow .2s ease; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: inherit; }
.post-card .thumb { background: var(--sage-100); aspect-ratio: 16/9; display: grid; place-items: center; }
.post-card .thumb img { max-height: 82%; width: auto; }
.post-card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.post-card h3 { font-size: 1.2rem; margin-bottom: .45em; }
.post-card p { color: var(--muted); font-size: .97rem; }
.meta { font-size: .85rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 14px; }
.cat { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--green-500); margin-bottom: 8px; }
.empty { background: var(--paper); border: 1px dashed var(--sage-300); border-radius: var(--radius); padding: 30px; color: var(--muted); }

.article-head { padding: 60px 0 30px; }
.article-head h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
.prose { font-size: 1.08rem; line-height: 1.75; }
.prose h2 { font-size: clamp(1.45rem, 2.6vw, 1.85rem); margin: 1.9em 0 .6em; }
.prose h3 { margin: 1.6em 0 .5em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .4em 0; }
.prose blockquote { margin: 1.6em 0; padding: 18px 22px; background: var(--paper); border-left: 4px solid var(--yellow); border-radius: 0 10px 10px 0; }
.prose blockquote p:last-child { margin: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .96rem; background: var(--paper); border-radius: 10px; overflow: hidden; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--green-900); color: #fff; font-weight: 600; }
.prose .sources { font-size: .92rem; color: var(--muted); border-top: 1px solid var(--line); margin-top: 2.5em; padding-top: 1.2em; }
.author-box { display: grid; grid-template-columns: 76px 1fr; gap: 18px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin: 50px 0 0; }
.author-box img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; background: var(--sage-100); }
.author-box p { margin: 0; color: var(--muted); font-size: .97rem; }
.author-box strong { color: var(--ink); }
.post-cta { margin-top: 26px; background: var(--yellow); border-radius: var(--radius); padding: 26px 28px; }
.post-cta p { margin: 0 0 14px; color: var(--ink); font-weight: 500; }

/* ---------- Banda final y pie ---------- */
.cta-band { background: var(--yellow); padding: 64px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.9rem); }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.site-footer { background: var(--ink); color: #c9d1c8; padding: 56px 0 26px; font-size: .95rem; }
.site-footer a { color: #e9eee6; text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo { width: 170px; background: var(--cream); border-radius: 12px; padding: 12px 14px; }
.footer-claim { margin-top: 16px; max-width: 300px; }
.footer-title { font-weight: 700; color: #fff; margin-bottom: 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 6px 0; }
.footer-legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; font-size: .85rem; }
.footer-legal p { margin: 0; }

/* Legal */
.legal .prose { font-size: 1rem; }
.fill { background: var(--yellow-soft); padding: 0 .25em; border-radius: 4px; font-weight: 600; }

/* Descarga de tarifas */
.lead-box { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; background: var(--green-900); color: #e3ebe0; border-radius: 20px; padding: 44px; }
.lead-box h2 { color: #fff; }
.lead-box .eyebrow { color: var(--yellow); }
.lead-copy p { color: #cfdacb; font-size: 1.05rem; }
.lead-copy .lead-alt { font-size: .95rem; margin-top: 18px; }
.lead-copy a { color: var(--yellow); }
.lead-form { background: var(--paper); color: var(--text); border-radius: var(--radius); padding: 26px; }
.lead-form .field { margin-bottom: 14px; }
@media (max-width: 860px) { .lead-box { grid-template-columns: 1fr; padding: 28px 22px; gap: 24px; } }
