/* ========================================
   BLOG CREATION MODAL STYLES
   ======================================== */

/* Forzar Century Gothic en todo el blog EXCEPTO iconos de FontAwesome */
#crearBlogModal *:not(.fas):not(.far):not(.fab):not(.fal):not(.fa):not(i[class*="fa-"]),
#editarBlogModal *:not(.fas):not(.far):not(.fab):not(.fal):not(.fa):not(i[class*="fa-"]),
#cambiarImagenModal *:not(.fas):not(.far):not(.fab):not(.fal):not(.fa):not(i[class*="fa-"]),
#crearPodcastModal *:not(.fas):not(.far):not(.fab):not(.fal):not(.fa):not(i[class*="fa-"]),
.modern-blog-card *:not(.fas):not(.far):not(.fab):not(.fal):not(.fa):not(i[class*="fa-"]),
.blog-page *:not(.fas):not(.far):not(.fab):not(.fal):not(.fa):not(i[class*="fa-"]),
.empty-blog-state *:not(.fas):not(.far):not(.fab):not(.fal):not(.fa):not(i[class*="fa-"]),
.filter-btn *:not(.fas):not(.far):not(.fab):not(.fal):not(.fa):not(i[class*="fa-"]) {
    font-family: 'Century Gothic', 'CenturyGothic', 'AppleGothic', sans-serif !important;
}

/* Asegurar que los iconos FontAwesome mantengan su font-family */
.fas, .far, .fab, .fal, .fa, i[class*="fa-"] {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased !important;
}

/* Modal Enhancements - Crear Blog */
#crearBlogModal .modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

#crearBlogModal .modal-header {
    background: linear-gradient(135deg, #3f111c 0%, #611f2f 100%);
    border-radius: 15px 15px 0 0;
    padding: 1.5rem;
}

/* Modal Enhancements - Editar Blog */
#editarBlogModal .modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

#editarBlogModal .modal-header {
    background: linear-gradient(135deg, #e6a441 0%, #d17a00 100%);
    border-radius: 15px 15px 0 0;
    padding: 1.5rem;
}

/* Modal Enhancements - Cambiar Imagen */
#cambiarImagenModal .modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

#cambiarImagenModal .modal-header {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    border-radius: 15px 15px 0 0;
    padding: 1.5rem;
}

/* Modal Enhancements - Crear Podcast */
#crearPodcastModal .modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

#crearPodcastModal .modal-header {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-radius: 15px 15px 0 0;
    padding: 1.5rem;
}

#crearBlogModal .modal-title,
#editarBlogModal .modal-title,
#cambiarImagenModal .modal-title,
#crearPodcastModal .modal-title {
    font-weight: 600;
    font-size: 1.25rem;
}

#crearBlogModal .modal-body,
#editarBlogModal .modal-body,
#cambiarImagenModal .modal-body,
#crearPodcastModal .modal-body {
    padding: 2rem;
    max-height: 70vh;
    overflow-y: auto;
}

#crearBlogModal .modal-footer,
#editarBlogModal .modal-footer,
#cambiarImagenModal .modal-footer,
#crearPodcastModal .modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
    border-radius: 0 0 15px 15px;
}
filter-btn
/* Form Styling */
#crearBlogForm .form-label,
#editarBlogForm .form-label,
#cambiarImagenForm .form-label,
#crearPodcastForm .form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
}

/* Current Image Preview Styling */
.current-image-container {
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.current-image-container:hover {
    border-color: #adb5bd;
    background: #e9ecef;
}

#currentImagePreview img,
#currentImageOnly img {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

#currentImagePreview img:hover,
#currentImageOnly img:hover {
    transform: scale(1.05);
}

/* New Image Preview */
#newImagePreview,
#previewNuevaImagen,
#podcastImagePreview {
    border: 2px dashed #28a745;
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    background: rgba(40, 167, 69, 0.05);
    display: none;
}

#newImagePreview img,
#previewNuevaImagen img,
#podcastImagePreview img {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
}

/* Show preview when image is selected */
#newImagePreview:not(:empty),
#previewNuevaImagen:not(:empty),
#podcastImagePreview:not(:empty) {
    display: block;
    animation: fadeInUp 0.3s ease-in-out;
}

/* Action buttons in cards */
.card-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: flex-end;
}

.card-actions .btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-edit {
    background: linear-gradient(135deg, #e6a441 0%, #d17a00 100%);
    border: none;
    color: white;
}

.btn-edit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(230, 164, 65, 0.4);
}

.btn-change-image {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    border: none;
    color: white;
}

.btn-change-image:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.4);
}
.filter-btn 
/* Delete button styling */
#eliminarBlogBtn {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border: none;
    transition: all 0.3s ease;
}

#eliminarBlogBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
}

/* Podcast specific styles */
.podcast-card {
    border-left: 4px solid #28a745 !important;
}

.modern-tag.podcast {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.modern-tag.episode {
    background: linear-gradient(135deg, #6f42c1 0%, #e83e8c 100%);
    color: white;
}

.quick-read-btn.podcast-btn {
    background: linear-gradient(135deg, #1db954 0%, #1ed760 100%);
    color: white;
}

.quick-read-btn.podcast-btn:hover {
    background: linear-gradient(135deg, #1ed760 0%, #1db954 100%);
    transform: scale(1.1);
}

.modern-read-btn.podcast-listen-btn {
    background: linear-gradient(135deg, #1db954 0%, #1ed760 100%);
    color: white;
}

.modern-read-btn.podcast-listen-btn:hover {
    background: linear-gradient(135deg, #1ed760 0%, #1db954 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(29, 185, 84, 0.3);
}

/* Spotify icon styling */
.fab.fa-spotify {
    color: #1db954;
}

/* Animation for new elements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#crearBlogForm .form-label i {
    color: #6c757d;
    width: 16px;
}

#crearBlogForm .form-control,
#crearBlogForm .form-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

/* TinyMCE Editor Styling */
#crearBlogModal .tox-tinymce {
    border: 2px solid #e9ecef !important;
    border-radius: 8px !important;
    transition: all 0.3s ease;
}

#crearBlogModal .tox-tinymce:focus-within {
    border-color: #3f111c !important;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25) !important;
}

#crearBlogModal .tox-toolbar {
    background: #f8f9fa !important;
    border-bottom: 1px solid #e9ecef !important;
    padding: 8px !important;
}

#crearBlogModal .tox-toolbar__primary {
    background: none !important;
}

#crearBlogModal .tox-tbtn {
    margin: 2px !important;
    border-radius: 4px !important;
}

#crearBlogModal .tox-tbtn:hover {
    background: #e9ecef !important;
}

#crearBlogModal .tox-tbtn--enabled {
    background: #3f111c !important;
    color: white !important;
}

#crearBlogModal .tox-statusbar {
    background: #f8f9fa !important;
    border-top: 1px solid #e9ecef !important;
    font-size: 12px !important;
}

#crearBlogModal .tox-edit-area__iframe {
    background: white !important;
}

/* Responsive TinyMCE */
@media (max-width: 768px) {
    #crearBlogModal .tox-tinymce {
        font-size: 14px !important;
    }
    
    #crearBlogModal .tox-toolbar {
        flex-wrap: wrap !important;
    }
    
    #crearBlogModal .tox-toolbar__group {
        margin-bottom: 4px !important;
    }
}

#crearBlogForm .form-control:focus,
#crearBlogForm .form-select:focus {
    border-color: #3f111c;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
}

#crearBlogForm textarea {
    resize: vertical;
    min-height: 120px;
}

#crearBlogForm .form-text {
    color: #6c757d;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Image Preview */
#imagePreview img {
    border: 2px solid #e9ecef;
    transition: border-color 0.3s ease;
}

#imagePreview:hover img {
    border-color: #3f111c;
}

/* Form Sections */
#crearBlogForm .row > .col-lg-8 {
    border-right: 1px solid #e9ecef;
    padding-right: 2rem;
}

@media (max-width: 991.98px) {
    #crearBlogForm .row > .col-lg-8 {
        border-right: none;
        border-bottom: 1px solid #e9ecef;
        padding-right: 15px;
        padding-bottom: 2rem;
        margin-bottom: 2rem;
    }
}

/* Checkbox Styling */
#crearBlogForm .form-check-input:checked {
    background-color: #3f111c;
    border-color: #3f111c;
}

#crearBlogForm .form-check-label {
    font-weight: 500;
    cursor: pointer;
}

/* Button Styling */
#crearBlogModal .btn {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}

#crearBlogModal .btn-primary {
    background: linear-gradient(135deg, #3f111c 0%, #611f2f 100%);
    border: none;
}

#crearBlogModal .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

#crearBlogModal .btn-outline-primary {
    border-color: #3f111c;
    color: #3f111c;
}

#crearBlogModal .btn-outline-primary:hover {
    background: #3f111c;
    border-color: #3f111c;
    transform: translateY(-1px);
}

#crearBlogModal .btn-secondary {
    background: #6c757d;
    border-color: #6c757d;
}

/* Blog Filters Styling */
.blog-filters {
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.filter-btn {
    color: #3f111c;
    border-radius: 25px;
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.filter-btn.active {
    background: linear-gradient(135deg, #3f111c 0%, #611f2f 100%);
    border-color: transparent;
    color: white;
}

/* Iconos específicos para filtros de categorías */
.filter-btn[data-category="all"] i::before {
    content: "\f03a"; /* fa-list */
}

.filter-btn[data-category="maridaje"] i::before {
    content: "\f2e7"; /* fa-utensils */
}

.filter-btn[data-category="cepas-y-variedades"] i::before,
.filter-btn[data-category="cepas"] i::before {
    content: "\f06c"; /* fa-leaf */
}

.filter-btn[data-category="viticultura"] i::before {
    content: "\f1bb"; /* fa-industry */
}

.filter-btn[data-category="historia-del-vino"] i::before,
.filter-btn[data-category="historia"] i::before {
    content: "\f02d"; /* fa-book */
}

.filter-btn[data-category="eventos-y-catas"] i::before,
.filter-btn[data-category="eventos"] i::before {
    content: "\f073"; /* fa-calendar */
}

.filter-btn[data-category="consejos-de-sommelier"] i::before {
    content: "\f000"; /* fa-wine-glass */
}

.filter-btn[data-category="podcast"] i::before {
    content: "\f2ce"; /* fa-podcast */
}

/* Create Blog Button in Hero */
.blog-hero .btn-lg {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    background: linear-gradient(135deg, #3f111c 0%, #611f2f 100%);
    border: none;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.blog-hero .btn-lg:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

/* Loading States */
.btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Alert Notifications */
.alert {
    border: none;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    font-weight: 500;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.alert-success {
    background: linear-gradient(135deg, #51cf66 0%, #40c057 100%);
    color: white;
}

.alert-danger {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%);
    color: white;
}

.alert .btn-close {
    filter: invert(1);
}

/* Modal Animations */
#crearBlogModal.fade .modal-dialog {
    transform: scale(0.8) translateY(-50px);
    transition: all 0.3s ease;
}

#crearBlogModal.fade.show .modal-dialog {
    transform: scale(1) translateY(0);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    #crearBlogModal .modal-dialog {
        margin: 0.5rem;
    }
    
    #crearBlogModal .modal-body {
        padding: 1.5rem;
        max-height: 60vh;
    }
    
    #crearBlogModal .modal-footer {
        padding: 1rem 1.5rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    #crearBlogModal .modal-footer .btn {
        width: 100%;
    }
    
    .blog-hero .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .filter-buttons {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    
    .filter-btn {
        flex-shrink: 0;
        white-space: nowrap;
    }
}

/* Custom Scrollbar for Modal */
#crearBlogModal .modal-body::-webkit-scrollbar {
    width: 6px;
}

#crearBlogModal .modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

#crearBlogModal .modal-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

#crearBlogModal .modal-body::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Form Validation Styling */
.form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.15);
}

.form-control.is-valid {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.15);
}

.invalid-feedback {
    display: block;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.valid-feedback {
    display: block;
    color: #28a745;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Character Counter */
.character-counter {
    font-size: 0.75rem;
    color: #6c757d;
    float: right;
    margin-top: 0.25rem;
}

.character-counter.warning {
    color: #ffc107;
}

.character-counter.danger {
    color: #dc3545;
}

/* Field Groups */
.field-group {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid #3f111c;
}

.field-group h6 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.field-group h6 i {
    margin-right: 0.5rem;
    color: #3f111c;
}

/* Success Animation */
@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.success-animation {
    animation: successPulse 0.6s ease-in-out;
}

/* Tooltip Styling */
.tooltip-inner {
    background: #495057;
    color: white;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}

/* Progress Indicator */
.progress-indicator {
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-indicator .progress-bar {
    height: 100%;
    background: linear-gradient(135deg, #3f111c 0%, #611f2f 100%);
    transition: width 0.3s ease;
}

/* Blog Card Enhancements */
.blog-card-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
}

.category-tag, .type-tag {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.category-tag.bg-primary {
    background: linear-gradient(135deg, #3f111c 0%, #611f2f 100%) !important;
}

.category-tag.bg-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%) !important;
}

.type-tag.bg-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%) !important;
    color: white;
}

/* Blog Meta Enhancements */
.blog-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.blog-meta i {
    color: #3f111c;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    #crearBlogModal .modal-content {
        background: #2c3e50;
        color: #ecf0f1;
    }
    
    #crearBlogModal .modal-footer {
        background: #34495e;
        border-color: #495057;
    }
    
    #crearBlogForm .form-control,
    #crearBlogForm .form-select {
        background: #34495e;
        border-color: #495057;
        color: #ecf0f1;
    }
    
    #crearBlogForm .form-control:focus,
    #crearBlogForm .form-select:focus {
        background: #34495e;
        border-color: #3f111c;
        color: #ecf0f1;
    }
}

/* ========================================
   MODERN BLOG CARDS DESIGN
   ======================================== */

.modern-blog-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.modern-blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Imagen Container */
.card-image-container {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: linear-gradient(135deg, #3f111c 0%, #611f2f 100%);
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.card-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3f111c 0%, #611f2f 100%);
    color: white;
    font-size: 3rem;
}

/* Iconos específicos para placeholders */
.card-image-placeholder i {
    font-size: 3rem;
    opacity: 0.8;
    font-family: 'Font Awesome 5 Free', 'Font Awesome 5 Brands';
    font-weight: 900;
}

/* Asegurar que los iconos se muestren */
.card-image-placeholder i::before,
.filter-btn i::before,
.empty-icon i::before {
    font-family: 'Font Awesome 5 Free', 'Font Awesome 5 Brands';
    font-weight: 900;
    display: inline-block;
}

/* Iconos específicos por categoría */
.blog-post-item.category-maridaje .card-image-placeholder i::before {
    content: "\f2e7"; /* fa-utensils */
}

.blog-post-item.category-cepas-y-variedades .card-image-placeholder i::before,
.blog-post-item.category-cepas .card-image-placeholder i::before {
    content: "\f06c"; /* fa-leaf (representando uvas/plantas) */
}

.blog-post-item.category-viticultura .card-image-placeholder i::before {
    content: "\f1bb"; /* fa-industry */
}

.blog-post-item.category-historia-del-vino .card-image-placeholder i::before,
.blog-post-item.category-historia .card-image-placeholder i::before {
    content: "\f02d"; /* fa-book */
}

.blog-post-item.category-eventos-y-catas .card-image-placeholder i::before,
.blog-post-item.category-eventos .card-image-placeholder i::before {
    content: "\f073"; /* fa-calendar */
}

.blog-post-item.category-consejos-de-sommelier .card-image-placeholder i::before {
    content: "\f000"; /* fa-wine-glass */
}

.blog-post-item.category-podcast .card-image-placeholder i::before {
    content: "\f2ce"; /* fa-podcast */
}

/* Icono por defecto para blogs */
.blog-card .card-image-placeholder i::before {
    content: "\f72f"; /* fa-wine-bottle */
}

/* Icono por defecto para podcasts */
.podcast-card .card-image-placeholder i::before {
    content: "\f2ce"; /* fa-podcast */
}

.modern-blog-card:hover .card-image {
    transform: scale(1.1);
}

/* Overlay */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(102, 126, 234, 0.8) 0%,
        rgba(118, 75, 162, 0.8) 100%
    );
    opacity: 0;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem;
}

.modern-blog-card:hover .card-overlay {
    opacity: 1;
}

/* Categorías modernas */
.card-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.modern-tag {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modern-tag.primary {
    background: rgba(255, 255, 255, 0.9);
    color: #3f111c;
}

.modern-tag.secondary {
    background: rgba(255, 255, 255, 0.8);
    color: #6c757d;
}

.modern-tag.accent {
    background: rgba(255, 255, 255, 0.7);
    color: #17a2b8;
}

/* Botón de lectura rápida */
.quick-read-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3f111c;
    font-size: 1.2rem;
    text-decoration: none;
    transform: scale(0);
    transition: all 0.3s ease;
    align-self: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.modern-blog-card:hover .quick-read-btn {
    transform: scale(1);
}

.quick-read-btn:hover {
    background: white;
    transform: scale(1.1);
    color: #3f111c;
}

/* Contenido de la card */
.card-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Meta información */
.card-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
}

.meta-item i {
    color: #3f111c;
    font-size: 0.8rem;
}

.meta-item.level {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #8b6914;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
}

/* Título */
.card-title {
    margin-bottom: 1rem;
    font-size: 1.3rem;
    line-height: 1.4;
    font-weight: 700;
}

.card-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.card-title a:hover {
    color: #3f111c;
}

/* Extracto */
.card-excerpt {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
    font-size: 0.95rem;
}

/* Footer de la card */
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

/* Sección del autor */
.author-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar {
    border-radius: 50%;
    border: 2px solid #e9ecef;
    transition: border-color 0.3s ease;
}

.author-details {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.author-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
}

.author-role {
    font-size: 0.75rem;
    color: #6c757d;
    font-style: italic;
}

/* Botón moderno de leer */
.modern-read-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, #3f111c 0%, #611f2f 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.modern-read-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    color: white;
}

.modern-read-btn i {
    transition: transform 0.3s ease;
}

.modern-read-btn:hover i {
    transform: translateX(3px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .modern-blog-card {
        margin-bottom: 2rem;
    }
    
    .card-image-container {
        height: 200px;
    }
    
    .card-content {
        padding: 1.5rem;
    }
    
    .card-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .modern-read-btn {
        align-self: stretch;
        justify-content: center;
    }
    
    .card-meta {
        gap: 0.5rem;
    }
    
    .meta-item {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .card-title {
        font-size: 1.1rem;
    }
    
    .card-meta {
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .author-section {
        gap: 0.5rem;
    }
}

/* Animaciones especiales */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-post-item {
    animation: fadeInUp 0.6s ease forwards;
}

.blog-post-item:nth-child(1) { animation-delay: 0.1s; }
.blog-post-item:nth-child(2) { animation-delay: 0.2s; }
.blog-post-item:nth-child(3) { animation-delay: 0.3s; }
.blog-post-item:nth-child(4) { animation-delay: 0.4s; }
.blog-post-item:nth-child(5) { animation-delay: 0.5s; }
.blog-post-item:nth-child(6) { animation-delay: 0.6s; }

/* Efecto de glassmorphism para las tags */
.modern-tag {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Hover effects para toda la card */
.modern-blog-card:hover .author-avatar {
    border-color: #3f111c;
}

.modern-blog-card:hover .card-title a {
    color: #3f111c;
}

/* ========================================
   EMPTY STATE DESIGN
   ======================================== */

.empty-blog-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    margin: 2rem 0;
}

.empty-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, #3f111c 0%, #611f2f 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.3);
    animation: float 3s ease-in-out infinite;
}

/* Icono específico para estado vacío */
.empty-icon i::before {
    content: "\f72f"; /* fa-wine-bottle por defecto */
}

/* Si hay un contexto de podcast */
.podcast-empty .empty-icon i::before {
    content: "\f2ce"; /* fa-podcast */
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.empty-title {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 700;
    font-size: 1.5rem;
}

.empty-description {
    color: #6c757d;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.empty-cta {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 50px;
    background: linear-gradient(135deg, #3f111c 0%, #611f2f 100%);
    border: none;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.empty-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

/* ========================================
   FONTAWESOME FIX - ALTA PRIORIDAD
   ======================================== */

/* Forzar FontAwesome con máxima prioridad */
.fas, .far, .fab, .fal, .fa, 
i[class*="fa-"], 
[class*="fa-"]::before, 
[class*="fas"]::before,
[class*="far"]::before,
[class*="fab"]::before {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", "FontAwesome" !important;
    font-weight: 900 !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    display: inline-block !important;
    line-height: 1 !important;
}

/* Específico para iconos far (outline) */
.far, .fa-regular {
    font-weight: 400 !important;
}

/* Específico para iconos fab (brands) */
.fab, .fa-brands {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
}

/* Sobrescribir cualquier regla que pueda interferir */
* .fas, * .far, * .fab, * .fal, * .fa,
* i[class*="fa-"] {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
}