/* ========== VARIABLES - PALETA ROBLE ========== */
:root {
  --bg-primary: #2a1f1a;
  --bg-secondary: #3d2f26;
  --bg-tertiary: #4a3d32;
  --gold-primary: #d4b896;
  --gold-hover: #e8d4b8;
  --gold-muted: #997554;
  --text-primary: #faf6f0;
  --text-secondary: #e8d5c4;
  --font-heading: 'Cinzel', serif;
  --font-body: 'Montserrat', sans-serif;
  --transition: all 0.3s ease;
}

/* ========== RESET ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ========== LOGO ========== */
.logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.logo__yc {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--gold-primary);
  font-weight: 700;
}
.logo__text {
  font-size: 0.65rem;
  letter-spacing: 1px;
  color: var(--text-primary);
  line-height: 1.2;
}
.logo__text small {
  color: var(--gold-primary);
  font-size: 0.6rem;
}

/* ========== HEADER ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(42, 31, 26, 0.92);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(212, 184, 150, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

/* NAV MOBILE */
.nav {
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  background: rgba(61, 47, 38, 0.98);
  border-bottom: 2px solid var(--gold-primary);
  padding: 2rem 1.5rem;
  transform: translateY(-150%);
  transition: transform 0.3s ease;
  z-index: 999;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}
.nav.active {
  transform: translateY(0);
}
.nav__list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: center;
}
.nav__link {
  font-size: 0.9rem;
  letter-spacing: 2px;
  color: var(--text-secondary);
  transition: var(--transition);
  display: block;
  padding: 0.5rem 0;
}
.nav__link:hover,
.nav__link--active {
  color: var(--gold-primary);
}
.nav__toggle {
  background: none;
  border: none;
  color: var(--gold-primary);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1001;
}
.social--desktop { display: none; }

/* ========== HEADER MOBILE REORDER ========== */
@media (max-width: 1023px) {
  .header__container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
  }
  .nav__toggle {
    order: 1;
    margin-left: -0.5rem;
  }
  .logo {
    order: 2;
  }
}

/* ========== HERO (CENTRADO, SIN FOTO) ========== */
.hero {
  min-height: 100vh;
  padding: 120px 0 60px;
  background: 
    linear-gradient(135deg, rgba(42, 31, 26, 0.65) 0%, rgba(61, 47, 38, 0.65) 50%, rgba(42, 31, 26, 0.75) 100%),
    url('../img/biblioteca-bg.jpg') center/cover no-repeat fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(212, 184, 150, 0.1) 0%, transparent 70%);
  pointer-events: none;
}
.hero__container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 800px;
  width: 100%;
}
.hero__title {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--gold-primary);
  line-height: 1.2;
  margin-bottom: 1.5rem;
  font-weight: 600;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}
.hero__divider {
  width: 80px;
  height: 2px;
  background: var(--gold-primary);
  margin: 0 auto 1.5rem;
  box-shadow: 0 0 10px rgba(212, 184, 150, 0.5);
}
.hero__subtitle {
  font-size: 0.8rem;
  letter-spacing: 4px;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  font-weight: 500;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}
.hero__description {
  color: var(--text-secondary);
  margin: 0 auto 2.5rem;
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 650px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}
.hero__buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  width: 100%;
}

/* ========== BOTONES ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-size: 0.8rem;
  letter-spacing: 2px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: var(--font-body);
  text-align: center;
  min-width: 250px;
}
.btn--outline {
  border: 1px solid var(--gold-primary);
  color: var(--gold-primary);
  background: rgba(42, 31, 26, 0.5);
  backdrop-filter: blur(5px);
}
.btn--outline:hover {
  background: var(--gold-primary);
  color: var(--bg-primary);
  box-shadow: 0 0 20px rgba(212, 184, 150, 0.4);
}
.btn--solid {
  background: var(--gold-primary);
  color: var(--bg-primary);
  box-shadow: 0 4px 15px rgba(212, 184, 150, 0.3);
}
.btn--solid:hover {
  background: var(--gold-hover);
  box-shadow: 0 6px 20px rgba(212, 184, 150, 0.5);
}

/* ========== PÁGINAS ========== */
.page__title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--gold-primary);
  text-align: center;
  margin-bottom: 1rem;
  font-weight: 600;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
}
.page__title--left { text-align: left; }
.section__divider {
  width: 60px;
  height: 2px;
  background: var(--gold-primary);
  margin: 0 auto 1.5rem;
  position: relative;
  box-shadow: 0 0 8px rgba(212, 184, 150, 0.4);
}
.section__divider::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: var(--gold-primary);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(212, 184, 150, 0.6);
}
.section__divider--left { margin-left: 0; }
.section__subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 3rem;
}

/* ========== LIBROS PAGE CON FONDO DIFERENTE ========== */
.libros-page {
  padding: 140px 0 80px;
  background: 
    linear-gradient(135deg, rgba(42, 31, 26, 0.90) 0%, rgba(61, 47, 38, 0.88) 50%, rgba(42, 31, 26, 0.92) 100%),
    url('../img/fondo-libros.jpg') center/cover no-repeat fixed;
  position: relative;
}
.libros-page .container {
  position: relative;
  z-index: 2;
}

/* Grid y Carrusel (Fallback o uso en otras secciones) */
.carrusel { display: none; }
.libros__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.libro-card {
  text-align: center;
  background: rgba(74, 61, 50, 0.5);
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid rgba(212, 184, 150, 0.25);
  backdrop-filter: blur(8px);
  transition: var(--transition);
}
.libro-card:hover {
  transform: translateY(-5px);
  border-color: rgba(212, 184, 150, 0.5);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}
.libro-card__img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: var(--transition);
}
.libro-card__img:hover {
  transform: scale(1.03);
  box-shadow: 0 15px 40px rgba(212, 184, 150, 0.25);
}
.libro-card__title {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-size: 0.95rem;
  margin: 1rem 0 0.3rem;
}
.libro-card__subtitle {
  color: var(--text-secondary);
  font-size: 0.8rem;
  margin-bottom: 1rem;
}
.libro-card .btn {
  padding: 0.6rem 1rem;
  font-size: 0.65rem;
}

/* ========== TARJETA DE LIBRO DETALLADO (NUEVO) ========== */
.libro-detalle {
  background: rgba(26, 20, 16, 0.6);
  border: 1px solid rgba(212, 184, 150, 0.3);
  border-radius: 8px;
  padding: 2.5rem;
  margin-bottom: 3rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}
.libro-detalle__container {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}
.libro-detalle__portada {
  flex: 0 0 280px;
}
.libro-detalle__portada img {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  border: 2px solid rgba(212, 184, 150, 0.2);
}
.libro-detalle__contenido {
  flex: 1;
}
.libro-detalle__titulo {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--gold-primary);
  margin-bottom: 0.5rem;
  font-weight: 600;
  letter-spacing: 1px;
}
.libro-detalle__subtitulo {
  color: var(--text-secondary);
  font-size: 1rem;
  font-style: italic;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.libro-detalle__descripcion {
  color: var(--text-primary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* ========== ACORDEÓN ========== */
.acordeon {
  margin: 2rem 0;
  border: 1px solid rgba(212, 184, 150, 0.25);
  border-radius: 6px;
  overflow: hidden;
  background: rgba(42, 31, 26, 0.5);
}
.acordeon__trigger {
  width: 100%;
  padding: 1.2rem 1.5rem;
  background: rgba(212, 184, 150, 0.1);
  border: none;
  color: var(--gold-primary);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}
.acordeon__trigger:hover {
  background: rgba(212, 184, 150, 0.2);
}
.acordeon__trigger i:first-child {
  margin-right: 0.8rem;
}
.acordeon__icon {
  transition: transform 0.3s ease;
}
.acordeon__trigger[aria-expanded="true"] .acordeon__icon {
  transform: rotate(180deg);
}
.acordeon__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
}
.acordeon__inner {
  padding: 2rem;
  background: rgba(26, 20, 16, 0.8);
  border-top: 1px solid rgba(212, 184, 150, 0.2);
}
.acordeon__inner h3 {
  font-family: var(--font-heading);
  color: var(--gold-primary);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}
.acordeon__inner p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}
.acordeon__inner strong {
  color: var(--gold-primary);
  font-weight: 600;
}

/* ========== BOTÓN AMAZON ========== */
.btn-amazon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  width: 100%;
  padding: 1.2rem 2rem;
  background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-hover) 100%);
  color: var(--bg-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
  border-radius: 6px;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(212, 184, 150, 0.3);
  margin-top: 1.5rem;
}
.btn-amazon:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 184, 150, 0.5);
  background: linear-gradient(135deg, var(--gold-hover) 0%, var(--gold-primary) 100%);
}
.btn-amazon i {
  font-size: 1.3rem;
}

/* ========== CTA ========== */
.cta {
  padding: 4rem 0;
  background: var(--bg-tertiary);
  text-align: center;
  border-top: 1px solid rgba(212, 184, 150, 0.2);
}
.cta p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

/* ========== SOBRE MÍ - BASE (MÓVIL) ========== */
.autor-page { padding: 120px 0 60px; }
.autor-page__container {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1.5rem;
}
.autor-page__image {
  flex: 0 0 100px;
  min-width: 100px;
  display: flex;
  justify-content: flex-start;
}
.autor-page__image img {
  max-width: 100px;
  width: 100px;
  height: auto;
  border-radius: 6px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}
.autor-page__content { flex: 1; min-width: 0; }
.autor-page__text p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 0.85rem;
  line-height: 1.6;
}
.autor-page__highlights {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}
.highlight {
  background: var(--bg-secondary);
  padding: 1rem;
  border-radius: 4px;
  border-left: 3px solid var(--gold-primary);
  border: 1px solid rgba(212, 184, 150, 0.2);
}
.highlight i {
  font-size: 1.5rem;
  color: var(--gold-primary);
  margin-bottom: 0.5rem;
}
.highlight h3 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-size: 1rem;
  margin-bottom: 0.3rem;
}
.highlight p {
  color: var(--text-secondary);
  font-size: 0.8rem;
}
.autor-page__buttons {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 1rem;
}

/* ========== NEWSLETTER ========== */
.newsletter {
  background: var(--bg-tertiary);
  padding: 3rem 0;
  border-top: 1px solid rgba(212, 184, 150, 0.2);
  border-bottom: 1px solid rgba(212, 184, 150, 0.2);
}
.newsletter__container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  text-align: center;
}
.newsletter__icon {
  font-size: 2.5rem;
  color: var(--gold-primary);
}
.newsletter__content h3 {
  font-family: var(--font-heading);
  color: var(--gold-primary);
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}
.newsletter__content p {
  color: var(--text-secondary);
  font-size: 0.85rem;
}
.newsletter__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.newsletter__form input {
  padding: 1rem;
  background: var(--bg-primary);
  border: 1px solid var(--gold-muted);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
}
.newsletter__form input:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 10px rgba(212, 184, 150, 0.3);
}

/* ========== COMING SOON / ARTÍCULOS CON FONDO ESPECIAL ========== */
.coming-soon {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 0 80px;
  background: 
    linear-gradient(135deg, rgba(42, 31, 26, 0.85) 0%, rgba(61, 47, 38, 0.82) 50%, rgba(42, 31, 26, 0.88) 100%),
    url('../img/escritorio-bg.jpg') center/cover no-repeat fixed;
  position: relative;
}
.coming-soon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(212, 184, 150, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.coming-soon > .container {
  position: relative;
  z-index: 1;
}
.coming-soon__content { text-align: center; }
.coming-soon__icon {
  font-size: 4rem;
  color: var(--gold-primary);
  margin-bottom: 2rem;
}
.coming-soon__title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--gold-primary);
  margin-bottom: 1rem;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
}
.coming-soon__text {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* ========== FOOTER ========== */
.footer {
  background-color: var(--bg-primary);
  padding: 2.5rem 0 2rem;
  border-top: 1px solid rgba(212, 184, 150, 0.25);
  text-align: center;
}
.footer__pre-text {
  color: var(--text-secondary);
  font-size: 0.7rem;
  margin-bottom: 1rem;
  font-weight: 300;
  letter-spacing: 0.5px;
  opacity: 0.8;
}
.footer__brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}
.footer__logo {
  width: 30px;
  height: 30px;
  object-fit: contain;
  opacity: 0.85;
}
.footer__name {
  font-family: var(--font-heading);
  color: var(--gold-primary);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  line-height: 1;
  opacity: 0.9;
  text-shadow: 0 0 10px rgba(212, 184, 150, 0.3);
}
.footer__tagline {
  color: var(--text-secondary);
  font-size: 0.6rem;
  letter-spacing: 2px;
  font-weight: 300;
  text-transform: uppercase;
  opacity: 0.6;
}

/* ========================================= */
/* ========== MEDIA QUERIES ========== */
/* ========================================= */

/* Footer móvil */
@media (max-width: 600px) {
  .footer { padding: 2rem 0 1.5rem; }
  .footer__pre-text { font-size: 0.65rem; }
  .footer__brand { flex-direction: column; gap: 0.4rem; }
  .footer__logo { width: 25px; height: 25px; }
  .footer__name { font-size: 0.8rem; opacity: 0.9; }
  .footer__tagline { font-size: 0.55rem; letter-spacing: 1.5px; }
}

/* Hero Móvil */
@media (max-width: 767px) {
  .hero { 
    padding-top: 100px; 
    background-attachment: scroll; 
  }
  .hero__title { font-size: 2.2rem; }
  .hero__divider { width: 60px; }
  .hero__subtitle { font-size: 0.7rem; letter-spacing: 3px; }
  .hero__description { font-size: 0.95rem; }
  .hero__buttons { width: 100%; }
  .btn { 
    min-width: 100%; 
    padding: 0.9rem 1.5rem; 
    font-size: 0.75rem; 
  }
  
  /* Libros Detalle Móvil */
  .libro-detalle { padding: 1.5rem; }
  .libro-detalle__container { flex-direction: column; gap: 2rem; }
  .libro-detalle__portada { flex: none; max-width: 220px; margin: 0 auto; }
  .libro-detalle__titulo { font-size: 1.6rem; text-align: center; }
  .libro-detalle__subtitulo { text-align: center; font-size: 0.9rem; }
  .libro-detalle__descripcion { text-align: center; }
  .acordeon__trigger { font-size: 0.75rem; padding: 1rem; }
  .acordeon__inner { padding: 1.5rem; }
  
  /* Artículos/Coming Soon Móvil */
  .coming-soon {
    padding: 120px 0 60px;
    background-attachment: scroll;
  }
  .coming-soon__title { font-size: 1.8rem; }
  .coming-soon__text { font-size: 0.95rem; }
}

/* Tablet (768px+) */
@media (min-width: 768px) {
  .container { padding: 0 2rem; }
  .hero__title { font-size: 3.5rem; }
  .hero__buttons { flex-direction: row; justify-content: center; }
  
  .libros__grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .libro-card__img { height: 350px; }
  
  .autor-page__container { flex-direction: column; align-items: center; gap: 3rem; }
  .autor-page__image { flex: none; justify-content: center; }
  .autor-page__image img { max-width: 400px; width: 100%; }
  .autor-page__text p { font-size: 0.95rem; line-height: 1.8; margin-bottom: 1.2rem; }
  .autor-page__highlights { grid-template-columns: repeat(3, 1fr); gap: 2rem; margin: 3rem 0; }
  .highlight { padding: 2rem; }
  .highlight i { font-size: 2rem; }
  .highlight h3 { font-size: 1.1rem; }
  .highlight p { font-size: 0.9rem; }
  .autor-page__buttons { flex-direction: row; gap: 1rem; }
  
  .newsletter__container { grid-template-columns: auto 1fr auto; text-align: left; }
  .newsletter__form { flex-direction: row; }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
  .nav { position: static; transform: none; background: transparent; border: none; padding: 0; }
  .nav__list { flex-direction: row; gap: 2rem; }
  .nav__link { font-size: 0.75rem; padding: 0; }
  .nav__toggle { display: none; }
  .social--desktop { display: flex; gap: 1rem; }
  .social a {
    width: 35px; height: 35px;
    border: 1px solid var(--gold-muted);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--gold-primary);
    transition: var(--transition);
    font-size: 0.85rem;
  }
  .social a:hover {
    background: var(--gold-primary);
    color: var(--bg-primary);
    border-color: var(--gold-primary);
  }
  
  .hero__title { font-size: 4rem; }
  
  .carrusel { display: flex; align-items: center; gap: 1rem; }
  .carrusel__track {
    display: flex; gap: 2rem; overflow-x: auto; scroll-snap-type: x mandatory;
    scroll-behavior: smooth; padding: 2rem 0; scrollbar-width: none; flex: 1;
  }
  .carrusel__track::-webkit-scrollbar { display: none; }
  .libros__grid { display: none; }
  .libro-card { flex: 0 0 260px; scroll-snap-align: start; }
  .libro-card__img { height: 380px; }
  .carrusel__btn {
    background: transparent; border: 1px solid var(--gold-muted); color: var(--gold-primary);
    width: 45px; height: 45px; border-radius: 50%; cursor: pointer; transition: var(--transition); flex-shrink: 0;
  }
  .carrusel__btn:hover { background: var(--gold-primary); color: var(--bg-primary); }
  
  .autor-page__container { flex-direction: row; align-items: center; }
  .autor-page__image { flex: 0 0 400px; }
  .autor-page__image img { max-width: 400px; }
}

/* Desktop Grande (1200px+) */
@media (min-width: 1200px) {
  .hero__title { font-size: 4.5rem; }
  .page__title { font-size: 2.5rem; }
}

/* ========== NOMBRE DEL AUTOR EN HERO ========== */
.hero__author {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--text-primary); /* Marfil claro - diferente al dorado del título */
  margin: 0.8rem 0 1.2rem;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

/* Ajuste para móviles */
@media (max-width: 767px) {
  .hero__author {
    font-size: 1rem;
    letter-spacing: 2.5px;
    margin: 0.6rem 0 1rem;
  }
}

/* Responsive específico para Sobre Mí */
@media (max-width: 900px) {
  .autor-page > .container > div:last-child {
    flex-direction: column !important;
    gap: 2rem !important;
  }
  .autor-page > .container > div:last-child > div:first-child {
    flex: none !important;
    min-width: 0 !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
  }
  .autor-page > .container > div:last-child > div:first-child img {
    max-width: 280px !important;
  }
  .page__title {
    font-size: 1.8rem !important;
  }
}

/* ========== SOBRE MÍ - FONDO ESPECIAL ========== */
.autor-page {
  padding: 140px 0 80px;
  background: linear-gradient(180deg, #3d2f26 0%, #4a3d32 50%, #3d2f26 100%);
  position: relative;
}

/* Efecto de textura sutil (opcional) */
.autor-page::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(212, 184, 150, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.autor-page > .container {
  position: relative;
  z-index: 1;
}

/* ========== ARTÍCULOS: COMING SOON + NEWSLETTER ========== */
.newsletter-compact {
  margin: 2.5rem auto 1rem;
  max-width: 500px;
  text-align: center;
}

.newsletter-compact .newsletter__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.newsletter-compact .newsletter__form input {
  padding: 1rem;
  background: rgba(42, 31, 26, 0.6);
  border: 1px solid var(--gold-muted);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  border-radius: 4px;
  text-align: center;
}

.newsletter-compact .newsletter__form input:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 10px rgba(212, 184, 150, 0.3);
}

.newsletter-compact .newsletter__form .btn {
  width: 100%;
}

.newsletter__privacy {
  color: var(--text-secondary);
  font-size: 0.75rem;
  margin-top: 0.8rem;
  opacity: 0.7;
}

/* Ajuste para Tablet/Desktop en el formulario compacto */
@media (min-width: 768px) {
  .newsletter-compact .newsletter__form {
    flex-direction: row;
  }
  .newsletter-compact .newsletter__form input {
    flex: 1;
    text-align: left;
  }
  .newsletter-compact .newsletter__form .btn {
    width: auto;
    white-space: nowrap;
  }
}

/* ========== PÁGINA DE CONTACTO ========== */
.contacto-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 0 80px;
  /* Fondo un poco más claro que el primario, con un toque cálido roble */
  background: linear-gradient(135deg, #4a3d32 0%, #5c4d40 50%, #4a3d32 100%);
  position: relative;
}

.contacto-page::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(212, 184, 150, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.contacto-card {
  position: relative;
  z-index: 1;
  background: rgba(42, 31, 26, 0.6); /* Efecto cristal sutil */
  backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 184, 150, 0.3);
  border-radius: 12px;
  padding: 3.5rem 2.5rem;
  text-align: center;
  max-width: 650px;
  margin: 0 auto;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.contacto__icon {
  font-size: 3.5rem;
  color: var(--gold-primary);
  margin-bottom: 1.5rem;
}

.contacto__title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--gold-primary);
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
}

.contacto__text {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.contacto__email {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-primary);
  background: rgba(212, 184, 150, 0.1);
  padding: 1.2rem 2rem;
  border-radius: 8px;
  border: 1px solid var(--gold-muted);
  text-decoration: none;
  transition: var(--transition);
  margin-bottom: 2.5rem;
  word-break: break-all; /* Evita que el correo se salga en móviles muy pequeños */
}

.contacto__email:hover {
  background: var(--gold-primary);
  color: var(--bg-primary);
  border-color: var(--gold-primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(212, 184, 150, 0.3);
}

.contacto__divider {
  width: 60px;
  height: 2px;
  background: var(--gold-muted);
  margin: 0 auto 2rem;
  opacity: 0.5;
}

/* Responsive para Contacto */
@media (max-width: 767px) {
  .contacto-page { 
    padding: 120px 0 60px; 
  }
  .contacto-card { 
    padding: 2.5rem 1.5rem; 
  }
  .contacto__title { 
    font-size: 2rem; 
  }
  .contacto__text {
    font-size: 0.95rem;
  }
  .contacto__email { 
    font-size: 1rem; 
    padding: 1rem 1.5rem; 
  }
}

/* ========== ESTILOS PARA LISTA DE LIBROS DINÁMICA ========== */
.libros-grid {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
}

.badge-estado {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.badge-proximamente { 
  background: rgba(251, 191, 36, 0.15); 
  color: #fbbf24; 
  border: 1px solid rgba(251, 191, 36, 0.3); 
}

.badge-agotado { 
  background: rgba(239, 68, 68, 0.15); 
  color: #ef4444; 
  border: 1px solid rgba(239, 68, 68, 0.3); 
}

/* ========== PÁGINA DE ARTÍCULOS ========== */
.articulos-page {
  padding: 140px 0 80px;
  background: 
    linear-gradient(135deg, rgba(42, 31, 26, 0.88) 0%, rgba(61, 47, 38, 0.85) 50%, rgba(42, 31, 26, 0.90) 100%),
    url('../img/escritorio-bg.jpg') center/cover no-repeat fixed;
  position: relative;
  min-height: 100vh;
}

.articulos-page .container {
  position: relative;
  z-index: 2;
}

/* Grid de artículos */
.articulos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

/* Tarjeta de artículo */
.articulo-card {
  background: rgba(42, 31, 26, 0.7);
  border: 1px solid rgba(212, 184, 150, 0.2);
  border-radius: 8px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.articulo-card:hover {
  transform: translateY(-5px);
  border-color: rgba(212, 184, 150, 0.5);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.articulo-card__img-wrapper {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}

.articulo-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.articulo-card:hover .articulo-card__img {
  transform: scale(1.05);
}

.articulo-card__img-placeholder {
  width: 100%;
  height: 100%;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-muted);
}

.articulo-card__contenido {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.articulo-card__categoria {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--gold-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.articulo-card__titulo {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  line-height: 1.3;
}

.articulo-card__resumen {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
}

.articulo-card .btn-leer-mas {
  align-self: flex-start;
  padding: 0.7rem 1.2rem;
  font-size: 0.75rem;
}

/* ========== MODAL DE ARTÍCULO ========== */
.articulo-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.articulo-modal__content {
  background: var(--bg-secondary);
  border: 1px solid rgba(212, 184, 150, 0.3);
  border-radius: 12px;
  max-width: 800px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 3rem;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.articulo-modal__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: transparent;
  border: 1px solid var(--gold-muted);
  color: var(--gold-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  transition: var(--transition);
}

.articulo-modal__close:hover {
  background: var(--gold-primary);
  color: var(--bg-primary);
}

.articulo-modal__titulo {
  font-family: var(--font-heading);
  color: var(--gold-primary);
  font-size: 2rem;
  margin-bottom: 1rem;
  padding-right: 3rem;
}

.articulo-modal__categoria {
  display: inline-block;
  color: var(--gold-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(212, 184, 150, 0.2);
}

.articulo-modal__body {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
}

.articulo-modal__body p {
  margin-bottom: 1.2rem;
}

/* Responsive */
@media (max-width: 767px) {
  .articulos-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .articulo-modal__content {
    padding: 2rem 1.5rem;
    max-height: 90vh;
  }
  
  .articulo-modal__titulo {
    font-size: 1.5rem;
  }
}