/* Layout principal con grid */
.revista-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 30px 20px;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
}

.revista-main-content {
    grid-column: 1;
}

.revista-sidebar {
    grid-column: 2;
    grid-row: 1;
}

.sidebar-section {
    position: sticky;
    top: 2rem;
}

.sidebar-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.contact-info-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.contact-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
}

.contact-icon.whatsapp {
    background: #25d366;
}

.contact-icon.email {
    background: #ea4335;
}

.contact-icon.location {
    background: #4285f4;
}

.contact-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-details h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 0.3rem 0;
}

.contact-details a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: #5649c0;
    text-decoration: underline;
}

.contact-details p {
    color: #666;
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.4;
}

.banner-google {
    margin-top: 2rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    text-align: center;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 0.9rem;
}

.no-contact-info {
    text-align: center;
    padding: 2rem 1rem;
    color: #999;
    background: #f8f9fa;
    border-radius: 8px;
}

.no-contact-info i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.revista-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 3px solid var(--primary-color);
}

.revista-header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.revistas-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.revista-card {
    display: flex;
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid #ff6b35;
}

.revista-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.revista-image {
    width: 200px;
    height: 250px;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}

.revista-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.revista-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.revista-content {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.revista-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.revista-date {
    color: #666;
    font-size: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.revista-description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.btn-ver-revista {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: #ff6b35;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.btn-ver-revista:hover {
    background-color: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    color: white;
    text-decoration: none;
}

.no-revistas {
    text-align: center;
    padding: 3rem 1rem;
    color: #666;
}

.no-revistas i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 1rem;
}

.pagination-container {
    margin-top: 40px;
    padding: 20px 0;
    text-align: center;
}

.pagination {
    margin-bottom: 0;
    display: inline-flex;
    list-style: none;
    gap: 5px;
}

.pagination .page-link {
    color: var(--primary-color);
    border: 1px solid #dee2e6;
    padding: 8px 12px;
    margin: 0;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-weight: 500;
    background: white;
    text-decoration: none;
    min-width: 40px;
    text-align: center;
}

.pagination .page-link:hover {
    color: #5649c0;
    background-color: #e9ecef;
    border-color: #adb5bd;
    text-decoration: none;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    background-color: #fff;
    border-color: #dee2e6;
    cursor: not-allowed;
}

.pagination .page-item.disabled .page-link:hover {
    color: #6c757d;
    background-color: #fff;
    border-color: #dee2e6;
}

.pagination-info {
    color: #6c757d;
    font-size: 14px;
    margin-top: 15px;
}

@media (max-width: 768px) {
    .revista-container {
        padding: 20px 15px;
        display: block;
        grid-template-columns: none;
        gap: 0;
    }
    
    .revista-sidebar {
        grid-column: unset;
        grid-row: unset;
        margin-top: 2rem;
    }
    
    .sidebar-section {
        position: static;
        top: unset;
    }
    
    .sidebar-title {
        font-size: 1.1rem;
    }
    
    .contact-item {
        padding: 0.75rem;
    }
    
    .contact-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .contact-details h4 {
        font-size: 0.85rem;
    }
    
    .contact-details a,
    .contact-details p {
        font-size: 0.8rem;
    }
    
    .banner-google {
        margin-top: 1.5rem;
        padding: 0.75rem;
        min-height: 200px;
        font-size: 0.85rem;
    }
    
    .revista-header h1 {
        font-size: 2rem;
    }
    
    .revista-card {
        flex-direction: column;
    }
    
    .revista-image {
        width: 100%;
        height: 200px;
    }
    
    .revista-content {
        padding: 1.5rem;
    }
    
    .revista-title {
        font-size: 1.5rem;
    }
    
    /* Paginación responsive */
    .pagination .page-link {
        padding: 6px 10px;
        font-size: 14px;
        min-width: 35px;
    }
    
    .pagination-info {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .pagination {
        gap: 3px;
    }
    
    .pagination .page-link {
        padding: 5px 8px;
        font-size: 13px;
        min-width: 30px;
    }
}