/* Estilos generales para noticias */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(248,250,252,0.98));
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
  }
  
  .container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #9e0000, #8b5cf6, #06b6d4);
    border-radius: 20px 20px 0 0;
  }
  
  /* Header de la noticia */
  .header-noticia {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
  }
  
  .titulo-principal {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.2;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #1e293b, #191970);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  
  .info-publicacion {
    color: #64748b;
    font-size: 0.95rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    opacity: 0.8;
  }
  
  /* Imagen principal - Más grande */
  .imagen-principal {
    width: 100%;
    height: 550px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 2.5rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
  }
  
  .imagen-principal:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
  }
  
  /* Contenido de la noticia */
  .contenido-noticia {
    line-height: 1.8;
    margin-bottom: 3rem;
  }
  
  .parrafo {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    color: #374151;
    margin-bottom: 1.5rem;
    text-align: justify;
    font-weight: 400;
    transition: color 0.3s ease;
  }
  
  .parrafo:hover {
    color: #1f2937;
  }
  
  /* Destacado */
  .destacado {
    background: linear-gradient(135deg, #7a4040, #880000);
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 16px;
    margin: 2rem 0;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    font-style: italic;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
  }
  
  .destacado::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    opacity: 0.3;
    font-family: serif;
  }
  
  .destacado::after {
    content: '"';
    position: absolute;
    bottom: -30px;
    right: 20px;
    font-size: 4rem;
    opacity: 0.3;
    font-family: serif;
  }
  
  /* Galería de imágenes */
  .galeria-imagenes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 3rem;
  }
  
  .imagen-galeria {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    cursor: pointer;
  }
  
  .imagen-galeria:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    border-radius: 20px;
  }
  
  /* Botón volver */
  .boton-volver {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #8d0101, #9c3a3a);
    color: white;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
  }
  
  .boton-volver::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
  }
  
  .boton-volver:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
  }
  
  .boton-volver:hover::before {
    left: 100%;
  }
  
  /* Footer de la noticia */
  .footer-noticia {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(160, 0, 0, 0.1);
  }
  
  .logo-institucion {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #8f0000, #9e0101);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  
  .footer-noticia p {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    font-weight: 400;
  }
  
  /* Animaciones */
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .container {
    animation: fadeInUp 0.8s ease-out;
  }
  
  .parrafo {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
  }
  
  .parrafo:nth-child(1) { animation-delay: 0.1s; }
  .parrafo:nth-child(2) { animation-delay: 0.2s; }
  .parrafo:nth-child(3) { animation-delay: 0.3s; }
  .parrafo:nth-child(4) { animation-delay: 0.4s; }
  .parrafo:nth-child(5) { animation-delay: 0.5s; }
  
  /* Responsive */
  @media (max-width: 768px) {
    .container {
      padding: 1.5rem;
      margin: 1rem;
    }
    
    .titulo-principal {
      font-size: 2rem;
    }
    
    .parrafo {
      font-size: 1rem;
    }
    
    .imagen-principal {
      height: 420px;
    }
    
    .galeria-imagenes {
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .imagen-galeria {
      height: 150px;
    }
  }
  
  @media (max-width: 480px) {
    .titulo-principal {
      font-size: 1.8rem;
    }
    
    .imagen-principal {
      height: 350px;
    }
    
    .galeria-imagenes {
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .imagen-galeria {
      height: 150px;
    }
    
    .destacado {
      padding: 1rem 1.5rem;
      font-size: 1rem;
    }
    
    .boton-volver {
      padding: 0.8rem 1.5rem;
      font-size: 0.9rem;
    }
  }