* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

/* todo style cont-main-inpu-article-blog */
.cont-main-inpu-article-blog {
  display: flex;
  width: 100%;
  align-items: start;
  justify-content: center;
  gap: 20px;
  padding: 10px;
}
/* todo syke input blog indice */
.inpu-blog-indice {
  padding: 20px;
  border: 1px solid gray;
  border-radius: 10px;
  width: 30%;
  height: auto;
}
.inpu-blog-indice h1 {
  border-bottom: 1px solid rgb(112, 110, 110);
  padding: 5px;
}
.content-indice-blog {
  padding: 5px 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  width: 100%;
}
.content-indice-blog a {
  text-decoration: none;
  color: black;
  transition: all 0.5s ease;
}
.content-indice-blog a li {
  text-indent: -20px;
}
.content-indice-blog a:hover {
  color: royalblue;
}

/* todo style inpu blog article */
.inpu-blog-article {
  width: 70%;
  padding: 20px;
  border-radius: 10px;
}
.blog-img-portada {
  background-color: red;
  width: 100%;
  height: 500px;
  border-top-right-radius: 20px;
  border-top-left-radius: 20px;
  overflow: hidden;
}
.blog-img-portada img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.text-article img{
  width: 90%;
  height: 350px;
  margin: 0 auto;
  object-fit: cover;
}
table {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border-collapse: collapse;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  background-color: #fff;
}

th, td {
  padding: 12px;
  text-align: left;
  border: 1px solid #e0e0e0;
  width: 50%; /* Ajusta el ancho de las columnas al 50% */
}

th {
  background-color: #007bff;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

tr:nth-child(even) {
  background-color: #f1f1f1;
}
.tablediv{
  width: 100%;
}
table img {
  max-width: 450px;
  min-width: 350px;
  height: auto;
  max-height: 270px;
  border-radius: 5px;
}

p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}
table p{
  margin: 5px;
  font-size: 15px;
  line-height: 1.4;
}



.blog-detail-article {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 10px;
}
.blog-detail-article div {
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  gap: 10px;
}
.blog-detail-article div span {
  font-size: 15px;
  font-weight: bold;
}
.blog-detail-article div i {
  color: #1cca81;
}
.blog-article {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 5px;
}
.text-article {
  padding: 10px;
}
.text-article h1 {
  font-size: 30px;
  font-weight: 600;
  line-height: 1.5;
  padding: 5px;
}
.text-article h2 {
  font-size: 25px;
  font-weight: 600;
  line-height: 1.5;
}
.text-article p {
  font-size: 18px;
  line-height: 1.5;
  padding: 10px 0;
}
.next-prev-article-blog {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  width: 100%;
  margin-top: 40px;
}
.prev-article {
  display: flex;
  width: 30%;
  gap: 10px;
  align-items: center;
  justify-content: center;
}
.img-prev-article {
  width: 40%;
}
.img-prev-article img {
  width: 100%;
}
.prev-article-detail {
  width: 60%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: start;
}
.prev-article-detail a {
  text-decoration: none;
  color: purple;
  text-transform: uppercase;
  font-size: 15px;
}
.prev-article-detail a:hover {
  color: blue;
}
.prev-article-detail p {
  font-size: 15px;
}
.next-article {
  display: flex;
  width: 30%;
  gap: 10px;
  align-items: center;
  justify-content: center;
}
.img-next-article {
  width: 40%;
}
.img-next-article img {
  width: 100%;
}
.next-article-detail {
  width: 60%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: start;
}
.next-article-detail a {
  text-decoration: none;
  color: purple;
  text-transform: uppercase;
  font-size: 15px;
}
.next-article-detail a:hover {
  color: blue;
}
.next-article-detail p {
  font-size: 15px;
}

.blog-share-buttons {
  padding: 1rem;
  background-color: #f9f9f9;
  border-radius: 12px;
  margin-top: 20px;
}

.blog-share-buttons p {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.share-buttons-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-around;
}

.share-button {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  padding: 10px 14px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  color: white;
  text-decoration: none;
  transition: background 0.3s ease;
  flex: 1 1 45%;
  justify-content: center;
}

.share-button i {
  font-size: 1.2rem;
}

/* Colores personalizados por red */
.share-button.whatsapp { background-color: #25D366; }
.share-button.facebook { background-color: #3b5998; }
.share-button.twitter { background-color: #1da1f2; }
.share-button.telegram { background-color: #0088cc; }
.share-button.nativo { background-color: #555; }
.tablediv {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.tablediv > div {
  flex: 0 0 48%; /* Cada contenedor ocupa el 48% del ancho */

}
.tablediv img {
  width: 100%; /* Las imágenes ocupan el 100% del ancho del contenedor */
  height: 300px; /* Altura fija */
  object-fit: cover; /* Asegura que las imágenes mantengan sus proporciones y recorten el exceso */

}
/* Responsive */
@media (max-width: 600px) {
  .share-button {
    flex: 1 1 100%;
  }
}

/* todo style responsiv */
/* @media (max-width: 992px){
} */
@media (max-width: 768px) {
  .cont-main-inpu-article-blog{
    flex-direction: column;
    align-items: center;
  }
  .inpu-blog-article{
    width: 97%;
  }
  .inpu-blog-indice{
    width: 50%;
  }
 
  .text-article {
    max-width: 95%;
    margin-left: 15px;
  }
  .tablediv > div {
    flex: 0 0 100%; /* Cada contenedor ocupa el 100% del ancho */
}
.tablediv img {
  height: 370px;
}
.centerdiv p{
  text-align: center;
}
}

@media(max-width: 768px){
  .text-article {
    padding: 10px;
    max-width: 377px;
  }
  table img {
    max-width: 250px;
    min-width: 200px;
  }
}
