/* =============================================================
   El Quijote sin Mancha — Agencia literaria
   1. Tokens
   ============================================================= */
:root {
  --bg:        #FBF8F3;
  --bg-2:      #F1EAE0;
  --paper:     #FFFFFF;
  --ink:       #1C2624;
  --ink-soft:  #33403D;
  --ink-mute:  #667370;
  --accent:    #2F5C56;
  --accent-2:  #4A8A82;
  --accent-soft: #E3ECE9;
  --line:      rgba(28,38,36,0.14);
  --line-soft: rgba(28,38,36,0.08);

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans:  "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --nav-h: 84px;
  --container: 1240px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.08; letter-spacing: -0.01em; font-family: var(--serif); font-weight: 500; }
ul { list-style: none; padding: 0; }
::selection { background: var(--accent); color: var(--bg); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .7rem 1.1rem; background: var(--ink); color: var(--bg);
  border-radius: 8px; font-weight: 500; transition: top .3s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1.5rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.eyebrow { font-family: var(--sans); font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.section { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.section-head { max-width: 640px; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head--split { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; max-width: none; }
@media (max-width: 719px) { .section-head--split { flex-direction: column; align-items: flex-start; gap: .8rem; } }
.lede { color: var(--ink-mute); font-size: 1.08rem; margin-top: .9rem; max-width: 52ch; }
.italic { font-style: italic; }

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

/* =============================================================
   4. Buttons & links
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .9rem 1.5rem; border-radius: 999px;
  font-weight: 600; font-size: .95rem; white-space: nowrap;
  transition: transform .35s var(--ease-out), background .35s var(--ease-out), color .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { background: var(--accent-2); transform: translateY(-2px); box-shadow: 0 10px 24px -8px rgba(47,92,86,.45); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--paper); border-color: var(--accent); transform: translateY(-2px); }
.btn-light { background: var(--bg); color: var(--accent); }
.btn-light:hover { background: var(--paper); transform: translateY(-2px); }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--accent); }
.link-arrow .arrow { transition: transform .35s var(--ease-out); }
.link-arrow:hover .arrow { transform: translateX(4px); }

/* =============================================================
   5. Nav
   ============================================================= */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(251,248,243,.82);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease-out), background .4s var(--ease-out);
}
@supports not (backdrop-filter: blur(1px)) { .nav { background: rgba(251,248,243,.98); } }
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; width: 100%; }
.brand { display: flex; align-items: center; gap: .7rem; font-family: var(--serif); font-size: 1.2rem; font-weight: 600; letter-spacing: -.01em; }
.brand img { height: 76px; width: auto; }
.nav-links { display: none; align-items: center; gap: 2.1rem; }
.nav-links a { position: relative; font-size: .95rem; font-weight: 500; color: var(--ink-soft); padding-block: .3rem; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1.5px; background: var(--accent);
  transition: right .35s var(--ease-out);
}
.nav-links a:hover::after, .nav-links a.is-active::after { right: 0; }
.nav-links a.is-active { color: var(--ink); }
.nav-cta { display: none; }
.nav-toggle {
  display: flex; flex-direction: column; gap: 5px; padding: .5rem; z-index: 110;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); transition: transform .3s var(--ease-out), opacity .3s var(--ease-out); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--bg);
  display: flex; flex-direction: column; justify-content: center; gap: 1.1rem;
  padding: 2rem; padding-top: calc(var(--nav-h) + 1.5rem);
  transform: translateY(-100%); transition: transform .5s var(--ease-out);
}
.mobile-menu.is-open { transform: translateY(0); }
.mobile-menu a { font-family: var(--serif); font-size: 1.5rem; }
.mobile-menu .btn { align-self: flex-start; margin-top: .8rem; padding: .75rem 1.3rem; font-size: .9rem; }

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* =============================================================
   6. Hero — full-bleed image with left fade
   ============================================================= */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: clip; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 82%; }
.hero-fade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(251,248,243,.94) 55%, rgba(251,248,243,.55) 78%, rgba(251,248,243,.15) 100%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; padding-block: clamp(3rem, 8vw, 4rem); }
.hero-copy { max-width: 560px; }
.hero-title { font-size: clamp(2.3rem, 5.4vw, 4rem); margin-top: 1rem; }
.hero-sub { margin-top: 1.4rem; font-size: 1.1rem; color: var(--ink-mute); max-width: 46ch; }
.hero-actions { margin-top: 2.1rem; display: flex; flex-wrap: wrap; gap: 1rem; }

@media (max-width: 719px) {
  .hero { align-items: flex-start; min-height: 100vh; min-height: 100svh; }
  .hero-inner { padding-top: 6.5rem; }
  .hero-bg img { object-position: 70% 0%; }
  .hero-sub { font-size: 1rem; }
  .hero-fade {
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg) 62%, rgba(251,248,243,.85) 78%, rgba(251,248,243,.35) 100%);
  }
}

@media (min-width: 960px) {
  .hero { min-height: 100vh; min-height: 100svh; }
  .hero-fade {
    background: linear-gradient(90deg, var(--bg) 0%, var(--bg) 28%, rgba(251,248,243,.9) 45%, rgba(251,248,243,.45) 62%, rgba(251,248,243,0) 78%);
  }
}

/* =============================================================
   7. Diferencial
   ============================================================= */
.diff { background: none; color: var(--ink); }
.diff-inner { padding: 0; }
.diff-head { max-width: 620px; }
.diff-head .eyebrow { color: var(--accent); }
.diff-head h2 { color: var(--ink); }
.diff-head .lede { color: var(--ink-mute); }
.diff-grid { margin-top: 2.8rem; display: grid; gap: 0; grid-template-columns: 1fr; border-top: 1px solid var(--line); position: relative; }
.diff-item { padding-block: 2rem; border-bottom: 1px solid var(--line); }
.diff-item .num { font-family: var(--serif); font-style: normal; font-size: 1.4rem; color: var(--accent); }
.diff-item h3 { color: var(--ink); font-size: 1.25rem; margin-top: .6rem; font-family: var(--serif); font-weight: 500; }
.diff-item p { margin-top: .7rem; color: var(--ink-mute); font-size: .98rem; max-width: 34ch; }

@media (min-width: 720px) {
  .diff-grid { grid-template-columns: repeat(2, 1fr); column-gap: 3.5rem; }
  .diff-grid::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--line); }
  .diff-item:nth-last-child(-n+2) { border-bottom: none; }
}

/* =============================================================
   8. Novedades — single-slide carousel
   ============================================================= */
.news-carousel { position: relative; }
.news-track {
  display: flex; overflow-x: auto; overflow-y: visible; scroll-snap-type: x mandatory;
  scrollbar-width: none; border-radius: 22px;
}
.news-track::-webkit-scrollbar { display: none; }
.news-card {
  scroll-snap-align: start; flex: 0 0 100%;
  background: var(--paper); border: 1px solid var(--line-soft);
  display: grid; grid-template-columns: 1fr; grid-template-rows: auto 1fr; min-height: 420px;
}
.news-card-media {
  position: relative; overflow: hidden;
  min-height: 240px; display: flex; align-items: flex-end; padding: 2rem;
  color: var(--bg); font-family: var(--serif); font-size: 1.1rem; font-style: italic;
}
.news-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.news-card-body { padding: 2.4rem clamp(1.5rem, 4vw, 3.2rem); display: flex; flex-direction: column; justify-content: center; }
.news-tag { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.news-card h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-top: .8rem; max-width: 24ch; }
.news-card p { color: var(--ink-mute); font-size: 1.02rem; margin-top: 1.1rem; max-width: 46ch; }

@media (min-width: 780px) {
  .news-card { grid-template-columns: 1fr 1.2fr; grid-template-rows: 1fr; min-height: 560px; }
}

.news-controls { display: flex; align-items: center; justify-content: center; gap: 1.4rem; margin-top: 1.6rem; }
.news-arrow {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: background .3s var(--ease-out), border-color .3s var(--ease-out), transform .3s var(--ease-out);
}
.news-arrow:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); transform: scale(1.06); }
.news-dots { display: flex; gap: .5rem; }
.news-dots button { width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: background .3s var(--ease-out), width .3s var(--ease-out); }
.news-dots button.is-active { background: var(--accent); width: 22px; border-radius: 5px; }

/* =============================================================
   9. Teasers (Equipo / Autores) — row of cards, split head
   ============================================================= */
.teaser-box { background: var(--bg-2); border-radius: 26px; padding: clamp(2rem, 5vw, 3.2rem); }
.teaser-row { display: grid; gap: 1.4rem; grid-template-columns: repeat(2, 1fr); }
.teaser-card { display: block; }
.teaser-card .avatar-block {
  aspect-ratio: 3/3.6; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  color: var(--bg); font-family: var(--serif); font-weight: 600; font-size: 1.7rem; overflow: hidden;
  transition: transform .4s var(--ease-out);
}
.teaser-card .avatar-block img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
.teaser-card:hover .avatar-block { transform: translateY(-4px); }
.teaser-card h3 { font-size: 1rem; margin-top: .9rem; font-family: var(--sans); font-weight: 600; }
.teaser-card .role, .teaser-card .book { font-size: .86rem; color: var(--ink-mute); margin-top: .15rem; }
.teaser-card .book em { font-style: italic; color: var(--ink-soft); }

@media (min-width: 640px) { .teaser-row { grid-template-columns: repeat(4, 1fr); gap: 1.6rem; } }
@media (min-width: 640px) { .teaser-row--3 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 639px) {
  .teaser-row--3 { grid-template-columns: 1fr; }
  .teaser-row--3 .teaser-card:nth-child(n+2) { display: none; }
}

/* =============================================================
   10. Final CTA band
   ============================================================= */
.cta-band { background: var(--ink); color: var(--bg); border-radius: 28px; text-align: center; }
.cta-band-inner { padding: clamp(3rem, 7vw, 5rem) 1.5rem; }
.cta-band h2 { color: var(--bg); font-size: clamp(1.9rem, 4vw, 2.7rem); max-width: 34ch; margin-inline: auto; }
.cta-band .cta-band-sub { margin-top: 1rem; font-weight: 400; font-size: 1.25rem; color: var(--bg); opacity: .85; max-width: 40ch; margin-inline: auto; }
.cta-band .btn { margin-top: 2rem; }

/* =============================================================
   11. Footer
   ============================================================= */
.site-footer { border-top: 1px solid var(--line); margin-top: 2rem; }
.footer-inner { padding-block: 1.8rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.4rem 2rem; }
.footer-brand { display: flex; align-items: center; gap: .7rem; }
.footer-brand img { height: 36px; width: auto; }
.footer-brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.footer-brand-name { font-family: var(--serif); font-size: 1rem; font-weight: 600; color: var(--ink); }
.footer-brand-copy { font-size: .76rem; color: var(--ink-mute); }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.2rem 1.6rem; font-size: .92rem; color: var(--ink-mute); }
.footer-links a:hover { color: var(--accent); }
.footer-links a { white-space: nowrap; }

@media (max-width: 719px) {
  .footer-links, .footer-contact { display: none; }
}
.footer-contact { padding: .6rem 1.3rem; font-size: .88rem; }

/* =============================================================
   12. Page hero (secondary pages)
   ============================================================= */
.page-hero { padding-block: clamp(2.8rem, 6vw, 4.5rem) clamp(1.5rem, 3vw, 2.5rem); }
.page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); margin-top: 1rem; max-width: 20ch; }
.page-hero .lede { margin-top: 1.1rem; font-size: 1.08rem; }

/* =============================================================
   13. Equipo grid
   ============================================================= */
.team-grid { display: grid; gap: 6.5rem 3.6rem; grid-template-columns: 1fr; }
.team-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1.3rem; text-align: left;
}
.team-avatar-frame {
  flex: 0 0 260px; width: 260px; height: 260px; border-radius: 16px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 1.6rem; font-weight: 600; color: var(--bg);
}
.team-avatar-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
.team-maese { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.team-card h3 { font-size: 1.35rem; margin-top: .3rem; }
.team-card .role { color: var(--ink-mute); font-size: .9rem; margin-top: .15rem; }
.team-card p.bio { margin-top: 1rem; color: var(--ink-soft); font-size: .95rem; max-width: 46ch; }
.team-card .motto { margin-top: 1rem; font-style: normal; font-weight: 600; color: var(--accent); font-size: .95rem; }

@media (min-width: 720px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 540px) and (max-width: 719px) { .team-avatar-frame { flex-basis: 150px; width: 150px; height: 150px; } }

/* =============================================================
   14. Autores grid
   ============================================================= */
.authors-grid { display: grid; gap: 4.5rem 1.3rem; grid-template-columns: repeat(2, 1fr); }
.author-card { display: block; text-align: left; }
.author-photo { aspect-ratio: 3/3.6; border-radius: 16px; display: flex; align-items: center; justify-content: center; color: var(--bg); font-family: var(--serif); font-weight: 600; font-size: 1.8rem; overflow: hidden; position: relative; transition: transform .4s var(--ease-out); }
.author-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; filter: grayscale(20%) saturate(90%); }
.author-photo::after { content: ""; position: absolute; inset: 0; background: var(--accent); mix-blend-mode: color; opacity: .25; pointer-events: none; }
.author-card:hover .author-photo { transform: scale(1.03); }
.author-card h3 { font-size: 1rem; margin-top: .8rem; font-family: var(--sans); font-weight: 600; }
.author-card .book { font-size: .86rem; color: var(--ink-mute); margin-top: .15rem; }
.author-card .book em { font-style: italic; color: var(--ink-soft); }

@media (min-width: 640px) { .authors-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .authors-grid { grid-template-columns: repeat(4, 1fr); } }

/* =============================================================
   15. Ficha de autor
   ============================================================= */
.author-detail { display: grid; gap: 2.5rem; }
.author-detail-photo { aspect-ratio: 4/4.6; border-radius: 22px; display: flex; align-items: center; justify-content: center; color: var(--bg); font-family: var(--serif); font-size: 3rem; font-weight: 600; overflow: hidden; position: relative; }
.author-detail-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; filter: grayscale(20%) saturate(90%); }
.author-detail-photo::after { content: ""; position: absolute; inset: 0; background: var(--accent); mix-blend-mode: color; opacity: .25; pointer-events: none; }
.author-detail-meta .eyebrow { display: block; margin-bottom: .6rem; }
.author-detail h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.author-detail .bio { margin-top: 1.3rem; color: var(--ink-soft); max-width: 60ch; }
.book-block { margin-top: 2.4rem; padding-top: 2.4rem; border-top: 1px solid var(--line); display: grid; gap: 1.6rem; }
.book-cover { aspect-ratio: 3/4.4; border-radius: 14px; overflow: hidden; }
.book-cover img { width: 100%; height: 100%; object-fit: cover; }
.book-info .eyebrow { margin-bottom: .5rem; }
.book-info h2 { font-size: 1.5rem; }
.book-info .publisher { color: var(--ink-mute); font-size: .92rem; margin-top: .2rem; }
.book-info .quote { font-style: italic; color: var(--accent); font-family: var(--serif); font-size: 1.15rem; margin-top: 1.1rem; }
.book-info .synopsis { margin-top: 1rem; color: var(--ink-soft); }

.book-gallery-title { margin-top: 1.4rem; }
.book-gallery { margin-top: .8rem; display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.book-item .book-cover { aspect-ratio: 3/4.4; border-radius: 14px; overflow: hidden; }
.book-item .book-cover img { width: 100%; height: 100%; object-fit: cover; }
.book-item h3 { margin-top: .8rem; font-size: 1rem; font-family: var(--sans); font-weight: 600; color: var(--ink); }
.book-item .meta { font-size: .85rem; color: var(--ink-mute); margin-top: .2rem; }

@media (min-width: 780px) {
  .author-detail { grid-template-columns: 320px 1fr; }
  .book-block { grid-column: 1 / -1; grid-template-columns: 200px 1fr; align-items: start; }
  .book-gallery-title { grid-column: 1 / -1; }
  .book-gallery { grid-column: 1 / -1; max-width: calc(320px + 2.5rem + 60ch); }
}

/* =============================================================
   16. Servicios
   ============================================================= */
.service-block { display: grid; gap: 2rem; align-items: center; }
.service-block:nth-child(even) .service-figure { order: -1; }
.service-figure { border-radius: 24px; overflow: hidden; aspect-ratio: 4/3.2; }
.service-figure--square { aspect-ratio: 1/1; }
.service-figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.service-figure:hover img { transform: scale(1.04); }
.service-copy .eyebrow { display: block; margin-bottom: .7rem; }
.service-copy h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); }
.service-copy .lede { max-width: 50ch; }
@media (max-width: 719px) { .service-copy .lede { font-size: .98rem; } }
.service-list { margin-top: 1.4rem; display: grid; gap: .6rem; }
.service-list li { display: flex; gap: .7rem; color: var(--ink-soft); font-size: .96rem; }
.service-list li::before { content: "—"; color: var(--accent); flex-shrink: 0; }

.note-list { margin-top: 1.4rem; display: grid; gap: .6rem; }
.note-list li { display: flex; align-items: center; gap: .8rem; color: var(--ink-soft); font-size: .96rem; }
.note-list li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

.section--tight-top { padding-top: clamp(1.2rem, 2.5vw, 1.8rem); }
.service-copy .btn { margin-top: 1.8rem; }
.service-gap { height: clamp(3rem, 6vw, 5rem); }

@media (min-width: 860px) { .service-block { grid-template-columns: 1fr 1fr; gap: 3.5rem; } }

/* =============================================================
   16b. Blog
   ============================================================= */
.blog-grid { display: grid; gap: 2.4rem; }
.blog-card { display: grid; grid-template-columns: 1fr; border: 1px solid var(--line-soft); border-radius: 22px; overflow: hidden; background: var(--paper); }
.blog-card-media { position: relative; overflow: hidden; min-height: 220px; display: flex; align-items: flex-end; padding: 2rem; color: var(--bg); font-family: var(--serif); font-size: 1.1rem; font-style: italic; }
.blog-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: clamp(1.6rem, 3vw, 2.4rem); display: flex; flex-direction: column; justify-content: center; }
.blog-card-date { font-size: .82rem; color: var(--ink-mute); margin-top: .5rem; }
.blog-card h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin-top: .6rem; }
.blog-card p { color: var(--ink-mute); margin-top: .9rem; max-width: 56ch; }
@media (min-width: 780px) { .blog-card { grid-template-columns: 1fr 1.3fr; } .blog-card-media { min-height: 100%; } }

.article-meta { display: flex; align-items: center; gap: .8rem; color: var(--ink-mute); font-size: .9rem; margin-top: .6rem; }
.article-figure { border-radius: 22px; overflow: hidden; aspect-ratio: 16/8; margin: 2.4rem 0; }
.article-figure img { width: 100%; height: 100%; object-fit: cover; }
.article-body { max-width: 68ch; color: var(--ink-soft); font-size: 1.05rem; }
.article-body p { margin-top: 1.3rem; }
.article-body p:first-child { margin-top: 0; }
.article-body h2 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); color: var(--ink); margin-top: 2.4rem; }

/* =============================================================
   17. Formulario — Enviar manuscrito
   ============================================================= */
.requirements { display: grid; gap: 1.2rem; grid-template-columns: 1fr; margin-top: 1rem; }
.req-item { background: var(--paper); border: 1px solid var(--line-soft); border-radius: 18px; padding: 1.5rem; }
.req-item h3 { font-size: 1.02rem; font-family: var(--sans); font-weight: 600; }
.req-item p { margin-top: .5rem; color: var(--ink-mute); font-size: .92rem; }
@media (min-width: 720px) { .requirements { grid-template-columns: repeat(3, 1fr); } }

.form-wrap { background: var(--paper); border: 1px solid var(--line-soft); border-radius: 28px; padding: clamp(1.8rem, 5vw, 3.2rem); }
.form-grid { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
.field { display: flex; flex-direction: column; gap: .5rem; }
.field label { font-size: .88rem; font-weight: 600; }
.field .hint { font-size: .82rem; color: var(--ink-mute); font-weight: 400; }
.field input, .field select, .field textarea {
  font: inherit; font-size: .98rem; padding: .85rem 1rem; border-radius: 12px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  transition: border-color .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea { resize: vertical; min-height: 130px; }
.field-file {
  border: 1.5px dashed var(--line); border-radius: 14px; padding: 1.6rem; text-align: center;
  background: var(--bg); transition: border-color .3s var(--ease-out), background .3s var(--ease-out);
}
.field-file.is-drag { border-color: var(--accent); background: var(--accent-soft); }
.field-file input[type="file"] { margin-top: .8rem; width: 100%; font-size: .88rem; }
.field-file .filename { margin-top: .6rem; font-size: .85rem; color: var(--accent); font-weight: 600; }
.field-full { grid-column: 1 / -1; }
.form-foot { margin-top: 1.8rem; display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.form-note { font-size: .84rem; color: var(--ink-mute); }
.form-status { margin-top: 1.2rem; padding: 1rem 1.2rem; border-radius: 12px; background: var(--accent-soft); color: var(--accent); font-size: .92rem; display: none; }
.form-status.is-visible { display: block; }

@media (min-width: 720px) { .form-grid { grid-template-columns: 1fr 1fr; } }

/* =============================================================
   18. Credits page
   ============================================================= */
.credits-list { margin-top: 2rem; display: grid; gap: 1rem; max-width: 720px; }
.credits-list li { padding: 1rem 0; border-bottom: 1px solid var(--line-soft); font-size: .92rem; color: var(--ink-mute); }
.credits-list a { color: var(--accent); }

/* =============================================================
   20. Contacto
   ============================================================= */
.contact-info-item .eyebrow { display: block; margin-bottom: .5rem; }
.contact-info-item p, .contact-info-item a { color: var(--ink); font-size: 1.02rem; }

.contact-columns { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
.contact-info-col { display: grid; gap: 1.8rem; align-content: start; order: -1; }
@media (min-width: 860px) {
  .contact-columns { grid-template-columns: 1.4fr 1fr; align-items: start; }
  .contact-info-col { padding-top: clamp(1.8rem, 5vw, 3.2rem); order: 0; }
}

.faq-list { margin-top: 2rem; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); padding-block: 1.5rem; }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  cursor: pointer; list-style: none; font-family: var(--serif); font-size: 1.08rem; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; flex-shrink: 0; font-size: 1.3rem; line-height: 1; color: var(--accent);
  transition: transform .3s var(--ease-out);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin-top: 1rem; color: var(--ink-soft); max-width: 68ch; }

/* =============================================================
   19. Responsive base spacing
   ============================================================= */
@media (min-width: 540px) { .container { padding-inline: 2rem; } }
@media (min-width: 1280px) { .container { padding-inline: 2.5rem; } }

/* =============================================================
   21. Página de servicio (detalle)
   ============================================================= */
.eyebrow .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: .55em; vertical-align: middle; }

.svc-section { padding-block: clamp(2.2rem, 5vw, 3.6rem); }
.svc-section:first-of-type { padding-top: 0; }
.svc-head { margin-bottom: 1.5rem; }
.svc-head h2 { font-size: clamp(1.35rem, 2.6vw, 1.8rem); }
.svc-body { max-width: 66ch; color: var(--ink-soft); font-size: 1.05rem; }
.svc-body p { margin-top: 1.1rem; }
.svc-body p:first-child { margin-top: 0; }
.svc-note { margin-top: 1.6rem; font-weight: 600; color: var(--ink); }

.svc-intro { display: grid; gap: 2rem; }
.svc-intro-figure { position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 3/4; }
.svc-intro-figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 860px) {
  .svc-intro { grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: stretch; }
  .svc-intro-figure { aspect-ratio: auto; height: auto; min-height: 0; }
}

/* Tinted "es para ti" style card */
.persona-card { background: var(--accent-soft); border-radius: 24px; padding: clamp(1.8rem, 4vw, 2.6rem); }
.persona-list { margin-top: 1.4rem; display: grid; gap: 1rem; }
.persona-list li { display: flex; align-items: flex-start; gap: .9rem; color: var(--ink); font-weight: 600; font-size: .98rem; }
.persona-list li::before {
  content: "✓"; flex-shrink: 0; width: 1.6rem; height: 1.6rem; border-radius: 50%;
  background: var(--paper); color: var(--accent); font-size: .8rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; margin-top: .05rem;
}

.card-grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; margin-top: 1.4rem; }
.card-grid .req-item { display: flex; gap: .8rem; align-items: flex-start; }
.card-grid .req-item .icon { color: var(--accent); font-weight: 700; flex-shrink: 0; line-height: 1.5; }
.card-grid .req-item p { margin-top: 0; color: var(--ink-soft); font-size: .98rem; }
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .card-grid--3 { grid-template-columns: repeat(3, 1fr); } }

/* Closing band: headline + floating dark CTA card */
.finale-band { background: var(--ink); border-radius: 32px; padding: clamp(2.2rem, 6vw, 4rem); }
.finale-grid { display: grid; gap: 2.4rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .finale-grid { grid-template-columns: 1.1fr .9fr; gap: 3rem; } }
.finale-copy h2 { color: var(--bg); font-size: clamp(1.8rem, 3.6vw, 2.5rem); max-width: 16ch; }
.finale-copy p { color: var(--bg); opacity: .75; margin-top: 1.1rem; font-size: 1.08rem; max-width: 42ch; }
.finale-copy .finale-subtitle { font-weight: 500; opacity: .92; font-size: 1.25rem; }
.finale-card { background: rgba(251,248,243,.06); border: 1px solid rgba(251,248,243,.16); border-radius: 22px; padding: clamp(1.6rem, 4vw, 2.2rem); }
.finale-card .eyebrow { color: var(--bg); opacity: .6; }
.finale-card h3 { color: var(--bg); font-size: clamp(1.2rem, 2.4vw, 1.5rem); margin-top: .5rem; }
.finale-card .sub { display: block; color: var(--bg); opacity: .55; font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; margin-top: .4rem; }
.finale-checklist { margin-top: 1.5rem; display: grid; gap: .7rem; }
.finale-checklist li { display: flex; gap: .7rem; align-items: flex-start; color: var(--bg); font-size: .92rem; opacity: .92; }
.finale-checklist li::before { content: "✓"; color: var(--accent-soft); font-weight: 700; flex-shrink: 0; }
.finale-card .btn { margin-top: 1.7rem; width: fit-content; }
