/* =========================================================
   Marta Segura — Tema WordPress
   Paleta sobria editorial: crema, tinta, acento ocre.
   ========================================================= */

:root {
  --bg: #f6f3ec;
  --bg-alt: #efeae0;
  --ink: #14181f;
  --ink-soft: #3a4150;
  --muted: #6b7283;
  --line: #d9d3c5;
  --accent: #7a3b1d;        /* terracota oscuro, serio */
  --accent-soft: #b4683f;
  --white: #ffffff;
  --radius: 2px;
  --maxw: 1180px;
  --gutter: clamp(20px, 4vw, 48px);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .2s, color .2s; }
a:hover { border-bottom-color: var(--accent); color: var(--accent); }

h1,h2,h3,h4 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); font-weight: 400; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; color: var(--ink-soft); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--alt { background: var(--bg-alt); }
.eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 18px;
  display: inline-block;
}
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 64ch; }

/* --- Header --- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246,243,236,.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
}
.site-brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -.01em;
  border: 0;
}
.site-brand small { font-family: var(--font-sans); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); display: block; margin-top: -4px; }
.nav-primary ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.nav-primary a {
  font-size: 14px; font-weight: 500; color: var(--ink-soft);
  border: 0; padding: 6px 0; position: relative;
}
.nav-primary a:hover, .nav-primary .current-menu-item > a { color: var(--ink); }
.nav-primary .current-menu-item > a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--accent);
}
.nav-toggle { display: none; background: none; border: 1px solid var(--ink); padding: 8px 14px; font: inherit; cursor: pointer; }

@media (max-width: 820px) {
  .nav-toggle { display: inline-block; }
  .nav-primary { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 18px var(--gutter); }
  .nav-primary.is-open { display: block; }
  .nav-primary ul { flex-direction: column; gap: 14px; }
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 26px;
  font-size: 14px; font-weight: 500;
  letter-spacing: .04em;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .2s ease;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--white); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }

/* --- Hero --- */
.hero { padding: clamp(80px, 12vw, 160px) 0 clamp(60px, 8vw, 100px); }
.hero__grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: 60px; align-items: end; }
.hero__title { font-size: clamp(2.6rem, 6.2vw, 5rem); margin: 0; }
.hero__title em { font-style: italic; color: var(--accent); font-weight: 400; }
.hero__meta { border-left: 1px solid var(--line); padding-left: 28px; font-size: 14px; color: var(--muted); }
.hero__meta strong { display: block; color: var(--ink); font-family: var(--font-display); font-size: 1.1rem; font-weight: 500; margin-bottom: 6px; }
.hero__cta { margin-top: 48px; display: flex; gap: 16px; flex-wrap: wrap; }
.hero__rule { margin-top: 80px; border: 0; border-top: 1px solid var(--line); }

@media (max-width: 820px) {
  .hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .hero__meta { border-left: 0; border-top: 1px solid var(--line); padding: 24px 0 0; }
}

/* --- Values / 3 col --- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin-top: 56px; }
.value__num { font-family: var(--font-display); color: var(--accent); font-size: 1rem; margin-bottom: 10px; display: block; }
.value h3 { font-size: 1.25rem; margin-bottom: 10px; }
@media (max-width: 760px) { .values { grid-template-columns: 1fr; gap: 32px; } }

/* --- Services --- */
.services-list { margin-top: 48px; border-top: 1px solid var(--line); }
.service-row {
  display: grid; grid-template-columns: 80px 1fr 2fr auto;
  gap: 32px; align-items: baseline;
  padding: 32px 0; border-bottom: 1px solid var(--line);
  transition: padding .25s ease;
}
.service-row:hover { padding-left: 12px; }
.service-row__num { font-family: var(--font-display); color: var(--accent); font-size: 1rem; }
.service-row__title { font-family: var(--font-display); font-size: 1.6rem; font-weight: 500; margin: 0; }
.service-row__desc { color: var(--ink-soft); font-size: 1rem; }
.service-row__arrow { font-size: 1.4rem; color: var(--muted); }
@media (max-width: 820px) {
  .service-row { grid-template-columns: 1fr; gap: 8px; }
  .service-row__num { font-size: .85rem; }
}

/* --- Cards (casos, posts) --- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 48px; }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 28px;
  display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -28px rgba(20,24,31,.35); }
.card__thumb { aspect-ratio: 4/3; background: var(--bg-alt); margin: -28px -28px 24px; overflow: hidden; }
.card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.card__meta { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.card__title { font-size: 1.3rem; margin: 0 0 12px; }
.card__title a { border: 0; }
.card__excerpt { color: var(--ink-soft); font-size: .95rem; flex: 1; }
.card__more { margin-top: 18px; font-size: 13px; font-weight: 500; letter-spacing: .04em; color: var(--accent); border: 0; }

/* --- Testimonios --- */
.testimonials { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; margin-top: 48px; }
@media (max-width: 820px) { .testimonials { grid-template-columns: 1fr; } }
.testimonial {
  background: var(--bg);
  border-left: 2px solid var(--accent);
  padding: 32px 36px;
}
.testimonial__quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--ink);
  margin: 0 0 24px;
}
.testimonial__author { font-size: 14px; font-weight: 500; }
.testimonial__role { font-size: 13px; color: var(--muted); }

/* --- About --- */
.about-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }
.about-grid img { border: 1px solid var(--line); }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; gap: 32px; } }

/* --- Contact --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }
.contact-info p { color: var(--ink-soft); }
.contact-info strong { display: block; font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); margin-bottom: 4px; }

.form { display: grid; gap: 18px; }
.form label { font-size: 13px; letter-spacing: .04em; font-weight: 500; color: var(--ink); display: block; margin-bottom: 6px; }
.form input, .form textarea {
  width: 100%; padding: 14px 16px;
  font: inherit; font-size: 15px; color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .2s;
}
.form input:focus, .form textarea:focus { outline: 0; border-color: var(--ink); }
.form textarea { min-height: 160px; resize: vertical; }
.form__hp { position: absolute; left: -9999px; }
.form__msg { padding: 14px 18px; border-radius: var(--radius); font-size: 14px; }
.form__msg--ok { background: #e7efe3; color: #2d4a26; border: 1px solid #b9cfa9; }
.form__msg--err { background: #f3dede; color: #6a2424; border: 1px solid #d8b1b1; }

/* --- CTA strip --- */
.cta-strip {
  background: var(--ink);
  color: var(--bg);
  padding: clamp(56px, 8vw, 96px) 0;
  text-align: center;
}
.cta-strip h2 { color: var(--bg); margin-bottom: 16px; }
.cta-strip p { color: rgba(246,243,236,.7); margin-bottom: 32px; }
.cta-strip .btn { border-color: var(--bg); background: var(--bg); color: var(--ink); }
.cta-strip .btn:hover { background: var(--accent); border-color: var(--accent); color: var(--white); }

/* --- Footer --- */
.site-footer { background: var(--ink); color: rgba(246,243,236,.7); padding: 72px 0 32px; }
.site-footer a { color: var(--bg); border: 0; }
.site-footer a:hover { color: var(--accent-soft); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; margin-bottom: 56px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.footer-brand { font-family: var(--font-display); color: var(--bg); font-size: 1.4rem; margin-bottom: 12px; }
.footer-widget__title, .footer-col h4 { color: var(--bg); font-family: var(--font-sans); text-transform: uppercase; font-size: 12px; letter-spacing: .2em; margin-bottom: 18px; font-weight: 500; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; font-size: 14px; }
.footer-bottom {
  border-top: 1px solid rgba(246,243,236,.15);
  padding-top: 24px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px;
}

/* --- Single / page content --- */
.entry-header { padding: clamp(72px, 10vw, 140px) 0 clamp(32px, 4vw, 56px); border-bottom: 1px solid var(--line); }
.entry-meta { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.entry-content { max-width: 70ch; margin: 0 auto; padding: clamp(40px, 6vw, 80px) 0; }
.entry-content p, .entry-content li { font-size: 1.05rem; }
.entry-content h2, .entry-content h3 { margin-top: 1.6em; }
.entry-content img { margin: 1.6em 0; }
.entry-content blockquote {
  border-left: 2px solid var(--accent);
  padding: 8px 0 8px 24px;
  margin: 1.6em 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--ink);
}

.archive-header { padding: clamp(72px, 10vw, 140px) 0 clamp(32px, 4vw, 56px); }
.pagination { margin: 48px 0; display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers { padding: 10px 14px; border: 1px solid var(--line); font-size: 14px; }
.pagination .current { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* --- Reveal on scroll --- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
