/* =========================== */
/*        PORTADA ARTÍCULO    */
/* =========================== */

.article-container-cover {
  width: 100%;
  height: 600px; /* subido de 300px */
  position: relative;
  margin-top: 80px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}


.article-container-cover::before {
	content: '';
	width: 100%;
	height: 100%;
	background-color: rgba(31, 33, 32, 0.6);
	position: absolute;
	top: 0;
	left: 0;
}

.container-cover-info {
  text-align: center;
  padding: 20px;
  z-index: 1;
}

.container-cover-info h1 {
  font-size: 48px;
  font-weight: 800;
  color: white;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
  margin-bottom: 10px;
}


.container-cover-info p {
	font-size: 18px;
	font-weight: 400;
	color: var(--text-color);
}

/* =========================== */
/*     CONTENIDO PRINCIPAL    */
/* =========================== */

.container-content {
	max-width: 1500px;
	width: 100%;
	margin: auto;
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
}

/* Artículo principal */
article {
	flex: 1;
	padding: 30px;
	background: #2a2a2ad7;
	color: var(--color-light);
	border-radius: 10px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
	position: relative;
	overflow: hidden;
}

article::before {
	content: '';
	width: 100%;
	height: 6px;
	position: absolute;
	top: 0;
	left: 0;
	background: var(--color-primary);
	border-top-left-radius: 10px;
	border-top-right-radius: 10px;
}

article h1 {
	margin-top: 20px;
	font-weight: 700;
	font-size: 36px;
	color: var(--color-light);
}

article p {
	margin-top: 20px;
	margin-bottom: 20px;
	font-size: 18px;
	color: var(--text-color);
	line-height: 1.7;
}

article ul {
	margin-top: 20px;
	margin-bottom: 20px;
	padding-left: 20px;
}

article ul li {
	margin-bottom: 15px;
	font-size: 17px;
	color: #ccc;
}

article img {
	width: 100%;
	margin-top: 20px;
	border-radius: 8px;
}

/* Imágenes dentro del contenido del artículo */
article img {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
  margin: 20px 0;
  border-radius: 8px;
}

article img,
article figure,
article figure img {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

/* Botones */
.button {
	text-decoration: none;
	padding: 12px 24px;
	text-transform: capitalize;
	border-radius: 9999px;
	display: inline-block;
	font-weight: 600;
	font-size: 16px;
	transition: background-color 0.3s ease;
	cursor: pointer;
	border: none;
}

.btn-primary {
	background-color: var(--color-primary);
	color: #fff;
}

.btn-primary:hover {
	background-color: #16a25f;
}

.btn-secondary {
	background-color: #fff;
	color: var(--color-secondary);
	border: 1px solid var(--color-secondary);
}

.btn-secondary:hover {
	background-color: var(--color-primary);
	color: #fff;
}

.login-btn-wrapper {
  margin-top: 20px;
}

.btn-login-required {
  display: inline-block;
  padding: 10px 20px;
  background-color: #19bc70;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.btn-login-required:hover {
  background-color: #15995d;
}


/* =========================== */
/*          ASIDE             */
/* =========================== */

.container-aside {
	width: 320px;
	display: flex;
	flex-direction: column;
	gap: 20px;

	.container-button {
		display: flex;
		gap: 5px;
		align-items: center;
		
		.btn-read-more {
			color: var(--color-primary);
							text-decoration: none;
							font-size: 18px;
							font-weight: 500;
							transition: all 0.3s ease-in-out;
						}

						i {
							color: var(--color-primary);
							font-size: 16px;
							transition: all 0.3s ease-in-out;
						}

						&:hover {
							.btn-read-more {
								color: var(--color-light);
							}

							i {
								transform: translateX(5px);
							}
						}
					}
}



.container-aside aside {
	background: #2a2a2ad7;
	box-shadow: 0 0 20px -10px rgba(0, 0, 0, 0.2);
	border-left: 4px solid var(--color-primary);
	border-radius: 8px;
	overflow: hidden;
	padding: 20px 20px 30px;
	color: var(--text-color);
}

.container-aside aside img {
	width: 100%;
	display: block;
	border-radius: 6px;
	margin-top: 15px;
}

.container-aside aside h2 {
	font-size: 18px;
	font-weight: 700;
	color: var(--color-light);
	margin-bottom: 10px;
}

.container-aside aside p {
	font-size: 16px;
	color: var(--text-color);
	line-height: 1.6;
}

.section-comentarios {
    padding: 2rem;
    color: #ffffff;
  }

  .section-comentarios h2 {
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    color: #ffffff;
  }

  .comentario {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
  }

  .comentario img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
  }

  .comentario-header {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .comentario-header strong {
    font-size: 1.1rem;
    color: #cfcfcf;
  }

  .comentario p {
    margin-top: 0.5rem;
    font-size: 1rem;
    color: #f1f1f1;
    line-height: 1.5;
  }

  .form-comentario {
    margin-top: 2rem;
  }

  .form-comentario textarea {
	color: #ffffff;
    width: 100%;
    height: 120px;
    padding: 1rem;
    font-size: 1rem;
    border-radius: 8px;
    background-color: #1f2120;
    border: 1px solid #ccc;
    resize: vertical;
  }

  .form-comentario button {
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background-color: #19bc70;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
  }

  .form-comentario button:hover {
    background-color: #15995d;
  }

  @media (max-width: 768px) {
    .comentario {
      flex-direction: column;
      align-items: flex-start;
    }

    .comentario img {
      margin-bottom: 0.5rem;
    }
  }


/* =========================== */
/*       RESPONSIVE DESIGN    */
/* =========================== */

@media screen and (max-width: 1220px) {
	.container-content {
		max-width: 1300px;
		padding: 0 20px;
	}
}

@media screen and (max-width: 992px) {
	.container-content {
		width: 100%;
		flex-direction: column;
	}

	article {
		box-shadow: none;
	}

	.container-aside {
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: center;
		width: 100%;
		margin-top: 20px;
	}

	.container-aside aside {
		width: 100%;
		max-width: 500px;
		margin: 10px;
	}
}

@media screen and (max-width: 768px) {

  .article-container-cover h1,
  .container-cover-info h1,
  article h1 {
    font-size: 24px !important;
    line-height: 1.2;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }
}
