:root {
  --display: Georgia, "Times New Roman", serif;
  --sans:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --max: 1240px;
  --header: 82px;
  --radius: 18px;
  --speed: 0.25s;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
}
button,
input,
textarea {
  font: inherit;
}
.skip-link {
  position: fixed;
  z-index: 9999;
  left: 12px;
  top: -100px;
  background: #fff;
  color: #111;
  padding: 10px 16px;
}
.skip-link:focus {
  top: 12px;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header);
  background: var(--header-bg);
  color: var(--header-text);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  width: min(var(--max), calc(100% - 40px));
  height: 100%;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 26px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: max-content;
}
.brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}
.brand strong {
  font-family: var(--display);
  font-size: 1.18rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.brand small {
  display: block;
  font-size: 0.56rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.65;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.main-nav a {
  font-size: 0.7rem;
  letter-spacing: 0.045em;
  text-decoration: none;
  padding: 9px 10px;
  border-radius: 99px;
  white-space: nowrap;
  transition: var(--speed);
}
.main-nav a:hover,
.main-nav a.active {
  background: var(--accent);
  color: var(--accent-contrast);
}
.contact-link {
  border: 1px solid currentColor;
}
.menu-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  width: 44px;
  height: 42px;
  border-radius: 8px;
  font-size: 1.25rem;
}
main {
  min-height: calc(100vh - var(--header));
}
.container {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}
.section {
  padding: 88px 0;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}
.display {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: -0.025em;
  margin: 0;
}
.lead {
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  max-width: 720px;
  color: var(--muted);
}
.rule {
  height: 1px;
  background: var(--line);
  margin: 30px 0;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 19px;
  border-radius: var(--button-radius, 99px);
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-contrast);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: var(--speed);
}
.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px #0002;
}
.button.secondary {
  background: transparent;
  color: var(--text);
}
.home-hero {
  min-height: calc(100vh - var(--header));
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: stretch;
  background: var(--hero-bg);
}
.hero-copy {
  padding: clamp(52px, 8vw, 120px) max(24px, calc((100vw - var(--max)) / 2));
  padding-right: clamp(35px, 6vw, 90px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-copy h1 {
  font-size: clamp(3.25rem, 6vw, 6.8rem);
  max-width: 660px;
}
.hero-copy .lead {
  max-width: 590px;
  margin: 24px 0;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: nowrap;
}
/* Portada y consultas: contornos finos, fondo marfil y texto arcilla. */
.hero-actions .button,
.astrology-page .button {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid #d8b79c;
  border-radius: 6px;
  background: #fff1df;
  color: #8a4c37;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: lowercase;
  transition: background-color var(--speed), border-color var(--speed), color var(--speed);
}
.hero-actions .button:hover,
.astrology-page .button:hover {
  background: #f8e4cc;
  border-color: #bf9476;
  color: #8a4c37;
  transform: none;
  box-shadow: none;
}
.hero-actions .button:focus-visible,
.astrology-page .button:focus-visible {
  outline: 2px solid #8a4c37;
  outline-offset: 4px;
}
@media (max-width: 480px) {
  .hero-actions {
    flex-wrap: wrap;
  }
}
.hero-media {
  min-height: 650px;
  position: relative;
  overflow: hidden;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-media:after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-overlay, none);
  pointer-events: none;
}
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.pillar {
  padding: 24px;
  border-right: 1px solid var(--line);
  display: flex;
  gap: 12px;
}
.pillar:last-child {
  border-right: 0;
}
.pillar img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}
.pillar strong {
  display: block;
  font-family: var(--display);
  font-weight: 500;
}
.pillar span {
  font-size: 0.78rem;
  color: var(--muted);
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 38px;
}
.section-heading h2 {
  font-size: clamp(2.4rem, 5vw, 4.7rem);
}
.discipline-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.discipline-card {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #17130f;
  color: #fff;
  text-decoration: none;
}
.discipline-card img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.6s;
}
.discipline-card:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, #120c08db);
}
.discipline-card:hover img {
  transform: scale(1.045);
}
.discipline-card .card-copy {
  position: absolute;
  z-index: 1;
  inset: auto 25px 23px;
}
.card-kicker {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.72;
}
.discipline-card h3 {
  font: 400 2rem var(--display);
  margin: 4px 0;
}
.discipline-card p {
  font-size: 0.86rem;
  max-width: 32ch;
  margin: 0;
  opacity: 0.8;
}
.page-hero {
  padding: 76px 0 56px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.page-hero h1 {
  font-size: clamp(3.2rem, 7vw, 7.2rem);
  max-width: 1000px;
}
.page-hero .lead {
  margin: 24px 0 0;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.75fr);
  gap: clamp(35px, 7vw, 100px);
  align-items: start;
}
.portrait {
  position: sticky;
  top: calc(var(--header) + 24px);
  border-radius: var(--radius);
  overflow: hidden;
  background: transparent;
}
.portrait img {
  aspect-ratio: 4/5;
  width: 100%;
  object-fit: cover;
}
.portrait figcaption {
  font-size: 0.73rem;
  color: var(--muted);
  padding: 12px 15px;
}
.prose {
  font-size: 1.03rem;
  color: var(--muted);
}
.prose p {
  margin-top: 0;
  margin-bottom: 1.25em;
}
.quote {
  font: italic clamp(1.7rem, 3vw, 2.8rem)/1.3 var(--display);
  color: var(--text);
  border-left: 2px solid var(--accent);
  padding-left: 24px;
  margin: 46px 0;
}
.facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 35px;
}
.fact {
  background: var(--surface);
  padding: 22px;
}
.fact strong {
  font: 400 1.45rem var(--display);
  display: block;
}
.fact span {
  color: var(--muted);
  font-size: 0.82rem;
}
.timeline {
  max-width: 900px;
  margin: auto;
}
.timeline-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.timeline-item time {
  font: italic 1.1rem var(--display);
  color: var(--accent);
}
.timeline-item h3 {
  margin: 0 0 8px;
  font: 400 1.35rem var(--display);
}
.timeline-item p {
  margin: 0;
  color: var(--muted);
}
.work-grid,
.book-grid,
.class-grid,
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.work-card,
.book-card,
.class-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--speed);
}
.work-card:hover,
.book-card:hover,
.class-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}
.work-card button,
.book-card button {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  width: 100%;
  cursor: pointer;
}
.card-image {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--soft);
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
}
.work-card:hover .card-image img,
.book-card:hover .card-image img {
  transform: scale(1.04);
}
.card-body {
  padding: 20px;
}
.card-body h3 {
  font: 400 1.55rem var(--display);
  margin: 4px 0 8px;
}
.card-body p {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0;
}
.book-grid {
  grid-template-columns: repeat(4, 1fr);
}
.book-card .card-image {
  aspect-ratio: 3/4;
}
.book-card .card-image img {
  object-fit: cover;
}
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.filter {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  border-radius: 99px;
  padding: 8px 14px;
  font-size: 0.73rem;
  cursor: pointer;
}
.filter.active,
.filter:hover {
  background: var(--accent);
  color: var(--accent-contrast);
  border-color: var(--accent);
}
.feature-band {
  background: var(--bg);
  color: var(--text);
  padding: 70px 0;
}
.feature-band .eyebrow {
  color: var(--highlight);
}
.feature-band .display {
  color: #000;
  font-size: clamp(2.4rem, 5vw, 5rem);
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #ffffff26;
  margin-top: 36px;
}
.service {
  background: var(--dark);
  color: var(--dark-text);
  padding: 27px;
}
.service img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 18px;
}
.service h3 {
  font: 400 1.45rem var(--display);
  margin: 0 0 8px;
}
.service p {
  font-size: 0.86rem;
  opacity: 0.7;
  margin: 0;
}
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}
.tab {
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  padding: 12px 18px;
  cursor: pointer;
}
.tab.active {
  color: var(--text);
  border-color: var(--accent);
}
.class-grid {
  grid-template-columns: repeat(3, 1fr);
}
.class-card .card-image {
  aspect-ratio: 5/3;
}
.class-meta {
  font-size: 0.72rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.class-icon {
  width: 38px;
  height: 38px;
  object-fit: contain;
  float: right;
  margin-left: 10px;
}
.gallery-grid {
  grid-template-columns: repeat(4, 1fr);
}
.gallery-grid img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: var(--radius);
}
.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 70px;
}
.contact-list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}
.contact-list li {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.contact-list a {
  text-decoration: none;
}
.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.field {
  display: grid;
  gap: 6px;
}
.field.full {
  grid-column: 1/-1;
}
.field label {
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  padding: 13px;
  border-radius: 8px;
}
.field textarea {
  min-height: 140px;
  resize: vertical;
}
.form-message {
  grid-column: 1/-1;
  padding: 12px;
  background: var(--soft);
  color: var(--text);
  display: none;
}
.form-message.visible {
  display: block;
}
.modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  background: #080707cc;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 25px;
}
.modal.open {
  display: flex;
}
.modal-panel {
  width: min(860px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: var(--bg);
  color: var(--text);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  box-shadow: 0 30px 90px #0008;
}
.modal-panel img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
}
.modal-copy {
  padding: 35px;
}
.modal-copy h2 {
  font: 400 2.5rem var(--display);
  margin: 8px 0 14px;
}
.modal-copy p {
  color: var(--muted);
}
.modal-close {
  float: right;
  border: 1px solid var(--line);
  background: transparent;
  color: inherit;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  cursor: pointer;
}
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 60px 0 28px;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 50px;
}
.footer-grid h2 {
  font: 400 1.6rem var(--display);
  margin: 0 0 12px;
}
.footer-grid h3 {
  font-size: 0.71rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 7px 0 16px;
}
.footer-grid p,
.footer-grid li {
  font-size: 0.86rem;
  opacity: 0.72;
}
.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-grid a {
  text-decoration: none;
}
.footer-bottom {
  border-top: 1px solid currentColor;
  margin-top: 38px;
  padding-top: 20px;
  opacity: 0.5;
  font-size: 0.75rem;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
@media (max-width: 1050px) {
  .main-nav {
    position: fixed;
    inset: var(--header) 0 auto;
    background: var(--header-bg);
    padding: 18px 20px 25px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border-bottom: 1px solid var(--line);
  }
  .main-nav.open {
    display: flex;
  }
  .main-nav a {
    font-size: 0.88rem;
    padding: 10px 12px;
  }
  .menu-toggle {
    display: block;
  }
  .home-hero {
    grid-template-columns: 1fr;
  }
  .hero-copy {
    min-height: 610px;
  }
  .hero-media {
    min-height: 520px;
  }
  .discipline-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .book-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 760px) {
  :root {
    --header: 72px;
  }
  .nav-wrap,
  .container {
    width: min(100% - 28px, var(--max));
  }
  .brand small {
    display: none;
  }
  .section {
    padding: 62px 0;
  }
  .home-hero {
    display: flex;
    flex-direction: column;
  }
  .hero-copy {
    min-height: 560px;
    padding: 65px 22px 48px;
  }
  .hero-copy h1 {
    font-size: clamp(3.1rem, 15vw, 5rem);
  }
  .hero-media {
    min-height: 420px;
    order: -1;
  }
  .pillars {
    grid-template-columns: 1fr 1fr;
  }
  .pillar:nth-child(2) {
    border-right: 0;
  }
  .pillar:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .section-heading {
    align-items: start;
    flex-direction: column;
  }
  .discipline-grid,
  .work-grid,
  .class-grid {
    grid-template-columns: 1fr;
  }
  .discipline-card {
    min-height: 380px;
  }
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .portrait {
    position: relative;
    top: 0;
  }
  .book-grid {
    grid-template-columns: 1fr 1fr;
  }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
  .gallery-grid img {
    height: 210px;
  }
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .facts {
    grid-template-columns: 1fr;
  }
  .service-grid {
    grid-template-columns: 1fr;
  }
  .form {
    grid-template-columns: 1fr;
  }
  .field {
    grid-column: 1/-1;
  }
  .modal-panel {
    grid-template-columns: 1fr;
  }
  .modal-panel img {
    min-height: 260px;
    max-height: 330px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
  }
  .page-hero {
    padding-top: 55px;
  }
  .page-hero h1 {
    font-size: clamp(3rem, 14vw, 5.4rem);
  }
}
:root {
  --bg: #f4ede5;
  --surface: #fffaf4;
  --soft: #ead9c8;
  --text: #2d211b;
  --muted: #6c5b51;
  --line: #d8c5b3;
  --accent: #9b321d;
  --accent-contrast: #fff9f3;
  --highlight: #e2a85b;
  --dark: #331a13;
  --dark-text: #fff4e8;
  --header-bg: #f4ede5eb;
  --header-text: #2d211b;
  --footer-bg: #251713;
  --footer-text: #fff4e8;
  --hero-bg: #f4ede5;
  --radius: 4px;
  --button-radius: 4px;
  --shadow: 0 20px 45px #4b1e0e17;
}
body {
  background-image:
    radial-gradient(circle at 10% 12%, #fff9f1 0, transparent 24%),
    linear-gradient(115deg, transparent 70%, #d48f6522 100%);
}
.site-header {
  box-shadow: 0 3px 20px #4823120c;
}
.brand img {
  filter: saturate(0.72);
}
.brand strong {
  font-family: var(--sans);
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 0.13em;
}
.main-nav a {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.62rem;
}
.home-hero {
  position: relative;
  overflow: hidden;
}
.home-hero:before {
  content: "LENGUAJES CORPORALES · LENGUAJES SIMBÓLICOS";
  position: absolute;
  z-index: 2;
  left: 18px;
  bottom: 19px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  color: #fff9;
}
.hero-copy h1 {
  color: #7e2718;
}
.hero-media {
  margin: 34px 34px 34px 0;
  box-shadow: none;
  min-height: 590px;
}
.hero-media img {
  object-position: 52% 35%;
}
.page-hero {
  background: var(--bg);
}
.page-hero .display {
  color: #7d2c1c;
}
.discipline-card:nth-child(2n) {
  transform: translateY(20px);
}
.discipline-card:hover {
  transform: translateY(-4px);
}
.discipline-card:nth-child(2n):hover {
  transform: translateY(14px);
}
.feature-band {
  background: var(--bg);
}
.feature-band .button.secondary {
  color: var(--text);
  border-color: var(--accent);
}
.card-kicker,
.timeline-item time {
  color: #a84126;
}
.work-card,
.book-card,
.class-card {
  box-shadow: 5px 5px 0 #d7bdab;
}
.site-footer {
  background-image: linear-gradient(135deg, #211411, #3d1d16);
}
@media (max-width: 760px) {
  .hero-media {
    margin: 0;
    box-shadow: none;
    order: -1;
    min-height: 320px;
  }
  .hero-copy {
    min-height: 0;
    padding: 48px 22px 56px;
  }
  .home-hero:before {
    display: none;
  }
  .discipline-card:nth-child(2n) {
    transform: none;
  }
}

/* Sitio dinámico */
.menu-toggle {
  padding: 10px;
  align-content: center;
}
.menu-toggle span {
  display: block;
  width: 21px;
  height: 2px;
  background: currentColor;
  margin: 4px auto;
  transition: 0.2s;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}
.split-title,
.contact-title {
  font-size: clamp(2.6rem, 5vw, 5rem);
  margin-bottom: 25px;
}
.prose blockquote {
  font: italic clamp(1.7rem, 3vw, 2.8rem)/1.3 var(--display);
  color: var(--text);
  border-left: 2px solid var(--accent);
  padding-left: 24px;
  margin: 46px 0;
}
.prose img {
  height: auto;
  border-radius: var(--radius);
  margin: 28px auto;
}
.rich-content {
  max-width: 820px;
  margin: auto;
}
.section-tight {
  padding-top: 0;
}
.gallery-grid figure {
  margin: 0;
  position: relative;
}
.gallery-grid figcaption {
  font-size: 0.74rem;
  color: var(--muted);
  padding-top: 7px;
}
.discipline-card .card-copy div,
.card-body div {
  font-size: 0.88rem;
}
.discipline-card .card-copy p {
  margin: 0;
}
.service p,
.timeline-item p {
  margin: 0;
}
.modal-text p:first-child {
  margin-top: 0;
}
.modal[aria-hidden="false"] {
  display: flex;
}
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.post-card {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 5px 5px 0 #d7bdab;
  transition: var(--speed);
}
.post-card:hover {
  transform: translateY(-5px);
}
.post-card > a {
  text-decoration: none;
  display: block;
  height: 100%;
}
.post-card .card-image {
  aspect-ratio: 16/10;
}
.post-card time {
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.post-card h2 {
  font: 400 1.75rem var(--display);
  margin: 8px 0;
}
.read-more {
  display: inline-block;
  margin-top: 18px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.empty-state {
  grid-column: 1/-1;
  padding: 65px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.empty-state .display {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
}
.post-hero {
  padding: 92px 0 70px;
  background: var(--bg);
}
.post-hero h1 {
  font-size: clamp(3.2rem, 7vw, 6.8rem);
  max-width: 1000px;
}
.post-cover {
  margin-top: 55px;
}
.post-cover img {
  width: 100%;
  max-height: 720px;
  object-fit: cover;
  box-shadow: 14px 14px 0 #c27b52;
}
.post-content {
  padding-top: 70px;
  padding-bottom: 95px;
  font-size: 1.12rem;
  max-width: 780px;
}
.post-content h2,
.post-content h3 {
  font-family: var(--display);
  font-weight: 400;
  color: var(--text);
  line-height: 1.15;
}
.post-content h2 {
  font-size: 2.5rem;
}
.post-content a {
  color: var(--accent);
}
.back-link {
  display: inline-block;
  margin-top: 30px;
  font-weight: 700;
}
.form-message {
  margin: 0;
}
.flash-error {
  padding: 12px;
  background: #f8d7da;
  color: #842029;
}
@media (max-width: 900px) {
  .post-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .post-grid {
    grid-template-columns: 1fr;
  }
  .empty-state {
    padding: 35px 25px;
  }
  .post-hero {
    padding: 58px 0 45px;
  }
  .post-content {
    padding-top: 45px;
  }
  .gallery-grid figcaption {
    display: none;
  }
}

/* Trayectorias desplegables y archivo fotográfico de obras y libros. */
.trajectory-disclosure {
  margin-top: 30px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 5px 5px 0 #d7bdab;
}
.trajectory-disclosure summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  color: var(--text);
  font-family: var(--display);
  font-size: 1.35rem;
  cursor: pointer;
  list-style: none;
}
.trajectory-disclosure summary::-webkit-details-marker {
  display: none;
}
.trajectory-disclosure summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.trajectory-icon {
  width: 28px;
  height: 28px;
  position: relative;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.trajectory-icon:before,
.trajectory-icon:after {
  content: "";
  position: absolute;
  left: 7px;
  right: 7px;
  top: 12px;
  height: 1px;
  background: var(--accent);
  transition: transform 0.2s;
}
.trajectory-icon:after {
  transform: rotate(90deg);
}
.trajectory-disclosure[open] .trajectory-icon:after {
  transform: rotate(0);
}
.trajectory-content {
  max-width: none;
  padding: 4px 24px 25px;
  border-top: 1px solid var(--line);
  font-size: 0.91rem;
}
.trajectory-content > ol {
  padding-left: 1.35rem;
  margin: 18px 0 0;
}
.trajectory-content li {
  padding: 0 0 12px 5px;
}
.trajectory-content li::marker {
  color: var(--accent);
}
.trajectory-content h3 {
  margin: 28px 0 10px;
  font: 400 1.45rem var(--display);
  color: var(--text);
}
.trajectory-content a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* Danza conserva las filas por año y comparte la tipografía y paleta de poesía. */
.dance-year-entry {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 14px;
  padding: 18px 0;
}
.dance-year-label h3 {
  margin: 0;
  font: inherit;
  color: inherit;
}
.dance-year-copy {
  min-width: 0;
}
.dance-year-copy p:last-child {
  margin-bottom: 0;
}
.dance-year-copy a:hover {
  text-decoration-thickness: 2px;
}
.dance-year-copy a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.work-card,
.book-card {
  scroll-margin-top: calc(var(--header) + 24px);
}
@media (max-width: 760px) {
  .dance-year-entry {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 16px 0;
  }
}
.work-card .card-body,
.book-card .card-body {
  min-height: 142px;
}
.work-card button,
.book-card button {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.work-card .card-body,
.book-card .card-body {
  width: 100%;
  text-align: left;
}
.modal-panel {
  width: min(1040px, 100%);
}
.modal-panel > .modal-image {
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
}
.modal-gallery {
  grid-column: 1/-1;
  padding: 0 35px 35px;
}
.modal-gallery-title {
  margin: 0 0 16px;
  font: 400 1.7rem var(--display);
}
.modal-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.modal-gallery-grid figure {
  margin: 0;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--soft);
}
.modal-gallery-grid img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  object-fit: cover;
}
.modal-text h4,
.modal-text h5 {
  margin: 22px 0 8px;
  color: var(--text);
  font: 400 1.25rem var(--display);
}
.modal-text p {
  line-height: 1.65;
}
@media (max-width: 760px) {
  .trajectory-disclosure {
    margin-top: 23px;
  }
  .trajectory-disclosure summary {
    padding: 16px;
    font-size: 1.15rem;
  }
  .trajectory-content {
    padding: 4px 17px 20px;
  }
  .modal-panel > .modal-image {
    min-height: 280px;
    max-height: 330px;
  }
  .modal-copy {
    padding: 24px;
  }
  .modal-gallery {
    padding: 0 24px 24px;
  }
  .modal-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .work-card .card-body,
  .book-card .card-body {
    min-height: 0;
  }
}

/* Navbar original: Bootstrap 5.1 como base, con la paleta y tipografía del sitio anterior. */
:root {
  --header: 62px;
}
body {
  padding-top: var(--header);
}
.site-header {
  position: static;
  height: 0;
  background: transparent;
  color: inherit;
  border: 0;
  backdrop-filter: none;
}
.site-header .navbar {
  min-height: var(--header);
  padding: 0.5rem 1rem;
  background: #ec9a5b !important;
  color: #fff;
  box-shadow: none;
}
.nav-wrap {
  width: 100%;
  max-width: none;
  height: auto;
  margin: 0;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-width: 0;
  margin-right: 3rem !important;
  color: #821309 !important;
  font-family: "Quicksand", sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
  white-space: nowrap;
}
.brand img {
  width: 27px;
  height: 27px;
  object-fit: contain;
  margin: 0 0.5rem;
}
.brand:hover,
.brand:focus {
  color: #821309 !important;
}
.main-nav {
  position: static;
  inset: auto;
  width: auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
}
.main-nav .navbar-nav {
  gap: 0;
}
.main-nav .nav-item {
  margin-left: 0.5rem;
}
.main-nav .nav-link {
  padding: 0.5rem;
  color: rgba(255, 255, 255, 0.6);
  font-family: Roboto, sans-serif;
  font-size: 18px;
  letter-spacing: normal;
  text-decoration: none;
  text-transform: lowercase;
  border-radius: 0;
  transition: color 0.15s ease-in-out;
}
.main-nav .nav-link:hover,
.main-nav .nav-link:focus {
  color: rgba(255, 255, 255, 0.9);
}
.main-nav .nav-link.active {
  color: #fff;
  background: transparent;
}
.site-header .navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.6);
}
.site-header .navbar-dark .navbar-nav .nav-link:hover,
.site-header .navbar-dark .navbar-nav .nav-link:focus {
  color: rgba(255, 255, 255, 0.9);
}
.site-header .navbar-dark .navbar-nav .nav-link.active {
  color: #fff;
}
.menu-toggle {
  width: auto;
  height: auto;
  margin-left: auto;
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
}
.menu-toggle .navbar-toggler-icon {
  width: 1.5em;
  height: 1.5em;
  margin: 0;
  transition: none;
}
.menu-toggle[aria-expanded="true"] span.navbar-toggler-icon {
  transform: none;
  opacity: 1;
}
.modal {
  z-index: 1050;
}
@media (min-width: 1200px) {
  .main-nav .navbar-nav {
    flex-direction: row;
  }
}
@media (max-width: 1199.98px) {
  .menu-toggle {
    display: block;
  }
  .main-nav {
    flex-basis: 100%;
    padding-top: 0.5rem;
  }
  .main-nav.show {
    display: block;
  }
  .main-nav .navbar-nav {
    flex-direction: column;
  }
}

/* Colores y escala tipográfica tomados del sitio Bootstrap anterior. */
:root {
  --bg: #f0d2b0;
  --surface: #f8ebd5;
  --soft: #eed0a9;
  --text: #212529;
  --muted: #51433b;
  --line: #d2bba2;
  --accent: #d8782f;
  --accent-contrast: #fff;
  --highlight: #ff7300;
  --dark: #821309;
  --dark-text: #fff;
  --header-bg: #ec9a5b;
  --header-text: #fff;
  --footer-bg: var(--bg);
  --footer-text: #51433b;
  --hero-bg: var(--bg);
}
body {
  background-color: var(--bg);
  background-image: none;
  color: var(--text);
}
.hero-copy h1,
.page-hero .display,
.post-hero .display,
.section-heading .display,
.split-title,
.contact-title,
.empty-state .display {
  color: #821309;
}
.hero-copy h1,
.page-hero h1,
.post-hero h1 {
  font-size: clamp(2.25rem, 4.2vw, 3rem);
}
.section-heading h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
}
.split-title,
.contact-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
}
.feature-band .display {
  font-size: clamp(2rem, 3.5vw, 3rem);
}
.post-content h2 {
  font-size: 2rem;
}
.empty-state .display {
  font-size: clamp(2rem, 3.5vw, 3rem);
}
.site-footer {
  background-color: var(--footer-bg);
  background-image: none;
  color: var(--footer-text);
}
.site-footer .footer-grid h2 {
  color: #821309;
}
@media (max-width: 760px) {
  .hero-copy h1,
  .page-hero h1,
  .post-hero h1 {
    font-size: clamp(2.15rem, 9vw, 2.7rem);
  }
  .section-heading h2,
  .split-title,
  .contact-title {
    font-size: clamp(1.9rem, 8vw, 2.5rem);
  }
}

/* Contraste del texto del cuerpo sobre fondos claros. */
.prose {
  color: #433831;
}
.footer-grid p,
.footer-grid li,
.footer-bottom {
  opacity: 1;
}
.card-kicker {
  color: #fff;
  opacity: 1;
}
.timeline-item time {
  color: #7d2c1c;
}

/* Revisión editorial de los documentos: tipografía y fotografía completa. */
:root {
  --display: "Nunito", sans-serif;
  --sans: "Montserrat", sans-serif;
}
body,
.main-nav .nav-link {
  font-family: var(--sans);
}
h1,
h2,
h3,
h4,
.brand {
  font-family: var(--display);
}
.display,
.card-body h3,
.pillar strong {
  font-weight: 700;
}
.brand {
  font-family: var(--display);
  margin-right: 1.5rem !important;
}
.main-nav .nav-link {
  font-size: 0.95rem;
}
.page-hero h1 {
  text-transform: lowercase;
}
.main-nav .nav-link.active {
  text-decoration: underline;
  text-underline-offset: 6px;
}
.home-hero {
  min-height: 0;
  align-items: center;
}
.home-hero:before {
  content: none;
}
.hero-copy {
  min-height: 0;
  padding-block: 70px;
}
.hero-media {
  min-height: 0;
  margin: 34px 34px 34px 0;
  align-self: center;
}
.hero-media img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.hero-media:after {
  content: none;
}
.pillars-section {
  padding: 42px 0;
  background: var(--bg);
}
.pillars-section .section-heading h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}
.pillars {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
}
.pillar {
  align-items: center;
  padding: 24px 18px;
}
.pillar strong {
  font-size: 1.35rem;
  color: #713721;
}
.editorial-intro {
  white-space: pre-line;
}
.section-disclosure {
  padding: 0 0 20px;
}
.section-disclosure .trajectory-disclosure {
  margin-top: 0;
}
.section-disclosure:last-child {
  padding-bottom: 65px;
}
.rich-content {
  max-width: 850px;
}
.rich-content h3 {
  margin: 2em 0 1em;
  color: #821309;
}
.rich-content li {
  margin-bottom: 1em;
}
.poetry-social {
  margin-top: 24px;
}
.book-card .card-kicker,
.work-card .card-kicker {
  color: #713721;
}
@media (max-width: 1050px) {
  .hero-copy {
    padding: 48px 28px;
  }
  .hero-media {
    width: calc(100% - 56px);
    max-width: 780px;
    margin: 0 auto 36px;
    box-shadow: none;
  }
}
@media (max-width: 760px) {
  .hero-media {
    order: 0;
  }
  .pillars {
    grid-template-columns: 1fr;
  }
  .pillar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .pillar:last-child {
    border-bottom: 0;
  }
  .hero-copy {
    padding: 40px 22px 30px;
  }
  .hero-media {
    width: calc(100% - 44px);
  }
  .brand {
    font-size: 20px;
    margin-right: 0 !important;
  }
  .site-header .navbar {
    padding-inline: 4px;
  }
  .main-nav .nav-link {
    font-size: 1rem;
  }
  .section-disclosure {
    padding-bottom: 16px;
  }
}

/* Archivo visual: respetar el encuadre y el tamaño natural de cada original. */
.work-card .card-image,
.book-card .card-image {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  background: #f3e7d5;
}
.work-card .card-image img,
.book-card .card-image img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transform: none;
}
.work-card:hover .card-image img,
.book-card:hover .card-image img {
  transform: none;
}
.book-card .card-image {
  aspect-ratio: 3/4;
  padding: 18px;
}
.modal {
  padding: 24px;
  overscroll-behavior: contain;
}
.modal-panel {
  display: block;
  width: min(1180px, 100%);
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  border: 1px solid var(--line);
}
.modal-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.modal-header .modal-kicker {
  margin: 0;
  color: #713721;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.modal-close {
  float: none;
  flex: none;
  width: 40px;
  height: 40px;
  background: var(--surface);
  font-size: 1.6rem;
  line-height: 1;
}
.modal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 32px;
  padding: 24px;
}
.modal-media {
  min-width: 0;
  position: sticky;
  top: 90px;
}
.modal-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  padding: 18px;
  background: #e9dcc8;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.modal-stage .modal-image {
  width: auto;
  height: auto;
  min-height: 0;
  max-width: 100%;
  max-height: clamp(180px, calc(100vh - 410px), 580px);
  max-height: clamp(180px, calc(100dvh - 410px), 580px);
  object-fit: contain;
  margin: 0;
}
.modal-stage .modal-image[hidden],
.modal-media[hidden],
.modal-image-error[hidden],
.modal-gallery-grid[hidden] {
  display: none;
}
.modal-image-error {
  padding: 30px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}
.modal-copy {
  padding: 4px 4px 20px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.modal-copy h2 {
  font: 700 clamp(1.6rem, 3vw, 2.35rem)/1.15 var(--display);
  margin: 0 0 24px;
  color: #821309;
}
.modal-copy .prose {
  font-size: 0.95rem;
  line-height: 1.8;
}
.modal-copy .prose img {
  width: auto;
  height: auto;
  min-height: 0;
  max-width: 100%;
  max-height: none;
  object-fit: contain;
  margin: 20px auto;
}
.modal-image-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}
.modal-image-controls button {
  border: 1px solid #b59572;
  border-radius: 4px;
  background: var(--surface);
  color: #60331e;
  min-width: 42px;
  min-height: 42px;
  padding: 7px 11px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
}
.modal-image-controls button:disabled {
  opacity: 0.35;
  cursor: default;
}
.image-counter {
  font-size: 0.8rem;
  min-width: 42px;
  text-align: center;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.image-expand {
  margin-left: auto;
}
.image-variant-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin: 8px 0 14px;
  font-size: 0.73rem;
  color: var(--muted);
}
.image-variant-controls[hidden] {
  display: none;
}
.image-variant-toggle {
  padding: 6px 0;
  border: 0;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: #713721;
  cursor: pointer;
  min-height: 36px;
}
.modal-gallery-grid {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 5px 2px 12px;
  scrollbar-width: thin;
}
.modal-gallery-grid .image-thumbnail {
  flex: 0 0 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 82px;
  padding: 5px;
  border: 2px solid transparent;
  border-radius: 4px;
  background: var(--surface);
  cursor: pointer;
}
.modal-gallery-grid .image-thumbnail[aria-pressed="true"] {
  border-color: #821309;
  background: #fffaf3;
}
.modal-gallery-grid .image-thumbnail img {
  width: auto;
  height: auto;
  min-height: 0;
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  margin: 0;
}
.modal button:focus-visible {
  outline: 3px solid #821309;
  outline-offset: 3px;
}
.modal.image-expanded .modal-layout,
.modal-layout.without-images {
  grid-template-columns: minmax(0, 1fr);
}
.modal.image-expanded .modal-copy {
  display: none;
}
.modal.image-expanded .modal-media {
  position: static;
}
.modal.image-expanded .modal-stage {
  min-height: 0;
}
.modal.image-expanded .modal-image {
  max-height: calc(100vh - 300px);
  max-height: calc(100dvh - 300px);
}
@media (min-width: 761px) and (max-height: 650px) {
  .modal-media {
    position: static;
  }
}
@media (max-width: 760px) {
  .modal {
    padding: 10px;
  }
  .modal-panel {
    max-height: calc(100vh - 20px);
    max-height: calc(100dvh - 20px);
  }
  .modal-header {
    padding: 10px 12px;
  }
  .modal-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    padding: 16px;
  }
  .modal-media {
    position: static;
  }
  .modal-stage {
    min-height: 180px;
    padding: 12px;
  }
  .modal-stage .modal-image {
    max-height: 43vh;
    max-height: 43dvh;
  }
  .modal-copy {
    padding: 0 2px 12px;
  }
  .modal-copy h2 {
    margin-bottom: 18px;
  }
  .modal-gallery-grid .image-thumbnail {
    flex-basis: 58px;
    height: 72px;
  }
  .modal-image-controls {
    gap: 5px;
  }
  .modal-image-controls button {
    padding-inline: 9px;
  }
  .modal.image-expanded .modal-image {
    max-height: calc(100dvh - 270px);
  }
}

/* Approved Museum portrait: local to this editable presentation block. */
.modal-copy [data-editorial="nido-poesia-presentation"] {
  display: flow-root;
}

/* El taller: presentación y recorrido del espacio, antes de las prácticas. */
.workshop-hero {
  padding-block: 36px;
}
.workshop-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(220px, 20vw, 260px);
  grid-template-areas: "intro gallery" "history gallery";
  grid-template-rows: auto 1fr;
  align-items: start;
  gap: 24px clamp(32px, 6vw, 88px);
}
.workshop-intro.without-gallery {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "intro" "history";
}
.workshop-heading {
  grid-area: intro;
  min-width: 0;
}
.workshop-history {
  grid-area: history;
  min-width: 0;
}
.workshop-history .trajectory-disclosure {
  margin-top: 0;
}
.workshop-history summary {
  font-size: 1.15rem;
}
.workshop-gallery {
  grid-area: gallery;
  min-width: 0;
  width: 100%;
  margin: 0;
  align-self: start;
}
.workshop-stage {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
}
.workshop-track {
  overflow: hidden;
}
.workshop-slide {
  min-width: 0;
  aspect-ratio: 3 / 4;
  transition: transform 0.8s ease-in-out;
}
@media (prefers-reduced-motion: reduce) {
  .workshop-slide {
    transition: none;
  }
}
.workshop-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.workshop-hero + .section {
  padding-top: 36px;
}
.workshop-hero + .section .section-heading {
  margin-bottom: 24px;
}
.workshop-controls {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.workshop-controls[hidden] {
  display: none;
}
.workshop-controls button {
  pointer-events: auto;
  cursor: pointer;
}
.workshop-controls .carousel-control-prev,
.workshop-controls .carousel-control-next {
  width: 18%;
  min-width: 44px;
  opacity: 0.8;
}
.workshop-controls .carousel-control-prev:hover,
.workshop-controls .carousel-control-next:hover {
  opacity: 1;
}
.workshop-controls .carousel-control-prev-icon,
.workshop-controls .carousel-control-next-icon {
  filter: drop-shadow(0 1px 3px #000b);
}
.workshop-track:focus-visible,
.workshop-controls button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -4px;
}
@media (max-width: 760px) {
  .workshop-hero {
    padding-block: 28px;
  }
  .workshop-intro {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "intro" "gallery" "history";
    grid-template-rows: auto;
    gap: 24px;
  }
  .workshop-gallery {
    width: min(100%, 300px);
    justify-self: center;
  }
}
.modal-copy [data-editorial="nido-poesia-portrait"] {
  float: right;
  width: min(42%, 220px);
  margin: 0 0 16px 20px;
}
.modal-copy [data-editorial="nido-poesia-portrait"] img {
  display: block;
  width: 100%;
  margin: 0;
}

/* Astrología y tarot: estructura aprobada con los estilos compartidos del sitio. */
.astrology-page .container {
  width: min(1320px, calc(100% - 64px));
  max-width: none;
}
.astrology-page .page-hero {
  padding-block: 96px 64px;
}
.astrology-page .feature-band .display,
.astrology-page .service h3 {
  color: var(--dark);
}
.astrology-page .feature-band .display,
.astrology-page .split-title {
  font-size: clamp(1.65rem, 2.5vw, 2.25rem);
}
.astrology-page .feature-band {
  padding-block: 64px;
}
.astrology-page .service-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 36px;
  background: transparent;
}
.astrology-page .service {
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--muted);
}
.astrology-page .service img {
  width: 64px;
  height: 64px;
  margin-bottom: 12px;
}
.astrology-page .service p {
  opacity: 1;
}
.astrology-page .service-wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  column-gap: 32px;
  align-items: center;
}
.astrology-page .service-wide img {
  grid-column: 1;
  grid-row: 1 / 3;
  margin: 0;
}
.astrology-page .service-wide h3,
.astrology-page .service-wide > div {
  grid-column: 2;
}
.astrology-page .section {
  padding: 0;
}
.astrology-page .split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 60px);
  align-items: center;
  padding-block: 64px;
  border-top: 1px solid var(--line);
}
.astrology-page .prose {
  min-width: 0;
}
.astrology-page .split-title {
  margin-bottom: 26px;
}
.astrology-page .portrait {
  position: static;
  margin: 0;
  overflow: visible;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.astrology-page .portrait img {
  aspect-ratio: 1;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center 65%;
  border-radius: 4px;
}
.astrology-page .portrait figcaption {
  padding: 10px 0 0;
}
@media (max-width: 1099px) {
  .astrology-page .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .astrology-page .container {
    width: calc(100% - 32px);
  }
  .astrology-page .page-hero {
    padding-block: 40px 36px;
  }
  .astrology-page .feature-band {
    padding-block: 36px;
  }
  .astrology-page .split {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding-block: 36px;
  }
  .astrology-page .split .prose {
    order: 0;
  }
  .astrology-page .portrait {
    order: 1;
    width: min(100%, 520px);
    justify-self: center;
  }
  .astrology-page .split-title {
    margin-bottom: 22px;
  }
  .astrology-page .service img {
    width: 48px;
    height: 48px;
  }
  .astrology-page .service-wide {
    grid-template-columns: 48px minmax(0, 1fr);
    column-gap: 20px;
  }
}
@media (max-width: 540px) {
  .astrology-page .service-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin-top: 26px;
  }
  .astrology-page .service {
    padding: 22px;
  }
}
@media (max-width: 600px) {
  .modal-copy [data-editorial="nido-poesia-portrait"] {
    float: none;
    width: min(65%, 180px);
    margin: 0 auto 18px;
  }
}
