/* Carolina Lessa — Landing */

:root {
  --color-bg: #f7f4fb;
  --color-bg-alt: #efe8f7;
  --color-surface: #ffffff;
  --color-text: #2a2438;
  --color-text-muted: #5c5368;
  --color-accent: #7b5cb8;
  --color-accent-dark: #5a3d92;
  --color-lilac: #c4b5e0;
  --color-mint: #9ec9c3;
  --color-whatsapp: #25d366;
  --color-whatsapp-hover: #1ebe5a;
  --overlay-hero: linear-gradient(
    120deg,
    rgba(42, 36, 56, 0.75) 0%,
    rgba(90, 61, 146, 0.55) 45%,
    rgba(158, 201, 195, 0.35) 100%
  );
  --overlay-soft: linear-gradient(
    145deg,
    rgba(90, 61, 146, 0.42) 0%,
    rgba(196, 181, 224, 0.38) 50%,
    rgba(158, 201, 195, 0.35) 100%
  );
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-soft: 0 18px 50px rgba(42, 36, 56, 0.12);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --header-h: 80px;
  --transition: 0.25s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
}

a {
  color: var(--color-accent-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--color-accent);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-surface);
  color: var(--color-text);
  padding: 0.75rem 1rem;
  z-index: 1000;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid rgba(196, 181, 224, 0.45);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  width: min(1120px, 92vw);
  margin-inline: auto;
  padding-block: 0.35rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.brand:hover {
  color: inherit;
}

.brand__logo {
  height: calc(var(--header-h) - 14px);
  width: auto;
  max-width: min(200px, 28vw);
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
}

.brand__tag {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* Nav */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.nav-toggle__bar {
  display: block;
  height: 2px;
  width: 22px;
  background: var(--color-text);
  margin-inline: auto;
  transition: transform var(--transition), opacity var(--transition);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav__list {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__list a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-text);
}

.site-nav__list a:hover {
  color: var(--color-accent-dark);
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem 1.5rem 1.5rem;
    background: #ffffff;
    border-bottom: 1px solid rgba(196, 181, 224, 0.4);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition);
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav__list {
    flex-direction: column;
    gap: 0.5rem;
  }

  .site-nav__list a {
    display: block;
    padding: 0.5rem 0;
  }

  .site-nav .btn--small {
    margin-top: 0.5rem;
    text-align: center;
  }
}

body.nav-open {
  overflow: hidden;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition),
    transform 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--color-accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--color-accent-dark);
  color: #fff;
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.btn--whatsapp {
  background: var(--color-whatsapp);
  color: #fff;
}

.btn--whatsapp:hover {
  background: var(--color-whatsapp-hover);
  color: #fff;
}

.btn--small {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.btn--large {
  padding: 0.95rem 1.75rem;
  font-size: 1rem;
}

.btn--icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  padding: 0;
  border-radius: 50%;
}

.btn--icon .btn__wa-icon {
  display: block;
  flex-shrink: 0;
}

.link-wa {
  font-weight: 600;
  color: var(--color-accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link-wa:hover {
  color: var(--color-accent);
}

/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 820px);
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(2.5rem, 8vw, 5rem);
  color: #fff;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
}

.hero__slide.is-active {
  opacity: 1;
  z-index: 1;
}

.hero__slide picture,
.hero__slide img {
  width: 100%;
  height: 100%;
}

.hero__slide img {
  object-fit: cover;
  object-position: center;
}

.hero__slide--libro {
  background: #1a1524;
}

.hero__slide--libro .hero__slide-cover {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__slide--libro .hero__slide-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.5) saturate(0.92);
}

.hero__slide--libro .hero__slide-fore {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: min(4vw, 1.75rem) min(6vw, 3rem) min(4vw, 1.75rem) min(3vw, 1.25rem);
  pointer-events: none;
}

.hero__slide--libro .hero__slide-fore picture,
.hero__slide--libro .hero__slide-fore img {
  max-height: min(76vh, 700px);
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.hero__narrative {
  margin: 0.35rem 0 1.35rem;
  padding: 1rem 1.15rem 1.1rem;
  border: none;
  border-radius: var(--radius-md);
  max-width: 36rem;
  width: 100%;
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  font-style: normal;
  font-weight: 400;
  line-height: 1.55;
  text-align: left;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85), 0 0 1px rgba(0, 0, 0, 0.9);
  background: rgba(20, 16, 32, 0.52);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  transition: opacity 0.45s ease;
}

.hero__narrative--libro .hero__narrative-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.08rem, 2.35vw, 1.32rem);
}

.hero__narrative[hidden] {
  display: none;
}

.hero__narrative-text {
  margin: 0;
}

.hero__narrative--studio .hero__narrative-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.08rem, 2.35vw, 1.32rem);
  white-space: pre-line;
}

.hero__narrative-cite {
  margin: 0.75rem 0 0;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.03em;
  opacity: 0.95;
  color: rgba(255, 255, 255, 0.98);
  text-align: left;
}

.glossary-term {
  cursor: help;
  border-bottom: 1px dashed currentColor;
  text-decoration: none;
  font-style: inherit;
  font-weight: inherit;
  color: inherit;
}

.glossary-term:hover,
.glossary-term:focus-visible {
  border-bottom-style: solid;
  outline: none;
}

.section__title .glossary-term,
.section__lead .glossary-term {
  color: var(--color-accent-dark);
  border-bottom-color: var(--color-lilac);
}

.section__title .glossary-term:hover,
.section__lead .glossary-term:hover {
  color: var(--color-accent);
}

/* Modal LES */
.les-modal {
  max-width: min(36rem, 92vw);
  width: 100%;
  padding: 0;
  border: none;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: var(--shadow-soft);
}

.les-modal::backdrop {
  background: rgba(42, 36, 56, 0.55);
}

.les-modal__inner {
  position: relative;
  padding: 1.5rem 1.5rem 1.35rem;
}

.les-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-text-muted);
  border-radius: var(--radius-sm);
}

.les-modal__close:hover {
  color: var(--color-text);
  background: var(--color-bg-alt);
}

.les-modal__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 2rem 0.75rem 0;
  color: var(--color-accent-dark);
}

.les-modal__body {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text);
}

.les-modal__body p {
  margin: 0 0 0.85rem;
}

.les-modal__credit {
  margin: 1rem 0 0 !important;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-accent-dark);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--overlay-hero);
}

.hero__content {
  position: relative;
  z-index: 3;
  padding-top: calc(var(--header-h) + 2rem);
}

.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  margin: 0 0 0.75rem;
  opacity: 0.95;
}

.hero__title {
  font-size: clamp(2.6rem, 6vw, 4rem);
  margin: 0 0 0.75rem;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

.hero__subtitle {
  max-width: 36rem;
  margin: 0 0 1.75rem;
  font-size: 1.1rem;
  opacity: 0.95;
}

.hero__subtitle em {
  font-style: italic;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (max-width: 860px) {
  .hero {
    min-height: min(82svh, 700px);
    padding-bottom: 1.35rem;
  }

  .hero__content {
    padding-top: calc(var(--header-h) + min(36svh, 280px) + 0.65rem);
  }

  .hero__title {
    font-size: clamp(2.1rem, 8vw, 2.9rem);
    margin-bottom: 0.5rem;
  }

  .hero__subtitle {
    max-width: 31rem;
    margin-bottom: 1rem;
    font-size: 1rem;
  }

  .hero__narrative {
    margin-bottom: 0.95rem;
    padding: 0.8rem 0.9rem 0.9rem;
  }

  .hero__slide--libro .hero__slide-fore {
    justify-content: center;
    align-items: flex-start;
    padding: calc(var(--header-h) + 0.02rem) 0.75rem 0.55rem;
  }

  .hero__slide--libro .hero__slide-fore picture {
    width: fit-content;
    max-width: min(100%, 430px);
    display: block;
    padding: 0.35rem;
    border-radius: calc(var(--radius-md) + 4px);
    background: rgba(16, 14, 22, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.32);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }

  .hero__slide--libro .hero__slide-fore img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: min(50svh, 360px);
    border-radius: var(--radius-md);
    box-shadow: none;
  }

  /* Studio en mobile: misma foto de fondo y dentro de marco */
  .hero__slide--studio {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: calc(var(--header-h) + 0.02rem) 0.75rem 0.55rem;
    box-sizing: border-box;
    background:
      linear-gradient(rgba(26, 21, 36, 0.18), rgba(26, 21, 36, 0.18)),
      var(--studio-mobile-bg) center center / cover no-repeat;
  }

  .hero__slide--studio picture {
    width: fit-content;
    max-width: min(100%, 430px);
    height: auto;
    display: block;
    padding: 0.35rem;
    border-radius: calc(var(--radius-md) + 4px);
    background: rgba(16, 14, 22, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.32);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }

  .hero__slide--studio img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: min(50svh, 360px);
    object-fit: contain;
    object-position: center;
    border-radius: var(--radius-md);
  }
}

@media (max-width: 520px) {
  .hero {
    min-height: 100svh;
    padding-bottom: 1rem;
  }

  .hero__content {
    padding-top: calc(var(--header-h) + min(32svh, 235px) + 0.55rem);
  }

  .hero__eyebrow {
    margin-bottom: 0.45rem;
  }

  .hero__subtitle {
    margin-bottom: 0.85rem;
    font-size: 0.95rem;
  }

  .hero__narrative {
    max-width: 100%;
    margin-bottom: 0.75rem;
    padding: 0.7rem 0.75rem 0.8rem;
  }

  .hero__slide--libro .hero__slide-fore {
    padding: calc(var(--header-h) + 0.02rem) 0.55rem 0.5rem;
  }

  .hero__slide--libro .hero__slide-fore picture {
    width: fit-content;
    max-width: min(100%, 340px);
    padding: 0.28rem;
    border-radius: calc(var(--radius-md) + 3px);
  }

  .hero__slide--libro .hero__slide-fore img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: min(46svh, 310px);
  }

  .hero__slide--studio {
    padding: calc(var(--header-h) + 0.02rem) 0.55rem 0.5rem;
  }

  .hero__slide--studio picture {
    width: fit-content;
    max-width: min(100%, 340px);
    height: auto;
    padding: 0.28rem;
    border-radius: calc(var(--radius-md) + 3px);
  }

  .hero__slide--studio img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: min(46svh, 310px);
    object-fit: contain;
  }
}

/* Sections */
.section {
  padding: clamp(3rem, 8vw, 5rem) 0;
}

.section--book {
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
}

.section--studio {
  background: var(--color-bg);
}

.section__title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin: 0 0 1rem;
  color: var(--color-accent-dark);
}

.section__title--center {
  text-align: center;
}

.section__lead {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  margin: 0 0 1rem;
}

.section__intro {
  max-width: 42rem;
  margin: 0 auto 2rem;
  text-align: center;
  color: var(--color-text-muted);
}

.section__grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 900px) {
  .section__grid--book {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
  }
}

.book-showcase__frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #faf8fc;
  aspect-ratio: 3 / 4;
  max-height: min(78vh, 680px);
  margin-inline: auto;
  max-width: 420px;
  border: 3px solid #101010;
  box-shadow: 0 10px 24px rgba(16, 16, 16, 0.18);
}

.book-showcase__slides {
  position: absolute;
  inset: 0;
}

.book-showcase__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s ease-in-out;
  background: #faf8fc;
}

.book-showcase__slide.is-active {
  opacity: 1;
  z-index: 1;
}

.book-showcase__slide picture {
  width: 100%;
  height: 100%;
  display: block;
}

.book-showcase__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.discipline-cards {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.discipline-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.5rem;
  border: 1px solid rgba(196, 181, 224, 0.45);
  box-shadow: 0 8px 30px rgba(42, 36, 56, 0.06);
}

.discipline-card__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
  color: var(--color-accent-dark);
}

.section__actions--center {
  text-align: center;
  margin-bottom: 2.5rem;
}

/* Galería de clases — título y leyenda */
.gallery-intro {
  margin-bottom: 1.35rem;
}

.gallery-intro__title {
  margin-bottom: 0.5rem;
}

.gallery-intro__legend {
  max-width: 38rem;
  margin: 0 auto;
  padding: 0 0.5rem;
  text-align: center;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--color-text-muted);
}

/* Gallery — soft overlay for lower-quality / secondary photos */
.gallery {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.gallery__item {
  position: relative;
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 10px 36px rgba(42, 36, 56, 0.1);
  isolation: isolate;
}

.gallery__thumb {
  position: relative;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: none;
  cursor: zoom-in;
  background: transparent;
  border-radius: inherit;
  font: inherit;
  color: inherit;
  text-align: inherit;
  line-height: 0;
  -webkit-tap-highlight-color: transparent;
}

.gallery__thumb:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.gallery__item picture {
  display: block;
  height: 100%;
  line-height: 0;
}

.gallery__item picture,
.gallery__item img {
  width: 100%;
  height: 100%;
}

.gallery__item img {
  object-fit: cover;
  filter: saturate(0.92) contrast(0.98);
  background-color: rgba(90, 61, 146, 0.06);
}

.gallery__item--soft::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--overlay-soft);
  mix-blend-mode: multiply;
  pointer-events: none;
  opacity: 0.85;
  transition: opacity var(--transition);
}

.gallery__item--soft:hover::after {
  opacity: 0.65;
}

.gallery__item--soft img {
  filter: saturate(0.88) contrast(0.96) blur(0.4px);
}

.gallery__quote {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  margin: 0;
  padding: 0.65rem 0.8rem 0.7rem;
  font-family: var(--font-display);
  font-size: 0.74rem;
  line-height: 1.4;
  font-style: italic;
  font-weight: 500;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85), 0 0 12px rgba(0, 0, 0, 0.45);
  background: linear-gradient(
    to top,
    rgba(15, 12, 24, 0.88) 0%,
    rgba(15, 12, 24, 0.45) 55%,
    transparent 100%
  );
  pointer-events: none;
}

@media (min-width: 640px) {
  .gallery__quote {
    font-size: 0.8rem;
    padding: 0.75rem 1rem 0.85rem;
  }
}

/* Galería: lightbox — cerrado debe quedar fuera del layout (evitar que display:grid anule el UA) */
.gallery-lightbox:not([open]) {
  display: none;
}

.gallery-lightbox[open] {
  position: relative;
  width: 100vw;
  width: 100dvw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.gallery-lightbox::backdrop {
  background: rgba(20, 16, 32, 0.82);
  backdrop-filter: blur(4px);
}

.gallery-lightbox__overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  cursor: zoom-out;
}

.gallery-lightbox__panel {
  position: relative;
  z-index: 1;
  max-width: min(96vw, 1100px);
  width: 100%;
  padding: 0 2.75rem;
}

.gallery-lightbox__figure {
  margin: 0;
  padding: 0;
}

.gallery-lightbox__close {
  position: absolute;
  top: -0.25rem;
  right: 0.25rem;
  z-index: 3;
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.gallery-lightbox__close:hover {
  background: #fff;
}

.gallery-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 2.5rem;
  height: 3.25rem;
  margin: 0;
  padding: 0 0.15rem;
  border: none;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-text);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: background 0.15s ease;
}

.gallery-lightbox__nav:hover {
  background: #fff;
}

.gallery-lightbox__nav--prev {
  left: 0;
}

.gallery-lightbox__nav--next {
  right: 0;
}

.gallery-lightbox__nav.is-hidden {
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
}

.gallery-lightbox__caption {
  margin: 0.85rem 0 0;
  padding: 0 0.35rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  line-height: 1.45;
  font-style: italic;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

@media (max-width: 520px) {
  .gallery-lightbox__panel {
    padding: 0 2.25rem;
  }

  .gallery-lightbox__nav {
    width: 2.15rem;
    height: 2.85rem;
    font-size: 1.5rem;
  }

  .gallery-lightbox__caption {
    font-size: 0.85rem;
  }
}

.gallery-lightbox__frame {
  padding: 0.6rem;
  background: linear-gradient(145deg, #f5f0fb 0%, #e8e0f4 40%, #dfeef0 100%);
  border-radius: var(--radius-lg);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
  border: 3px solid rgba(255, 255, 255, 0.65);
}

.gallery-lightbox__img {
  display: block;
  width: 100%;
  max-height: min(82vh, 900px);
  height: auto;
  object-fit: contain;
  vertical-align: middle;
  border-radius: var(--radius-md);
  background: #0f0d14;
}

/* Contact — fondo autora estilo hero, sin violeta */
.section--contact {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: #1b1a20;
  padding-block: clamp(1.2rem, 2.6vw, 1.8rem);
}

.section--contact::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    112deg,
    rgba(18, 17, 24, 0.9) 0%,
    rgba(22, 20, 29, 0.78) 36%,
    rgba(26, 24, 34, 0.52) 56%,
    rgba(30, 28, 40, 0.24) 76%,
    rgba(30, 28, 40, 0.12) 100%
  );
}

.section--contact::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  background: url("media/marco/hero-libro.webp") center center / cover no-repeat;
  filter: saturate(0.95) contrast(0.95);
  opacity: 0.6;
}

.section--contact .container {
  position: relative;
  z-index: 2;
}

.section--contact__grid {
  display: grid;
  gap: 0.9rem 1.5rem;
  align-items: center;
  max-width: 58rem;
  margin-inline: auto;
}

@media (min-width: 768px) {
  .section--contact__grid {
    grid-template-columns: 1fr minmax(300px, min(400px, 36vw));
    gap: 0.9rem 1.8rem;
    text-align: left;
  }
}

.section--contact__text {
  text-align: center;
}

@media (min-width: 768px) {
  .section--contact__text {
    text-align: left;
  }
}

.section--contact__photo {
  margin: 0;
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: min(320px, 100%);
}

@media (min-width: 768px) {
  .section--contact__photo {
    justify-self: end;
    max-width: min(400px, 100%);
  }
}

/* Foto autora sin marco */
.section--contact__photo-frame {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  line-height: 0;
  box-shadow: none;
  border: none;
  background: transparent;
}

.section--contact__photo-frame picture {
  display: block;
  max-width: 100%;
  line-height: 0;
}

.section--contact__photo img {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  vertical-align: middle;
}

.section--contact__caption {
  margin: 0.5rem 0 0;
  padding: 0 0.25rem;
  width: 100%;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 600;
  font-style: italic;
  line-height: 1.35;
  text-align: center;
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 1px 12px rgba(15, 12, 24, 0.35);
  letter-spacing: 0.02em;
}

@media (min-width: 768px) {
  .section--contact__caption {
    text-align: center;
  }
}

.section--contact .section__title {
  color: #fff;
  margin-bottom: 0.5rem;
}

.section--contact .section__lead {
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 0.65rem;
}

.section--contact .btn--whatsapp {
  margin-top: 0.35rem;
}

/* Footer */
.site-footer {
  background: #241f30;
  color: rgba(255, 255, 255, 0.88);
  padding-top: 2.5rem;
}

.site-footer a {
  color: var(--color-lilac);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer__inner {
  display: grid;
  gap: 2rem;
  padding-bottom: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .site-footer__inner {
    grid-template-columns: 1.2fr 1fr 1fr;
    align-items: start;
  }
}

.site-footer__brand {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.site-footer__logo {
  width: 96px;
  height: auto;
  border-radius: var(--radius-sm);
  opacity: 0.8;
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.95))
    drop-shadow(0 0 4px rgba(255, 255, 255, 0.75))
    drop-shadow(0 0 12px rgba(255, 255, 255, 0.5))
    drop-shadow(0 0 20px rgba(255, 255, 255, 0.28));
}

.site-footer__location {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  opacity: 0.8;
}

.site-footer__heading {
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 0.75rem;
  color: rgba(255, 255, 255, 0.65);
}

.site-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__list li + li {
  margin-top: 0.4rem;
}

.site-footer__link {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--color-lilac);
  text-decoration: none;
  word-break: break-word;
}

.site-footer__link:hover {
  color: #fff;
}

.site-footer__icon {
  flex-shrink: 0;
  margin-top: 0.15rem;
  opacity: 0.95;
}

.social-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.social-links li + li {
  margin-top: 0.5rem;
}

.social-links__a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.social-links__icon {
  flex-shrink: 0;
  opacity: 0.95;
}

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 0;
}

.site-footer__copy {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.65;
  text-align: center;
}
