body {
  background-color: #12100E;
  margin: 0;
  padding: 0;
}

#header {
  width: 60%;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 60px;
}

h1 {
  color: #C4C0AB;
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 40pt;
  width: 350px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

table {
  margin-left: auto;
  margin-right: auto;
  width: 60%;
  margin-top: 60px;
}

th {
  color: #4A4B2F;
  font-family: "EB Garamond", serif;
  padding: 10px 15px;
  font-size: 13pt;
  cursor: pointer;
}

th:hover {
  color: #C4C0AB;
  font-style: italic;
}

/* CONTENEDOR PRINCIPAL CON FLEXBOX */
.main-container {
  display: flex;
  width: 80%;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
}

/* SIDEBAR IZQUIERDO */
.sidebar {
  flex: 0 0 100px; /* Ancho fijo de 300px */
  background-color: #30321C;
  padding: 20px;
  color: #C4C0AB;
  height: fit-content;
  margin-top: 0;
}

.sidebar h3 {
  font-family: "Playfair Display", serif;
  text-align: center;
  font-size: 15pt;
  margin-top: 0;
  margin-bottom: 25px;
  border-bottom: 1px solid #4A4B2F;
  padding-bottom: 10px;
}

.actualizaciones {
  font-family: "EB Garamond", serif;
  text-align: left;
}

.actualizaciones p {
  margin-bottom: 10px;
  font-size: 12pt;
}

.actualizaciones i {
  color: #C4C0AB;
  font-style: italic;
  display: block;
  margin-bottom: 5px;
}

/* CONTENIDO PRINCIPAL */
.content {
  flex: 1; /* Ocupa el espacio restante */
  color: #C4C0AB;
  font-family: "Inter Tight", sans-serif;
  margin-bottom: 150px;
}

/* ENTRADAS DEL BLOG */
#entradas {
  display: flex;
  flex-direction: column;
  gap: 60px; /* Espacio entre entradas */
}

.entrada {
  background-color: rgba(42, 43, 28, 0.3);
  padding: 30px;
  border-left: 3px solid #4A4B2F;
  transition: all 0.3s ease;
}

.entrada:hover {
  background-color: rgba(42, 43, 28, 0.5);
  border-left-color: #C4C0AB;
}

.encabezado {
  font-family: "Playfair Display", serif;
  font-size: 25pt;
  margin-top: 0;
  margin-bottom: 10px;
  color: #C4C0AB;
}

.fecha {
  font-family: "EB Garamond", serif;
  font-style: italic;
  color: #707147;
  font-size: 12pt;
  margin-bottom: 20px;
  display: block;
}

.prosa {
  font-family: "Inter Tight", sans-serif;
  text-align: justify;
  margin-bottom: 25px;
}

.prosa p {
  margin-bottom: 15px;
}

/* ENLACES "LEER MÁS" */
.leermas {
  color: #4A4B2F;
  font-family: "EB Garamond", serif;
  text-decoration: none;
  font-weight: bold;
  font-size: 14pt;
  display: inline-block;
  padding: 8px 20px;
  border: 1px solid #4A4B2F;
  border-radius: 3px;
}

.leermas:hover {
  color: #C4C0AB;
  background-color: #4A4B2F;
  border-color: #C4C0AB;
  font-style: italic;
}

a {
  color: #4A4B2F;
  font-family: "EB Garamond", serif;
  text-decoration: none;
  font-weight: bold;
  font-size: 14pt;
}

a:hover {
  color: #C4C0AB;
  font-style: italic;
}

.autor-section {
  background-color: #12100E;
  padding: 10px 20px;
  margin-bottom: 30px;
}

 h4 {
    font-family: "Playfair Display";
    color: #707147;
    font-style: italic;
    margin-bottom: 0px;
    font-size: 18px;
    padding: -10px;
  }

 #autor {
  width: 200px;
  margin-top: 0px;
  font-family: "Inter Tight";
  font-size: 12px;
  padding: 0px;
  color: #C4C0AB;
 }
 .autor-desc {
  font-family: "Inter Tight", sans-serif;
  font-size: 12px;
 }

 /* ===== ESTILOS PARA SECCIÓN DE POEMAS ===== */

/* Contenedor principal sin sidebar */
.seccion-container {
  width: 70%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0px 0;
}

/* Encabezado de la sección */
.seccion-header {
  text-align: center;
  margin-bottom: 60px;
  border-bottom: 2px solid #4A4B2F;
  padding-bottom: 20px;
}

.seccion-header h2 {
  font-family: "Playfair Display", serif;
  font-size: 36pt;
  color: #C4C0AB;
  margin: 0 0 10px 0;
  font-style: italic;
}

.seccion-descripcion {
  font-family: "EB Garamond", serif;
  font-style: italic;
  color: #707147;
  font-size: 16pt;
  margin: 0;
}

/* Lista de poemas */
.lista-poemas {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

/* Item individual de poema */
.poema-item {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  padding: 25px;
  background-color: rgba(42, 43, 28, 0.2);
  border-left: 3px solid #4A4B2F;
  transition: all 0.3s ease;
}

.poema-item:hover {
  background-color: rgba(42, 43, 28, 0.4);
  border-left-color: #C4C0AB;
  transform: translateX(5px);
}

/* Miniaturas de imágenes */
.poema-miniatura {
  flex: 0 0 150px; /* Ancho fijo para las miniaturas */
}

.miniatura-img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 5px;
  border: 2px solid #4A4B2F;
  transition: all 0.3s ease;
}

.poema-item:hover .miniatura-img {
  border-color: #C4C0AB;
  transform: scale(1.02);
}

/* Información del poema */
.poema-info {
  flex: 1;
}

.poema-titulo {
  font-family: "Playfair Display", serif;
  font-size: 24pt;
  color: #C4C0AB;
  margin: 0 0 8px 0;
}

.poema-fecha {
  font-family: "EB Garamond", serif;
  font-style: italic;
  color: #707147;
  font-size: 12pt;
  margin: 0 0 15px 0;
}

.poema-extracto {
  font-family: "Inter Tight", sans-serif;
  color: #C4C0AB;
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 13pt;
}

.poema-extracto p {
  margin: 0 0 10px 0;
}

.poema-extracto p:last-child {
  margin-bottom: 0;
}

/* Enlace para leer el poema completo */
.poema-enlace {
  font-family: "EB Garamond", serif;
  color: #4A4B2F;
  text-decoration: none;
  font-weight: bold;
  font-size: 13pt;
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid #4A4B2F;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.poema-enlace:hover {
  color: #C4C0AB;
  background-color: #4A4B2F;
  border-color: #C4C0AB;
  font-style: italic;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .seccion-container {
    width: 90%;
  }
  
  .poema-item {
    flex-direction: column;
    gap: 20px;
  }
  
  .poema-miniatura {
    flex: 0 0 auto;
    width: 100%;
  }
  
  .miniatura-img {
    width: 100%;
    height: 200px;
  }
}

/* Si no tienes imágenes, usa esta clase alternativa para miniaturas de color */
.miniatura-placeholder {
  width: 150px;
  height: 150px;
  background-color: #30321C;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  border: 2px solid #4A4B2F;
  font-size: 36px;
  color: #C4C0AB;
}

/* ===== ESTILOS PARA PÁGINA DE CONTACTO ===== */

.contacto-container {
  width: 70%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 0 80px;
}

/* Encabezado */
.contacto-header {
  text-align: center;
  margin-bottom: 60px;
  border-bottom: 2px solid #4A4B2F;
  padding-bottom: 20px;
}

.contacto-header h2 {
  font-family: "Playfair Display", serif;
  font-size: 36pt;
  color: #C4C0AB;
  margin: 0 0 10px 0;
  font-style: italic;
}

.contacto-subtitulo {
  font-family: "EB Garamond", serif;
  font-style: italic;
  color: #707147;
  font-size: 18pt;
  margin: 0;
}

/* Contenido principal */
.contacto-contenido {
  display: flex;
  gap: 50px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.contacto-info {
  flex: 1;
  min-width: 300px;
}

.formulario-container {
  flex: 1;
  min-width: 300px;
}

/* Tarjetas de información */
.info-card {
  background-color: rgba(42, 43, 28, 0.3);
  padding: 25px;
  margin-bottom: 30px;
  border-left: 3px solid #4A4B2F;
  transition: all 0.3s ease;
}

.info-card:hover {
  background-color: rgba(42, 43, 28, 0.5);
  border-left-color: #C4C0AB;
  transform: translateX(5px);
}

.info-icono {
  font-size: 28px;
  margin-bottom: 15px;
  color: #707147;
}

.info-card h3 {
  font-family: "Playfair Display", serif;
  font-size: 20pt;
  color: #C4C0AB;
  margin: 0 0 15px 0;
}

.info-card p {
  font-family: "Inter Tight", sans-serif;
  color: #C4C0AB;
  line-height: 1.6;
  margin-bottom: 10px;
}

.info-desc {
  font-size: 12pt;
  color: #707147 !important;
  font-style: italic;
}

.aviso-importante {
  color: #9c2c2c !important;
  font-weight: bold;
  border-top: 1px solid #4A4B2F;
  padding-top: 10px;
  margin-top: 15px !important;
}

/* Lista de contactos */
.contacto-lista {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contacto-lista li {
  font-family: "Inter Tight", sans-serif;
  color: #C4C0AB;
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
}

.contacto-lista li:before {
  content: "•";
  color: #707147;
  position: absolute;
  left: 0;
}

/* Estilos para el correo (protegido) */
.correo-encriptado {
  font-family: "EB Garamond", serif;
  font-size: 16pt;
  color: #C4C0AB !important;
  min-height: 30px;
}

.correo-link {
  color: #707147 !important;
  text-decoration: none;
  border-bottom: 1px dashed #707147;
  transition: all 0.3s ease;
  font-family: "EB Garamond", serif;
  font-size: 16pt;
}

.correo-link:hover {
  color: #C4C0AB !important;
  border-bottom: 1px solid #C4C0AB;
}

.btn-copiar {
  background: none;
  border: 1px solid #4A4B2F;
  color: #C4C0AB;
  padding: 5px 10px;
  margin-left: 10px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}

.btn-copiar:hover {
  background-color: #4A4B2F;
  border-color: #C4C0AB;
}

.cargando {
  color: #707147;
  font-style: italic;
  font-size: 14pt;
}

/* Estilos del formulario */
.formulario-container h3 {
  font-family: "Playfair Display", serif;
  font-size: 22pt;
  color: #C4C0AB;
  margin: 0 0 10px 0;
}

.formulario-desc {
  font-family: "Inter Tight", sans-serif;
  color: #707147;
  margin-bottom: 25px;
  font-style: italic;
}

.contacto-form {
  background-color: rgba(42, 43, 28, 0.3);
  padding: 30px;
  border-left: 3px solid #4A4B2F;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: "EB Garamond", serif;
  color: #C4C0AB;
  margin-bottom: 8px;
  font-size: 14pt;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  background-color: #12100E;
  border: 1px solid #4A4B2F;
  color: #C4C0AB;
  font-family: "Inter Tight", sans-serif;
  font-size: 13pt;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #C4C0AB;
  box-shadow: 0 0 0 2px rgba(196, 192, 171, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #707147;
  opacity: 0.7;
}

/* Checkbox de privacidad */
.privacidad-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.privacidad-check input[type="checkbox"] {
  width: auto;
  margin-top: 5px;
}

.privacidad-check label {
  margin: 0;
  font-size: 12pt;
  line-height: 1.4;
}

/* Botón de enviar */
.btn-enviar {
  background-color: #4A4B2F;
  color: #C4C0AB;
  border: none;
  padding: 14px 30px;
  font-family: "EB Garamond", serif;
  font-size: 15pt;
  font-weight: bold;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  margin-top: 10px;
}

.btn-enviar:hover {
  background-color: #5a5b3f;
  color: #C4C0AB;
  font-style: italic;
}

.form-nota {
  font-family: "Inter Tight", sans-serif;
  font-size: 11pt;
  color: #707147;
  text-align: center;
  margin-top: 15px;
  font-style: italic;
}

/* Contacto alternativo */
.contacto-alternativo {
  background-color: rgba(42, 43, 28, 0.2);
  padding: 30px;
  border-top: 2px solid #4A4B2F;
  margin-top: 40px;
}

.contacto-alternativo h3 {
  font-family: "Playfair Display", serif;
  font-size: 20pt;
  color: #C4C0AB;
  margin: 0 0 15px 0;
}

.contacto-alternativo p {
  font-family: "Inter Tight", sans-serif;
  color: #C4C0AB;
  margin-bottom: 20px;
}

.redes-alternativas {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.red-social {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background-color: rgba(42, 43, 28, 0.4);
  border: 1px solid #4A4B2F;
  border-radius: 3px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.red-social:hover {
  background-color: rgba(42, 43, 28, 0.7);
  border-color: #C4C0AB;
  transform: translateY(-3px);
}

.red-icono {
  font-size: 18px;
  color: #C4C0AB;
}

.red-texto {
  font-family: "EB Garamond", serif;
  color: #C4C0AB;
  font-size: 14pt;
}

/* Responsive */
@media (max-width: 768px) {
  .contacto-container {
    width: 90%;
    padding: 30px 0 50px;
  }
  
  .contacto-contenido {
    flex-direction: column;
    gap: 40px;
  }
  
  .contacto-info,
  .formulario-container {
    min-width: 100%;
  }
  
  .redes-alternativas {
    flex-direction: column;
  }
}

/* ===== ESTILOS PARA MENSAJES DEL FORMULARIO ===== */

.mensaje-exito,
.mensaje-error {
  background-color: rgba(42, 43, 28, 0.3);
  padding: 30px;
  border-left: 3px solid;
  margin-top: 20px;
  text-align: center;
}

.mensaje-exito {
  border-left-color: #707147;
}

.mensaje-error {
  border-left-color: #9c2c2c;
}

.exito-icono,
.error-icono {
  font-size: 40px;
  margin-bottom: 15px;
}

.exito-icono {
  color: #707147;
}

.error-icono {
  color: #9c2c2c;
}

.mensaje-exito h4,
.mensaje-error h4 {
  font-family: "Playfair Display", serif;
  font-size: 20pt;
  color: #C4C0AB;
  margin: 0 0 10px 0;
}

.mensaje-exito p,
.mensaje-error p {
  font-family: "Inter Tight", sans-serif;
  color: #C4C0AB;
  margin: 0;
  line-height: 1.6;
}

/* Estado de carga del botón */
.btn-cargando {
  font-family: "EB Garamond", serif;
  font-style: italic;
}

/* Responsive para mensajes */
@media (max-width: 768px) {
  .mensaje-exito,
  .mensaje-error {
    padding: 20px;
  }
}

/* Estilos para página de agradecimiento */
.mensaje-gracias {
  width: 70%;
  max-width: 600px;
  margin: 100px auto;
  text-align: center;
}

.gracias-contenido {
  background-color: rgba(42, 43, 28, 0.3);
  padding: 50px;
  border-left: 3px solid #707147;
}

.gracias-icono {
  font-size: 60px;
  margin-bottom: 30px;
  color: #707147;
}

.mensaje-gracias h2 {
  font-family: "Playfair Display", serif;
  font-size: 32pt;
  color: #C4C0AB;
  margin: 0 0 20px 0;
}

.gracias-texto {
  font-family: "Inter Tight", sans-serif;
  color: #C4C0AB;
  font-size: 16pt;
  line-height: 1.6;
  margin-bottom: 15px;
}

.gracias-nota {
  font-family: "EB Garamond", serif;
  font-style: italic;
  color: #707147;
  font-size: 14pt;
  margin-bottom: 30px;
}

.btn-volver {
  display: inline-block;
  padding: 12px 30px;
  background-color: #4A4B2F;
  color: #C4C0AB;
  font-family: "EB Garamond", serif;
  font-size: 14pt;
  text-decoration: none;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.btn-volver:hover {
  background-color: #5a5b3f;
  font-style: italic;
}

/* ===== ESTILOS PARA BIBLIOTECA ===== */

.biblioteca-container {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 0 80px;
}

/* Encabezado */
.biblioteca-header {
  text-align: center;
  margin-bottom: 50px;
  border-bottom: 2px solid #4A4B2F;
  padding-bottom: 25px;
}

.biblioteca-header h2 {
  font-family: "Playfair Display", serif;
  font-size: 36pt;
  color: #C4C0AB;
  margin: 0 0 10px 0;
  font-style: italic;
}

.biblioteca-subtitulo {
  font-family: "EB Garamond", serif;
  font-style: italic;
  color: #707147;
  font-size: 18pt;
  margin: 0 0 15px 0;
}

.biblioteca-descripcion {
  font-family: "Inter Tight", sans-serif;
  color: #C4C0AB;
  font-size: 14pt;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Filtros */
.biblioteca-filtros {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filtro-btn {
  padding: 10px 20px;
  background-color: rgba(42, 43, 28, 0.3);
  border: 1px solid #4A4B2F;
  color: #C4C0AB;
  font-family: "EB Garamond", serif;
  font-size: 13pt;
  cursor: pointer;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.filtro-btn:hover {
  background-color: rgba(42, 43, 28, 0.5);
  border-color: #C4C0AB;
}

.filtro-btn.activo {
  background-color: #4A4B2F;
  color: #C4C0AB;
  font-weight: bold;
}

/* Grid de libros */
.libros-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

/* Tarjeta individual de libro */
.libro-card {
  background-color: rgba(42, 43, 28, 0.3);
  border-radius: 8px;
  overflow: hidden;
  border-left: 3px solid #4A4B2F;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.libro-card:hover {
  transform: translateY(-5px);
  border-left-color: #C4C0AB;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Portada del libro */
.libro-portada {
  height: 250px;
  overflow: hidden;
}

.portada-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.libro-card:hover .portada-img {
  transform: scale(1.05);
}

/* Información del libro */
.libro-info {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.libro-titulo {
  font-family: "Playfair Display", serif;
  font-size: 18pt;
  color: #C4C0AB;
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.libro-autor {
  font-family: "EB Garamond", serif;
  color: #707147;
  font-size: 13pt;
  margin: 0 0 8px 0;
  font-style: italic;
}

.libro-fecha {
  font-family: "Inter Tight", sans-serif;
  color: #C4C0AB;
  font-size: 11pt;
  margin: 0 0 15px 0;
  opacity: 0.8;
}

/* Sistema de estrellas */
.libro-calificacion {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.estrellas {
  display: flex;
  gap: 3px;
}

.estrella {
  display: inline-block;
  width: 18px;
  height: 18px;
  background-color: #4A4B2F;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.estrella.llena {
  background-color: #C4C0AB;
}

.calificacion-texto {
  font-family: "EB Garamond", serif;
  color: #C4C0AB;
  font-size: 12pt;
}

/* Opinión */
.libro-opinion {
  flex-grow: 1;
}

.libro-opinion p {
  font-family: "Inter Tight", sans-serif;
  color: #C4C0AB;
  line-height: 1.6;
  margin: 0;
  font-size: 12pt;
}

/* Estadísticas */
.biblioteca-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 30px;
  background-color: rgba(42, 43, 28, 0.2);
  border-top: 2px solid #4A4B2F;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  min-width: 150px;
}

.stat-num {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: 28pt;
  color: #C4C0AB;
  margin-bottom: 5px;
}

.stat-label {
  font-family: "Inter Tight", sans-serif;
  color: #707147;
  font-size: 12pt;
}

/* Responsive */
@media (max-width: 768px) {
  .biblioteca-container {
    width: 95%;
    padding: 30px 0 50px;
  }
  
  .libros-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
  }
  
  .biblioteca-filtros {
    gap: 10px;
  }
  
  .filtro-btn {
    padding: 8px 15px;
    font-size: 11pt;
  }
  
  .biblioteca-stats {
    gap: 20px;
  }
  
  .stat-item {
    min-width: 120px;
  }
}

@media (max-width: 480px) {
  .libros-grid {
    grid-template-columns: 1fr;
  }
  
  .biblioteca-header h2 {
    font-size: 28pt;
  }
  
  .biblioteca-subtitulo {
    font-size: 14pt;
  }
}
