
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
body {
  font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #242943;
}
header {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px 0;
}
 /* Estilo para el menú */
 .menu-image {
  width: 17px; /* o el tamaño que necesites */
  margin-bottom: 0px;
}
 .nav {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgb(255, 255, 255);
    padding: 10px 20px;
    border-radius: 40px;
    box-shadow: 0 10px 40px rgba(110, 27, 158, 0.3);
    z-index: 1000;
    transition: top 0.3s ease-in-out;
  }
  
  .nav-item {
    color: #83818c;
    padding: 10px 15px;
    text-decoration: none;
    transition: 0.3s;
    font-weight: 500;
  }
  
  .nav-item:hover {
    color: #333;
  }
  
  @media (max-width: 580px) {
    .nav {
      flex-direction: column; /* Pone los items en una columna */
      padding: 10px;
    }
  
    .nav-item:hover {
      padding: 12px 0;
    }
  }
  






  .comic-section {
    background-color: #f8746f;
  
    padding: 3rem 1rem;
    font-family: 'Poppins', sans-serif;
    text-align: center;
    max-width: 1200px; /* límite de ancho para pantallas grandes */
    margin: 0 auto;
    margin-left: 60px;
    margin-right: 60px;
    border-radius: 15px;
  }
  
  .comic-title {
    border-radius: 15px;
    font-size: 2.5rem;
    color: #fafafa;
    margin-bottom: 2rem;
  
  }
  
  .comic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    justify-items: center;
  }
  
  /* Estilos generales de las viñetas */
  .comic-box {
    
    background: #f8746f;
    border: 6px solid #e1e4e4;
    border-radius: 25px;
    padding: 3rem;
    box-shadow: 6px 6px 0 rgba(97, 99, 97, 0.2);
    transition: transform 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
  }
  
  .comic-box:hover {
    transform: scale(1.03);
  }
  
  .comic-box img {
    width: 100%;
    height: auto;
    max-height: 220px;
    object-fit: contain;
    border-radius: 8px;
  }
  .comic-box:hover img {
    transform: scale(1.05) rotate(-1deg);
    transition: transform 0.4s ease;
  }
  .comic-box {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards;
  }
  
  @keyframes fadeInUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Globos de texto */
 .speech-bubble, .narration {
  background-color: #ffe0b2; /* melocotón claro */
  color: #5d4037; /* marrón suave para texto */
  padding: 1rem 1.5rem;
  border-radius: 25px;
  border: 2px solid #ffb74d;
  box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.1);
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem;
  line-height: 1.6;
  text-align: center;
  max-width: 90%;
  margin: 1.2rem auto;
  transition: transform 0.3s ease;
}

.speech-bubble:hover, .narration:hover {
  transform: scale(1.02);
}

  
  
  
  /* contenedores 2 */
  .narration {
    background: #fcc31c;
    border: 3px solid #eee9e9;
    
  }
  
  /* Tamaños personalizados en pantallas grandes */
  @media (min-width: 768px) {
    .comic-box.small {
      grid-column: span 1;
    }
  
    .comic-box.medium {
      grid-column: span 1;
    }
  
    .comic-box.large {
      grid-column: span 2;
    }
  
    .comic-box.tall {
      grid-row: span 2;
    }
  
    .comic-box.wide {
      grid-column: span 2;
    }
  }
  
  /* Ajuste para pantallas muy grandes */
  @media (min-width: 1200px) {
    .comic-grid {
      grid-template-columns: repeat(3, 1fr);
    }
  }
  .comic-section {
    background-color: #f8746f;
    padding: 3rem 1rem;
    font-family: 'Poppins', sans-serif;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 15px;
  }

  .comic-title {
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 2rem;
  }

  .comic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
  }

  .comic-card {
    background: linear-gradient(145deg, #ffffff, #fef4e7);
    border-radius: 25px;
    padding: 2rem;
    text-align: center;
    box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
    border: 2px solid #ffe0b2;
  }

  .comic-card:hover {
    transform: translateY(-8px);
  }

  .comic-card img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 1rem;
  }

  .comic-card h3 {
    color: #f8746f;
    font-size: 1.3rem;
    margin: 0.5rem 0;
  }

  .comic-card p {
    color: #5d4037;
    font-size: 1rem;
  }

  /* Modales */
  .modal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .modal-content {
    background: #fffefc;
    padding: 2rem 2.5rem;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.4s ease-in-out;
    position: relative;
  }

  .modal-content h2 {
    color: #f8746f;
    margin-bottom: 1rem;
  }

  .modal-content p {
    color: #4e342e;
    font-size: 1.1rem;
    line-height: 1.6;
  }

  .close {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 1.8rem;
    color: #aaa;
    cursor: pointer;
    transition: color 0.2s ease;
  }

  .close:hover {
    color: #333;
  }

  @keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
  }




  
