/* Raúl Soruco – plantilla HTML estática
   Basada en el tema Bronx (WordPress) del sitio original.
   Tipografías: Josefin Sans (títulos), Open Sans (texto), EB Garamond (lectura de ensayos). */

/* Tipografías autoalojadas (SIL Open Font License, ver fonts/OFL-LICENSE.txt) */
@font-face { font-family: "Josefin Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/josefin-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Josefin Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/josefin-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Josefin Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/josefin-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/open-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/open-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/open-sans-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/eb-garamond-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/eb-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/eb-garamond-latin-400-italic.woff2") format("woff2"); }

:root {
  --black: #000;
  --ink: #131219;
  --text: #666;
  --muted: #999;
  --line: #e5e5e5;
  --accent: #990000;
  --nav: #ccc;
  --wrap: 1440px;
  --gutter: 50px;
  --head-h: 106px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: #fff; color: var(--text);
  font: 400 16px/1.6 "Open Sans", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, h6 {
  font-family: "Josefin Sans", "Helvetica Neue", Arial, sans-serif;
  font-weight: 600; color: var(--ink); letter-spacing: -0.04em; line-height: 1.1; margin: 0 0 .5em;
}
.row { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 864px; margin: 0 auto; padding: 0 30px; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: var(--black);
  height: var(--head-h); transition: height .25s ease;
}
.site-header.is-scrolled { height: 64px; }
.site-header .row { height: 100%; display: flex; align-items: center; justify-content: space-between; max-width: none; }
.logo img { max-height: 55px; width: auto; }
.main-nav { position: absolute; left: 50%; transform: translateX(-50%); }
.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; align-items: center; }
.main-nav li { position: relative; }
.main-nav > ul > li > a {
  display: block; color: #fff; font-size: 12px; font-weight: 600; text-transform: uppercase; line-height: 30px;
  white-space: nowrap; transition: color .2s;
}
.main-nav > ul > li > a:hover, .main-nav > ul > li.is-active > a { color: var(--nav); }
.main-nav > ul > li.is-active > a { box-shadow: inset 0 -1px 0 #fff; }
.caret { display: inline-block; width: 5px; height: 5px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); margin-left: 4px; }
.main-nav .lang img { width: 16px; height: 11px; }
.sub-menu {
  list-style: none; margin: 0; padding: 14px 0; position: absolute; top: 100%; left: -20px; min-width: 240px;
  background: #000; opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .2s ease;
}
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sub-menu a { display: block; padding: 6px 20px; color: #bbb; font-size: 13px; }
.sub-menu a:hover { color: #fff; }
.menu-toggle { display: none; background: none; border: 0; width: 34px; height: 34px; padding: 6px; cursor: pointer; }
.menu-toggle span { display: block; height: 2px; background: #fff; margin: 5px 0; transition: .2s; }

/* ---------------------------------------------------------------- shared blocks */
.section { padding: 30px 0; }
.hero img { width: 100%; max-height: 750px; object-fit: cover; }
.separator { display: flex; align-items: center; gap: 22px; margin: 30px 0 20px; }
.separator h2 { font-size: 32px; margin: 0; white-space: nowrap; }
.separator .line { flex: 1; height: 0; border-top: 2px solid var(--accent); }

.page-band { background: var(--black); padding: 85px 30px 100px; text-align: center; }
.page-band h1 { color: var(--nav); font-size: clamp(44px, 6.2vw, 88px); line-height: 1; margin: 0; }

/* ---------------------------------------------------------------- home tiles */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.cat-tile { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: #111; }
.cat-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.cat-tile:hover img { transform: scale(1.05); }
.cat-label {
  position: absolute; top: 30px; left: 0; background: #fff; color: var(--ink);
  font-size: 12px; font-weight: 600; text-transform: uppercase; padding: 17px 22px; line-height: 1;
}

/* ---------------------------------------------------------------- work grid */
.cat-nav { border-bottom: 1px solid #eee; }
.cat-nav ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; }
.cat-nav a { display: block; padding: 26px 26px; font-size: 13px; font-weight: 600; text-transform: uppercase; color: var(--ink); position: relative; }
.cat-nav a::after { content: ""; position: absolute; left: 26px; right: 26px; bottom: 18px; height: 1px; background: var(--ink); transform: scaleX(0); transition: transform .25s; }
.cat-nav a:hover::after, .cat-nav .is-active a::after { transform: scaleX(1); }
.shop-bar { display: flex; justify-content: space-between; align-items: center; margin: 20px 0 28px; font-size: 14px; }
.crumb { color: var(--ink); }
.crumb strong { font-weight: 600; }
.count { color: var(--muted); }

.work-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 28px; }
.work-link { display: block; text-align: center; }
.work-thumb { position: relative; margin: 0 0 22px; aspect-ratio: 1; overflow: hidden; background: #f4f4f4; }
.work-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, opacity .3s; }
.work-link:hover .work-thumb img { transform: scale(1.04); }
.work-thumb::after {
  content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.0) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34' fill='none' stroke='white' stroke-width='1.5'%3E%3Ccircle cx='15' cy='15' r='10'/%3E%3Cpath d='M22.5 22.5 31 31M15 10v10M10 15h10'/%3E%3C/svg%3E") center no-repeat;
  background-size: 0; transition: background-color .3s, background-size .3s;
}
.work-link:hover .work-thumb::after { background-color: rgba(0,0,0,.25); background-size: 34px; }
.badge {
  position: absolute; z-index: 2; top: 14px; left: 14px; background: rgba(0,0,0,.7); color: #fff;
  font-size: 10px; font-weight: 600; text-transform: uppercase; padding: 5px 8px; letter-spacing: .04em;
}
.work-title { font-size: 26px; line-height: 1.05; margin: 0 0 6px; }
.work-meta { font-size: 13px; line-height: 1.5; margin: 0; color: var(--text); padding: 0 6px; }

/* ---------------------------------------------------------------- contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: start; }
.contact-social { padding-top: 30px; }
.contact-social p { font-size: 15px; margin: 0 0 14px; }
.social { display: flex; gap: 30px; }
.contact-form { background: #ececec; padding: 48px 48px 40px; border-top: 3px solid var(--accent); }
.contact-form > p {
  font-family: "Josefin Sans", "Helvetica Neue", Arial, sans-serif; font-weight: 600; letter-spacing: -0.03em;
  font-size: 27px; line-height: 1.2; color: var(--ink); margin: 0 0 30px;
}
.contact-form > p::after { content: ""; display: block; width: 42px; height: 2px; background: var(--accent); margin-top: 16px; }
.form { width: 100%; }
.form label {
  display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em;
  color: var(--ink); margin-bottom: 22px;
}
.form input, .form textarea {
  display: block; width: 100%; margin-top: 9px; border: 1px solid #d4d4d4; background: #fff; padding: 13px 15px;
  font: 15px/1.5 "Open Sans", sans-serif; color: var(--ink); border-radius: 2px;
  transition: border-color .2s, box-shadow .2s;
}
.form textarea { height: 190px; resize: vertical; }
.form input:hover, .form textarea:hover { border-color: #b8b8b8; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(153,0,0,.12); }
.form .hp { position: absolute; left: -9999px; }
.btn {
  display: inline-block; border: 0; background: var(--accent); color: #fff; cursor: pointer; border-radius: 2px;
  font: 600 12px "Open Sans", sans-serif; text-transform: uppercase; letter-spacing: .12em; padding: 16px 56px;
  transition: background .2s, transform .1s;
}
.btn:hover { background: #7a0000; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: wait; }
.form-status { margin: 20px 0 0; font-size: 14px; line-height: 1.5; }
.form-status:empty { display: none; }
/* éxito: verde sobre blanco */
.form-status:not(:empty) { background: #fff; color: #1e7d32; border-left: 4px solid #2e9e44; padding: 13px 16px; font-weight: 600; }
/* error: rojo sobre blanco */
.form-status.err { color: var(--accent); border-left-color: var(--accent); }
/* mientras se envía: neutro */
.form:has(.btn:disabled) .form-status { color: var(--text); border-left-color: #ccc; font-weight: 400; }

/* ---------------------------------------------------------------- footer */
.site-footer { border-top: 1px solid #000; padding: 40px 0; text-align: center; margin-top: 40px; }
.site-footer p { margin: 0; font-size: 12px; color: var(--ink); }
.home .site-footer { margin-top: 0; }

/* ---------------------------------------------------------------- CV */
.cv { padding-top: 0; }
.cv-photo { margin: 0 0 30px; }
.cv-photo img { width: 100%; }
.cv-title { font-size: 48px; margin: 10px 0 18px; }
.cv-intro p { margin: 0 0 6px; font-size: 15px; }
.cv-sec { margin-top: 34px; }
.cv-sec h3 { font-size: 34px; margin: 0 0 16px; }
.cv-rows, .cv-list { list-style: none; margin: 0; padding: 0; }
.cv-rows li { display: grid; grid-template-columns: 92px 1fr; gap: 14px; padding: 9px 0; border-bottom: 1px solid #f0f0f0; font-size: 14px; line-height: 1.6; }
.cv-rows .yr { font-weight: 600; color: var(--ink); }
.cv-list li { font-size: 14px; padding: 6px 0 6px 18px; position: relative; }
.cv-list li::before { content: ""; position: absolute; left: 0; top: 15px; width: 6px; height: 2px; background: var(--accent); }

/* ---------------------------------------------------------------- texts index */
.lead { max-width: 720px; margin: 10px auto 46px; text-align: center; font-size: 16px; }
.text-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.text-card { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.text-card a { display: flex; flex-direction: column; height: 100%; padding: 38px 34px 34px; transition: background .25s; }
.text-card a:hover { background: #faf8f6; }
.tc-year { font-size: 12px; font-weight: 600; color: var(--accent); letter-spacing: .08em; }
.text-card h2 { font-size: 27px; margin: 14px 0 10px; }
.tc-author { margin: 0 0 16px; font-size: 13px; font-weight: 600; text-transform: uppercase; color: var(--ink); letter-spacing: .04em; }
.tc-excerpt { font: 17px/1.55 "EB Garamond", Georgia, serif; color: #444; margin: 0 0 22px; flex: 1; }
.tc-more { font-size: 11px; font-weight: 600; text-transform: uppercase; color: var(--ink); letter-spacing: .06em; }

/* ---------------------------------------------------------------- essay */
.essay { padding: 0 0 40px; }
.essay-head { background: #000; color: #ccc; text-align: center; padding: 80px 30px 70px; }
.kicker { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 26px; color: #888; }
.kicker a { color: #ccc; border-bottom: 1px solid #555; }
.essay-head h1 { color: #e8e8e8; font-size: clamp(34px, 4.6vw, 60px); max-width: 980px; margin: 0 auto 26px; line-height: 1.04; }
.essay-author { font-family: "Josefin Sans", sans-serif; font-size: 20px; color: #fff; margin: 0; letter-spacing: .02em; }
.essay-author::before { content: ""; display: block; width: 40px; height: 2px; background: var(--accent); margin: 0 auto 20px; }
.essay-meta { font-size: 12px; color: #888; margin: 10px 0 0; }
.essay-body { max-width: 700px; margin: 0 auto; padding: 60px 24px 10px; font: 400 20.5px/1.68 "EB Garamond", Georgia, "Times New Roman", serif; color: #222; hyphens: auto; -webkit-hyphens: auto; }
.essay-body p { margin: 0 0 1.05em; text-align: justify; text-justify: inter-word; }
.essay-body p.first::first-letter {
  float: left; font-size: 4.1em; line-height: .82; padding: .07em .1em 0 0; color: var(--accent); font-weight: 500;
}
.essay-body em { font-style: italic; }
.lang-note { font: 14px "Open Sans", sans-serif !important; color: var(--muted); text-align: center !important; border: 1px solid var(--line); padding: 10px 14px; margin-bottom: 40px !important; }
.lang-note::first-letter { all: unset !important; }
.epigraph { margin: 0 0 2.4em auto; max-width: 440px; text-align: right; font-style: italic; font-size: .92em; line-height: 1.55; color: #444; }
.epigraph p { text-align: right !important; margin: 0 0 .35em !important; }
.epigraph p::first-letter { all: unset; }
.epigraph footer, .quote footer { font-style: normal; font-size: .8em; color: var(--muted); font-family: "Open Sans", sans-serif; }
.quote { margin: 1.6em 0 1.8em; padding: 0 0 0 1.4em; border-left: 2px solid var(--accent); font-size: .93em; color: #3a3a3a; }
.quote p { margin: 0 0 .4em !important; text-align: left !important; }
.essay-sub { font-size: 26px; margin: 2.2em 0 .8em; }
.biblio { list-style: none; padding: 0; margin: 0 0 1em; font-size: .86em; }
.biblio li { padding-left: 1.6em; text-indent: -1.6em; margin-bottom: .45em; }
.fn-ref { font: 600 11px "Open Sans", sans-serif; line-height: 0; }
.fn-ref a { color: var(--accent); padding: 0 1px; }
.essay-sign { text-align: right !important; font-style: italic; margin-top: 2em !important; }
.footnotes { border-top: 1px solid var(--line); margin-top: 2.6em; padding-top: 1.2em; font-size: .78em; line-height: 1.55; color: #555; }
.footnotes h2 { font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.footnotes ol { padding-left: 1.3em; margin: 0; }
.footnotes li { margin-bottom: .6em; }
.fn-back { color: var(--accent); }
.essay-source { margin-top: 2.6em; padding: 22px 24px; background: #f6f4f1; font: 14px/1.6 "Open Sans", sans-serif; color: #555; }
.essay-source p { margin: 0 0 8px !important; text-align: left !important; }
.essay-source p:last-child { margin: 0 !important; }
.essay-source p::first-letter { all: unset; }
.pdf-link { font-size: 11px; font-weight: 600; text-transform: uppercase; color: var(--ink); border-bottom: 1px solid var(--ink); letter-spacing: .05em; }
.related-carpeta { display: flex; align-items: center; gap: 18px; margin-top: 18px; padding: 14px; border: 1px solid var(--line); font-family: "Open Sans", sans-serif; transition: border-color .2s; }
.related-carpeta:hover { border-color: var(--ink); }
.related-carpeta img { width: 84px; height: 84px; object-fit: cover; }
.related-carpeta small { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; color: var(--muted); letter-spacing: .05em; }
.related-carpeta strong { font-family: "Josefin Sans", sans-serif; font-size: 24px; color: var(--ink); letter-spacing: -.03em; font-weight: 600; }
.essay-pn { max-width: 700px; margin: 40px auto 0; padding: 0 24px; display: flex; justify-content: space-between; gap: 20px; }
.essay-pn a { font-family: "Josefin Sans", sans-serif; font-size: 22px; color: var(--ink); font-weight: 600; letter-spacing: -.03em; }
.essay-pn small { display: block; font: 600 11px "Open Sans", sans-serif; text-transform: uppercase; color: var(--muted); letter-spacing: .06em; margin-bottom: 4px; }
.essay-pn .next { text-align: right; margin-left: auto; }
.essay-pn a:hover { color: var(--accent); }

/* ---------------------------------------------------------------- lightbox */
.lb { position: fixed; inset: 0; z-index: 100; background: #0b0b0b; color: #ddd; display: none; flex-direction: column; }
.lb.is-open { display: flex; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 16px 22px; font-size: 12px; color: #888; flex: none; }
.lb-counter { letter-spacing: .08em; }
.lb-close { background: none; border: 0; color: #fff; width: 40px; height: 40px; cursor: pointer; position: relative; }
.lb-close::before, .lb-close::after { content: ""; position: absolute; left: 9px; right: 9px; top: 19px; height: 1.5px; background: currentColor; transform: rotate(45deg); }
.lb-close::after { transform: rotate(-45deg); }
.lb-stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 80px; touch-action: pan-y; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 10px 40px rgba(0,0,0,.6); opacity: 0; transition: opacity .25s ease; user-select: none; -webkit-user-drag: none; }
.lb-stage img.is-loaded { opacity: 1; }
.lb-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; border: 0; background: none; cursor: pointer; color: #fff; opacity: .7; transition: opacity .2s; }
.lb-arrow:hover { opacity: 1; }
.lb-arrow::before { content: ""; position: absolute; top: 20px; width: 16px; height: 16px; border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; }
.lb-prev { left: 14px; } .lb-prev::before { left: 22px; transform: rotate(45deg); }
.lb-next { right: 14px; } .lb-next::before { right: 22px; transform: rotate(-135deg); }
.lb-arrow[hidden] { display: none; }
.lb-info { flex: none; text-align: center; padding: 16px 20px 6px; }
.lb-info h2 { color: #fff; font-size: 28px; margin: 0 0 4px; }
.lb-info .lb-cap { font-family: "Josefin Sans", sans-serif; color: #fff; font-size: 17px; margin: 0 0 4px; min-height: 0; }
.lb-info .lb-desc { font-size: 13px; color: #9a9a9a; margin: 0; }
.lb-info .lb-text { display: inline-block; margin-top: 8px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: #ddd; border-bottom: 1px solid #777; }
.lb-thumbs { flex: none; display: flex; gap: 10px; justify-content: center; padding: 16px 20px 22px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #444 transparent; }
.lb-thumbs[hidden] { display: none; }
.lb-thumbs button { flex: none; width: 74px; height: 74px; padding: 0; border: 0; background: #222; cursor: pointer; opacity: .45; outline: 2px solid transparent; outline-offset: 2px; transition: opacity .2s, outline-color .2s; }
.lb-thumbs button:hover { opacity: .85; }
.lb-thumbs button.is-active { opacity: 1; outline-color: #fff; }
.lb-thumbs img { width: 100%; height: 100%; object-fit: cover; }
body.lb-lock { overflow: hidden; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1180px) {
  .main-nav > ul { gap: 16px; }
}
@media (max-width: 1024px) {
  :root { --gutter: 30px; --head-h: 70px; }
  .site-header.is-scrolled { height: 60px; }
  .logo img { max-height: 40px; }
  .menu-toggle { display: block; }
  .main-nav { position: fixed; left: 0; right: 0; top: var(--head-h); bottom: 0; transform: none; background: #000; padding: 20px 30px 40px; overflow-y: auto; display: none; }
  .is-scrolled .main-nav { top: 60px; }
  .nav-open .main-nav { display: block; }
  .main-nav > ul { flex-direction: column; align-items: flex-start; gap: 0; }
  .main-nav > ul > li { width: 100%; border-bottom: 1px solid #1d1d1d; }
  .main-nav > ul > li > a { font-size: 15px; line-height: 52px; }
  .main-nav > ul > li.is-active > a { box-shadow: none; color: var(--nav); }
  .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; padding: 0 0 14px 14px; min-width: 0; }
  .nav-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .work-grid { grid-template-columns: repeat(3, 1fr); }
  .text-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  :root { --gutter: 10px; }
  .cat-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .cat-label { top: 14px; padding: 12px 14px; font-size: 11px; }
  .work-grid { grid-template-columns: 1fr 1fr; gap: 30px 18px; }
  .work-title { font-size: 21px; }
  .work-meta { font-size: 12px; }
  .separator h2 { font-size: 27px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 36px 22px 28px; }
  .contact-form > p { font-size: 23px; }
  .btn { width: 100%; }
  .page-band { padding: 50px 20px 60px; }
  .cat-nav a { padding: 16px 12px; font-size: 12px; }
  .cat-nav a::after { left: 12px; right: 12px; bottom: 10px; }
  .shop-bar { flex-direction: column; align-items: flex-start; gap: 4px; padding: 0 6px; }
  .text-grid { grid-template-columns: 1fr; }
  .narrow { padding: 0 16px; }
  .cv-rows li { grid-template-columns: 74px 1fr; font-size: 13.5px; }
  .cv-sec h3 { font-size: 28px; }
  .essay-head { padding: 54px 20px 50px; }
  .essay-body { font-size: 19px; padding-top: 40px; }
  .essay-body p { text-align: left; }
  .lb-stage { padding: 0 8px; }
  .lb-arrow { width: 44px; height: 44px; background: rgba(0,0,0,.35); }
  .lb-arrow::before { top: 14px; width: 13px; height: 13px; }
  .lb-prev { left: 4px; } .lb-prev::before { left: 17px; }
  .lb-next { right: 4px; } .lb-next::before { right: 17px; }
  .lb-thumbs { justify-content: flex-start; }
  .lb-thumbs button { width: 58px; height: 58px; }
  .lb-info h2 { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
.lb-close:focus:not(:focus-visible), .lb-thumbs button:focus:not(:focus-visible) { outline: none; }
.lang-label { display: none; }
@media (max-width: 1024px) {
  .main-nav .lang a { display: flex; align-items: center; gap: 10px; line-height: 52px; }
  .lang-label { display: inline; }
}

/* botón de consulta por WhatsApp (lightbox) */
.lb-wa { display: inline-flex; align-items: center; gap: 8px; margin: 12px 0 0 14px; padding: 9px 18px; border: 1px solid #25d366; color: #fff; background: rgba(37,211,102,.12); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; transition: background .2s; vertical-align: middle; }
.lb-wa:hover { background: #25d366; color: #000; }
.lb-wa[hidden] { display: none; }
.lb-text:not([hidden]) + .lb-wa { margin-left: 18px; }
.lb-text[hidden] + .lb-wa { margin-left: 0; }
