/* noticia.css - Usando paleta de colores del sitio */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background: linear-gradient(135deg, var(--grisclaro) 0%, var(--blanco) 100%);
  min-height: 100vh;
}

.container-noticia {
  background: var(--blanco);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Imagen principal */
.img-noticia {
  width: 100%;
  height: 800px;
  display: block;
  object-fit: contain;
}

/* Header de la noticia */
.noticia-header {
  padding: 40px;
  border-bottom: 3px solid var(--grisclaro);
  position: relative;
}

.noticia-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--rojo) 0%, var(--grisoscuro) 100%);
}

.noticia-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
  align-items: center;
}

.seccion-tag {
  background: var(--rojo);
  color: var(--blanco);
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.localidad-tag {
  background: var(--grisoscuro);
  color: var(--blanco);
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.lecturas-count {
  font-size: 0.9rem;
  color: var(--grisoscuro);
  display: flex;
  align-items: center;
  gap: 5px;
}

.noticia-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--grisoscuro);
  margin: 20px 0;
  line-height: 1.3;
}

.copete-noticia {
  font-size: 1.25rem;
  color: #444;
  line-height: 1.7;
  font-weight: 500;
  margin: 20px 0;
  padding-left: 20px;
  border-left: 4px solid var(--rojo);
  letter-spacing: 0.2px;
}

.fecha-autor {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.95rem;
  color: #666;
  margin-top: 20px;
}

.fecha-noticia,
.autor-noticia {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Contenido principal */
.contenido-wrapper {
  padding: 40px;
}

.contenido-noticia {
  max-width: 850px;
  margin: 0 auto;
}

/* ESTILOS UNIFICADOS PARA TODOS LOS TEXTOS DEL ARTÍCULO */
.contenido-noticia p,
.contenido-secundario-texto p,
.contenido-secundario p,
.contenido-wrapper p {
  font-size: 1.15rem;
  line-height: 1.9;
  color: #2c2c2c;
  margin-bottom: 24px;
  text-align: left;
  font-weight: 400;
  letter-spacing: 0.3px;
}

/* Contenido secundario */
.contenido-secundario {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 2px solid var(--grisclaro);
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
}

.img-noticia-secundaria {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 10px;
  margin: 20px auto 30px;
  display: block;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contenido-secundario-texto {
  max-width: 850px;
  margin: 0 auto;
  padding: 0;
}

/* Publicidad - Estilo limpio sin fondo y sin hover */
.publicidad-container {
  margin: 40px 0;
  text-align: center;
}

.publicidad-container a {
  display: inline-block;
  max-width: 100%;
}

.publicidad-container img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

/* Botones de acción */
.noticia-acciones {
  display: flex;
  gap: 15px;
  justify-content: center;
  padding: 25px 40px;
  background: var(--grisclaro);
  border-bottom: 2px solid #e0e0e0;
  flex-wrap: wrap;
  align-items: center;
}

.btn-leer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: var(--blanco);
}

.btn-leer:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-leer.leyendo {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.icono-leer {
  font-size: 1.2rem;
}

/* ESTILOS PARA BOTONES DE COMPARTIR EN REDES SOCIALES */
.compartir-redes {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.btn-red-social {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: none;
  border-radius: 25px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  color: white;
  font-family: inherit;
}

.btn-red-social:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.btn-red-social:active {
  transform: translateY(-1px);
}

.icono-red {
  font-size: 1.2rem;
  display: flex;
  align-items: center;
}

/* Estilos específicos por red social */
.btn-facebook {
  background: linear-gradient(135deg, #1877f2 0%, #0d5dbb 100%);
}

.btn-facebook:hover {
  box-shadow: 0 6px 20px rgba(24, 119, 242, 0.4);
}

.btn-instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.btn-instagram:hover {
  box-shadow: 0 6px 20px rgba(225, 48, 108, 0.4);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #1da851 100%);
}

.btn-whatsapp:hover {
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn-copiar {
  background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}

.btn-copiar:hover {
  box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

.btn-copiar.copiado {
  background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
  animation: pulseSuccess 0.5s ease;
}

@keyframes pulseSuccess {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Notificación flotante */
.notificacion-flotante {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 16px 24px;
  border-radius: 8px;
  background: white;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  font-size: 0.95rem;
  font-weight: 500;
  z-index: 9999;
  opacity: 0;
  transform: translateX(400px);
  transition: all 0.3s ease;
}

.notificacion-flotante.mostrar {
  opacity: 1;
  transform: translateX(0);
}

.notificacion-exito {
  border-left: 4px solid #28a745;
  color: #155724;
}

.notificacion-info {
  border-left: 4px solid #17a2b8;
  color: #0c5460;
}

/* Footer de la noticia */
.noticia-footer {
  padding: 30px 40px;
  background-color: var(--grisclaro);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  border-top: 3px solid var(--grisoscuro);
}

.noticia-stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.stat-item {
  font-size: 0.95rem;
  color: var(--grisoscuro);
  display: flex;
  align-items: center;
  gap: 5px;
}

.volver-noticia {
  background: var(--rojo);
  color: var(--blanco);
  padding: 12px 30px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(189, 50, 41, 0.3);
}

.volver-noticia:hover {
  background: var(--grisoscuro);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(49, 49, 42, 0.4);
}

/* Mensaje de error */
.mensaje-error {
  text-align: center;
  padding: 80px 40px;
  background: var(--blanco);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.mensaje-error h2 {
  font-size: 2rem;
  color: var(--rojo);
  margin-bottom: 20px;
}

.mensaje-error p {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 30px;
}

/* Estilos para noticias relacionadas */
.noticias-relacionadas {
    margin: 40px 0;
    padding: 30px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.noticias-relacionadas h3 {
    color: #2c3e50;
    font-size: 24px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #3498db;
}

.relacionadas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.noticia-relacionada {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.noticia-relacionada:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.noticia-relacionada img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.noticia-relacionada-content {
    padding: 15px;
}

.noticia-relacionada h4 {
    font-size: 16px;
    margin: 0 0 10px 0;
    color: #2c3e50;
    line-height: 1.4;
}

.noticia-relacionada-fecha {
    font-size: 12px;
    color: #7f8c8d;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Estilos para comentarios */
.seccion-comentarios {
    margin-top: 40px;
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 10px;
}

.seccion-comentarios h3 {
    color: #2c3e50;
    font-size: 24px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

.formulario-comentario {
    background: white;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #34495e;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-enviar-comentario {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-enviar-comentario:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.lista-comentarios {
    margin-top: 30px;
}

.comentario-item {
    background: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.comentario-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ecf0f1;
}

.comentario-autor {
    font-weight: 600;
    color: #2c3e50;
    font-size: 16px;
}

.comentario-fecha {
    font-size: 12px;
    color: #95a5a6;
}

.comentario-texto {
    color: #34495e;
    line-height: 1.6;
    font-size: 15px;
}

.sin-comentarios {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
    font-style: italic;
}

.mensaje-exito {
    background-color: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
}

.mensaje-error-comentario {
    background-color: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
}

/* Mejoras adicionales de legibilidad */
.contenido-noticia p strong,
.contenido-secundario-texto p strong {
  font-weight: 600;
  color: #1a1a1a;
}

.contenido-noticia p em,
.contenido-secundario-texto p em {
  font-style: italic;
  color: #3a3a3a;
}

/* Primer párrafo más destacado (opcional) */
.contenido-noticia p:first-of-type {
  font-size: 1.2rem;
  line-height: 1.95;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 20px 15px;
  }

  .img-noticia {
    height: 300px;
  }

  .noticia-header {
    padding: 25px;
  }

  .noticia-header h1 {
    font-size: 1.8rem;
  }

  .copete-noticia {
    font-size: 1rem;
  }

  .contenido-wrapper {
    padding: 25px;
  }

  .contenido-noticia p,
  .contenido-secundario-texto p {
    font-size: 1.05rem;
  }

  .noticia-footer {
    padding: 20px;
    flex-direction: column;
    text-align: center;
  }

  .noticia-stats {
    justify-content: center;
  }

  .noticia-acciones {
    flex-direction: column;
    gap: 20px;
    padding: 20px 15px;
  }

  .compartir-redes {
    width: 100%;
    justify-content: center;
  }

  .btn-red-social {
    padding: 11px 18px;
    font-size: 0.9rem;
    flex: 1;
    min-width: 120px;
    justify-content: center;
  }

  .btn-leer {
    width: 100%;
    justify-content: center;
    padding: 12px 24px;
    font-size: 0.95rem;
  }
  
  .relacionadas-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .noticia-header h1 {
    font-size: 1.5rem;
  }

  .fecha-autor {
    flex-direction: column;
    gap: 10px;
  }

  .contenido-noticia p,
  .contenido-secundario-texto p {
    font-size: 1.05rem;
    text-align: left;
    line-height: 1.8;
  }
  
  .contenido-noticia {
    padding: 20px 25px;
  }

  .compartir-redes {
    flex-direction: column;
    width: 100%;
  }

  .btn-red-social {
    width: 100%;
    justify-content: center;
  }

  .notificacion-flotante {
    right: 10px;
    left: 10px;
    top: 10px;
  }
}