/* Estilos Sección Blog */

/* Contenedor principal de la sección blog moderna */
.blog-modern {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 30px; /* Espacio respecto al título */
}

/* Artículo destacado */
.blog-featured {
    width: 100%;
}

.blog-featured-card {
    display: flex;
    flex-direction: column; /* Ajustado desde row en algunos styleX */
    background-color: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.03); /* Borde sutil */
}

.blog-featured-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.blog-featured-image {
    position: relative;
    height: 400px; /* Ajustar altura si es necesario */
    overflow: hidden;
}

.blog-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-featured-card:hover .blog-featured-image img {
    transform: scale(1.05);
}

/* Categoría posicionada sobre la imagen */
.blog-featured-category,
.blog-card-category { /* Estilo común para categorías */
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #ffffff !important; /* Forzar blanco */
    padding: 8px 15px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.2);
    z-index: 2;
}

.blog-card-category { /* Ajustes específicos para cards normales */
    top: 15px;
    left: 15px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
}

.blog-featured-content {
    padding: 30px;
}

/* Metadatos del post (fecha, autor, etc.) */
.blog-date {
    display: flex;
    align-items: center;
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 15px;
}

.blog-date i {
    margin-right: 5px;
    color: var(--primary-color);
}

/* Título y párrafo del post destacado */
.blog-featured-content h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 24px;
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.3;
}

.blog-featured-content p {
    margin-bottom: 20px;
    color: var(--text-light);
    line-height: 1.7;
}

/* Enlace "Leer más" */
.blog-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.blog-link i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.blog-link:hover {
    color: var(--secondary-color);
}

.blog-link:hover i {
    transform: translateX(5px);
}

/* Grid para posts normales */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columnas por defecto */
    gap: 30px;
}

/* Estilo de tarjeta de post moderna (en el grid) */
.blog-card-modern {
    background-color: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    height: 100%; /* Para alinear tarjetas */
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,0.03); /* Borde sutil */
}

.blog-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.blog-card-image {
    position: relative;
    height: 200px; /* Altura imagen tarjeta normal */
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card-modern:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 25px;
    flex-grow: 1; /* Permite que el contenido ocupe espacio */
    display: flex;
    flex-direction: column;
}

.blog-card-content h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 18px;
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.4;
}

.blog-card-content p { /* Extracto */
    margin-bottom: 20px;
    color: var(--text-light);
    line-height: 1.6;
    flex-grow: 1; /* Empuja el enlace "leer más" abajo */
}

/* Filtros del Blog */
.blog-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin: 30px 0;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    gap: 15px; /* Espacio entre elementos */
}

.filter-label {
    font-weight: 600;
    /* margin-right: 15px; */ /* Usar gap en .blog-filters */
    color: var(--text-dark);
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex: 1; /* Ocupa espacio disponible */
}

/* Estilos .filter-btn movidos a components/buttons.css */

.filter-search {
    display: flex;
    /* margin-left: auto; */ /* Quitado para mejor flex wrap */
    position: relative;
}

.filter-search input {
    padding: 10px 15px 10px 35px; /* Espacio para icono */
    border: 1px solid #e0e0e0;
    border-radius: 30px;
    font-size: 14px;
    width: 200px;
    transition: all 0.3s ease;
}

.filter-search input:focus {
    outline: none;
    border-color: var(--primary-color);
    width: 220px;
    box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.1); /* Indicador focus */
}

.filter-search button { /* Icono lupa */
    position: absolute;
    left: 10px; /* A la izquierda */
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 5px;
}

.filter-search button:hover {
    color: var(--primary-color);
}

/* Divisor y Títulos de Sección dentro del Blog */
.blog-section-divider {
    margin: 60px 0 30px;
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-color), transparent);
}

.blog-section-title {
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: 30px;
    position: relative;
    padding-left: 15px;
}

.blog-section-title:before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 80%; /* Ajustar altura */
    width: 5px;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
}

/* Layouts Adicionales de Blog (Standard, Columnas) */
.blog-standard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.blog-card-standard { /* Similar a modern, pero puede tener variaciones */
    background-color: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card-standard:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Layout de dos columnas */
.blog-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

.blog-column-two { /* Contenedor para la segunda columna si tiene cards pequeñas */
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.blog-card-small {
    background-color: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column; /* O row si la imagen es lateral */
}

.blog-card-small:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Tarjeta destacada (Highlight) */
.blog-highlight-card {
    background-color: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-highlight-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.blog-highlight-image {
    height: 250px;
    overflow: hidden;
}

.blog-highlight-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-highlight-card:hover .blog-highlight-image img {
    transform: scale(1.05);
}

.blog-highlight-content {
    padding: 30px;
    position: relative;
    flex-grow: 1; /* Ocupar espacio */
    display: flex;
    flex-direction: column;
}

.blog-highlight-category {
    display: inline-block;
    background-color: var(--secondary-color); /* Color diferente */
    color: var(--white);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 10px;
    align-self: flex-start; /* Alinear a la izquierda */
}

.blog-highlight-content h3 {
    font-size: 22px;
    margin-bottom: 15px;
    margin-top: 0;
}

.blog-highlight-content p { /* Párrafo si existe */
    flex-grow: 1;
    margin-bottom: 20px;
    color: var(--text-light);
    line-height: 1.6;
}

/* Botón específico para blog (si es necesario) */
.btn-blog {
    margin-top: auto; /* Empujar al final */
    align-self: flex-start; /* Alinear a la izquierda */
}

/* CTA del Blog (Newsletter?) */
.blog-cta {
    margin-top: 60px;
    /* Estilos adicionales si es una sección separada */
    padding: 40px;
    background-color: #f9f9f9;
    border-radius: 10px;
    text-align: center;
}

.newsletter-field { /* Campo de email */
    max-width: 400px;
    margin: 20px auto; /* Centrar */
    /* Estilos del input y botón aquí */
}

/* Nota: Los estilos responsive irán a responsive.css */ 