/* ============================================================
   Libreos.app — Estilos generales Landing Pages SEO
   Tipografía: Cormorant Garamond (100 % global)
   ============================================================ */

/* 1. IMPORTA LA FUENTE DESDE GOOGLE FONTS */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&display=swap');

/* 2. VARIABLES DE COLOR Y FUENTE */
:root {
  --color-bronce: #cda471;
  --color-bronce-oscuro: #b89156;
  --color-fondo-claro: #f5e6d3;
  --color-fondo-muy-claro: #fff8f0;
  --color-texto: #2e261e;
  --fuente-principal: 'Cormorant Garamond', serif;
}

/* 3. BASE GLOBAL */
html,
body {
  font-family: var(--fuente-principal);
  color: var(--color-texto);
  background: linear-gradient(180deg, var(--color-fondo-claro) 0%, var(--color-fondo-muy-claro) 100%);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  overflow-x: hidden;
  font-size: 18px;
}

/* Ajuste tipográfico general */
h1, h2, h3, h4, h5, h6, p, a, button, small, span {
  font-family: var(--fuente-principal);
  letter-spacing: 0.02em;
}

/* CONTENEDOR PRINCIPAL */
main.landing-author {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

/* HERO */
.hero {
  width: 100%;
  padding: 4rem 1.5rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(205, 164, 113, 0.5);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: 2.6rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.hero p {
  max-width: 600px;
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

/* BOTONES CTA */
.cta-btn {
  display: inline-block;
  background: var(--color-bronce);
  color: #fff;
  padding: 0.9rem 1.8rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.2s ease;
}

.cta-btn:hover {
  background: var(--color-bronce-oscuro);
  transform: translateY(-2px);
}

/* CONVERSACIONES */
.examples {
  width: 100%;
  max-width: 800px;
  padding: 2rem 1rem 3rem;
}

.examples h2 {
  font-size: 1.9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.conversation {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  text-align: left;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  animation: fadeUp 0.6s ease forwards;
}

.question p {
  color: var(--color-bronce-oscuro);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.answer p {
  border-left: 3px solid var(--color-bronce);
  padding-left: 1rem;
  margin: 0.5rem 0;
}

/* LIBROS RELACIONADOS */
.related-books {
  width: 100%;
  text-align: center;
  padding: 3rem 1rem;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
}

.related-books h2 {
  font-size: 1.9rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

.book-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.book-card {
  max-width: 160px;
}

.book-card img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.book-card img:hover {
  transform: scale(1.05);
}

.book-card p {
  font-size: 1.1rem;
  margin-top: 0.5rem;
  color: var(--color-texto);
}

.small-btn {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--color-bronce);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
}

.small-btn:hover {
  text-decoration: underline;
}

/* CTA FINAL */
.final-cta {
  text-align: center;
  padding: 3rem 1.5rem 5rem;
}

.final-cta h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.final-cta p {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

/* ANIMACIONES */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  .examples h2,
  .related-books h2,
  .final-cta h2 {
    font-size: 1.5rem;
  }
  .book-grid {
    gap: 1.2rem;
  }
}

/* ENLACES GENERALES */
a {
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-bronce-oscuro);
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 4rem 1.5rem;
  background: linear-gradient(180deg, #f6efe8 0%, #f2e4d5 100%);
}

.hero-img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 35px rgba(167, 112, 61, 0.35);
  border: 2px solid rgba(167, 112, 61, 0.5);
  margin-bottom: 1.5rem;
}

.hero-content h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  color: #2d2b29;
  margin-bottom: 1rem;
}

.hero-content p {
  font-family: 'Alice', serif;
  font-size: 1.1rem;
  max-width: 600px;
  color: #4b3f35;
  margin-bottom: 2rem;
}

.cta-btn {
  background: linear-gradient(135deg, #b48a64, #a7713d);
  color: #fff;
  padding: 0.9rem 2rem;
  border-radius: 40px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.cta-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 0 25px rgba(167, 112, 61, 0.4);
}



.author-bio-block {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 1.15rem;
  line-height: 1.7;
  color: #2d2b29;
  max-width: 700px;
  margin: 2rem auto;
  text-align: justify;
  background: rgba(255, 255, 255, 0.3);
  padding: 1.5rem 2rem;
  border-radius: 1.5rem;
  box-shadow: 0 0 30px rgba(167, 112, 61, 0.2);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.author-bio-block:hover {
  box-shadow: 0 0 45px rgba(167, 112, 61, 0.3);
}


.author-bio-empty {
  display: none !important;
}


.cta-btn {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  letter-spacing: 0.3px;
  background: linear-gradient(135deg, #b9936c, #a7713d);
  color: #fff;
  padding: 0.95rem 2.3rem;
  border-radius: 42px;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 0 15px rgba(167, 112, 61, 0.25);
  transition:
    background 0.6s ease,
    box-shadow 0.6s ease,
    transform 0.4s ease,
    color 0.4s ease;
}

.cta-btn:hover {
  background: linear-gradient(135deg, #c49b74, #b68148);
  color: #fffef9;
  box-shadow: 0 0 30px rgba(167, 112, 61, 0.45);
  transform: translateY(-2px);
}

.cta-btn:active {
  transform: translateY(0);
  box-shadow: 0 0 10px rgba(167, 112, 61, 0.3);
}

.cta-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(180, 147, 108, 0.4);
}


.inline-logo {
  height: 1.8em;          /* ajusta al tamaño del texto */
  vertical-align: -0.15em; /* corrige el alineado con la línea base */
  margin-right: 0.4rem;   /* espacio de respiración */
  filter: drop-shadow(0 0 4px rgba(167, 112, 61, 0.35));
  transition: filter 0.4s ease, transform 0.4s ease;
}

.inline-logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 6px rgba(167, 112, 61, 0.5));
}

.inline-logo {
  height: 2.9em;             /* ligeramente mayor que el texto */
  vertical-align: -0.25em;   /* corrige el alineado con la línea base */
  margin-right: 0.45rem;     /* un poco más de aire */
  filter: drop-shadow(0 0 4px rgba(167, 112, 61, 0.35));
  transition: filter 0.4s ease, transform 0.4s ease;
}

.inline-logo:hover {
  transform: scale(1.06);
  filter: drop-shadow(0 0 6px rgba(167, 112, 61, 0.5));
}


.hero {
  padding: 6rem 1.5rem 5rem;
  background: linear-gradient(180deg, #f8f3ec 0%, #f1e4d5 100%);
}

.hero-img {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(167, 112, 61, 0.45);
  box-shadow: 0 15px 45px rgba(167, 112, 61, 0.25);
  margin-bottom: 2rem;
  transition: transform 0.6s ease, box-shadow 0.6s ease;
}

.hero-img:hover {
  transform: scale(1.03);
  box-shadow: 0 20px 55px rgba(167, 112, 61, 0.35);
}

.author-bio-block {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  line-height: 1.75;
  color: #2c2926;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 1.6rem;
  padding: 2.3rem 2.6rem;
  box-shadow: 0 0 35px rgba(167, 112, 61, 0.25);
  backdrop-filter: blur(10px);
  max-width: 760px;
  margin: 0 auto 2.8rem;
  text-align: justify;
  transition: all 0.4s ease;
}

.author-bio-block:hover {
  box-shadow: 0 0 50px rgba(167, 112, 61, 0.35);
}


.cta-btn {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  letter-spacing: 0.3px;
  background: linear-gradient(135deg, #c79b6a, #a7713d);
  color: #fffdf8;
  padding: 1rem 2.8rem;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(167, 112, 61, 0.3);
  transition:
    background 0.6s ease,
    box-shadow 0.6s ease,
    transform 0.4s ease;
}

.cta-btn:hover {
  background: linear-gradient(135deg, #d2a979, #b17a46);
  box-shadow: 0 8px 30px rgba(167, 112, 61, 0.45);
  transform: translateY(-2px);
}

.book-card {
  background: rgba(255, 255, 255, 0.55);
  border-radius: 1.2rem;
  padding: 1.4rem;
  box-shadow: 0 4px 18px rgba(167, 112, 61, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.book-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(167, 112, 61, 0.25);
}


.header-logo {
  position: absolute;
  top: 1.5rem;
  left: 2rem;
  z-index: 100;
}

.logo-libreos {
  height: 48px;
  filter: drop-shadow(0 0 6px rgba(167, 112, 61, 0.35));
  transition: transform 0.4s ease, filter 0.4s ease;
}

.logo-libreos:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 8px rgba(167, 112, 61, 0.5));
}

/* Ajuste en móviles */
@media (max-width: 768px) {
  .logo-libreos {
    height: 38px;
  }
  .header-logo {
    top: 1rem;
    left: 1.2rem;
  }
}


.final-cta {
  text-align: center;
  margin: 4rem 0 6rem; /* ← deja aire antes del footer */
}

footer {
  border-top: 1px solid rgba(180, 138, 100, 0.2); /* línea bronce suave */
  margin-top: 3rem;
  padding: 2rem 0;
  font-size: 0.9rem;
  text-align: center;
  color: #7b6a58;
}

footer a {
  color: #7b6a58;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #a7713d;
}

footer img {
  vertical-align: middle;
  width: 24px;
  margin-right: 0.5rem;
  filter: brightness(0.9);
}


.related-books {
  text-align: center;
  padding: 4rem 1rem 6rem;
  background: linear-gradient(180deg, #f6efe8 0%, #f2e4d5 100%);
}

.related-books h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  color: #2d2b29;
  margin-bottom: 2.5rem;
}

/* Carrusel */
.carousel-wrapper {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  overflow: hidden;
}

.book-carousel {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 0.5rem 1rem;
  scrollbar-width: none; /* Firefox */
}

.book-carousel::-webkit-scrollbar {
  display: none;
}

.book-card {
  flex: 0 0 200px;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 1.2rem;
  box-shadow: 0 4px 20px rgba(167, 112, 61, 0.15);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 1.3rem 1rem 1.6rem;
}

.book-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(167, 112, 61, 0.25);
}

.book-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 0.8rem;
  margin-bottom: 1rem;
}

.book-card p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: #2d2b29;
  margin-bottom: 0.7rem;
}

.small-btn {
  display: inline-block;
  background: linear-gradient(135deg, #b9936c, #a7713d);
  color: #fff;
  padding: 0.5rem 1.3rem;
  border-radius: 40px;
  text-decoration: none;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  transition: all 0.4s ease;
}

.small-btn:hover {
  background: linear-gradient(135deg, #caa178, #b68148);
  transform: translateY(-1px);
}

/* Botones laterales */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.8);
  border: none;
  font-size: 2rem;
  color: #a7713d;
  cursor: pointer;
  padding: 0.3rem 0.7rem;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(167, 112, 61, 0.25);
  transition: all 0.3s ease;
  z-index: 5;
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
  left: 0.8rem;
}

.carousel-btn.next {
  right: 0.8rem;
}

@media (max-width: 768px) {
  .book-card {
    flex: 0 0 160px;
  }
  .book-card img {
    height: 220px;
  }
  .related-books h2 {
    font-size: 1.7rem;
  }
}


.related-books {
  text-align: center;
  margin: 5rem auto;
  max-width: 1100px;
}

.related-books h2 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: 2rem;
  color: #3a2a1c;
  margin-bottom: 2.5rem;
}

.book-grid {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
}

.book-grid::-webkit-scrollbar {
  height: 8px;
}
.book-grid::-webkit-scrollbar-thumb {
  background: rgba(180, 138, 100, 0.3);
  border-radius: 4px;
}

.book-card {
  flex: 0 0 220px;
  background: #fffaf3;
  border-radius: 20px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  padding: 1.5rem 1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  scroll-snap-align: start;
}

.book-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(180, 138, 100, 0.25);
}

.book-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 15px;
  margin-bottom: 1rem;
  background: #f0e9e0;
}

.book-card p {
  font-size: 1rem;
  font-weight: 500;
  color: #3a2a1c;
  margin: 0.5rem 0 1.2rem;
}

.book-card .small-btn {
  display: inline-block;
  background: linear-gradient(135deg, #b48a64, #a7713d);
  color: #fff;
  padding: 0.6rem 1.4rem;
  border-radius: 40px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.book-card .small-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(167, 113, 61, 0.3);
}


.related-books {
  text-align: center;
  margin: 5rem auto;
  max-width: 1100px;
  overflow: hidden;
}

.related-books h2 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: 2rem;
  color: #3a2a1c;
  margin-bottom: 2rem;
}

/* ==== CARRUSEL ==== */
.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.book-carousel {
  display: flex;
  gap: 1.6rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 1rem 2rem;
  scroll-snap-type: x mandatory;
}

.book-carousel::-webkit-scrollbar {
  height: 8px;
}
.book-carousel::-webkit-scrollbar-thumb {
  background: rgba(180, 138, 100, 0.3);
  border-radius: 4px;
}

/* ==== TARJETAS ==== */
.book-card {
  flex: 0 0 220px;
  background: #fffaf3;
  border-radius: 20px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  padding: 1.5rem 1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  scroll-snap-align: start;
}

.book-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(180, 138, 100, 0.3);
}

.book-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 15px;
  margin-bottom: 1rem;
  background: #f0e9e0;
}

.book-card p {
  font-size: 1rem;
  color: #3a2a1c;
  font-weight: 500;
  margin: 0.5rem 0 1.2rem;
}

.book-card .small-btn {
  display: inline-block;
  background: linear-gradient(135deg, #b48a64, #a7713d);
  color: #fff;
  padding: 0.6rem 1.4rem;
  border-radius: 40px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.book-card .small-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(167, 113, 61, 0.3);
}

/* ==== FLECHAS ==== */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #fffaf3;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  color: #a7713d;
  font-size: 1.6rem;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s ease, transform 0.2s ease;
}

.carousel-btn:hover {
  background: #f3e7da;
  transform: translateY(-50%) scale(1.05);
}

.carousel-btn.prev {
  left: 0.4rem;
}

.carousel-btn.next {
  right: 0.4rem;
}

/* ==== RESPONSIVE ==== */
@media (max-width: 768px) {
  .related-books h2 {
    font-size: 1.6rem;
  }

  .book-card {
    flex: 0 0 180px;
    padding: 1rem;
  }

  .book-card img {
    height: 250px;
  }

  .carousel-btn {
    width: 28px;
    height: 28px;
    font-size: 1.2rem;
    top: auto;
    bottom: -10px;
    transform: none;
  }

  .carousel-btn.prev {
    left: 35%;
  }

  .carousel-btn.next {
    right: 35%;
  }
}
