body {
    font-family: "Plus Jakarta Sans", sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.4;
    color: #0c3c99;
    background-color: #f9f6f1;
    font-size: 1.1rem;
  }

  h3 {
    font-size: 1.5rem;
    font-family: "Plus Jakarta Sans", sans-serif;
  }

  .paragraph-md {
    font-weight: 400;
    font-size: 1.2rem;
  }

  .paragraph-sm {
    font-weight: 400;
    font-size: 0.9rem;
  }

  .paragraph-sm-bold {
    font-weight: 700;
    font-size: 1rem;
  }

  .margin-top {
    margin-top: 1rem;
  }

  .margin-bottom {
    margin-bottom: 4rem;
  }

  .margin-bottom-sm {
    margin-bottom: 2rem;
  }

  /* --- Navegación Principal (Menú Fijo) --- */
    .main-nav {
        position: sticky; /* Hace que el menú sea fijo cuando se desplaza */
        top: 0; /* Lo fija en la parte superior de la ventana */
        width: 100%; /* Ocupa todo el ancho */
        background-color: #004080; /* Color de fondo del menú */
        z-index: 1000; /* Asegura que esté por encima de otros elementos */
        padding: 10px 0; /* Espaciado interno */
    }

    .main-nav ul {
        list-style: none; /* Quita las viñetas de la lista */
        margin: 0;
        padding: 0;
        display: flex; /* Para que los elementos se coloquen en fila */
        justify-content: center; /* Centra los elementos del menú */
        flex-wrap: wrap; /* Permite que los elementos se envuelvan en pantallas pequeñas */
    }

    .main-nav ul li {
        margin: 0 15px; /* Espacio entre los elementos del menú */
    }

    .main-nav ul li a {
        text-decoration: none; /* Quita el subrayado de los enlaces */
        color: #82a5dd; /* Color del texto de los enlaces */
        font-weight: 100; /* Grosor de la fuente */
        font-size: 0.9rem; /* Grosor de la fuente */
        padding: 8px 12px; /* Espaciado dentro de cada enlace */
        transition: color 0.3s ease, background-color 0.3s ease; /* Transición suave para efectos hover */
    }

    .main-nav ul li a:hover,
    .main-nav ul li a:focus {
        color: #007bff; /* Color del texto al pasar el ratón o enfocar */
    }

    /* Opcional: Para desplazamiento suave */
    html {
        scroll-behavior: smooth;
    }

  .hero {
    background: #004080;
    color: white;
    text-align: center;
    height: 70vh;
    position: relative; /* Nuevo: para contener la imagen absoluta */
    overflow: hidden; /* Nuevo: oculta el exceso de imagen */
  }

  /* Hero*/
  .hero h1 {
    font-family:"Plus Jakarta Sans", sans-serif;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 4rem;
    line-height: 110%;
  }

  .hero .subtitle {
    font-size: 1.4rem;
    font-weight: 200;
    margin-bottom: 2.5rem;
  }

  .cta-button {
    background-color: #ffcc00;
    color: #000;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
  }

  .cta-button:hover {
    background-color: #e6b800;
  }

  /* Image */
.hero-content {
    position: relative;
    z-index: 2; /* Asegura que el contenido esté sobre la imagen */
    height: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-bottom-image {
    position: absolute;
    bottom: 50;
    left: 50%;
    transform: translateX(-50%);
    width: 25rem;
    height: auto;
    object-fit: cover;
    z-index: 1;
    clip-path: inset(5% 0 0 0); /* Solo muestra el ... inferior de la imagen */
}

/* Responsive: ajuste para móviles */
@media (max-width: 768px) {
    .hero {
        height: 90vh; /* Más espacio en móviles */
        padding-bottom: 8rem; /* Espacio extra para la imagen */
    }
    .hero-bottom-image {
        clip-path: inset(50% 0 0 0); /* Muestra menos imagen en móviles */
    }
    .hero h1 {
        font-size: 2.5rem;
    }
}

  section {
    padding: 2rem 1rem 0rem;
    margin: 0 auto;
  }

  h2 {
    font-size: 2.8rem;
    margin: 0rem;
    padding-top: 0.5rem;
    line-height: 130%;
  }

/* About the book */
.text-flex {
    display: flex;
    gap: 4.5rem;
}

.cincuenta {
    width: 50%;
}

/* Author Author */
.author-div {
    align-items: center;
    background-color: #e2f0f4;
    padding: 2rem 2.6rem 3rem;
    border-radius: 1rem;
}

  .author-section {
    padding: 3rem 1rem;
    margin: 0 auto;
    }

  .author-photo {
    width: 8rem;
    height: 8rem;
  }

  .photo-text {
    display: flex;
    gap: 1.8rem;
    align-items: center;
  }

  .no-text-margin {
    margin: 0.4rem 0rem !important;
  }

  .name-charge {
    align-items: center;
  }

  .downloads .download-item {
    background: #f5f5f5;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
  }

  .download-button {
    display: inline-block;
    margin-top: 0.75rem;
    background-color: #0066cc;
    color: white;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
  }

  /* Estilos para el enlace deshabilitado (usando la clase) */
    .disabled-link {
    background-color: #aaa !important; /* Más gris para indicar inactividad, !important para sobrescribir si es necesario */
    cursor: not-allowed; /* Cambia el cursor a "prohibido" */
    pointer-events: none; /* Esto es clave: deshabilita clics y eventos de ratón */
    opacity: 0.7; /* Opcional: para que se vea un poco atenuado */
}

  /* You will-learn */
  .bullets li {
    margin: 1rem 0;
}

  /*Download */
  .cards-flex {
    display: flex;
    flex-wrap: wrap;
  }

  .download-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
  }
  
  .download-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    padding: 2rem;
    background-color: white;
  }

  .download-card h3 {
    margin: 0rem;
  }
  
  .download-card:hover {
    transform: translateY(-5px);
  }

  /* Table of contents */
  .e-chapters-section {
    padding: 5rem 0;
  }
  
  .chapters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
  }
  
  .chapter-card {
    padding: 0.5rem;
    border-radius: 0.5rem;
  }

  .chapter-card p {
    margin: 0rem;
  }

  .chapter-card h3 {
    margin: 0.5rem 0rem;
  }


  
  .chapter-link {
    color: #0066ff;
    text-decoration: none;
    font-weight: 600;
  }

  /* Book Versions Section */
  .book-versions-section {
    padding: 3rem 1rem;
    margin: 0 auto;
    }

  .sections-container {
    width: 68vw; /* Ancho máximo del contenido */
    margin: 0 auto; /* Centrado */ 
  }

  .sections-container-2 {
    width: 66%; /* Ancho máximo del contenido */
    margin: 0 auto; /* Centrado */ 
  }

  .sections-container-3 {
    width: 35%; /* Ancho máximo del contenido */
    margin: 0 auto; /* Centrado */ 
  }

  .sections-container-3-left {
    width: 35%; /* Ancho máximo del contenido */
  }

  .sections-container-4 {
    width: 50%; /* Ancho máximo del contenido */
    margin: 0 auto; /* Centrado */ 
  }

  .book-versions-section h2 {
    margin-bottom: 1rem;
    text-align: center;
  }

  .book-note {
    text-align: center;
    font-style: italic;
    color: #666;
    margin-bottom: 2rem;
  }

  .book-versions {
    list-style: none;
    padding-left: 0;
  }

  .book-versions li {
    background: #fff;
    border: 1px solid #ddd;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    transition: box-shadow 0.3s ease;
  }

  .book-versions li:hover {
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  }

  .book-versions a {
    color: #0066cc;
    font-weight: bold;
    text-decoration: none;
  }

  .book-versions a:hover {
    text-decoration: underline;
  }

  .changelog {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.95rem;
    color: #444;
  }

  .card-category {
    display: inline-block;
    color: #16afa0;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 600;

  }
  
  .learn-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: #222;
  }
  
  .learn-card p {
    color: #666;
    margin-bottom: 1.5rem;
  }
  
  .card-link {
    color: #0066ff;
    text-decoration: none;
    font-weight: 600;
  }
  
  .primary-button {
    display: inline-block;
    background-color: #0066ff;
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s;
  }
  
  .primary-button:hover {
    background-color: #0052cc;
  }
  
  .section-cta {
    text-align: center;
  }

  /* Responsive */
  @media (max-width: 600px) {
    .book-versions-container {
      padding: 0 1rem; /* Espaciado lateral en móviles */
    }
  }

   /* Footer */
   footer {
    text-align: center;
    background-color: #84c5d6;
    padding: 0.4rem;
  }