/* ==============================================
   Consejos de Carrera - Migrated from WordPress
   Prefix: consejos-
   ============================================== */

/* Hero Section */
.consejos-hero {
    background: linear-gradient(135deg, #f1e9cf 0%, #fac61d 100%);
    color: black;
    padding: 100px 20px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.consejos-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="white" opacity="0.1"/></svg>');
    opacity: 0.3;
}

.consejos-hero h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 52px;
    font-weight: 800;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    letter-spacing: -0.5px;
}

.consejos-hero p {
    font-size: 20px;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.95;
    position: relative;
    z-index: 1;
    line-height: 1.6;
}

/* Container */
.consejos-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 40px;
}

/* Filter Bar */
.consejos-filter-bar {
    background: white;
    padding: 28px 32px;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    margin-bottom: 48px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.consejos-filter-bar label {
    font-weight: 700;
    color: #1a1a1a;
    font-size: 14px;
}

.consejos-filter-select {
    flex: 1;
    min-width: 200px;
    padding: 13px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.consejos-filter-select:hover {
    border-color: #d0d0d0;
}

.consejos-filter-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.consejos-search-box {
    flex: 2;
    min-width: 250px;
    position: relative;
}

.consejos-search-box input {
    width: 100%;
    padding: 13px 45px 13px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.consejos-search-box input:hover {
    border-color: #d0d0d0;
}

.consejos-search-box input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.consejos-search-box input::placeholder {
    color: #999;
}

.consejos-search-box i {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 14px;
}

/* Blog Grid */
.consejos-blog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.consejos-blog-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.consejos-blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
    border-color: rgba(102, 126, 234, 0.1);
}

.consejos-blog-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: transform 0.4s ease;
}

.consejos-blog-card:hover .consejos-blog-image {
    transform: scale(1.05);
}

.consejos-blog-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.consejos-blog-category {
    display: inline-block;
    background: linear-gradient(135deg, #e3f2fd 0%, #f0f4ff 100%);
    color: #1976d2;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;
}

.consejos-blog-title {
    font-family: 'Poppins', sans-serif;
    font-size: 19px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 53px;
}

.consejos-blog-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.consejos-blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
    font-size: 12px;
    color: #999;
    margin-top: auto;
}

.consejos-blog-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.consejos-blog-meta i {
    font-size: 11px;
}

.consejos-read-more {
    color: #667eea;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    font-size: 13px;
}

.consejos-read-more:hover {
    gap: 10px;
    color: #5568d3;
}

.consejos-read-more i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.consejos-read-more:hover i {
    transform: translateX(3px);
}

/* Empty State */
.consejos-empty-state {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.consejos-empty-state i {
    font-size: 80px;
    color: #ddd;
    margin-bottom: 25px;
}

.consejos-empty-state h3 {
    font-size: 28px;
    color: #333;
    margin-bottom: 15px;
}

.consejos-empty-state p {
    color: #666;
    font-size: 16px;
}

/* Loading */
.consejos-loading {
    text-align: center;
    padding: 60px 20px;
}

.consejos-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f0f0f0;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: consejos-spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes consejos-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 1400px) {
    .consejos-container {
        padding: 60px 30px;
    }
}

@media (max-width: 1200px) {
    .consejos-blog-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .consejos-blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .consejos-hero h1 {
        font-size: 42px;
    }

    .consejos-container {
        padding: 50px 20px;
    }
}

@media (max-width: 768px) {
    .consejos-hero {
        padding: 60px 20px 50px;
    }

    .consejos-hero h1 {
        font-size: 32px;
    }

    .consejos-hero p {
        font-size: 16px;
    }

    .consejos-blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .consejos-filter-bar {
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
        gap: 15px;
    }

    .consejos-filter-select,
    .consejos-search-box {
        width: 100%;
        min-width: 100%;
    }

    .consejos-blog-title {
        font-size: 18px;
        min-height: auto;
    }

    .consejos-blog-content {
        padding: 20px;
    }
}
