* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

.poppins-extralight {
    font-family: "Poppins", sans-serif;
    font-weight: 200;
    font-style: normal;
}
  
.poppins-light {
    font-family: "Poppins", sans-serif;
    font-weight: 300;
    font-style: normal;
}
  
.poppins-regular {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: normal;
}
  
.poppins-semibold {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-style: normal;
}
  
.poppins-bold {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-style: normal;
}

/* Estilos para el blog */
.blog-header {
    position: relative;
    background-color: #00a99d;
    height: 400px;

    padding-top: 90px; /* ← Para dejar espacio arriba para la barra fija */
    overflow: hidden;
}
  
.blog-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
  
.blog-header nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    z-index: 1001;
    padding: 10px 3%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
  
.blog-header .logo img {
    width: 150px;
    margin: 0;
}
  
.blog-header .nav_links {
    flex: 1;
    text-align: right;
}
  
.blog-header .nav_links ul {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 30px;
}
  
.blog-header .nav_links ul li {
    position: relative; 
    list-style: none;
  }

  .blog-header .nav_links ul li a {
    color: #333;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s;
    text-decoration: none;
  }

.blog-header .nav_links ul li a:hover {
    color: #00a99d;
  }
  
.blog-header .nav_links ul li a:hover,
.blog-header .nav_links ul li a.active {
    color: #00a99d;
    
}
  
.blog-header .nav_links ul li::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background-color: #00a99d;
    transition: width 0.3s ease;
  }
  
.blog-header .nav_links ul li:hover::after,
.blog-header .nav_links ul li.active::after {
    width: 100%;
  }

nav ul li::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #00a99d;
  transition: width 0.3s ease;
}

.blog-header .nav_links ul li.active::after {
    width: 100%;
  }

/* Animaciones para la transición entre elementos de navegación */
nav ul li.nav-leaving::after {
  width: 0;
  transition: width 0.3s ease;
}

nav ul li.nav-entering::after {
  width: 0;
  animation: navEntering 0.3s forwards;
}

@keyframes navEntering {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}
  
  
.blog-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
}
  
.blog-header p {
    font-size: 1.1rem;
    max-width: 700px;
}
  
.blog-header .wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='1' d='M0,96L80,106.7C160,117,320,139,480,138.7C640,139,800,117,960,112C1120,107,1280,117,1360,122.7L1440,128L1440,320L1360,320C1280,320,1120,320,960,320C800,320,640,320,480,320C320,320,160,320,80,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 0;
}
  
.blog-content {
    padding: 80px 0;
}
  
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
  
.blog-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}
  .blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);}
  
.blog-card-image {
    height: 200px;
    overflow: hidden;
}
  
.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
  
.blog-card:hover .blog-card-image img {
    transform: scale(1.1);
}
  
.blog-card-content {
    padding: 25px;
}
  
.blog-card-date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
}
  
  .blog-card-title {
    color: #007a74;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.3;
}
  
.blog-card-excerpt {
    color: #666;
    margin-bottom: 20px;
}
  
.blog-card-link {
    color: #00a99d;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}
  
.blog-card-link:hover {
    color: #007a74;
}
  
.blog-card-link i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}
  
.blog-card-link:hover i {
    transform: translateX(5px);
}
  
  /* Estilos para la página de artículo individual */
.article-header {
    padding: 60px 0;
    background-color: #f9f9f9;
}
  
.article-meta {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}
  
.article-author {
    display: flex;
    align-items: center;
    margin-right: 20px;
}
  
.article-author-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 10px;
}
  
.article-author-name {
    font-weight: 600;
    color: #333;
}
  
.article-date {
    color: #666;
}
  
.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #007a74;
    margin-bottom: 20px;
    line-height: 1.2;
}
  
.article-featured-image {
    margin-bottom: 40px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
  
.article-content {
    padding: 0 0 60px;
}
  
.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}
  
.article-body p {
    margin-bottom: 25px;
}
  
.article-body h2 {
    font-size: 1.8rem;
    color: #007a74;
    margin: 40px 0 20px;
}
  
.article-body h3 {
    font-size: 1.5rem;
    color: #007a74;
    margin: 30px 0 15px;
}
  
.article-body ul, .article-body ol {
    margin-bottom: 25px;
    padding-left: 20px;
}
  
.article-body ul li, .article-body ol li {
    margin-bottom: 10px;
    list-style-type: disc;
}
  
.article-body ol li {
    list-style-type: decimal;
}
  
.article-body blockquote {
    border-left: 4px solid #00a99d;
    padding: 20px;
    background-color: #f9f9f9;
    margin: 30px 0;
    font-style: italic;
    color: #555;
}
  
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 40px;
}
  
.article-tag {
    background-color: #e6f7f6;
    color: #00a99d;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}
  
.article-tag:hover {
    background-color: #00a99d;
    color: white;
}
  
.article-share {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}
  
.article-share-title {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 15px;
}
  
.article-share-buttons {
    display: flex;
    gap: 15px;
}
  
.share-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}
  
.share-button.facebook {
    background-color: #3b5998;
}
  
.share-button.twitter {
    background-color: #1da1f2;
}
  
.share-button.linkedin {
    background-color: #0077b5;
}
  
.share-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}
  
  /* Paginación */
.blog-pagination {
    display: flex;
    justify-content: center;
    margin-top: 60px;
}
  
.pagination-button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    margin: 0 5px;
    background-color: white;
    color: #333;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}
  
.pagination-button.active {
    background-color: #00a99d;
    color: white;
    border-color: #00a99d;
}
  
.pagination-button:hover:not(.active) {
    background-color: #f5f5f5;
}
  
  /* Sidebar */
.blog-sidebar {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
  
.sidebar-widget {
    margin-bottom: 40px;
}
  
.sidebar-widget:last-child {
    margin-bottom: 0;
}
  
.sidebar-title {
    font-size: 1.3rem;
    color: #007a74;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}
  
.sidebar-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #00a99d;
 }
  
.sidebar-search {
    position: relative;
}
  
.sidebar-search input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: "Poppins", sans-serif;
}
  
.sidebar-search button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #00a99d;
    cursor: pointer;
}
  
.sidebar-categories ul li {
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}
  
.sidebar-categories ul li:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}
  
.sidebar-categories ul li a {
    display: flex;
    justify-content: space-between;
    color: #555;
    transition: all 0.3s ease;
}
  
.sidebar-categories ul li a:hover {
    color: #00a99d;
}
  
.sidebar-posts-item {
    display: flex;
    margin-bottom: 15px;
}
  
.sidebar-posts-image {
    width: 80px;
    height: 80px;
    border-radius: 5px;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
}
  
.sidebar-posts-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
  
.sidebar-posts-info h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}
  
.sidebar-posts-info h4 a {
    color: #333;
    transition: all 0.3s ease;
}
  
.sidebar-posts-info h4 a:hover {
    color: #00a99d;
}
  
.sidebar-posts-date {
    font-size: 0.8rem;
    color: #666;
}
  
.sidebar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
  
.sidebar-tag {
    background-color: #f5f5f5;
    color: #555;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}
  
.sidebar-tag:hover {
    background-color: #00a99d;
    color: white;
}
  
  /* Estilos responsivos para el blog */
@media (max-width: 992px) {
.blog-grid {
      grid-template-columns: repeat(2, 1fr);
}
.article-title {
      font-size: 2rem;
    }
  }
  
@media (max-width: 768px) {
  .blog-grid {
      grid-template-columns: 1fr;
}
    
.blog-header h1 {
      font-size: 2.5rem;
}
    
.article-title {
      font-size: 1.8rem;
}
    
.article-meta {
      flex-direction: column;
      align-items: flex-start;
}
    
.article-author {
      margin-bottom: 10px;
}
    
.blog-header .nav_links {
      position: absolute;
      height: 100vh;
      width: 200px;
      top: 0;
      right: 0;
      text-align: left;
      z-index: 2;
      background-color: rgba(0, 169, 157, 0.9);
      padding-top: 80px;
      transform: translateX(100%);
      transition: transform 0.5s ease;
}
    
.blog-header .nav_links.active {
      transform: translateX(0);
}
    
.menu-toggle {
      display: none;
      cursor: pointer;
      font-size: 24px;
      color: white;
      z-index: 3;
}
    
@media(max-width: 700px) {
      .menu-toggle {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
      }
      
  .blog-header .nav_links ul li {
     display: block;
    }
  }
}
  
@media (max-width: 576px) {
  .blog-header h1 {
      font-size: 2rem;
    }
    
  .article-title {
      font-size: 1.5rem;
    }
    
  .article-body {
      font-size: 1rem;
    }
}
  /* Estilos específicos para la sección de Flipbooks anteriores */

/* Título de la sección */
.sidebar-title, 
h3.sidebar-title {
    color: #007a74;
    font-size: 1.8rem;
    font-weight: 600;
    text-align: center;
    margin: 40px 0 30px;
    position: relative;
}

.sidebar-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #00a99d;
}

/* Contenedor de la cuadrícula de flipbooks */
.blog-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        width: 800px;
        gap: 20px;
        margin-top: 30px;
        margin-bottom: 50px;
        padding-bottom: 15px; 
        height: auto;/* Espacio para la barra de desplazamiento */
}

.blog-grid::-webkit-scrollbar {
    height: 8px;
}

.blog-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.blog-grid::-webkit-scrollbar-thumb {
    background: #00a99d;
    border-radius: 4px;
}

.blog-grid::-webkit-scrollbar-thumb:hover {
    background: #007a74;
}

/* Estilo para cada tarjeta de flipbook */
.blog-card-image.small-flipbook {
    width: 100%;
    height: 200px;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 0;
    flex: 1;

}

.blog-card, 
.small-flipbook-container {
    display: flex;
    flex-direction: column;
    min-width: 300px;
    margin-right: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.blog-card-image.small-flipbook:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

/* Iframe dentro de la tarjeta */
.blog-card-image.small-flipbook iframe {
    width: 30%;
    height: 100%;
    border: none;
}

/* Mensaje de "Click to view in fullscreen" */
.blog-card-image.small-flipbook::before {
    content: "Click to view in fullscreen";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    text-align: center;
    white-space: nowrap;
}

.blog-card-image.small-flipbook:hover::before {
    opacity: 1;
}

/* Overlay para mejorar la visibilidad */
.blog-card-image.small-flipbook::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.2) 30%, rgba(0,0,0,0) 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.blog-card-image.small-flipbook:hover::after {
    opacity: 1;
}

/* Botón "Ver en grande" pequeño en la parte inferior */
.view-large-btn {
    width: 100%;
    display: flex;
    background-color: #007bff;
    color: white;
    padding: 5px 0;
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    border: none;
    cursor: pointer;
}

.view-large-btn:hover {
    background-color: #0056b3;

}

/* Mensaje de "Click to view" */
.blog-card-image.small-flipbook .fullscreen-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 14px;
    z-index: 5;
    pointer-events: none;
    text-align: center;
    white-space: nowrap;
}

/* Estilos responsivos */
@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .blog-card-image.small-flipbook {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .sidebar-title, 
    h3.sidebar-title {
        font-size: 1.5rem;
    }
    
    .blog-card-image.small-flipbook {
        height: 200px;
    }
    
    .view-large-btn {
        padding: 2px 6px;
        font-size: 0.65rem;
    }
}