body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: #334;

  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.home-page {
  background-image:
    linear-gradient(rgba(245, 240, 230, 0.35), rgba(245, 240, 230, 0.35)),
    url("/imagenes/Koi.jpg");
}

.filosofia-page {
  background-image:
    linear-gradient(rgba(245, 240, 230, 0.45), rgba(245, 240, 230, 0.45)),
    url("/imagenes/nenua.jpg");
}

.recomendaciones-page {
  background-image:
    linear-gradient(rgba(245, 240, 230, 0.4), rgba(245, 240, 230, 0.4)),
    url("/imagenes/lago.jpg");
}

.libros-page {
  background-image:
    linear-gradient(rgba(245, 240, 230, 0.4), rgba(245, 240, 230, 0.4)),
    url("/imagenes/ventana.jpg");
}

.random2-page {
  background-image:
    linear-gradient(rgba(245, 240, 230, 0.4), rgba(245, 240, 230, 0.4)),
    url("/imagenes/lago.jpg");
}

header {
  text-align: center;
  padding: 90px 20px 60px;
  background: rgba(255, 255, 255, 0.28);
  border-bottom: 1px solid rgba(120, 140, 160, 0.25);
}

h1 {
  margin: 0;
  font-size: 56px;
  font-weight: normal;
  letter-spacing: 1px;
  color: #49657a;
  text-shadow: 1px 1px 0 rgba(255,255,255,0.5);
}

.subtitle {
  margin-top: 10px;
  font-size: 17px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #7a6f8f;
}

.intro {
  margin-top: 18px;
  font-size: 20px;
  font-style: italic;
  color: #5e6f68;
}

nav {
  text-align: center;
  padding: 16px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  border-bottom: 1px solid rgba(120, 140, 160, 0.2);
}

nav a {
  color: #5b7290;
  text-decoration: none;
  margin: 0 14px;
  font-size: 17px;
  transition: 0.2s ease;
}

nav a:hover {
  color: #8d5f7d;
  text-decoration: underline;
}

main {
  max-width: 850px;
  margin: 45px auto;
  padding: 0 20px;
}

.card {
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(150, 170, 180, 0.25);
  border-radius: 24px;
  padding: 30px;
  margin-bottom: 28px;
  box-shadow: 0 8px 30px rgba(120, 140, 160, 0.12);
  backdrop-filter: blur(6px);
}

.card h2 {
  margin-top: 0;
  font-size: 30px;
  font-weight: normal;
  color: #5b7c77;
}

.card p,
.card li {
  font-size: 18px;
  line-height: 1.8;
  color: #43525a;
}

.entry {
  margin-top: 20px;
  padding: 20px;
  border-left: 4px solid rgba(130, 170, 180, 0.5);
  background: rgba(245, 248, 250, 0.5);
  border-radius: 16px;
}

.entry h3 {
  margin-top: 0;
  font-weight: normal;
  color: #7b6588;
}

ul {
  padding-left: 22px;
}

footer {
  text-align: center;
  padding: 30px;
  margin-top: 50px;
  color: #5e6f68;
  background: rgba(255, 255, 255, 0.25);
  border-top: 1px solid rgba(120, 140, 160, 0.18);
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.home-card {
  display: block;
  min-height: 230px;
  padding: 28px;
  text-decoration: none;
  color: #43525a;

  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(150, 170, 180, 0.3);
  border-radius: 24px;
  box-shadow: 0 8px 30px rgba(120, 140, 160, 0.14);
  backdrop-filter: blur(6px);

  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 35px rgba(120, 140, 160, 0.22);
}

.home-card h2 {
  margin-top: 0;
  font-size: 28px;
  font-weight: normal;
  color: #5b7c77;
}

.home-card p {
  font-size: 17px;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .home-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 650px) {
  .home-grid {
    grid-template-columns: 1fr;
  }

  nav a {
    display: inline-block;
    margin: 6px 8px;
  }
}


.diary-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.diary-form label {
  font-size: 17px;
  color: #5b7c77;
}

.diary-form input,
.diary-form textarea {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  padding: 12px;
  border: 1px solid rgba(120, 140, 160, 0.35);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.65);
  color: #334;
}

.diary-form textarea {
  min-height: 170px;
  resize: vertical;
}

.diary-form button,
.delete-button {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  padding: 11px 18px;
  border: none;
  border-radius: 18px;
  background: rgba(91, 124, 119, 0.8);
  color: white;
  cursor: pointer;
}

.diary-form button:hover,
.delete-button:hover {
  background: rgba(123, 101, 136, 0.85);
}

.diary-entry {
  margin-bottom: 20px;
  padding: 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.55);
  border-left: 4px solid rgba(123, 101, 136, 0.6);
}

.diary-meta {
  font-size: 15px;
  color: #7b6588;
  font-style: italic;
  margin-top: 0;
}

.delete-button {
  margin-top: 10px;
  font-size: 14px;
  padding: 8px 14px;
}


.diary-text {
  white-space: pre-wrap;
}

.review-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.review-form label {
  font-size: 17px;
  color: #5b7c77;
}

.review-form input,
.review-form textarea,
.review-form select {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  padding: 12px;
  border: 1px solid rgba(120, 140, 160, 0.35);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.65);
  color: #334;
}

.review-form textarea {
  min-height: 170px;
  resize: vertical;
}

.review-form button {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  padding: 11px 18px;
  border: none;
  border-radius: 18px;
  background: rgba(91, 124, 119, 0.8);
  color: white;
  cursor: pointer;
}

.review-form button:hover {
  background: rgba(123, 101, 136, 0.85);
}

.review-entry {
  margin-bottom: 24px;
  padding: 22px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.55);
  border-left: 4px solid rgba(123, 101, 136, 0.6);
}

.review-entry h3 {
  margin-top: 8px;
  margin-bottom: 6px;
  font-weight: normal;
  font-size: 26px;
  color: #5b7c77;
}

.review-meta {
  font-size: 15px;
  color: #7b6588;
  font-style: italic;
  margin-top: 0;
}

.review-rating {
  font-size: 20px;
  color: #8d5f7d;
  margin: 6px 0 14px;
}

.review-text {
  white-space: pre-wrap;
  font-size: 17px;
  line-height: 1.8;
  color: #43525a;
}

.review-photo {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 16px;
  box-shadow: 0 8px 25px rgba(80, 100, 120, 0.18);
}


.back-button {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  color: #5b7290;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(120, 140, 160, 0.25);
  border-radius: 18px;
  padding: 7px 13px;
  margin: 0 12px;
  cursor: pointer;
  transition: 0.2s ease;
}

.back-button:hover {
  color: #8d5f7d;
  background: rgba(255, 255, 255, 0.7);

}


.social-links img.social-icon {
  width: 32px;
  height: 32px;
  max-width: 32px;
  max-height: 32px;
  object-fit: contain;
  display: block;
}

.social-links a {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;

  display: inline-flex;
  align-items: center;
  justify-content: center;
}



.todo-page {
  background-image:
    linear-gradient(rgba(245, 240, 230, 0.42), rgba(245, 240, 230, 0.42)),
    url("/Koi.jpg");
}

.todo-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.todo-form label {
  font-size: 17px;
  color: #5b7c77;
}

.todo-form input,
.todo-form select {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  padding: 12px;
  border: 1px solid rgba(120, 140, 160, 0.35);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.65);
  color: #334;
}

.todo-form button,
.todo-button {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  padding: 10px 16px;
  border: none;
  border-radius: 18px;
  background: rgba(91, 124, 119, 0.8);
  color: white;
  cursor: pointer;
}

.todo-form button:hover,
.todo-button:hover {
  background: rgba(123, 101, 136, 0.85);
}

.todo-entry {
  margin-bottom: 18px;
  padding: 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
  border-left: 4px solid rgba(123, 101, 136, 0.6);
}

.todo-meta {
  font-size: 15px;
  color: #7b6588;
  font-style: italic;
  margin-top: 0;
}

.todo-text {
  font-size: 18px;
  line-height: 1.6;
  color: #43525a;
}

.todo-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.todo-done {
  opacity: 0.6;
}

.todo-done .todo-text {
  text-decoration: line-through;
}

.todo-button.delete-button {
  background: rgba(150, 90, 90, 0.75);
}

.todo-button.delete-button:hover {
  background: rgba(150, 70, 70, 0.9);
}


.admin-only {
  display: none;
}




.libros-page .home-grid {
  grid-template-columns: repeat(2, 1fr);
}

.libros-page .home-grid .home-card {
  min-height: 260px;
}

@media (max-width: 700px) {
  .libros-page .home-grid {
    grid-template-columns: 1fr;
  }
}