/* Enlaces sin subrayado global */
a {
  text-decoration: none !important;
}


.inicio {
  font-family: Arial, sans-serif;
  font-size: 18px;
  margin: 10px 0;
  text-align: center;
}

.inicio a {
  color: #007BFF; /* Azul brillante */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

.inicio a:hover,
.inicio a:focus {
  color: #0056b3; /* Azul oscuro al pasar el mouse */
  text-decoration: underline;
  outline: none;
}

/* Contenedor principal con flexbox para dos cards lado a lado */
.container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  padding: 40px 20px;
  background: #f6f8fa;
}

/* Cada card ocupa máximo 48% del ancho para dos en fila */
.post {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.12), 0 1.5px 6px rgba(0,0,0,0.06);
  max-width: 380px;
  width: 48%;
  overflow: hidden;
  transition: box-shadow 0.3s;
}

.post:hover {
  box-shadow: 0 12px 36px rgba(0,0,0,0.18), 0 3px 12px rgba(0,0,0,0.10);
}

.header_post img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  transition: transform 0.3s;
}

.header_post img:hover {
  transform: scale(1.03);
}

.body_post {
  padding: 24px 22px 18px 22px;
}

.post_content h2 {
  font-size: 1.5rem;
  margin: 0 0 10px 0;
  color: #222;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.post_content p {
  color: #555;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 18px;
}

.container_infos {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 16px;
  flex-wrap: wrap;
}

.postedBy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: 0.96rem;
  color: #888;
  padding-right: 18px;
  min-width: 90px;
  justify-content: center;
}

.postedBy span {
  font-weight: 600;
  color: #444;
  margin-bottom: 4px;
}

.postedBy a {
  color: #4B8DF8;
  text-decoration: none !important;
  transition: color 0.2s;
  margin-top: 0;
  font-weight: 400; /* peso normal por defecto */
}

.postedBy a:hover {
  color: #1a5ed8;
}

.container_tags {
  margin-left: 0;
  min-width: 120px;
  display: flex;
  flex-direction: column;
}

.container_tags span {
  font-weight: 600;
  color: #444;
  margin-bottom: 4px;
  margin-top: 16px;
}

.tags ul {
  list-style: none;
  padding: 0;
  margin: 6px 0 0 0;
  display: flex;
  gap: 10px; /* Espacio entre etiquetas */
  flex-wrap: wrap; /* Permite que las etiquetas se ajusten en varias líneas si es necesario */
}

.tags li {
  display: inline;
}

.tags a {
  display: inline-block;
  background: #f0f4fa;
  color: #4B8DF8;
  font-size: 0.93rem;
  padding: 5px 14px; /* Más espacio para textos más largos */
  border-radius: 12px;
  text-decoration: none !important;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap; /* Evita que el texto se divida en varias líneas */
}

.tags a:hover {
  background: #4B8DF8;
  color: #fff;
}

/* Responsive: en pantallas pequeñas, cards apiladas */
@media (max-width: 768px) {
  .post {
    width: 100%;
    max-width: 100%;
  }
  .container {
    padding: 20px 10px;
  }
  .container_infos {
    flex-direction: column;
    gap: 12px;
  }
  .container_tags {
    border-left: none;
    padding-left: 0;
    margin-left: 0;
    padding-top: 10px;
    min-width: unset;
  }
  .postedBy {
    padding-right: 0;
    min-width: unset;
  }

  /* Enlaces destacados con mayor grosor en móviles */
  .postedBy a {
    font-weight: 700;
  }
}



/* Estilo para el título principal de la página */
h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #222;
  text-align: center;
  margin: 40px 0 30px 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Contenedor de los detalles ampliados de los tópicos */
.topics_details {
  max-width: 900px;
  margin: 40px auto 60px auto;
  padding: 0 20px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #444;
  line-height: 1.6;
}

/* Cada sección individual de tópico */
.topics_details section {
  margin-bottom: 40px;
  border-bottom: 1px solid #e0e3ea;
  padding-bottom: 30px;
}

/* Título de cada tópico dentro del desarrollo */
.topics_details h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 18px;
}

/* Párrafos de contenido detallado */
.topics_details p {
  margin-bottom: 16px;
  font-size: 1rem;
  color: #555;
}

/* Contenido relacionado dentro de cada tópico */
.related_content {
  background-color: #f9fafc;
  border-left: 4px solid #4B8DF8;
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 1.12rem;
  color: #2a2a2a;
  max-width: 600px;
  margin-top: 12px;
}

/* Lista dentro del contenido relacionado */
.related_content ul {
  margin: 8px 0 0 20px;
  padding: 0;
  list-style-type: disc;
  color: #4B8DF8;
}

/* Ítems de la lista relacionados */
.related_content ul li {
  margin-bottom: 6px;
}

/* Responsive: ajustar márgenes y tamaños en móviles */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
    margin: 30px 0 20px 0;
  }
  .topics_details {
    padding: 0 12px;
    margin: 30px auto 40px auto;
  }
  .topics_details h3 {
    font-size: 1.5rem;
    margin-bottom: 14px;
  }
  .topics_details p {
    font-size: 0.95rem;
    margin-bottom: 14px;
  }
  .related_content {
    max-width: 100%;
    padding: 10px 16px;
  }
}



/* Contenedor general para los snippets */
.featured-snippets {
  max-width: 900px;
  margin: 40px auto;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #2c3e50;
  line-height: 1.6;
}

/* Estilos para cada tipo de snippet */
.featured-snippets section {
  background-color: #fefefe;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px 25px;
  margin-bottom: 30px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.07);
}

/* Encabezados de snippets */
.featured-snippets h2 {
  font-size: 1.7rem;
  margin-bottom: 15px;
  border-bottom: 3px solid #2980b9;
  padding-bottom: 6px;
  color: #1a3d7c;
}

/* Párrafos en snippet de párrafo */
.snippet-paragraph p {
  font-size: 1.05rem;
  margin: 0;
}

/* Listas en snippet de lista */
.snippet-list ul {
  list-style-type: disc;
  padding-left: 20px;
  margin: 0;
}

.snippet-list ul li {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

/* Tabla en snippet de tabla */
.snippet-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.12rem;
}

.snippet-table thead tr {
  background-color: #2980b9;
  color: #fff;
}

.snippet-table th,
.snippet-table td {
  border: 1px solid #ccc;
  padding: 10px 12px;
  text-align: left;
}

.snippet-table tbody tr:nth-child(even) {
  background-color: #f7faff;
}

/* FAQ definiciones */
.snippet-faq dl {
  margin: 0;
}

.snippet-faq dt {
  font-weight: 700;
  margin-top: 15px;
  cursor: pointer;
  color: #34495e;
}

.snippet-faq dd {
  margin-left: 20px;
  margin-bottom: 15px;
  font-size: 1rem;
  color: #555;
}



