/* --- Importación de Fuentes de Google --- */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Playfair+Display:wght@700&family=Roboto+Slab:wght@700&display=swap');
@import "/framework.css";
/* --- Reset Básico y Estilos Generales --- */
body {
    background-color: #7f7f7f; /* Un fondo gris*/
    color: #333333;
    font-family: 'Lato', sans-serif; /* Fuente base para todo el texto */
    line-height: 1.7;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 1200px; /* Un poco más ancho para una sensación más de periódico */
    margin: 2rem auto;
    background-color: #ffe7d6; /*rosa */
    padding: 2rem 3rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
}


/* Estilos del Blog Index */
.blog-header {
    text-align: center;
    margin-bottom: 50px;
}

/* Comentado para referencia futura
.blog-header h1 {
    font-size: 3em;
    color: #00c2ff;
}
*/

/* Grid de Posts */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* Tarjeta Individual del Post */
.post-card {
    background-color: #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s;
}

.post-card:hover {
    transform: translateY(-5px);
}

/* Elementos de la Tarjeta */
.post-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-content {
    padding: 20px;
    flex-grow: 1;
}

.post-title {
    font-size: 1.4em;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    color: var(--color-texto-claro-80) !important;
}


.post-date {
  font-size: 0.8em; /* Un poco más pequeña que el texto normal */
  color: var(--color-texto-claro-80) !important;
  margin-bottom: 10px; /* Espacio antes del resumen */
  margin-top: -5px; /* Un poco más cerca del título */
}

.post-summary {
    font-size: 0.8em;
    color: var(--color-texto-claro-100);
}


/* --- Titulares y Encabezados --- */
h1 {
    font-family: 'Playfair Display', serif; /* Fuente serif elegante para el titular principal */
    font-size: 2.8rem;
    color: #1a1a1a;
    text-align: left;
    line-height: 1.2;
    margin-bottom: 1rem;
    padding-bottom: 1.5rem;
    border-bottom: 3px solid #000000; /* Línea negra gruesa, muy de periódico */
}

h2 {
    font-family: 'Roboto Slab', serif; /* Fuente slab-serif para los subtítulos de sección */
    font-size: 1.6rem;
    color: #0056b3; /* Un azul corporativo más sobrio */
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #cccccc;
}

h3 {
    font-family: 'Roboto Slab', serif;
    font-size: 1.2rem;
    color: #333333;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

/* --- Cuerpo del Texto y Listas --- */
p, li {
    font-size: 1rem; /* 16px, un tamaño de lectura cómodo */
    text-align: justify; /* Justificado para ese look de columna de periódico */
    margin-bottom: 1rem;
}

ul, ol {
    padding-left: 1.5rem;
}

/* --- Elementos Especiales --- */
a {
    color: #0056b3;
    text-decoration: none;
    font-weight: 700;
}

a:hover {
    color: #E65100; /* Naranja quemado para el hover, como en tu CSS original */
    text-decoration: underline;
}


blockquote {
    border-left: 4px solid #dddddd;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #555555;
    font-size: 1.1rem;
}

.estimated-reading-time {
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    text-align: left;
    margin-top: -1rem;
    margin-bottom: 2rem;
}

.key-takeaways-list {
    list-style-type: '✓'; /* Un checkmark para los puntos clave */
    padding-left: 1.5rem;
}

.key-takeaways-list li {
    padding-left: 0.5rem;
    font-weight: 700;
}
/* --- Media Queries para Responsividad del Blog --- */

/* Imágenes responsivas en posts */
.container img {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 1.5rem auto;
}

/* Para Tablets (hasta 992px) */
@media (max-width: 992px) {
    /* Hacemos el contenedor un poco más flexible y reducimos el padding */
    .container {
        padding: 2rem 1.5rem;
        margin: 1.5rem auto;
    }

    /* Reducimos ligeramente los titulares más grandes */
    h1 {
        font-size: 2.5rem; /* Reducido desde 2.8rem */
    }

    h2 {
        font-size: 1.5rem; /* Reducido desde 1.6rem */
    }
}

/* Para Móviles Grandes y Tablets en vertical (hasta 768px) */
@media (max-width: 768px) {
    /* Ajustamos más el padding del contenedor */
    .container {
        padding: 1.5rem 1rem;
        margin: 1rem auto;
    }

    /* Reducimos más el tamaño de los titulares */
    h1 {
        font-size: 2.2rem;
        line-height: 1.3;
    }

    h2 {
        font-size: 1.4rem;
    }

    /* ¡MUY IMPORTANTE! Cambiamos el texto justificado a alineado a la izquierda. */
    p, li {
        text-align: left;
    }
}

/* Para Móviles Pequeños (hasta 480px) */
@media (max-width: 480px) {
    .container {
        padding: 1.5rem 0.8rem; /* Aún menos padding lateral */
    }

    /* Hacemos los titulares aún más pequeños */
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    /* Reducimos ligeramente el tamaño del texto principal para que quepa más */
    p, li {
        font-size: 0.95rem; /* 15.2px, un poco más compacto */
    }
}
