    :root {
      --azul-marino: #003366;
      --celeste: #00b4d8;
      --blanco: #ffffff;
      --gris-claro: #f5f5f5;
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: Arial, sans-serif;
      line-height: 1.6;
      background-color: var(--gris-claro);
      color: #333;
      opacity: 0;
      animation: fadeIn 1.2s ease-in-out forwards;
    }

    @keyframes fadeIn {
      to {
        opacity: 1;
      }
    }

    header {
      background-color: var(--azul-marino);
      color: var(--blanco);
      padding: 2rem;
      text-align: center;
    }

    nav {
      background-color: var(--celeste);
      padding: 1rem;
      text-align: center;
    }

    nav ul {
      list-style: none;
      display: flex;
      justify-content: center;
      gap: 1.5rem;
      flex-wrap: wrap; /* 👈 Esta línea permite que se vayan a otra línea si no caben */
    }

    nav a {
      color: var(--blanco);
      text-decoration: none;
      font-weight: bold;
    }

    nav a:hover,
    nav a.activo {
      text-decoration: underline;
      border-bottom: 2px solid var(--blanco);
    }

    main {
      max-width: 800px;
      margin: 2rem auto;
      padding: 0 1rem;
    }

    section {
      margin-bottom: 2rem;
      background: var(--blanco);
      padding: 1.5rem;
      border-radius: 8px;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    }

    footer {
      text-align: center;
      padding: 1rem;
      background-color: var(--azul-marino);
      color: var(--blanco);
      margin-top: 2rem;
    }

    a {
      color: var(--celeste);
    }

    a:hover {
      color: var(--azul-marino);
    }

    #whatsapp-btn {
      position: fixed;
      bottom: 20px;
      right: 20px;
      background-color: #25d366;
      color: white;
      border: none;
      border-radius: 50%;
      width: 60px;
      height: 60px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 30px;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
      cursor: pointer;
      z-index: 1000;
      text-decoration: none;
    }

/*Vídeos de youtube*/
    .video-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 2rem;
    }
    
    .video-grid iframe {
      width: 100%;
      height: 315px;
      border-radius: 12px;
    }
    
    @media (max-width: 768px) {
      .video-grid {
        grid-template-columns: 1fr;
      }
    }
/*Visor PDFJS*/
 .pdf-container {
  width: 100%;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  position: relative;
}

.pdf-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Escalado solo en móviles */
@media (max-width: 600px) {
  .pdf-container {
    transform: scale(0.9); /* Ajusta si quieres más pequeño */
    transform-origin: top left;
    height: 90vh; /* evita el corte por la escala */
    overflow: hidden;
  }

  /* Previene que el body se desborde por el escalado */
  body {
    overflow-x: hidden;
  }
}

/* Diseño imágenes responsivas para la colección de la editorial */
.libro-presentacion {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  max-width: 1000px;
  margin: auto;
}

.libro-texto {
  flex: 1 1 300px;
  font-family: "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

.libro-texto h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.libro-texto .precio,
.libro-texto .pedido,
.libro-texto .pagos,
.libro-texto .entregas{
  margin-top: 1rem;
  font-weight: 600;
}

.libro-texto .el-rostro-de-la-virtud{
  font-weight:400;
}

.libro-texto .font-weight-600{
    font-weight: 600;
}

.libro-imagen {
  flex: 1 1 300px;
  display: flex;
  justify-content: center;
}

.libro-imagen img {
  width: 100%;
  max-width: 280px;
  border-radius: 8px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  border: 1px solid #ccc;
}

/* Buscador de libros para la editorial*/

    .search-bar {
    /*margin-bottom: 1.5rem;+*/
    display: flex; /* Utiliza flexbox para alinear el contenido */
    justify-content: center; /* Centra la barra de búsqueda horizontalmente */
    margin-bottom: 20px; /* Espacio inferior entre la barra de búsqueda y el siguiente elemento */
    }

    #search {
      width: 300px; /* Ancho del campo de búsqueda */
      padding: 10px; /* Espaciado interno */
      border-radius: 5px; /* Bordes redondeados */
      border: 1px solid #ccc; /* Borde gris claro */
      justify-content: center;
      /*width: 100%;
      padding: 0.75rem;
      font-size: 1rem;
      border: 1px solid #ccc;
      border-radius: 6px;*/
    }

    .libros-container {
      justify-content: center;
      align-items: center;
      display: flex;
      flex-wrap: wrap; /*Para cuando haya mas libros para agregar*/
      gap: 1.5rem;
      padding: 10px; /*Espaciado interno alrededor*/
    }

    .libro-card {
      border: 1px solid #ddd;
      border-radius: 10px;
      padding: 1rem;
      width: 100%;
      max-width: 300px;
      box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
      transition: transform 0.2s ease;
    }

    .libro-card:hover {
      transform: scale(1.02);
    }

    .libro-card img {
      width: 100%;
      height: auto;
      border: 1px solid #333;
      border-radius: 4px;
      margin-bottom: 1rem;
    }

    .libro-card h3 {
      margin-top: 0;
      font-size: 1.2rem;
    }

    .libro-card p {
      font-size: 0.95rem;
      color: #333;
    }

    @media (max-width: 600px) {
      .libros-container {
        flex-direction: column;
        align-items: center;
      }
    }

    .header-2 {
    text-align: center; /* Centra el texto del encabezado */
    padding: 20px; /* Añade espacio alrededor del encabezado */
    }
