* { box-sizing: border-box; }

:root {
  --crema: #FBF5E9;
  --papel: #F4EDDC;
  --papel-2: #EDE4CF;
  --papel-3: #F1E9D6;
  --tinta: #173A2C;
  --texto: #4A5C4F;
  --texto-suave: #6E7C6E;
  --verde: #2F6B4F;
  --terracota: #C1512F;
  --terracota-hover: #8E4A2E;
  --dorado: #E7C97A;
  --sombra: rgba(23, 58, 44, .18);
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--crema);
  font-family: Karla, system-ui, sans-serif;
  color: var(--tinta);
}

a { color: var(--terracota); text-decoration: none; }
a:hover { color: var(--terracota-hover); }
::selection { background: #F0A48C; color: var(--tinta); }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

.serif { font-family: Newsreader, Georgia, serif; }
.mono { font-family: 'JetBrains Mono', monospace; }

.wrap {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  background: var(--crema);
  overflow: hidden;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 60px;
  background: rgba(251, 245, 233, .92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--sombra);
}

.nav-brand { font-family: Newsreader, Georgia, serif; font-size: 20px; letter-spacing: .02em; }

.nav-links {
  display: flex;
  gap: 34px;
  align-items: center;
  font-size: 14px;
  letter-spacing: .02em;
}

.nav-links a { color: var(--verde); }

.nav-cta {
  border: 1px solid rgba(193, 81, 47, .55);
  color: var(--terracota) !important;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13.5px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 26px;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  height: 2px;
  background: var(--verde);
  border-radius: 2px;
}

/* Hero */
.hero {
  position: relative;
  padding: 104px 60px 112px;
  background: var(--papel);
}

.hero-moon {
  position: absolute;
  right: 78px;
  top: 70px;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  box-shadow: inset -32px 12px 0 -1px var(--dorado);
  opacity: .6;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 56px;
  align-items: center;
  position: relative;
}

.hero-kicker { font-family: Caveat, cursive; font-size: 30px; color: var(--verde); }

.hero-title {
  font-family: Newsreader, Georgia, serif;
  font-size: 64px;
  line-height: 1.06;
  letter-spacing: -.01em;
}
.hero-title em { color: var(--terracota); font-style: italic; }

.hero-sub { font-size: 19px; line-height: 1.7; color: var(--texto); max-width: 520px; }

.hero-ctas { display: flex; gap: 16px; align-items: center; padding-top: 6px; flex-wrap: wrap; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--terracota);
  color: #FDF6EC;
  font-weight: 700;
  font-size: 16px;
  padding: 15px 28px;
  border-radius: 999px;
  border: none;
}
.btn-primary:hover { background: var(--terracota-hover); color: #FDF6EC; }

.link-underline {
  color: var(--tinta);
  font-size: 15px;
  border-bottom: 1px solid rgba(23, 58, 44, .35);
  padding-bottom: 3px;
}
.link-underline:hover { color: var(--terracota); }

.hero-photo-frame {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: 280px 280px 6px 6px;
  border: 1px solid rgba(47, 107, 79, .4);
  background: repeating-linear-gradient(135deg, rgba(47, 107, 79, .12) 0 2px, transparent 2px 11px), #FDF8EE;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
}
.hero-photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo-label { font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: .14em; color: var(--terracota); }
.hero-photo-hint { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: #7E8C7E; text-align: center; max-width: 200px; line-height: 1.6; }

.banner-photo {
  width: 100%;
  max-height: 480px;
  overflow: hidden;
  background: var(--papel);
}
.banner-photo img { width: 100%; height: 100%; max-height: 480px; object-fit: cover; display: block; }

/* Section headers */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px solid rgba(23, 58, 44, .16);
  padding-bottom: 22px;
  margin-bottom: 64px;
  flex-wrap: wrap;
  gap: 14px;
}
.section-kicker { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--terracota); }
.section-title { font-family: Newsreader, Georgia, serif; font-size: 44px; line-height: 1; }
.section-note { font-size: 14px; color: var(--texto-suave); }

/* Books */
.libros { padding: 104px 60px 0; background: var(--crema); }
.libros-list { display: flex; flex-direction: column; gap: 88px; }

.libro {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 56px;
  align-items: center;
  border: none;
  background: none;
  text-align: left;
  padding: 0;
  width: 100%;
  font-family: inherit;
  color: inherit;
}
button.libro, .libro-clickable { cursor: pointer; }
button.libro:hover .libro-cover, .libro-clickable:hover .libro-cover { box-shadow: 0 14px 30px var(--sombra); transform: translateY(-2px); }

.libro-wide { grid-template-columns: 320px 1fr; }

.libro-cover {
  aspect-ratio: 2/3;
  border: 1px solid rgba(47, 107, 79, .28);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 8px 20px var(--sombra);
  transition: box-shadow .2s ease, transform .2s ease;
}
.libro-wide .libro-cover { aspect-ratio: auto; border-radius: 4px; }
.libro-cover img { width: 100%; height: 100%; object-fit: cover; }
.libro-wide .libro-cover img { height: auto; }

.libro-body { display: flex; flex-direction: column; gap: 20px; }
.libro-tags { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.libro-kind {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--tinta);
  background: var(--dorado);
  padding: 4px 9px;
  border-radius: 999px;
}
.libro-meta { font-size: 13px; color: var(--texto-suave); }
.libro-title { font-family: Newsreader, Georgia, serif; font-size: 40px; line-height: 1.08; }
.libro-synopsis { font-size: 18px; line-height: 1.75; color: var(--texto); max-width: 640px; }
.libro-line {
  font-family: Newsreader, Georgia, serif;
  font-style: italic;
  font-size: 20px;
  color: var(--verde);
  border-left: 2px solid rgba(193, 81, 47, .6);
  padding-left: 18px;
  max-width: 600px;
  line-height: 1.45;
}
.libro-ctas { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; padding-top: 8px; }
.btn-comprar {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--terracota);
  color: #FDF6EC;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 999px;
  border: none;
}
.btn-comprar:hover { background: var(--terracota-hover); color: #FDF6EC; }

.btn-comprar-small {
  display: inline-flex;
  align-items: center;
  background: var(--terracota);
  color: #FDF6EC;
  font-weight: 700;
  font-size: 13.5px;
  padding: 10px 18px;
  border-radius: 999px;
}
.btn-comprar-small:hover { background: var(--terracota-hover); color: #FDF6EC; }
.btn-comprar-small ~ .btn-comprar-small {
  background: none;
  color: var(--tinta);
  border: 1px solid rgba(23, 58, 44, .24);
  font-weight: 600;
}
.btn-comprar-small ~ .btn-comprar-small:hover { color: var(--terracota); }

.ver-ficha-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--texto-suave);
  border-bottom: 1px solid rgba(23, 58, 44, .3);
  padding-bottom: 2px;
}
button.libro:hover .ver-ficha-link,
.libro-clickable:hover .ver-ficha-link { color: var(--terracota); border-color: var(--terracota); }

.libro-reel-side { width: 220px; flex: none; display: flex; flex-direction: column; gap: 12px; }
.libro-reel-side video { width: 100%; aspect-ratio: 9/16; object-fit: cover; border-radius: 6px; border: 1px solid rgba(47, 107, 79, .28); background: var(--papel-2); }
.libro-reel-side-label { font-size: 13px; line-height: 1.4; color: var(--texto); text-align: center; }
.libro-reel-side .youtube-thumb { aspect-ratio: 16/9; }
.libro-reel-side:has(.youtube-thumb) { width: 280px; }

.libro-triple { grid-template-columns: 300px 1fr 220px; gap: 40px; }
.libro-wide-triple { grid-template-columns: 320px 1fr 280px; gap: 40px; }
.libro-wide-triple .libro-cover { aspect-ratio: auto; border-radius: 4px; }
.libro-wide-triple .libro-cover img { height: auto; }

/* Quote banners */
.frase {
  margin-top: 104px;
  padding: 100px 60px;
  background: var(--papel-2);
  text-align: center;
}
.frase-text {
  font-family: Newsreader, Georgia, serif;
  font-size: 48px;
  line-height: 1.28;
  max-width: 1000px;
  margin: 0 auto;
  color: var(--tinta);
}
.frase-text em { color: var(--terracota); font-style: italic; }
.frase-source { font-family: 'JetBrains Mono', monospace; font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--texto-suave); margin-top: 34px; }

/* More books grid (books without full data) */
.mas-libros { padding: 104px 60px 0; background: var(--crema); }
.mas-libros-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.mas-libro-card { display: flex; flex-direction: column; gap: 14px; }
.mas-libro-cover { aspect-ratio: 2/3; border: 1px solid rgba(47, 107, 79, .28); border-radius: 2px; overflow: hidden; box-shadow: 0 8px 20px var(--sombra); }
.mas-libro-cover img { width: 100%; height: 100%; object-fit: cover; }
.mas-libro-title { font-family: Newsreader, Georgia, serif; font-size: 22px; line-height: 1.15; }
.mas-libro-meta { font-size: 13px; color: var(--texto-suave); }

/* All works listing */
.toda-obra { margin-top: 96px; border-top: 1px solid rgba(23, 58, 44, .16); padding-top: 44px; }
.toda-obra-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 34px; flex-wrap: wrap; gap: 10px; }
.toda-obra-title { font-family: Newsreader, Georgia, serif; font-size: 30px; }
.toda-obra-note { font-size: 13.5px; color: var(--texto-suave); }
.genre-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.genre-col { display: flex; flex-direction: column; gap: 14px; }
.genre-name { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--terracota); padding-bottom: 10px; border-bottom: 1px solid rgba(23, 58, 44, .16); }
.genre-item { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 15px; border-bottom: 1px dashed rgba(23, 58, 44, .14); }
.genre-year { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: #7E8C7E; }

/* About me */
.sobre-mi { margin-top: 110px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: start; }
.sobre-mi-text { display: flex; flex-direction: column; gap: 22px; }
.sobre-mi-kicker { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--terracota); }
.sobre-mi-title { font-family: Newsreader, Georgia, serif; font-size: 38px; line-height: 1.1; }
.sobre-mi-p { font-size: 17px; line-height: 1.8; color: #3C4A3F; }
.sobre-mi-signature { font-family: Caveat, cursive; font-size: 36px; color: var(--terracota); margin-top: 6px; }
.sobre-mi-pdf {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(23, 58, 44, .3);
  color: var(--tinta);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 18px;
  border-radius: 999px;
  align-self: flex-start;
  margin-top: 8px;
}

.cv-card { display: flex; flex-direction: column; gap: 20px; background: var(--papel-3); border: 1px solid rgba(47, 107, 79, .22); border-radius: 4px; padding: 32px; }
.cv-kicker { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--texto-suave); }
.cv-row { display: grid; grid-template-columns: 76px 1fr; gap: 16px; padding-bottom: 12px; border-bottom: 1px dashed rgba(23, 58, 44, .18); }
.cv-row:last-child { border-bottom: none; padding-bottom: 0; }
.cv-year { font-family: 'JetBrains Mono', monospace; font-size: 11.5px; color: var(--terracota); }
.cv-text { font-size: 15px; line-height: 1.6; color: #3C4A3F; }

/* Reels */
.reels { padding: 100px 60px 110px; background: var(--crema); }
.reels-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 38px; flex-wrap: wrap; gap: 14px; }
.reels-hint { display: flex; gap: 12px; align-items: center; font-size: 14px; color: var(--texto-suave); }
.reels-track { display: flex; gap: 22px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; }
.reel-card { width: 220px; flex: none; display: flex; flex-direction: column; gap: 12px; scroll-snap-align: start; }
.reel-card video { width: 100%; aspect-ratio: 9/16; object-fit: cover; border-radius: 6px; border: 1px solid rgba(47, 107, 79, .28); background: var(--papel-2); }
.reel-card:has(.youtube-thumb) { width: 280px; }
.reel-card .youtube-thumb { aspect-ratio: 16/9; }
.reel-label { font-size: 14px; line-height: 1.4; color: var(--texto); }

/* Contact */
.contacto { padding: 0 60px 110px; background: var(--crema); }
.contacto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; border-top: 1px solid rgba(23, 58, 44, .16); padding-top: 72px; align-items: start; }
.contacto-title { font-family: Newsreader, Georgia, serif; font-size: 40px; line-height: 1.08; }
.contacto-text { font-size: 17px; line-height: 1.75; color: var(--texto); max-width: 420px; }
.socials { display: flex; gap: 14px; margin-top: 12px; }
.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(47, 107, 79, .35);
  color: var(--verde);
  font-size: 12.5px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
}
.contacto-mail { font-size: 15px; color: var(--texto-suave); margin-top: 10px; }

.form-card { display: flex; flex-direction: column; gap: 18px; background: var(--papel-3); border: 1px solid rgba(47, 107, 79, .22); border-radius: 6px; padding: 32px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-label { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--texto-suave); }
.form-input, .form-textarea {
  height: 48px;
  border-radius: 4px;
  border: 1px solid rgba(23, 58, 44, .22);
  background: #FDF8EE;
  font-family: inherit;
  font-size: 15px;
  padding: 0 14px;
  color: var(--tinta);
}
.form-textarea { height: 120px; padding: 12px 14px; resize: vertical; }
.form-submit {
  align-self: flex-start;
  background: var(--terracota);
  color: #FDF6EC;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 30px;
  border-radius: 999px;
  border: none;
  margin-top: 6px;
}
.form-submit:hover { background: var(--terracota-hover); }
.form-status { font-size: 14px; color: var(--verde); min-height: 20px; }
.form-status.error { color: var(--terracota); }

/* Footer */
.footer {
  padding: 34px 60px;
  background: var(--verde);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #D9E5D6;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-brand { font-family: Newsreader, Georgia, serif; font-size: 17px; color: var(--crema); }

/* Book detail modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(23, 58, 44, .55);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}
.modal-overlay.open { display: flex; }

.modal-panel {
  width: min(840px, 100%);
  max-width: 100%;
  max-height: 100%;
  background: var(--crema);
  border-radius: 12px;
  overflow-y: auto;
  padding: 44px 48px 56px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  transform: scale(.96);
  opacity: 0;
  transition: transform .2s ease, opacity .2s ease;
  box-shadow: 0 30px 80px rgba(23, 58, 44, .35);
}
.modal-overlay.open .modal-panel { transform: scale(1); opacity: 1; }

.modal-head { display: flex; justify-content: space-between; align-items: center; }
.modal-kicker { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--texto-suave); }
.modal-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(23, 58, 44, .24);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--terracota);
  background: none;
  font-size: 16px;
}

.modal-main { display: grid; grid-template-columns: 260px 1fr; gap: 38px; align-items: start; }
.modal-cover { aspect-ratio: 2/3; border: 1px solid rgba(47, 107, 79, .28); border-radius: 2px; overflow: hidden; box-shadow: 0 8px 20px var(--sombra); }
.modal-cover img { width: 100%; height: 100%; object-fit: cover; }
.modal-info { display: flex; flex-direction: column; gap: 16px; }
.modal-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--tinta);
  background: var(--dorado);
  padding: 4px 9px;
  border-radius: 999px;
  align-self: flex-start;
}
.modal-title { font-family: Newsreader, Georgia, serif; font-size: 40px; line-height: 1.06; }
.modal-synopsis { font-size: 16.5px; line-height: 1.75; color: var(--texto); }
.modal-meta-row { display: flex; gap: 26px; font-family: 'JetBrains Mono', monospace; font-size: 11.5px; color: var(--texto-suave); padding-top: 4px; flex-wrap: wrap; }
.modal-buy-list { display: flex; flex-direction: column; gap: 12px; padding-top: 12px; }
.modal-buy-secondary { display: flex; gap: 10px; flex-wrap: wrap; }
.modal-buy-secondary a {
  flex: 1;
  min-width: 120px;
  text-align: center;
  border: 1px solid rgba(23, 58, 44, .24);
  color: var(--tinta);
  font-size: 14px;
  font-weight: 600;
  padding: 12px;
  border-radius: 999px;
}
.modal-line {
  border-top: 1px solid rgba(23, 58, 44, .14);
  padding-top: 26px;
  font-family: Newsreader, Georgia, serif;
  font-style: italic;
  font-size: 26px;
  line-height: 1.45;
  color: var(--verde);
}

.modal-reels {
  border-top: 1px solid rgba(23, 58, 44, .14);
  padding-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.modal-reels-kicker { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--terracota); }
.modal-reels-track { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 4px; }
.modal-reel-card { width: 160px; flex: none; display: flex; flex-direction: column; gap: 8px; }
.modal-reel-card video { width: 100%; aspect-ratio: 9/16; object-fit: cover; border-radius: 6px; border: 1px solid rgba(47, 107, 79, .28); background: var(--papel-2); }
.modal-reel-card:has(.youtube-thumb) { width: 280px; }

.youtube-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(47, 107, 79, .28);
  background: var(--papel-2);
}
.youtube-thumb img { width: 100%; height: 100%; object-fit: cover; }
.youtube-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.youtube-play::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(23, 58, 44, .18);
}
.youtube-play svg { position: relative; z-index: 1; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .5)); }
.modal-reel-label { font-size: 12.5px; line-height: 1.35; color: var(--texto); }

/* Utility */
.hidden { display: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav { padding: 16px 20px; }
  .nav-links {
    position: fixed;
    top: 62px;
    right: 0;
    left: 0;
    background: var(--crema);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 20px 20px;
    border-bottom: 1px solid var(--sombra);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform .2s ease, opacity .2s ease;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 10px 0; width: 100%; }
  .nav-cta { align-self: flex-start; margin-top: 6px; }
  .nav-toggle { display: flex; }

  .hero { padding: 56px 20px 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-title { font-size: 40px; }
  .hero-sub { font-size: 17px; max-width: none; }
  .hero-photo-frame { max-width: 320px; margin: 0 auto; }
  .hero-moon { width: 80px; height: 80px; right: 20px; top: 30px; }

  .banner-photo { max-height: 220px; }
  .banner-photo img { max-height: 220px; }

  .section-title { font-size: 32px; }
  .libros, .mas-libros { padding: 64px 20px 0; }

  .libro, .libro-wide, .libro-triple, .libro-wide-triple { grid-template-columns: 1fr !important; gap: 24px; }
  .libro-cover { max-width: 280px; margin: 0 auto; width: 100%; }
  .libro-wide .libro-cover { max-width: 320px; }
  .libro-title { font-size: 30px; }
  .libro-synopsis { font-size: 16px; max-width: none; }
  .libro-line { font-size: 18px; max-width: none; }
  .libro-reel-side { width: 100%; max-width: 220px; margin: 0 auto; }
  .libro-reel-side:has(.youtube-thumb) { max-width: 320px; }

  .frase { padding: 64px 20px; }
  .frase-text { font-size: 30px; }

  .mas-libros-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }

  .genre-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }

  .sobre-mi { grid-template-columns: 1fr; gap: 40px; margin-top: 72px; }
  .sobre-mi-title { font-size: 30px; }

  .reels { padding: 64px 20px 72px; }

  .contacto { padding: 0 20px 72px; }
  .contacto-grid { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; }
  .contacto-title { font-size: 30px; }

  .footer { padding: 24px 20px; }

  .mas-libros, .libros, .contacto, .reels { }

  .toda-obra, .sobre-mi { padding-left: 0; padding-right: 0; }

  .modal-overlay { padding: 20px 12px; }
  .modal-panel { padding: 28px 22px 40px; width: 100%; border-radius: 10px; }
  .modal-main { grid-template-columns: 1fr; }
  .modal-cover { max-width: 220px; margin: 0 auto; }
  .modal-title { font-size: 30px; }
}

@media (max-width: 960px) {
  #main-content { padding-left: 0; }
}

@media (max-width: 600px) {
  .hero-title { font-size: 34px; }
  .libro-title { font-size: 26px; }
  .mas-libros-grid { grid-template-columns: 1fr 1fr; }
}
