/*------------------------------- inicio ----------------------------------*/
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background: #f4f4f4;
}

.tit {
    color: red;
    font-size: 40px;
    text-align: center;
    margin-top: 10px;
}

/*---------------------------------seccion 4----------------------------------*/
/* Estilo base */
.image-description {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    transition: all 0.4s ease;
    opacity: 0;
  }
  
  .image-description:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  }
  
  .image-description img {
    width: 400px;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .image-description:hover img {
    transform: scale(1.05) rotate(1deg);
    box-shadow: 0 12px 20px rgba(0,0,0,0.15);
  }
  
  .description {
    flex: 1;
    padding: 1rem;
    opacity: 0;
    transform: translateX(20px);
  }
  
  .description h3 {
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
  }
  
  .description h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: red;
    transition: width 0.4s ease;
  }
  
  .description:hover h3::after {
    width: 100%;
  }
  
  .justify-text {
    text-align: justify;
    line-height: 1.6;
  }
  
  #p7 {
    text-align: justify;
    font-style: italic;
    padding: 2.5rem;
    margin-top: 3rem;
    opacity: 0;
    transform: translateY(20px);
    color: red;
    font-weight: 400;
  }
  
  /* Animaciones */
  @keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  @keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
  }
  
  @keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
  }
  
  @keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
  }
  
  .animate-fadeInUp { animation: fadeInUp 1s forwards; }
  .animate-fadeInLeft { animation: fadeInLeft 1s forwards; }
  .animate-fadeInRight { animation: fadeInRight 1s forwards; }
  .animate-scaleIn { animation: scaleIn 1s forwards; }
  
  @media (max-width: 768px) {
    .image-description {
      flex-direction: column;
      text-align: center;
    }
    
    .image-description img {
      width: 100%;
      height: auto;
    }
  }
  